{"_id":"abort-error","_rev":"4575394","name":"abort-error","description":"An error to be used by AbortSignal handlers","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"time":{"modified":"2026-04-10T15:40:51.000Z","created":"2024-10-24T13:25:21.810Z","1.0.2":"2026-04-10T09:01:02.487Z","1.0.1":"2025-03-19T08:23:14.853Z","1.0.0":"2024-10-24T13:39:55.713Z","0.0.0":"2024-10-24T13:25:21.810Z"},"users":{},"author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"repository":{"type":"git","url":"git+https://github.com/achingbrain/abort-error.git"},"versions":{"1.0.2":{"name":"abort-error","version":"1.0.2","description":"An error to be used by AbortSignal handlers","author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/abort-error#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/abort-error.git"},"bugs":{"url":"https://github.com/achingbrain/abort-error/issues"},"publishConfig":{"access":"public","provenance":true},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github",["@semantic-release/git",{"assets":["CHANGELOG.md","package.json"]}]]},"scripts":{"clean":"aegir clean","lint":"aegir lint","test":"aegir test -t node -t browser","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","build":"aegir build","release":"aegir release","docs":"aegir docs","dep-check":"aegir dep-check","doc-check":"aegir doc-check","spell-check":"aegir spell-check"},"devDependencies":{"aegir":"^47.0.26"},"gitHead":"1586d68ad7c97be5fd4e05f8db767dd73a7b3211","_id":"abort-error@1.0.2","_nodeVersion":"24.14.1","_npmVersion":"11.12.1","dist":{"shasum":"9fd4b364b3659dadd9ad8af54ec9a1678b51c778","size":3600,"noattachment":false,"key":"/abort-error/-/abort-error-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/abort-error/download/abort-error-1.0.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0d68e189-2bd9-4ae6-86d2-a249b0f8d9eb"}},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/abort-error_1.0.2_1775811662360_0.7689885382543866"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-10T09:01:02.487Z","publish_time":1775811662487,"_source_registry_name":"default","_cnpm_publish_time":1775811662487},"1.0.1":{"name":"abort-error","version":"1.0.1","description":"An error to be used by AbortSignal handlers","author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/abort-error#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/abort-error.git"},"bugs":{"url":"https://github.com/achingbrain/abort-error/issues"},"publishConfig":{"access":"public","provenance":true},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","test":"aegir test -t node -t browser","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","build":"aegir build","release":"aegir release","docs":"aegir docs","dep-check":"aegir dep-check","doc-check":"aegir doc-check","spell-check":"aegir spell-check"},"devDependencies":{"aegir":"^45.1.4"},"_id":"abort-error@1.0.1","gitHead":"ca555e12a3f32a6d92529a5b4eb16904d86a4fdc","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"526c17caf2ac9eb1fab1ffdff18c5076157a324e","size":3260,"noattachment":false,"key":"/abort-error/-/abort-error-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/abort-error/download/abort-error-1.0.1.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/abort-error_1.0.1_1742372594602_0.39189211213408903"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-19T08:23:14.853Z","publish_time":1742372594853,"_source_registry_name":"default","_cnpm_publish_time":1742372594853},"1.0.0":{"name":"abort-error","version":"1.0.0","description":"An error to be used by AbortSignal handlers","author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/abort-error#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/abort-error.git"},"bugs":{"url":"https://github.com/achingbrain/abort-error/issues"},"publishConfig":{"access":"public","provenance":true},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","test":"aegir test -t node -t browser","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","build":"aegir build","release":"aegir release","docs":"aegir docs","dep-check":"aegir dep-check","doc-check":"aegir doc-check"},"devDependencies":{"aegir":"^44.1.4"},"_id":"abort-error@1.0.0","gitHead":"48fa4d83ea413cf05d98f9db30ced55aa6e489a9","_nodeVersion":"20.18.0","_npmVersion":"10.9.0","dist":{"shasum":"2e5ed4871268c3579fee7c37fd6dd7122dbdc279","size":3315,"noattachment":false,"key":"/abort-error/-/abort-error-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abort-error/download/abort-error-1.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abort-error_1.0.0_1729777195531_0.4473617888595687"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-24T13:39:55.713Z","publish_time":1729777195713,"_source_registry_name":"default","_cnpm_publish_time":1729777195713},"0.0.0":{"name":"abort-error","version":"0.0.0","author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"license":"Apache-2.0 OR MIT","_id":"abort-error@0.0.0","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"homepage":"https://github.com/achingbrain/abort-error#readme","bugs":{"url":"https://github.com/achingbrain/abort-error/issues"},"dist":{"shasum":"14e8a5c7479b9d505a102c2ce9558471b53a5f44","size":2975,"noattachment":false,"key":"/abort-error/-/abort-error-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abort-error/download/abort-error-0.0.0.tgz"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"release":{"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"release":"major","breaking":true},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"],"branches":["main"]},"scripts":{"docs":"aegir docs","lint":"aegir lint","test":"aegir test -t node -t browser","build":"aegir build","clean":"aegir clean","release":"aegir release","dep-check":"aegir dep-check","doc-check":"aegir doc-check","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -f dist/test/node.js -t electron-main"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/achingbrain/abort-error.git","type":"git"},"_npmVersion":"10.5.0","description":"An error to be used by AbortSignal handlers","directories":{},"_nodeVersion":"20.12.2","eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^44.1.4"},"_npmOperationalInternal":{"tmp":"tmp/abort-error_0.0.0_1729776321623_0.4599231860970405","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-10-24T13:25:21.810Z","publish_time":1729776321810,"_source_registry_name":"default","_cnpm_publish_time":1729776321810}},"readme":"# abort-error\n\n[![codecov](https://img.shields.io/codecov/c/github/achingbrain/abort-error.svg?style=flat-square)](https://codecov.io/gh/achingbrain/abort-error)\n[![CI](https://img.shields.io/github/actions/workflow/status/achingbrain/abort-error/js-test-and-release.yml?branch=main\\&style=flat-square)](https://github.com/achingbrain/abort-error/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n> An error to be used by AbortSignal handlers\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nA simple error class and options interface that seems to get copied from\nproject to project.\n\n## Example - Using AbortError\n\n```JavaScript\nimport { AbortError } from 'abort-error'\n\n// a promise that will be settled later\nconst deferred = Promise.withResolvers()\n\nconst signal = AbortSignal.timeout(1000)\nsignal.addEventListener('abort', () => {\n  deferred.reject(new AbortError())\n})\n```\n\n## Example - Using AbortOptions\n\n```TypeScript\nimport type { AbortOptions } from 'abort-error'\n\nasync function myFunction (options?: AbortOptions) {\n  return fetch('https://example.com', {\n    signal: options?.signal\n  })\n}\n```\n\n# Install\n\n```console\n$ npm i abort-error\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make its exports available as `AbortError` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/abort-error/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://achingbrain.github.io/abort-error>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/abort-error/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/achingbrain/abort-error/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","_attachments":{},"homepage":"https://github.com/achingbrain/abort-error#readme","bugs":{"url":"https://github.com/achingbrain/abort-error/issues"},"license":"Apache-2.0 OR MIT"}