{"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":{"integrity":"sha512-lVgvB2NyPLqbXXhVmXcYFTC1x5K7CiVdPgdY7LGgFQWC8506oN01sPN3i9cl9ynuwF4iJ0TS9exnR7cZ9FuX4w==","shasum":"9fd4b364b3659dadd9ad8af54ec9a1678b51c778","tarball":"http://registry-npm.ywwl.com/abort-error/download/abort-error-1.0.2.tgz","fileCount":10,"unpackedSize":11990,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/abort-error@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID3HtllQDi2iL2gONNTyEiJbMLrSc0tar2jDi83xXRzDAiB52qMywMUTWUrKCehXcWKGdHQuyC19RbsMzGAjK3d56Q=="}],"size":3600,"noattachment":false,"key":"/abort-error/-/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,"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","publish_time":1775811662487,"_cnpm_publish_time":1775811662487,"dist-tags":{"latest":"1.0.2"}}