{"_id":"@-xun/api-error","_rev":"3-de348c372de42370b1612ae616c023e5","name":"@-xun/api-error","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@-xun/api-error","version":"1.0.0","keywords":[],"author":{"name":"Xunnamius"},"license":"MIT","_id":"@-xun/api-error@1.0.0","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/api-utils/tree/main/packages/api-error#readme","bugs":{"url":"https://github.com/Xunnamius/api-utils/issues"},"dist":{"shasum":"ca1b19771dcabc66971af5e0c2f4ce328f6e5dca","tarball":"https://registry.npmjs.org/@-xun/api-error/-/api-error-1.0.0.tgz","fileCount":5,"integrity":"sha512-3uIBTgSXccJgRM/tDXsauXfNdQCXarzwbgJDxZMtddA57zBd3el2Rs1yAwsQcElcxZzKcb3S5EJZ4l6LkC2SpA==","signatures":[{"sig":"MEUCIHihon0RkET+H6kK8yi+TXsuw3d78/tIG7bKJ7mDX0vtAiEAx96BW+VPecnRjwbfgKstKF2ZaMAwVxxtmCm93fnf5nM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13322},"type":"commonjs","engines":{"node":"^20.18.0 || >=22.12.0"},"exports":{".":{"types":"./dist/packages/api-error/src/index.d.ts","default":"./dist/packages/api-error/src/index.js"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"80abd4a35bc71883d21e2018ef2b5a215a9a56b3","scripts":{"info":"symbiote project info --env NODE_NO_WARNINGS=1","lint":"npm run lint:package --","test":"npm run test:package:unit --","build":"npm run build:dist --","clean":"symbiote clean --env NODE_NO_WARNINGS=1","start":"symbiote start --env NODE_NO_WARNINGS=1 --","format":"symbiote format --env NODE_NO_WARNINGS=1 --hush","release":"symbiote release --env NODE_NO_WARNINGS=1","build:dist":"symbiote build distributables --env NODE_NO_WARNINGS=1 --not-multiversal","build:docs":"symbiote build docs --env NODE_NO_WARNINGS=1","list-tasks":"symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package","lint:package":"symbiote lint --env NODE_NO_WARNINGS=1 --hush","lint:project":"symbiote project lint --env NODE_NO_WARNINGS=1","lint:packages":"symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited","build:changelog":"symbiote build changelog --env NODE_NO_WARNINGS=1","test:package:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage","test:package:e2e":"symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local","test:package:unit":"symbiote test --env NODE_NO_WARNINGS=1 --tests unit type","test:packages:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage","test:package:integration":"symbiote test --env NODE_NO_WARNINGS=1 --tests integration"},"_npmUser":{"name":"xunnamius","actor":{"name":"xunnamius","type":"user","email":"git@bernarddickens.dev"},"email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/api-utils.git","type":"git"},"_npmVersion":"10.9.3","description":"Simple shared error classes for @-xun/api and friends","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"typesVersions":{"*":{"index":["dist/packages/api-error/src/index.d.ts"],"package":["package.json"]}},"_hasShrinkwrap":false,"devDependencies":{"@-xun/fs":"^2.0.0","rejoinder":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/api-error_1.0.0_1751853339769_0.7435903200406271","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@-xun/api-error","version":"1.1.0","keywords":[],"author":{"name":"Xunnamius"},"license":"MIT","_id":"@-xun/api-error@1.1.0","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/api-utils/tree/main/packages/api-error#readme","bugs":{"url":"https://github.com/Xunnamius/api-utils/issues"},"dist":{"shasum":"3c02ae12fd7b88e762f3fbc1cd667f0a069a0754","tarball":"https://registry.npmjs.org/@-xun/api-error/-/api-error-1.1.0.tgz","fileCount":5,"integrity":"sha512-ykZFcM1vuhdXWotaXuJQNIgSFXq7aseMxdS5HaM3DdmF34E6qtPMK2R1sqRFXXWHYEGIup45+MJgGtXK5zYk8Q==","signatures":[{"sig":"MEQCICaXsS7n7Se0duVogvuPcNQyKLjxCDeBu7il0/jlEu8HAiB27xg+ilhDtHNjFHko7DoqYf9fCy9tc/29dnjq7dz7NA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17418},"type":"commonjs","engines":{"node":"^20.18.0 || >=22.12.0"},"exports":{".":{"types":"./dist/packages/api-error/src/index.d.ts","default":"./dist/packages/api-error/src/index.js"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"c51d070f3803914d075ceb52ab8f52c99bae8bef","scripts":{"info":"symbiote project info --env NODE_NO_WARNINGS=1","lint":"npm run lint:package --","test":"npm run test:package:unit --","build":"npm run build:dist --","clean":"symbiote clean --env NODE_NO_WARNINGS=1","start":"symbiote start --env NODE_NO_WARNINGS=1 --","format":"symbiote format --env NODE_NO_WARNINGS=1 --hush","release":"symbiote release --env NODE_NO_WARNINGS=1","build:dist":"symbiote build distributables --env NODE_NO_WARNINGS=1 --not-multiversal","build:docs":"symbiote build docs --env NODE_NO_WARNINGS=1","list-tasks":"symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package","lint:package":"symbiote lint --env NODE_NO_WARNINGS=1 --hush","lint:project":"symbiote project lint --env NODE_NO_WARNINGS=1","lint:packages":"symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited","build:changelog":"symbiote build changelog --env NODE_NO_WARNINGS=1","test:package:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage","test:package:e2e":"symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local","test:package:unit":"symbiote test --env NODE_NO_WARNINGS=1 --tests unit type","test:packages:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage","test:package:integration":"symbiote test --env NODE_NO_WARNINGS=1 --tests integration"},"_npmUser":{"name":"xunnamius","actor":{"name":"xunnamius","type":"user","email":"git@bernarddickens.dev"},"email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/api-utils.git","type":"git"},"_npmVersion":"10.9.3","description":"Simple shared error classes for @-xun/api and friends","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","dependencies":{"@-xun/error":"^1.1.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"typesVersions":{"*":{"index":["dist/packages/api-error/src/index.d.ts"],"package":["package.json"]}},"_hasShrinkwrap":false,"devDependencies":{"@-xun/fs":"^2.0.0","rejoinder":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/api-error_1.1.0_1751938944976_0.4948355236715001","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@-xun/api-error","version":"1.1.1","description":"Simple shared error classes for @-xun/api and friends","keywords":[],"homepage":"https://github.com/Xunnamius/api-utils/tree/main/packages/api-error#readme","bugs":{"url":"https://github.com/Xunnamius/api-utils/issues"},"repository":{"type":"git","url":"git+https://github.com/Xunnamius/api-utils.git"},"license":"MIT","author":{"name":"Xunnamius"},"sideEffects":false,"type":"commonjs","exports":{".":{"types":"./dist/packages/api-error/src/index.d.ts","default":"./dist/packages/api-error/src/index.js"},"./package":"./package.json","./package.json":"./package.json"},"typesVersions":{"*":{"index":["dist/packages/api-error/src/index.d.ts"],"package":["package.json"]}},"scripts":{"build":"npm run build:dist --","build:changelog":"symbiote build changelog --env NODE_NO_WARNINGS=1","build:dist":"symbiote build distributables --env NODE_NO_WARNINGS=1 --not-multiversal","build:docs":"symbiote build docs --env NODE_NO_WARNINGS=1","clean":"symbiote clean --env NODE_NO_WARNINGS=1","format":"symbiote format --env NODE_NO_WARNINGS=1 --hush","info":"symbiote project info --env NODE_NO_WARNINGS=1","lint":"npm run lint:package --","lint:package":"symbiote lint --env NODE_NO_WARNINGS=1 --hush","lint:packages":"symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited","lint:project":"symbiote project lint --env NODE_NO_WARNINGS=1","list-tasks":"symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package","release":"symbiote release --env NODE_NO_WARNINGS=1","start":"symbiote start --env NODE_NO_WARNINGS=1 --","test":"npm run test:package:unit --","test:package:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage","test:package:e2e":"symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local","test:package:integration":"symbiote test --env NODE_NO_WARNINGS=1 --tests integration","test:package:unit":"symbiote test --env NODE_NO_WARNINGS=1 --tests unit type","test:packages:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage"},"dependencies":{"@-xun/error":"^1.1.6"},"devDependencies":{"@-xun/fs":"^2.0.0","rejoinder":"^2.0.2"},"engines":{"node":"^20.18.0 || >=22.12.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_id":"@-xun/api-error@1.1.1","gitHead":"529d52d7ebcfb533793af73ad0551e66b0d4e720","_nodeVersion":"22.17.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-jpkp8IFTh79AliudhZZAfXIMFStv9iXh2YW5w+96VZLh0VWPI+NaEKASB2Z6plNfBpKSGlxjCSZEac2S2DmJtw==","shasum":"e12d0af8010cc256257bab2d939513afab3dac63","tarball":"https://registry.npmjs.org/@-xun/api-error/-/api-error-1.1.1.tgz","fileCount":5,"unpackedSize":17331,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG3ouW2vUNt7gcuFHxLOi1zKsWsCP2obXwEZJYpmFR2AAiEA5j4AzZe3kMdp66CYEzlURBj+uxGjn5k20PcullmNaOI="}]},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev","actor":{"name":"xunnamius","email":"git@bernarddickens.dev","type":"user"}},"directories":{},"maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/api-error_1.1.1_1752143806988_0.28811709126004725"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-07T01:55:39.533Z","modified":"2025-07-10T10:36:47.344Z","1.0.0":"2025-07-07T01:55:39.944Z","1.1.0":"2025-07-08T01:42:25.184Z","1.1.1":"2025-07-10T10:36:47.174Z"},"bugs":{"url":"https://github.com/Xunnamius/api-utils/issues"},"author":{"name":"Xunnamius"},"license":"MIT","homepage":"https://github.com/Xunnamius/api-utils/tree/main/packages/api-error#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Xunnamius/api-utils.git"},"description":"Simple shared error classes for @-xun/api and friends","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"readme":"<!-- symbiote-template-region-start 1 -->\n\n<p align=\"center\" width=\"100%\">\n  <img width=\"300\" src=\"https://raw.githubusercontent.com/Xunnamius/api-utils/refs/heads/main/packages/api-error/logo.png\">\n</p>\n\n<p align=\"center\" width=\"100%\">\n<!-- symbiote-template-region-end -->\nSimple shared error classes for @-xun/api and friends\n<!-- symbiote-template-region-start 2 -->\n</p>\n\n<hr />\n\n<div align=\"center\">\n\n[![Black Lives Matter!][x-badge-blm-image]][x-badge-blm-link]\n[![Last commit timestamp][x-badge-lastcommit-image]][x-badge-repo-link]\n[![Codecov][x-badge-codecov-image]][x-badge-codecov-link]\n[![Source license][x-badge-license-image]][x-badge-license-link]\n[![Uses Semantic Release!][x-badge-semanticrelease-image]][x-badge-semanticrelease-link]\n\n[![NPM version][x-badge-npm-image]][x-badge-npm-link]\n[![Monthly Downloads][x-badge-downloads-image]][x-badge-downloads-link]\n\n</div>\n\n<br />\n\n# @-xun/api-error\n\n<!-- symbiote-template-region-end -->\n\nSimple shared error classes for @-xun/api and friends.\n\n<!-- symbiote-template-region-start 3 -->\n\n---\n\n<!-- remark-ignore-start -->\n<!-- symbiote-template-region-end -->\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n- [Install](#install)\n- [Usage](#usage)\n- [Appendix](#appendix)\n  - [Published Package Details](#published-package-details)\n  - [License](#license)\n- [Contributing and Support](#contributing-and-support)\n  - [Contributors](#contributors)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n<!-- symbiote-template-region-start 4 -->\n<!-- remark-ignore-end -->\n\n<br />\n\n## Install\n\n<!-- symbiote-template-region-end -->\n\nTo install:\n\n```shell\nnpm install @-xun/api-error\n```\n\n## Usage\n\n<!-- TODO -->\n\nTODO\n\n<!-- symbiote-template-region-start 5 -->\n\n## Appendix\n\n<!-- symbiote-template-region-end -->\n\nFurther documentation can be found under [`docs/`][x-repo-docs].\n\n<!-- TODO: additional appendix sections here -->\n<!-- symbiote-template-region-start 6 -->\n\n### Published Package Details\n\nThis is a [CJS2 package][x-pkg-cjs-mojito] with statically-analyzable exports\nbuilt by Babel for use in Node.js versions that are not end-of-life. For\nTypeScript users, this package supports both `\"Node10\"` and `\"Node16\"` module\nresolution strategies.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional package details here -->\n<!-- symbiote-template-region-start 7 -->\n\n<details><summary>Expand details</summary>\n\nThat means both CJS2 (via `require(...)`) and ESM (via `import { ... } from ...`\nor `await import(...)`) source will load this package from the same entry points\nwhen using Node. This has several benefits, the foremost being: less code\nshipped/smaller package size, avoiding [dual package\nhazard][x-pkg-dual-package-hazard] entirely, distributables are not\npacked/bundled/uglified, a drastically less complex build process, and CJS\nconsumers aren't shafted.\n\nEach entry point (i.e. `ENTRY`) in [`package.json`'s\n`exports[ENTRY]`][x-repo-package-json] object includes one or more [export\nconditions][x-pkg-exports-conditions]. These entries may or may not include: an\n[`exports[ENTRY].types`][x-pkg-exports-types-key] condition pointing to a type\ndeclaration file for TypeScript and IDEs, a\n[`exports[ENTRY].module`][x-pkg-exports-module-key] condition pointing to\n(usually ESM) source for Webpack/Rollup, a `exports[ENTRY].node` and/or\n`exports[ENTRY].default` condition pointing to (usually CJS2) source for Node.js\n`require`/`import` and for browsers and other environments, and [other\nconditions][x-pkg-exports-conditions] not enumerated here. Check the\n[package.json][x-repo-package-json] file to see which export conditions are\nsupported.\n\nNote that, regardless of the [`{ \"type\": \"...\" }`][x-pkg-type] specified in\n[`package.json`][x-repo-package-json], any JavaScript files written in ESM\nsyntax (including distributables) will always have the `.mjs` extension. Note\nalso that [`package.json`][x-repo-package-json] may include the\n[`sideEffects`][x-pkg-side-effects-key] key, which is almost always `false` for\noptimal [tree shaking][x-pkg-tree-shaking] where appropriate.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional package details here -->\n<!-- symbiote-template-region-start 8 -->\n\n</details>\n\n### License\n\n<!-- symbiote-template-region-end -->\n\nSee [LICENSE][x-repo-license].\n\n<!-- TODO: additional license information and/or sections here -->\n<!-- symbiote-template-region-start 9 -->\n\n## Contributing and Support\n\n**[New issues][x-repo-choose-new-issue] and [pull requests][x-repo-pr-compare]\nare always welcome and greatly appreciated! 🤩** Just as well, you can [star 🌟\nthis project][x-badge-repo-link] to let me know you found it useful! ✊🏿 Or [buy\nme a beer][x-repo-sponsor], I'd appreciate it. Thank you!\n\nSee [CONTRIBUTING.md][x-repo-contributing] and [SUPPORT.md][x-repo-support] for\nmore information.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional contribution/support sections here -->\n<!-- symbiote-template-region-start 10 -->\n\n### Contributors\n\n<!-- symbiote-template-region-end -->\n<!-- symbiote-template-region-start root-package-only -->\n<!-- (section elided by symbiote) -->\n<!-- symbiote-template-region-end -->\n<!-- symbiote-template-region-start workspace-package-only -->\n\nSee the [table of contributors][x-repo-contributors].\n\n<!-- symbiote-template-region-end -->\n\n[x-badge-blm-image]: https://xunn.at/badge-blm 'Join the movement!'\n[x-badge-blm-link]: https://xunn.at/donate-blm\n[x-badge-codecov-image]:\n  https://img.shields.io/codecov/c/github/Xunnamius/api-utils/main?style=flat-square&token=HWRIOBAAPW&flag=package.main_api-error\n  'Is this package well-tested?'\n[x-badge-codecov-link]: https://codecov.io/gh/Xunnamius/api-utils\n[x-badge-downloads-image]:\n  https://img.shields.io/npm/dm/@-xun/api-error?style=flat-square\n  'Number of times this package has been downloaded per month'\n[x-badge-downloads-link]: https://npmtrends.com/@-xun/api-error\n[x-badge-lastcommit-image]:\n  https://img.shields.io/github/last-commit/Xunnamius/api-utils?style=flat-square\n  'Latest commit timestamp'\n[x-badge-license-image]:\n  https://img.shields.io/npm/l/@-xun/api-error?style=flat-square\n  \"This package's source license\"\n[x-badge-license-link]: https://github.com/Xunnamius/api-utils/blob/main/LICENSE\n[x-badge-npm-image]:\n  https://xunn.at/npm-pkg-version/@-xun/api-error\n  'Install this package using npm or yarn!'\n[x-badge-npm-link]: https://npm.im/@-xun/api-error\n[x-badge-repo-link]: https://github.com/Xunnamius/api-utils\n[x-badge-semanticrelease-image]:\n  https://xunn.at/badge-semantic-release\n  'This repo practices continuous integration and deployment!'\n[x-badge-semanticrelease-link]:\n  https://github.com/semantic-release/semantic-release\n[x-pkg-cjs-mojito]:\n  https://dev.to/jakobjingleheimer/configuring-commonjs-es-modules-for-nodejs-12ed#publish-only-a-cjs-distribution-with-property-exports\n[x-pkg-dual-package-hazard]:\n  https://nodejs.org/api/packages.html#dual-package-hazard\n[x-pkg-exports-conditions]:\n  https://webpack.js.org/guides/package-exports#reference-syntax\n[x-pkg-exports-module-key]:\n  https://webpack.js.org/guides/package-exports#providing-commonjs-and-esm-version-stateless\n[x-pkg-exports-types-key]:\n  https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta#packagejson-exports-imports-and-self-referencing\n[x-pkg-side-effects-key]:\n  https://webpack.js.org/guides/tree-shaking#mark-the-file-as-side-effect-free\n[x-pkg-tree-shaking]: https://webpack.js.org/guides/tree-shaking\n[x-pkg-type]:\n  https://github.com/nodejs/node/blob/8d8e06a345043bec787e904edc9a2f5c5e9c275f/doc/api/packages.md#type\n[x-repo-choose-new-issue]:\n  https://github.com/Xunnamius/api-utils/issues/new/choose\n[x-repo-contributing]: /CONTRIBUTING.md\n[x-repo-contributors]: /README.md#contributors\n[x-repo-docs]: docs\n[x-repo-license]: ./LICENSE\n[x-repo-package-json]: package.json\n[x-repo-pr-compare]: https://github.com/Xunnamius/api-utils/compare\n[x-repo-sponsor]: https://github.com/sponsors/Xunnamius\n[x-repo-support]: /.github/SUPPORT.md\n","readmeFilename":"README.md"}