{"_id":"@andreyvalenko/next-fetch","_rev":"22-75e2e06afdd9f5d565b7c7ef2c556f99","name":"@andreyvalenko/next-fetch","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@andreyvalenko/next-fetch","version":"1.0.0","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.0.0","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"13e6ce87d2d7649bd2e860f891fd6a06e29abcdb","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.0.0.tgz","fileCount":9,"integrity":"sha512-dVtNG8rSLQrd57OD7ZadYkjqkRDf05p3BHFSdtuIg6sP8bnBRK0nRh9YF+gTYJubQD7A4PkBnlmqYKI8r0gH1w==","signatures":[{"sig":"MEQCIBANkP+UQ2yadyPyKTcEio8J5sqOf5FX8NQNo6nKWY6HAiBaITRhhz0ghH6lN7SKn7gHJC3B/FaZCqiUMK12zLJoAA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8244},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a2fd2cf95598f103c2d9752836baaf40a540d00c","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"A simple npm package built with TypeScript","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.0.0_1753877862222_0.08829848584535527","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@andreyvalenko/next-fetch","version":"1.1.0","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.0","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"b69632831db510765f7bd6c0a864d52c31a1674e","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.0.tgz","fileCount":9,"integrity":"sha512-2YYZdvIZdfkTKC5R3LRkpbDQyXP7h98pPlox2YljXr5X2aA3YuVWiCCasU2yhCWeuLBPUkccIOEqcpLDXEyRSA==","signatures":[{"sig":"MEUCIDZ6u/9GDvHR4QrvB+Z0/5iJINJ2HpIfVpIAyDy8nNQIAiEAsT2Q4Sc8tuk8tapSVP37GjCcCna+CoDXkrnIu6s+Xc8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9960},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ba55f89627dc976755bf2b2c8cf62994bb608e5b","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.0_1753880342252_0.021719584990016916","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@andreyvalenko/next-fetch","version":"1.1.1","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.1","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"af873d8bedb8bf23eb0b0aa9c7126743a90bd796","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.1.tgz","fileCount":9,"integrity":"sha512-eV1a59vxMttwWEdtqc8cZf5Ri+UmoQYh6tzQcbmLKsuZjtb6WUOpLdYTSlhi1OL0tJtMxut4VM7FEcUw+A9Xvg==","signatures":[{"sig":"MEYCIQDvcm6Da34otYrIcFV1ANL4D3AcGdsaHq+6aVVZn0qlUAIhAOlmzO5pLDbTaixalX2rzBsQF6A2Kv8wtkGI9kpnsp1H","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9799},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1536c1484b510669cef66710c76fb0d2a53f5f43","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.1_1753880508605_0.09777314196166054","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@andreyvalenko/next-fetch","version":"1.1.2","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.2","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"46faf8f382400f6ff394198f9e4a302b359e366c","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.2.tgz","fileCount":9,"integrity":"sha512-Nm3hNrKgxr/8qi+KVSjg3C0qmWpFLrZX5IP31tcT+MbL8EGXQuk/8VO0QcET5kN6HD4qJk/4enRgCpnn+wBDpg==","signatures":[{"sig":"MEUCIHzma+NSM4xN5Xp/9SGIkY9cPrUXEpjYQ+jf5/uDFQzsAiEAnyVw682+Flv2FuhZ/bOFh3LxI28t6x6dHb4VauFO1MY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9860},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0b76cbf77bfc052ee2404ea5f7448eb519707023","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.2_1753885810904_0.53777968326466","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@andreyvalenko/next-fetch","version":"1.1.3","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.3","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"7041a0132b7ca993ea9fefa315ddf42d24a4cf86","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.3.tgz","fileCount":9,"integrity":"sha512-O6PUvQB3/tGeKHLw+BPjUf88zYYZ48lLKSn3NEyVlZQ6CoyKvtNt7drilSCNcDzr140R8vHqJYvCGpwP40mq/A==","signatures":[{"sig":"MEYCIQCXk2UYOWmu5K2PMnnbddvZwGtd25ELTpdB87NFk2DfSgIhAKq06rOcTpvqfoS0G+KO/9tI/jEf0Cghd+AiotTRp9rZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9900},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"61f2e13949d8fef150349d24b64c13f4835c9389","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.3_1753886691853_0.18571341666150643","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@andreyvalenko/next-fetch","version":"1.1.4","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.4","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"70b2ccd59b7b4d547c4eb6a2a1e08fb82ff8bf40","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.4.tgz","fileCount":9,"integrity":"sha512-AwA7A+YjKT3BMzKvkWXYc3VLybYk7WcKO56g8Yh5ML0TLnzi3bdvr20XwYhRrw9uwk7X6dp+Gch/rgdthbqbAw==","signatures":[{"sig":"MEUCIHSgR8BgIeFlyhSJ0FN3ERPruM5uVvPIDlHNAKFKGgjSAiEAgGsWQqkqeHya9nHuRcBD3Vf65zZGUXpA1qz5VR25uOM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9908},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"726a419ade6e55ed155366eb9daca1a56dc0070c","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.4_1753887461132_0.6493881979659335","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@andreyvalenko/next-fetch","version":"1.1.5","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.1.5","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"1c7c483216ee6104423599154d5a0a6a2e7eccdf","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.1.5.tgz","fileCount":9,"integrity":"sha512-0xJ5sLK2UvBAE6FAd1rY6nhot4Qe25vsSCr85ElTboGUwsG4Fb3s/EYvz5PEvlv6CSRvHh1JFd7Ia26X7pYhrA==","signatures":[{"sig":"MEYCIQCqgoagUpwwalKlZ36OUTpbgkjM8HOPy3MjTftfZ9IMYAIhAIYVMpKUdT9nG+YbFACDXn8m9YOwInq7Duywd686mbtp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9908},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"11cc4cf6776a04c650a965338023693de02901a6","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.1.5_1753887613340_0.39141588084084256","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@andreyvalenko/next-fetch","version":"1.2.0","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.0","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"887cba962a4e69de7c2e6851648aef4434c1d3f4","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.0.tgz","fileCount":9,"integrity":"sha512-ZEgHBjyYsdPr6aPPpXiCZz14r0vP6YSUJ1UkUGKKvIWWQzDO4qZtbQD0ulmLZhdytHV3yU4zX114nX0RdTRmyQ==","signatures":[{"sig":"MEUCIQCgvmN/wwDBTikOJnjml8ECfhLgYgrGtwUMJTJufrnAogIgX2N6dCVssRtU7zs1LEbMz1s9RLIoSmGFm9/U0uvcALY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10578},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"56a450566c97925d5f189a133717e58ec3ab30ab","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.0_1753954444487_0.009826639733884868","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@andreyvalenko/next-fetch","version":"1.2.1","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.1","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"7e292dbb8475a0c7f64ec836a92a2682b29f7b78","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.1.tgz","fileCount":9,"integrity":"sha512-euZOLUTHl3oJeDLvxU/a6IWPCOuAj5E7xsJIk+4ndlSEOtjRky3+vBHlbvT1znjy2lUyxCwEoxFNuFfVtdeEGQ==","signatures":[{"sig":"MEUCIQDQ1tIIPrxzbJrfGufE4g30ulX35cFBHbheXRVTc0GynQIgf6qo4hYrrjUO3WNELcb47iO51pk7xaLUPmie3/sn8mg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10510},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c37ffc53b97bace7f172648d8c48c3e85484fa67","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.1_1753954684640_0.8358404852910324","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@andreyvalenko/next-fetch","version":"1.2.2","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.2","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"90874ebf4cbea3e996e2b61386d3e203e7539c3b","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.2.tgz","fileCount":9,"integrity":"sha512-OWE4EX6PyHmIy3RWqMoXETFbcA8Knl6tWqp9JsxSeheKIxgMAtCkIXEp107L5Foabpeg+QjzaGA46M1iXf1d3A==","signatures":[{"sig":"MEUCIB9zwN7zqqio1W0MwdahyKsnE8MMb+3glzpLqO+qj3swAiEAkStnEfobcFBOMebTawIUg7mV7LinSB8CWEkp6ncg8IU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10158},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"12fbbef27020f43d4a1c924c835e9d1755d28b32","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.2_1753955717039_0.9266319701291885","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@andreyvalenko/next-fetch","version":"1.2.3","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.3","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"93fdfcbfd02691ae91edfc7952c868313958ed29","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.3.tgz","fileCount":11,"integrity":"sha512-8o5D34lEa/Zb9VGeOflf+D61uNCauxmLNAsdmNlnYWhtE1G4DGqPP+Z7kCMLKsnMyTE+hA7ACfbvJDJl/5E0Cw==","signatures":[{"sig":"MEQCIDfxWNiQzS/0B/lpCKyPlEMgqo/3GS5M3d6UoTZQGKEcAiAh1zM1OHXDd8wxVp6z9rJsJjOF4Ct2mugQKJ5hHub2mA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11265},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"10f038542c41d85d28606b8a3dd7df0c144236d3","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.3_1753968654346_0.15197363912862727","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@andreyvalenko/next-fetch","version":"1.2.4","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.4","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"86564e5aaf3bdc9ebcbeb823a11943c37c473e49","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.4.tgz","fileCount":11,"integrity":"sha512-OjYSyIVwb6mfd8+wfNm2CE+CJramXzKFUnnM5T4WaqsoyL3zScdhlBwVOk9iDmySFeVUcPaiRHZPbO6dSEUpxw==","signatures":[{"sig":"MEYCIQCLaX4cxQDPZ/bEWNwGwPfS8c7RcTKvnooj1vD6vJywRAIhAOxVaUZCuQb32O2TGPfG7Bok+Ka9ZbQ9XM6F/KZaO5M7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11295},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5e12ed16f8abe1d25a248065436e83117a2236dd","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.4_1754287901645_0.30131884405221254","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@andreyvalenko/next-fetch","version":"1.2.5","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.5","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"2ffbc53123858663f5e72c27e5dd95faeb1244f6","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.5.tgz","fileCount":11,"integrity":"sha512-U2trBySskDu5527GtWLzCt9Jylr5okffYNL3RyHQAo8DfOemRwFBala54cC9g/D2rG4TK0Co80xwSSpV79jApw==","signatures":[{"sig":"MEUCIQDbxid6lGskJP/6kZiZxwYO/+JfMIYjHNABnlSkOTOifAIgHwv1o8G06m5mN3RxI2Xs6aZ3MWtzrVaNa0laULZfQbo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11925},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"953bb6506c0b942075895c079229cb599c042df9","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.5_1754923609042_0.5649517267785553","host":"s3://npm-registry-packages-npm-production"}},"1.2.6":{"name":"@andreyvalenko/next-fetch","version":"1.2.6","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.2.6","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"167b9f6fd2d5bb4ed3d74c5e021922d4faed0abf","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.2.6.tgz","fileCount":11,"integrity":"sha512-7Rlilcf/aKx9KRoCHgWJ+jX+bSHvCsGYM13N2mTTMcgWmzlSQ0dJL05V4cDiyum2xIPNRsmCgicKtGr/vX7u9g==","signatures":[{"sig":"MEUCIC78HbTnkVXB5tRqGPKqOiQr4JY7k1VnR9VW6qkyF7CdAiEA03CDKu4Sz8S87fU5q32uJJO9U6OnzUtkCZylNbrESGE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11921},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"23567c12a2aade6a67bf452daa098addb7038a8a","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.2.6_1754923932744_0.7870949686034303","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@andreyvalenko/next-fetch","version":"1.3.0","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.0","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"69bdada708b33ddfaa0cd8f9721a41d7d298b686","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.0.tgz","fileCount":17,"integrity":"sha512-s1O3+wrxLTxsHA2SltTdiRXX2aUt3VWAn6mT+h1OqGpVcLwMDsYtHWSBJbGpIkDQZpNUu9IfbEM5bphir1REdg==","signatures":[{"sig":"MEYCIQC49prvi4XWqSAgEa+h4LKStP/Q6N0jO+7g9xKOjCzTXQIhAPrhelG0ME9PJvEUmUDqlTwfRhBGb6BSc+3gmdL6T9fw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15310},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"23567c12a2aade6a67bf452daa098addb7038a8a","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.0_1754977816479_0.4853056587548428","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@andreyvalenko/next-fetch","version":"1.3.1","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.1","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"ce7f58cdfeac27d691bbae92c8fd37dda269061a","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.1.tgz","fileCount":17,"integrity":"sha512-1XF63bl3vVjL/7DhaiSOJACh0vUTemIUJoO5yb12iVtlQnhWYbeUK3O2H2HvK1kBLCb0ornxcckkr+BVDwpXeg==","signatures":[{"sig":"MEYCIQDWdc6taSr5IhaqA/rsKjxdhxav7smQd7xLH+U2OW4ZLgIhAOi69nCM81VTioht5GrTZ2a0ki9E0z8HgnMT9501MYB/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15934},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4c84a05d7180c715b8d09ee8bc196549b2e0b9d8","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.1_1754980285388_0.9101596854587259","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"@andreyvalenko/next-fetch","version":"1.3.3","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.3","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"d41ac1a169fa852a302a6bb4ac6167cd80b5b4bf","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.3.tgz","fileCount":17,"integrity":"sha512-qCp7N/TXlWSOD01Yf/Hp+2kxwDijBAXNdIxgwHi+E3WV3GOXTBYa+N1ushX7BuanIwQHE4hLnSkL/F5lnDtT2A==","signatures":[{"sig":"MEUCIQCGotBqkyil2BDI7udm7KxVAziczh6mHL6fe3n0ahbzEwIgEajtRaQZ89EJCiN1LdJCEE3zn8A+fwM+lkmPe5pY4M8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15245},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"cc5842186d612fa18733febbfa196126efdd50bd","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.3_1754983511965_0.8865534745407624","host":"s3://npm-registry-packages-npm-production"}},"1.3.5":{"name":"@andreyvalenko/next-fetch","version":"1.3.5","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.5","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"ccc263316f7d96db11a5cafffdc24c823bb5cfdd","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.5.tgz","fileCount":17,"integrity":"sha512-u1DRVDAv6M73lSEgpRyEEVWJINxcIvs+bju7YUFLOsuWXTKfCIinUMDAWbZaTjXD7+3zhApmr47PD1wMAOm40g==","signatures":[{"sig":"MEYCIQCtTbUAVkSiZOfF2uKHKBpqnGgNczgjzkqVDB1sqvmhZgIhALNT42q7QlF5hDM9vKDSGkTrILljmqHh/eLcTPqKLc1l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15400},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"cc5842186d612fa18733febbfa196126efdd50bd","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.5_1754985399764_0.9641071896038105","host":"s3://npm-registry-packages-npm-production"}},"1.3.6":{"name":"@andreyvalenko/next-fetch","version":"1.3.6","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.6","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"e2c866af75c86930a311bff331dfaa17db061b5d","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.6.tgz","fileCount":17,"integrity":"sha512-Ql07kZM7QwkDgKG1wojh1oit4YmVGpAvzRrqWa99DZ1uc+4jY2zTH0pPZsh1QFVoHvINeRFsOMhQzRDpoOwA5Q==","signatures":[{"sig":"MEYCIQDD5pOm1t/Ia0Zg/LIvIjhlUHbDQARG1IS64WXwc0jMbwIhALSdWJx1mA7hRE53pNu88G2ozIy5if9IfMdeQQ2pMcBn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15610},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c3f2f3a5d216571a62c04a985fa46ba52bbc615c","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.4.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.6_1755070386446_0.23222542639458","host":"s3://npm-registry-packages-npm-production"}},"1.3.7":{"name":"@andreyvalenko/next-fetch","version":"1.3.7","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.7","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"e5ae9f1eb86f04e85e991e8361a6650bf0d1ab9d","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.7.tgz","fileCount":17,"integrity":"sha512-YwflYa4gCmuPv4tJnrn7+TKpXtuJ7Kb+GPX1BDFVXpTf/vrzjrP39me3DKoGyMcz1T69hN6Go5ZNunsnX6hP2g==","signatures":[{"sig":"MEUCICQbYGfFPnbpSn6v4zk/t3YCxfeyMZnWWxZVlji37IqyAiEAlodv6m02q4H/px4ce1V4n8V8x0YGywdGcWi3Wrq6FyM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15629},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"46fd25e11c0724088221c3d3bce540a55d045b73","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.5.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"23.11.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.7_1756620916079_0.32736122057477046","host":"s3://npm-registry-packages-npm-production"}},"1.3.8":{"name":"@andreyvalenko/next-fetch","version":"1.3.8","keywords":["typescript","npm","example","fetch"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","_id":"@andreyvalenko/next-fetch@1.3.8","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"homepage":"https://github.com/vnko1/next-fetch#readme","bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"dist":{"shasum":"64491aa968c229178b8918db871fd4c03fbaa141","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-1.3.8.tgz","fileCount":17,"integrity":"sha512-USMMlcqdkPfsSKwWour0X2TIv7aSgzQdU6cSu23xfJEjd5O+4J0+0JQCOFyhGBLCZqLkdwk8QRk5Dkcb/0zKsA==","signatures":[{"sig":"MEYCIQCJgjcCJkcKbwTLPM93DObUtty5hvM4pvQEdMlTRiAWxgIhAJ4cVorS849CMm6UYYVl7wy2Tr/XLKvhOv6x03SSZUQ4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15629},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d7ed45152e1fdbe7c27127f0cbda84ebdb40446c","scripts":{"test":"echo \"No tests yet\"","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"repository":{"url":"git+https://github.com/vnko1/next-fetch.git","type":"git"},"_npmVersion":"11.5.2","description":"Fetch api for next.js","directories":{},"_nodeVersion":"23.11.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/next-fetch_1.3.8_1756621909636_0.6978094120920011","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@andreyvalenko/next-fetch","version":"2.0.0","description":"Lightweight, typed fetch client for Next.js with interceptors, query params and timeouts","type":"commonjs","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/cjs/index.d.ts","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"","build":"npm run clean && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node scripts/postbuild.mjs","typecheck":"tsc --noEmit","prepare":"npm run build","test":"npm run build && node --test \"test/**/*.test.mjs\""},"repository":{"type":"git","url":"git+https://github.com/vnko1/next-fetch.git"},"bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"homepage":"https://github.com/vnko1/next-fetch#readme","keywords":["fetch","next","nextjs","http","client","typescript","interceptors"],"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","engines":{"node":">=18"},"devDependencies":{"typescript":"^5.8.3"},"gitHead":"549d6d64ed55b2563f799e9e2cef40bd16603d30","_id":"@andreyvalenko/next-fetch@2.0.0","_nodeVersion":"24.18.0","_npmVersion":"12.0.1","dist":{"integrity":"sha512-mXSsqKD6E8Aq3d4BnWu3Sb1uQE/a05U07AtS2DjDpNXJnXgv2ed+jsnQ7Yw2SQwU9ehqXsamfPo1cmbgLUqBCQ==","shasum":"82119bb78ceab969249e00980b198f5c10db51af","tarball":"https://registry.npmjs.org/@andreyvalenko/next-fetch/-/next-fetch-2.0.0.tgz","fileCount":68,"unpackedSize":103397,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDk51VGNAX83rpMMlULtE7h98LXZphCzkaJ3MpE+1rboAIgQ0W2koG1S9V5tjEo4j94ElZ9caeX/b/PEcXbKRJG4X8="}]},"_npmUser":{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"},"directories":{},"maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/next-fetch_2.0.0_1788684827319_0.25284439973931927"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-30T12:17:42.109Z","modified":"2026-09-06T08:53:47.776Z","1.0.0":"2025-07-30T12:17:42.509Z","1.1.0":"2025-07-30T12:59:02.448Z","1.1.1":"2025-07-30T13:01:48.807Z","1.1.2":"2025-07-30T14:30:11.102Z","1.1.3":"2025-07-30T14:44:52.021Z","1.1.4":"2025-07-30T14:57:41.349Z","1.1.5":"2025-07-30T15:00:13.586Z","1.2.0":"2025-07-31T09:34:04.695Z","1.2.1":"2025-07-31T09:38:04.843Z","1.2.2":"2025-07-31T09:55:17.364Z","1.2.3":"2025-07-31T13:30:54.501Z","1.2.4":"2025-08-04T06:11:41.815Z","1.2.5":"2025-08-11T14:46:49.235Z","1.2.6":"2025-08-11T14:52:12.920Z","1.3.0":"2025-08-12T05:50:16.644Z","1.3.1":"2025-08-12T06:31:25.613Z","1.3.3":"2025-08-12T07:25:12.151Z","1.3.5":"2025-08-12T07:56:39.945Z","1.3.6":"2025-08-13T07:33:06.667Z","1.3.7":"2025-08-31T06:15:16.282Z","1.3.8":"2025-08-31T06:31:49.833Z","2.0.0":"2026-09-06T08:53:47.476Z"},"bugs":{"url":"https://github.com/vnko1/next-fetch/issues"},"author":{"name":"Andrii Valenko","email":"andreyvalenko@gmail.com"},"license":"MIT","homepage":"https://github.com/vnko1/next-fetch#readme","keywords":["fetch","next","nextjs","http","client","typescript","interceptors"],"repository":{"type":"git","url":"git+https://github.com/vnko1/next-fetch.git"},"description":"Lightweight, typed fetch client for Next.js with interceptors, query params and timeouts","maintainers":[{"name":"andreyvalenko","email":"andreyvalenko@gmail.com"}],"readme":"# next-fetch\n\nA lightweight, fully typed wrapper around the native `fetch`, built for Next.js.\n\n- ✅ `nextFetch()` factory with a shared `baseURL`, headers and cache config\n- ✅ Nested query params (objects, arrays, `Date`) with correct encoding\n- ✅ Automatic JSON encoding — and raw pass-through for `FormData`, `Blob`, streams, typed arrays\n- ✅ Request/response interceptors\n- ✅ Per-request and per-instance timeouts (`TimeoutError`)\n- ✅ Rich errors (`HttpError` with `status`, `body`, `headers`)\n- ✅ Next.js `fetch` options: `next.revalidate`, `next.tags`, `cache`\n- ✅ Ships both ESM and CommonJS builds with type declarations\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install @andreyvalenko/next-fetch\n```\n\nRequires Node 18+ (or any runtime with a global `fetch`).\n\n## Usage\n\n### 1. Create an instance\n\n```ts\nimport { nextFetch } from \"@andreyvalenko/next-fetch\";\n\nexport const api = nextFetch({\n  baseURL: \"https://api.example.com\",\n  headers: { \"X-App\": \"web\" },\n  timeout: 10_000, // ms, optional\n});\n```\n\n`nextFetch.create({ ... })` is an alias, and `new NextFetchClient({ ... })` works too.\n`baseURL` is optional — without it, pass absolute urls.\n\n### 2. GET\n\n```ts\ntype User = { id: number; name: string };\n\nconst users = await api.get<User[]>(\"/users\", {\n  params: { role: \"admin\", filter: { tags: [\"new\", \"active\"] } },\n  next: { revalidate: 60, tags: [\"users\"] }, // Next.js options\n});\n// GET /users?role=admin&filter[tags][0]=new&filter[tags][1]=active\n```\n\n### 3. POST / PUT / PATCH\n\nThe body is the second argument; config is the third.\n\n```ts\ntype LoginResponse = { token: string };\ntype LoginPayload = { email: string; password: string };\n\nconst { token } = await api.post<LoginResponse, LoginPayload>(\"/auth/login\", {\n  email: \"test@example.com\",\n  password: \"123456\",\n});\n```\n\n`FormData`, `URLSearchParams`, `Blob`, `ArrayBuffer`, typed arrays and\n`ReadableStream` are sent as-is and content-typed by the runtime; everything\nelse is `JSON.stringify`-ed with `Content-Type: application/json`.\n\n### 4. DELETE / HEAD / OPTIONS\n\n```ts\nawait api.delete<void>(\"/users/1\");\nawait api.delete<void>(\"/users\", { body: { ids: [1, 2] } }); // body allowed\n```\n\n### 5. Errors\n\n```ts\nimport { HttpError, TimeoutError } from \"@andreyvalenko/next-fetch\";\n\ntry {\n  await api.get(\"/users\");\n} catch (error) {\n  if (HttpError.isHttpError(error)) {\n    error.status;     // 422\n    error.statusText; // \"Unprocessable Entity\"\n    error.body;       // parsed JSON (or text) payload\n    error.headers;    // response headers\n  } else if (TimeoutError.isTimeoutError(error)) {\n    // request exceeded `timeout`\n  }\n}\n```\n\n### 6. Interceptors\n\n```ts\nconst id = api.interceptors.request.use((config) => {\n  const headers = new Headers(config.headers);\n  headers.set(\"Authorization\", `Bearer ${getToken()}`);\n  return { ...config, headers };\n});\n\napi.interceptors.response.use(async (response) => {\n  if (response.status !== 401) return response;\n  await refreshSession();\n  return response;\n});\n\napi.interceptors.request.eject(id);\napi.interceptors.response.clear();\n```\n\n> A response interceptor must not read the body (`.json()`, `.text()`) and then\n> return the same response — return `response.clone()` or a new `Response`\n> instead. Doing otherwise throws a clear error.\n\n### 7. Timeouts and cancellation\n\n```ts\nawait api.get(\"/slow\", { timeout: 2_000 });          // per request\nawait api.get(\"/slow\", { signal: controller.signal }); // your own AbortController\n```\n\nBoth work together: whichever fires first aborts the request.\n\n### 8. Escape hatch\n\n`api.raw(method, url, config)` returns the untouched `Response` (interceptors\nstill run) when you need streaming or custom parsing.\n\n## Response parsing\n\n| Response                              | Resolves to        |\n| ------------------------------------- | ------------------ |\n| `204` / `205` / `304`, empty body     | `null`             |\n| `*/*json*`                            | parsed JSON        |\n| `text/*`, `xml`, `javascript`, form   | `string`           |\n| anything else                         | `Blob`             |\n\n## Development\n\n```bash\nnpm run typecheck\nnpm test        # builds, then runs the suite against a local http server\nnpm run build   # emits dist/cjs + dist/esm\n```\n\n## License\n\nMIT © Andrii Valenko\n","readmeFilename":"README.md"}