{"_id":"@cjser/is-retry-allowed","name":"@cjser/is-retry-allowed","dist-tags":{"latest":"3.0.0-cjser.2"},"versions":{"3.0.0-cjser.2":{"name":"@cjser/is-retry-allowed","version":"3.0.0-cjser.2","description":"Check whether a request can be retried based on the `error.code`","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["retry","retries","allowed","check","http","https","request","fetch"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"3.0.0","cjserVersion":2,"original":{"name":"is-retry-allowed","version":"3.0.0","exports":"./index.js","repository":"sindresorhus/is-retry-allowed","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/is-retry-allowed@3.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-O3qn+WAUjQE7HQKr4N1i7qnmH2JNTo+6hUd6m4PKIMD5VfKhTwBFGTNEeB9YbyIyFGOTm8hkaXxCg8Rc4Vw3Dg==","shasum":"6b4ab630771c5fdd5d61b276c6daec608bd781f3","tarball":"https://registry.npmjs.org/@cjser/is-retry-allowed/-/is-retry-allowed-3.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":7423,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAb+IQfL5b4lWQmzWT0m77g2RFe90rz6GdB+rYvaqJUeAiEAvttksepoG/BWitkLdVVfHcY0ItTpWwhXHwkJUP05iNM="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-retry-allowed_3.0.0-cjser.2_1778158810992_0.2635966040982629"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:00:10.909Z","3.0.0-cjser.2":"2026-05-07T13:00:11.129Z","modified":"2026-05-07T13:00:11.348Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Check whether a request can be retried based on the `error.code`","keywords":["retry","retries","allowed","check","http","https","request","fetch"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","readme":"# is-retry-allowed\n\n> Check whether a request can be retried based on the `error.code`\n\n## Install\n\n```\n$ npm install is-retry-allowed\n```\n\n## Usage\n\n```js\nimport isRetryAllowed from 'is-retry-allowed';\n\nisRetryAllowed({code: 'ETIMEDOUT'});\n//=> true\n\nisRetryAllowed({code: 'ENOTFOUND'});\n//=> false\n\nisRetryAllowed({});\n//=> true\n```\n\n## API\n\n### isRetryAllowed(error)\n\n#### error\n\nType: `Error | object`\n\nThe `.code` property, if it exists, will be used to determine whether retry is allowed.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-retry-allowed?utm_source=npm-is-retry-allowed&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/is-retry-allowed\n","readmeFilename":"readme.md","_rev":"1-7410f875b00789d5854818f6639ae813"}