{"_id":"@davidlwatsonjr/fetch-retry-with-cache","_rev":"4-92fd5371c8fb57b69736fe983415dcc8","name":"@davidlwatsonjr/fetch-retry-with-cache","dist-tags":{"latest":"1.1.3"},"versions":{"1.0.1":{"name":"@davidlwatsonjr/fetch-retry-with-cache","version":"1.0.1","keywords":[],"author":{"name":"@davidlwatsonjr"},"license":"ISC","_id":"@davidlwatsonjr/fetch-retry-with-cache@1.0.1","maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"dist":{"shasum":"28b78fa5c897754abb4423fdac53ad7b8a7051ce","tarball":"https://registry.npmjs.org/@davidlwatsonjr/fetch-retry-with-cache/-/fetch-retry-with-cache-1.0.1.tgz","fileCount":4,"integrity":"sha512-Ngw0bNLFclgDxfflqFjBvrJpC4e0sRxd4dq/xoFzHxoUCse7lipafuN9SgngGT2cBxPV1hzjOhqPeACNFBgwvQ==","signatures":[{"sig":"MEUCIQCuA9tk5lGcQDY7rpjCn80Q3ERlezW+jybdkSyJlTbo9wIgXPaXvZ1gHc5rzc4CSSGD/okZqfcGJDkdItbbFPh9UfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3597},"main":"index.js","gitHead":"555c2dc8b2c3af9bae3a794740a5c8163c72c27e","scripts":{"lint":"eslint **/*.{js,jsx} --quiet","test":"echo \"Error: no test specified\" && exit 1","eslint":"eslint","format":"prettier --write \"src/**/*.js\"","lint:fix":"eslint --fix src/**/*.js","prettier":"prettier","format:check":"prettier --check \"src/**/*.js\""},"_npmUser":{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"},"repository":{"url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git","type":"git"},"_npmVersion":"10.5.0","description":"Fetch with retry potential and caching","directories":{},"_nodeVersion":"21.7.1","dependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","eslint-config-google":"^0.14.0","eslint-config-prettier":"^9.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"fetch-retry":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-retry-with-cache_1.0.1_1712182146790_0.7404400687957324","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@davidlwatsonjr/fetch-retry-with-cache","version":"1.1.0","keywords":[],"author":{"name":"@davidlwatsonjr"},"license":"ISC","_id":"@davidlwatsonjr/fetch-retry-with-cache@1.1.0","maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"dist":{"shasum":"4a25bc6dc2acd1b08e8677f1e96d7b840b182804","tarball":"https://registry.npmjs.org/@davidlwatsonjr/fetch-retry-with-cache/-/fetch-retry-with-cache-1.1.0.tgz","fileCount":4,"integrity":"sha512-G9iWJfn31u+SU0fWr1w0S/TVHSvV/n1nMkgaOu/FePzAgDsXtDCx112BMM12s8PZSKtInrWiN8VCYTTR0GCV3w==","signatures":[{"sig":"MEQCIG2qgURDcshR3Jns2tYRuGerSpr0x64vH/VPj4oZHt3OAiAL9xvMRCFWYjXiUt/bRQosIpNocAxWlKsKAZoEeQ4Mqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4019},"main":"index.js","gitHead":"1997638c88bdd0c5907421d1f190cb14f1a0649d","scripts":{"lint":"eslint **/*.{js,jsx} --quiet","test":"echo \"Error: no test specified\" && exit 1","eslint":"eslint","format":"prettier --write \"src/**/*.js\"","lint:fix":"eslint --fix src/**/*.js","prettier":"prettier","format:check":"prettier --check \"src/**/*.js\""},"_npmUser":{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"},"repository":{"url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git","type":"git"},"_npmVersion":"10.5.0","description":"Fetch with retry potential and caching","directories":{},"_nodeVersion":"21.7.1","dependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","eslint-config-google":"^0.14.0","eslint-config-prettier":"^9.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"fetch-retry":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-retry-with-cache_1.1.0_1712237024377_0.010947767766740224","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@davidlwatsonjr/fetch-retry-with-cache","version":"1.1.1","keywords":[],"author":{"name":"@davidlwatsonjr"},"license":"ISC","_id":"@davidlwatsonjr/fetch-retry-with-cache@1.1.1","maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"dist":{"shasum":"bddb655551e44eb70f1f38ccf0cbf7ed309772e9","tarball":"https://registry.npmjs.org/@davidlwatsonjr/fetch-retry-with-cache/-/fetch-retry-with-cache-1.1.1.tgz","fileCount":4,"integrity":"sha512-VPdp/gKurYuIbK+BiILAZtvT0+d52oaD2sHZRN3kTF03ddLLFQLvnIikxBLOSnr8/zfj3dor3ARToBTS5dZILA==","signatures":[{"sig":"MEUCIQC3UZQYNxXT7mw/PrQiikS0U6N1NGYa6jsR5VzBr7OhggIgeLwGzv86tWYyaTVLrJEKYahS7oqI8fTe7yiiU773BpA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4022},"main":"index.js","gitHead":"ce7bd8227a3f1b861b3cca8cde7235ae517406df","scripts":{"lint":"eslint **/*.{js,jsx} --quiet","test":"echo \"Error: no test specified\" && exit 1","eslint":"eslint","format":"prettier --write \"src/**/*.js\"","lint:fix":"eslint --fix src/**/*.js","prettier":"prettier","format:check":"prettier --check \"src/**/*.js\""},"_npmUser":{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"},"repository":{"url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git","type":"git"},"_npmVersion":"10.5.0","description":"Fetch with retry potential and caching","directories":{},"_nodeVersion":"21.7.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","eslint-config-google":"^0.14.0","eslint-config-prettier":"^9.1.0"},"peerDependencies":{"fetch-retry":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-retry-with-cache_1.1.1_1712237665350_0.5051147343923628","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@davidlwatsonjr/fetch-retry-with-cache","version":"1.1.2","keywords":[],"author":{"name":"@davidlwatsonjr"},"license":"ISC","_id":"@davidlwatsonjr/fetch-retry-with-cache@1.1.2","maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"dist":{"shasum":"64f1feb3c9539d303e6cfa1a807d4a9efeb41e0f","tarball":"https://registry.npmjs.org/@davidlwatsonjr/fetch-retry-with-cache/-/fetch-retry-with-cache-1.1.2.tgz","fileCount":4,"integrity":"sha512-/FdFEkIbhXoVmcUGqoXnXJ7W9BrEQnS4tmfROPZ6JQ3CY4sGE5CkzgY/SVzv4NMLqewPQ6rhdzCRymmacMnyZQ==","signatures":[{"sig":"MEUCID1jGGakVbNIF2PgwA8SChrQ0aYGhs4TkrTZw46Chq+EAiEA0Y3RrrrvB7eDYYIl9NEG9liPMrD5N43CVBzXNZzipwg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4187},"main":"index.js","gitHead":"ad75cadc17b24ed22ffa2e4936de86e92f2f1d99","scripts":{"lint":"eslint **/*.{js,jsx} --quiet","test":"echo \"Error: no test specified\" && exit 1","deploy":"npm publish","eslint":"eslint","format":"prettier --write \"src/**/*.js\"","lint:fix":"eslint --fix src/**/*.js","prettier":"prettier","format:check":"prettier --check \"src/**/*.js\""},"_npmUser":{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"},"repository":{"url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git","type":"git"},"_npmVersion":"10.5.0","description":"Fetch with retry potential and caching","directories":{},"_nodeVersion":"21.7.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","prettier":"^3.2.5","eslint-config-google":"^0.14.0","eslint-config-prettier":"^9.1.0"},"peerDependencies":{"fetch-retry":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-retry-with-cache_1.1.2_1712590688700_0.7285069051282653","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@davidlwatsonjr/fetch-retry-with-cache","version":"1.1.3","description":"Fetch with retry potential and caching","main":"index.js","scripts":{"deploy":"npm publish","eslint":"eslint","format":"prettier --write \"src/**/*.js\"","format:check":"prettier --check \"src/**/*.js\"","lint":"eslint **/*.{js,jsx} --quiet","lint:fix":"eslint --fix src/**/*.js","prettier":"prettier","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git"},"keywords":[],"author":{"name":"@davidlwatsonjr"},"license":"ISC","bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","devDependencies":{"eslint":"^8.57.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^9.1.0","prettier":"^3.3.3"},"peerDependencies":{"fetch-retry":"^5.0.0"},"_id":"@davidlwatsonjr/fetch-retry-with-cache@1.1.3","gitHead":"d64c21b143ce15d2007558db824edcc273d398fe","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-vkrYQGRiE1iNmRuu9poa1nIc728SOy4B5jBorK6jjmC4gOCz9FOS2S87InYnImaanuTKKfE+x7MMLvOH9QEF8w==","shasum":"d968f8cc7b1993c7a409bb7533d712ba455e8c44","tarball":"https://registry.npmjs.org/@davidlwatsonjr/fetch-retry-with-cache/-/fetch-retry-with-cache-1.1.3.tgz","fileCount":4,"unpackedSize":4383,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4u1xrLz3m3s5k185VUO4TxxrhcxziFMuSJhSzO4pwVAiBoLX138+KgLwDOUuxXsHAH/4WancGSQazIJy9s+0uojQ=="}]},"_npmUser":{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"},"directories":{},"maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-retry-with-cache_1.1.3_1727026586639_0.09316680807363453"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-03T22:09:06.645Z","modified":"2024-09-22T17:36:27.042Z","1.0.1":"2024-04-03T22:09:07.008Z","1.1.0":"2024-04-04T13:23:44.641Z","1.1.1":"2024-04-04T13:34:25.520Z","1.1.2":"2024-04-08T15:38:08.891Z","1.1.3":"2024-09-22T17:36:26.862Z"},"bugs":{"url":"https://github.com/davidlwatsonjr/fetch-retry-with-cache/issues"},"author":{"name":"@davidlwatsonjr"},"license":"ISC","homepage":"https://github.com/davidlwatsonjr/fetch-retry-with-cache#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/davidlwatsonjr/fetch-retry-with-cache.git"},"description":"Fetch with retry potential and caching","maintainers":[{"name":"davidlwatsonjr","email":"npmjs@davidlwatsonjr.com"}],"readme":"# fetch-retry-with-cache\n\nThis project adds retry functionality (using `fetch-retry`) and memory caching functionality to the native Node `fetch` function.\n\n## Usage\n\n```js\nconst { fetch } = require(\"@davidlwatsonjr/fetch-retry-with-cache\");\n\n...\n\nawait fetch(url, options); // This should be no different than the native fetch syntax except you're able to add `fetch-retry` options and some caching options (`cacheTTL`, for example).\n```\n\nFor the `fetch-retry` functionality to work, you must install `fetch-retry` separately. If you don't, this will work anyway, but without retry functionality and just the memory caching.\n\n## Cache TTL\n\nThis module defaults to a 60 second cache. To use a different TTL, set an environment variable of `FETCH_CACHE_TTL` to the number of seconds you'd like to cache.\n\nYou can also set a TTL per request by including a `cacheTTL` property in the `options` object to `fetch`.\n\n```js\nawait fetch(url, { cacheTTL: 3600, ...options });\n```\n","readmeFilename":"README.md"}