{"_id":"@cameronhunter/async-with-timeout","_rev":"5-7ef06860d1cb2ed45753819360ca1f74","name":"@cameronhunter/async-with-timeout","dist-tags":{"latest":"3.1.1"},"versions":{"1.0.0":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"1.0.0","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","scripts":{"build":"tsc -p ./tsconfig.build.json","start":"ts-node $@","test":"vitest","release":"yarn build && yarn version --immediate \"$@\" && yarn npm publish"},"devDependencies":{"@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~18","typescript":"^5.1.6","vitest":"^0.33.0"},"engines":{"node":">=16"},"packageManager":"yarn@3.6.1","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"_id":"@cameronhunter/async-with-timeout@1.0.0","gitHead":"3bdf6320136ed155e404f0f046782250620c3c73","dist":{"shasum":"df2b2bcb39cc85b4e661f93bc2ecba58d72538f7","integrity":"sha512-usD1secChFfPGJlpfzMahla9HBj8yZUiAKIR0ViKrLEwcqtqO9x7i2mGNltahezh41klTZsOLhI0t8SjaKNzfg==","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-1.0.0.tgz","fileCount":5,"unpackedSize":3929,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+CA7+R65c4b/QJaf0spLrQg37OFng9Sv57Mr25HQJqAiATDz2Qv0mHw4hmM18YEEF4pP3BDXR+uwFk9ZisPL/+iQ=="}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_1.0.0_1688792406436_0.9611491672243162"},"_hasShrinkwrap":false},"2.0.0":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"2.0.0","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","scripts":{"build":"tsc -p ./tsconfig.build.json","start":"ts-node $@","test":"vitest","release":"yarn build && yarn version --immediate \"$@\" && yarn npm publish"},"devDependencies":{"@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~18","typescript":"^5.1.6","vitest":"^0.33.0"},"engines":{"node":">=16"},"packageManager":"yarn@3.6.1","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"_id":"@cameronhunter/async-with-timeout@2.0.0","gitHead":"0cb0c8854b02b5a747a3ee225cf70533be473497","dist":{"shasum":"12756e6ceba2c676284e0950386048fa06214a07","integrity":"sha512-H4iFgJJFXBsLN6V7hnw67HeGuq7pd04sDSJOOgXFzSnVVsFi6wL2OYKHrpvIOcd/e7maE0VsKC3Ez/GCORLZ9g==","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-2.0.0.tgz","fileCount":5,"unpackedSize":3834,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs4+i4Mep75c5bd7UqsrjclUwR9KmKbyL6eu6V8pEUOwIhAKVRLnTEuEG8Su17hAXUvFjbcVM/NssCvgamXkilnCAm"}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_2.0.0_1688793697067_0.45567996954288015"},"_hasShrinkwrap":false},"3.0.0":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"3.0.0","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","devDependencies":{"@changesets/cli":"^2.26.2","@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~18","typescript":"^5.1.6","vitest":"^0.33.0"},"engines":{"node":">=16"},"packageManager":"pnpm@8.10.5","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"dependencies":{"@cameronhunter/clone-error":"^1.0.2"},"scripts":{"build":"tsc -p ./tsconfig.build.json","start":"ts-node $@","test":"vitest","release":"yarn build && yarn version --immediate \"$@\" && yarn npm publish"},"_id":"@cameronhunter/async-with-timeout@3.0.0","_integrity":"sha512-ab7b2KcLvcn2bE7ma6tUUkt/A2qMXkwHXx6PwmeUXzKgglTUaWWZmPPPIidGTSyjE0W04dWQ17Yk22Tikispzw==","_resolved":"/private/var/folders/gx/7m27h5097pz_71h88_57tw8m0000gn/T/c66c41a2a566b075b87c9b7faa54c4b0/cameronhunter-async-with-timeout-3.0.0.tgz","_from":"file:cameronhunter-async-with-timeout-3.0.0.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ab7b2KcLvcn2bE7ma6tUUkt/A2qMXkwHXx6PwmeUXzKgglTUaWWZmPPPIidGTSyjE0W04dWQ17Yk22Tikispzw==","shasum":"a1f215100012fff627a3b4e4e3f14df21dec308e","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-3.0.0.tgz","fileCount":5,"unpackedSize":3937,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpe0qGisVpLqfjiCPL4uMnDdndsHFxoTo9KoQVvTcL4wIgAX43nnnx1+SPqgZ1JqufhA3GnQz3gI/rxqULxv9s73I="}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_3.0.0_1700350376908_0.46064906560110264"},"_hasShrinkwrap":false},"3.0.1":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"3.0.1","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","devDependencies":{"@changesets/cli":"^2.26.2","@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~18","typescript":"^5.1.6","vitest":"^0.33.0"},"engines":{"node":">=16"},"packageManager":"pnpm@8.10.5","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"dependencies":{"@cameronhunter/clone-error":"^1.0.2"},"scripts":{"build":"tsc -p ./tsconfig.build.json","start":"ts-node $@","test":"vitest","release":"yarn build && yarn version --immediate \"$@\" && yarn npm publish"},"_id":"@cameronhunter/async-with-timeout@3.0.1","_integrity":"sha512-/cjxHYyDTf6w5Kc31QJXBEVGvLYYKO9zi8DR2OXPWJzaVE9zZOyVck7aAiRXzR4Ta6P43uLoe43UGGkkwBcKTw==","_resolved":"/private/var/folders/gx/7m27h5097pz_71h88_57tw8m0000gn/T/99778c70cd3019d94f327df5caf08f53/cameronhunter-async-with-timeout-3.0.1.tgz","_from":"file:cameronhunter-async-with-timeout-3.0.1.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-/cjxHYyDTf6w5Kc31QJXBEVGvLYYKO9zi8DR2OXPWJzaVE9zZOyVck7aAiRXzR4Ta6P43uLoe43UGGkkwBcKTw==","shasum":"c31c44da6d06e619bd2ef18983b5b0dd7b1527f9","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-3.0.1.tgz","fileCount":5,"unpackedSize":4261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/UUfhRVrWCr4f7HEiMZ5WgGd8qrQK7gtOoAvWe8+upAiEAxacWRS8E2NYsuZlZ35c7CkI6MlizgTYBHUUEcGEcLUs="}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_3.0.1_1700350627412_0.9114220221833842"},"_hasShrinkwrap":false},"3.1.0":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"3.1.0","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","devDependencies":{"@changesets/cli":"^2.26.2","@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~18","typescript":"^5.1.6","vitest":"^0.33.0"},"engines":{"node":">=16"},"packageManager":"pnpm@8.10.5","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"dependencies":{"@cameronhunter/clone-error":"^1.0.2"},"scripts":{"build":"tsc -p ./tsconfig.build.json","test":"vitest","release":"pnpm build && changeset && changeset version && changeset publish"},"_id":"@cameronhunter/async-with-timeout@3.1.0","_integrity":"sha512-QdCmrQnYKcQFHO764w4SQfcO/cuh+oycV3qg4PqB7xeo+yrbpTSV+5yECJOytz3seXP/ct1+dFFgWOck87yiBA==","_resolved":"/private/var/folders/gx/7m27h5097pz_71h88_57tw8m0000gn/T/415fd447632cf06ca020a901f77c981e/cameronhunter-async-with-timeout-3.1.0.tgz","_from":"file:cameronhunter-async-with-timeout-3.1.0.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-QdCmrQnYKcQFHO764w4SQfcO/cuh+oycV3qg4PqB7xeo+yrbpTSV+5yECJOytz3seXP/ct1+dFFgWOck87yiBA==","shasum":"3e849630c98ae3c5304e27e12f05bbf74c58fc1b","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-3.1.0.tgz","fileCount":5,"unpackedSize":4329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCDm5BCJnoN50s0wP8LZXkO1NCLMHZfwtYZy3KSvabiEgIfMW08PcFvNLdSB30scr1LPNXBmDw4/ie+MnDDRXw8Qw=="}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_3.1.0_1700351271837_0.04851257587236524"},"_hasShrinkwrap":false},"3.1.1":{"name":"@cameronhunter/async-with-timeout","description":"A node utility function that implements timeout and AbortSignal support for async functions.","version":"3.1.1","license":"MIT","main":"./build/withTimeout.js","types":"./build/withTimeout.d.ts","repository":{"type":"git","url":"git+https://github.com/cameronhunter/async-with-timeout.git"},"devDependencies":{"@changesets/cli":"^2.26.2","@tsconfig/node-lts":"^18.12.3","@tsconfig/strictest":"^2.0.1","@types/node":"~20","typescript":"^5.3.2","vitest":"^0.34.6"},"engines":{"node":">=16"},"packageManager":"pnpm@8.10.5","keywords":["node","promise","async","AbortSignal"],"publishConfig":{"access":"public"},"dependencies":{"@cameronhunter/clone-error":"^1.0.3"},"scripts":{"build":"tsc -p ./tsconfig.build.json","test":"vitest","release":"pnpm run build && pnpm run publish:github && pnpm run publish:npm","publish:github":"npm_config_registry=https://npm.pkg.github.com/ pnpm changeset publish","publish:npm":"npm_config_registry=https://registry.npmjs.org/ pnpm changeset publish"},"bugs":{"url":"https://github.com/cameronhunter/async-with-timeout/issues"},"homepage":"https://github.com/cameronhunter/async-with-timeout#readme","_id":"@cameronhunter/async-with-timeout@3.1.1","_integrity":"sha512-7xC/xw7gDIhG8DRBuRkiwNXf9kz9RbmqNNs2IVha2qfR15shTX3oJ40GS6YEldlrwcr1Qzz8vGuLl8Bbrj0DJA==","_resolved":"/tmp/c084cf9a057e97ebea71e9f0d4a805ed/cameronhunter-async-with-timeout-3.1.1.tgz","_from":"file:cameronhunter-async-with-timeout-3.1.1.tgz","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-7xC/xw7gDIhG8DRBuRkiwNXf9kz9RbmqNNs2IVha2qfR15shTX3oJ40GS6YEldlrwcr1Qzz8vGuLl8Bbrj0DJA==","shasum":"4d240db24b5c7187dfca3fc14464e2752fbde03c","tarball":"https://registry.npmjs.org/@cameronhunter/async-with-timeout/-/async-with-timeout-3.1.1.tgz","fileCount":5,"unpackedSize":4693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH21thEOXvIrlQuiN1dHMkeT2QwgXsdTMMhcizvXAwtwIgNKKoFFoIitM1+g4a14wz1rYUyGKfKJPiRNyzvzZXGBs="}]},"_npmUser":{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"},"directories":{},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-with-timeout_3.1.1_1700516298828_0.12203980728254349"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-08T05:00:06.369Z","1.0.0":"2023-07-08T05:00:06.604Z","modified":"2023-11-20T21:38:19.269Z","2.0.0":"2023-07-08T05:21:37.251Z","3.0.0":"2023-11-18T23:32:57.125Z","3.0.1":"2023-11-18T23:37:07.568Z","3.1.0":"2023-11-18T23:47:51.996Z","3.1.1":"2023-11-20T21:38:19.100Z"},"maintainers":[{"name":"cameronhunter","email":"hello@cameronhunter.co.uk"}],"description":"A node utility function that implements timeout and AbortSignal support for async functions.","keywords":["node","promise","async","AbortSignal"],"license":"MIT","readme":"# `@cameronhunter/async-with-timeout`\n\n[![npm package](https://img.shields.io/npm/v/%40cameronhunter/async-with-timeout?logo=npm)](https://www.npmjs.com/package/@cameronhunter/async-with-timeout)\n[![main branch status](https://img.shields.io/github/actions/workflow/status/cameronhunter/async-with-timeout/post-merge.yml?logo=github&label=main)](https://github.com/cameronhunter/async-with-timeout/actions/workflows/post-merge.yml)\n\nA node utility function that implements timeout and `AbortSignal` support for async functions.\n\n## Usage\n\n```ts\nimport { withTimeout } from '@cameronhunter/async-with-timeout';\n\nawait withTimeout(5000, async () => {\n    const a: number = await longProcess();\n    const b: number = await anotherLongProcess();\n\n    return a + b;\n});\n```\n","readmeFilename":"README.md","homepage":"https://github.com/cameronhunter/async-with-timeout#readme","repository":{"type":"git","url":"git+https://github.com/cameronhunter/async-with-timeout.git"},"bugs":{"url":"https://github.com/cameronhunter/async-with-timeout/issues"}}