{"_id":"@aegenet/belt-fetch","_rev":"16-25954959a76065ff93f1411db6180158","name":"@aegenet/belt-fetch","dist-tags":{"latest":"2.4.0"},"versions":{"1.2.0":{"name":"@aegenet/belt-fetch","version":"1.2.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.2.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"75993a552ff62d16d1791f5a5308c2e9b1f9ce4e","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.2.0.tgz","fileCount":10,"integrity":"sha512-DrREhhks91nNamRMcmq6luR4TqL+ME+lEql68Y34lZVds/TtpW5I8QqTdC2Wl0JYLy8WKbV+UPq6DUHAav45oQ==","signatures":[{"sig":"MEUCIQCPZFVCHrlMY7s6hn3cPqpY+RFNByPtlV13SW1laq+rnQIgJxE0qOMhzt756eB4Npy+7Fmw3hBtMZPjrN/4Z+mNrNs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16196},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"aa5e0c6fad79f554541d1d29ed78b9d1a174cf0a","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.3","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.2.0_1705344789712_0.0848658073229227","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@aegenet/belt-fetch","version":"1.3.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.3.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"489eb452170e49b214cb70e614984ac784beb359","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.3.0.tgz","fileCount":10,"integrity":"sha512-S67x3Yk6veW5MmBR93Bvgs6D00oIBVtE3G45xXaqj8nqw/k6i17zPAzra8iNbGYmjJOPqcMhyONkB1dZvGC2lQ==","signatures":[{"sig":"MEQCIDltfpAdoBu95xcBwaGje3Iu0XfbUML4kEQM+SjJtv36AiBAv37vjx3bkYWRCbPL9t7BFdR7hnXE/EeTD1bPGGJ12Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20873},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"57a5a56425b61de8133107e3dd74a76576571288","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.3","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.3.0_1705567618288_0.36376408503160196","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@aegenet/belt-fetch","version":"1.3.1","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.3.1","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"4e1b5dea8c3128343b34221166113069a7725d0a","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.3.1.tgz","fileCount":10,"integrity":"sha512-HaE2H4phwWMzUoCjJUk8dq5zm6h3nORv6K9xfGGUx830Y0EzP8GYp2QlmzArM4iZp760NDvCspS4kb+r0X0wsg==","signatures":[{"sig":"MEUCIQDnwYt2VXNgniY7fkD1tkXlK2kRzJ7zQDOVCxbPAQmWfAIgNFDgrRMEzBeJmGe3E5H6d2njQW6mYsAvHHriocW62PQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"e362b9d694184d552405b49480c0bac8d198025d","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.3","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.3.1_1705572476570_0.3323426635995812","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@aegenet/belt-fetch","version":"1.3.2","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.3.2","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"9d48119a686c1046292850f7b908e4d32a6a94f3","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.3.2.tgz","fileCount":10,"integrity":"sha512-e1PdZv08jwgnM5XzLaR3Pe6sqXMEU9lTzw+/h7PSV+wCxlOPuQhrX51FMYRZvXrXorL8mscTaUqzWzFNs/LHSw==","signatures":[{"sig":"MEUCIGdU1VzD8sVvlXqE8zqlJK3fS1IAe8F4lqIETfsDq9NzAiEAxFX+qo+++qDhNDvy5gA5XlpMLPy1a9HuUoDuh9cDxY0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"b74875fd7e484a2a44bf0ccbecaf000bfa2030e2","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.3","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.3.2_1705869218260_0.8921443602212711","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@aegenet/belt-fetch","version":"1.4.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.4.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"80a0169d1755b8f5436566eb0728dcc6a305ddd2","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.4.0.tgz","fileCount":10,"integrity":"sha512-IUruLmP7kEq96tToe9OZFawq2qiTAKrwvtSrXFRWZ9B+jQnt/FWPz2jzLiI+J/707G74dNV7HXj9duEmwEmheg==","signatures":[{"sig":"MEUCIQDEbxLnnNG2s1CUr/pEBZf0BJTgafoDm8krNbHMSf6svAIgdw+Yygfa7kA4UHhflBk3K04JiIBIuuPn4hM3Qn0fTmQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"28c9459afdd19c78a3432ae3985e5a72191f2eab","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.4","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.1","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.4.0_1708977924070_0.46478006503856006","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"@aegenet/belt-fetch","version":"1.4.1","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.4.1","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"50b0917abd9f8cf4c97475d409d04e944b829dcc","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.4.1.tgz","fileCount":10,"integrity":"sha512-YvKATKmWaz4sVL8lXiadZrOFM1tlGRS31V71g0fsjwb3/0FL7Kvv5g5fNpJRB3i3JM9TQGwvsqusMhKra42idQ==","signatures":[{"sig":"MEQCIFPmRBX7ziIWWkD1jYkQJbXFJA/iCFMvv8GND/D1FpQNAiBLmAaVHVMMwNy4NMSfFTI8h8zO+0wc02VzPgNQ3kBoyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"ab408cfc180da589a554ac39f9b1e8056b351763","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.4","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.1","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.4.1_1709073863659_0.4463716462078733","host":"s3://npm-registry-packages"}},"1.4.2":{"name":"@aegenet/belt-fetch","version":"1.4.2","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.4.2","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"6e1a63ef1a795d353e655de797337d210895b9b6","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.4.2.tgz","fileCount":10,"integrity":"sha512-Rwp6VxhyyQLnFzXJ1YBZe/q9vEO+ujZdHf83a1XefF2w/Q5gd9z0eFMTHpz+hzjpoVTW5GabEM+MDGGYyDojeQ==","signatures":[{"sig":"MEYCIQDlDEleVHSEMaF9fQqZKZs9po3wHEB1tbmsdbLayK1x9wIhAOwKtd3WPgDiJa6xjJO1zzZdRahc/IQC9aNoNViG3u/Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"af2876e2c29b5422294b2f2e36965650048dac2d","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.4","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.1","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.4.2_1709192600037_0.15124861443931903","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@aegenet/belt-fetch","version":"1.5.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.5.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"9e833b719f3ddaa461a6fbf7147061633f97900c","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.5.0.tgz","fileCount":10,"integrity":"sha512-7RPNNPMQzr7oVKray9El2B1hzAc05eskRSqyj+ACW/d60sCjStljoyvFrrSOyfuZ9e7+UwqaVNTkfFtkTpvweA==","signatures":[{"sig":"MEQCIGgx35W6ralc8PIT/3nPv94XpGd/8oYnD2x0sY649g6ZAiBFQfxA5uHvdz+ar4/+sTPmZRnnfTEDogTToQFpnIVgNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21025},"main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"b0a7602bb3d6c286a25f3ad8be4a25227832e5f0","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.2.4","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"18.19.1","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.5.0_1711302864171_0.7044523971311438","host":"s3://npm-registry-packages"}},"1.6.1":{"name":"@aegenet/belt-fetch","version":"1.6.1","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.6.1","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"73d67477aa5b50a1e4beb11ebff8deb716bc936e","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.6.1.tgz","fileCount":10,"integrity":"sha512-s2YkHwGstotZC8tx44FO10++Yp1uHQ8XqXtN+XRSZbYhC1YxZHYJKeJCXnOUMaGtx6qeSE7HOXbIQ77mWj1ffQ==","signatures":[{"sig":"MEUCIQCttzk40reJ1erbERuVRnYPtfPXJ9WefRU9Ir1pMJ9/FgIgTAda2TeSbh9dfqVin+/ut0VJcFK2pNyxzz1s1VbfWYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21158},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"47fd030a13c23b1d0cb2700b94669dd0954b1ade","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.1","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"20.16.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.6.1_1722629828037_0.33248786561441457","host":"s3://npm-registry-packages"}},"1.6.2":{"name":"@aegenet/belt-fetch","version":"1.6.2","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.6.2","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"dd9acc529d565e0b56b057d1dbadcdda7a111bd3","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.6.2.tgz","fileCount":10,"integrity":"sha512-gJ0RTlrKttLaDuFLHddDewFNZted3mW94bj54pSXyYg3hQUNjsYHFES0gIoNHR7hRDitYuiYu13LYPsh+XzUIA==","signatures":[{"sig":"MEQCIBm4FSiCkpGR8cALIZXAlJzMHv9L/CEfA1Zrc6NvrlvpAiAa0JrNErH8JN80yTFQvuKjz3Z2tKGq0d0C66YmEW2+ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21158},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"1267d299165324c3ab29e0e511913af88d644021","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.1","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"20.16.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.6.2_1722631794307_0.5034262625183912","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"@aegenet/belt-fetch","version":"1.7.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@1.7.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"cc09ceb7435435c6275ae72ac7034e69c1893b25","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-1.7.0.tgz","fileCount":10,"integrity":"sha512-laVXkFwakg6STnlSOq6ri7RdrxXu37ehAGcYAaeCaGrUtvP+T5UOE9l1OR58fh2sZkwww5//0SiwJws0nrIdIQ==","signatures":[{"sig":"MEUCIGhpJxWNYaC07dzpfPq1iX0S1Faw2bcQ1nf23CPn2K+/AiEA25lcYoDFzzuh78vAWfysG7K4MkaBLKkdorw7zBtqL+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21158},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"247ec0e6bf48b6f5515c008a8fbd64b88f4ec099","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.1","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"_nodeVersion":"20.16.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_1.7.0_1722681325207_0.06932892742143282","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@aegenet/belt-fetch","version":"2.0.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@2.0.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"67d7110458af4e379406a6fa54b69f515598d54c","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-2.0.0.tgz","fileCount":10,"integrity":"sha512-mBXMTGZ5pDbmc6IgFeWokUjJLd3+sipfa+mRlBqglMckOpg3SkV3vi1fnZ0QfaSo194/vMkskLngSKYv84pHJQ==","signatures":[{"sig":"MEQCIGFymxsuPI3CfJtf1SlNIRznfidJOLJYEAX4MqfK1ynBAiB1IqKLYtP55HWSjiKshuUa4ZtjO0fmdZbi7dC0UjkLIQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21182},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"18308288c95290fa2f18258ea61b12388278836a","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.1","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"sideEffects":false,"_nodeVersion":"20.16.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_2.0.0_1722788373322_0.4590893215267322","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@aegenet/belt-fetch","version":"2.1.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@2.1.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"7f0524dd056623337a9438ac23499159eea1c177","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-2.1.0.tgz","fileCount":10,"integrity":"sha512-iiiHMca04cLHJ55WhR0eAUfxSYiva3vqYNMSLQN67Y1N1SfEhjBdDdEOWk05irlzTC4F7TZ4eBc19l24OtK0UQ==","signatures":[{"sig":"MEQCIE2bgJhxS2eqyCi8oS5Bkp/hcWTmuAshrpPDQFSBN6xCAiBExTNStH793XX/Scu4eVw2mfWf5c39e5hTGHV4DdxPDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21182},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"1c0a932726129cbeb2472f8d46706951e7496054","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.2","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_2.1.0_1725480840499_0.46497441327881983","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@aegenet/belt-fetch","version":"2.2.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@2.2.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"efcd52c153e392f8be82782f7791a90251273d99","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-2.2.0.tgz","fileCount":10,"integrity":"sha512-iYQLQvyCFxVY7Dxq6RRxtEL4KPQj+Xm0dUxsODjgegh3OOnAYkDJ82UV0vjrY5sjK6WKn9L4C8ehUqMrQC243Q==","signatures":[{"sig":"MEUCIQDwWniuenpTplI2HkhmM0X5dUw6Z1ECYCYpKad3KU0fqAIgOvcK8DO79ARzUUIcXy6JTav8Wkvj+m18h/QFoSbiPhg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21401},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"6d13b06332f0f3e156e5050770c11e047b98df52","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.2","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_2.2.0_1728590613931_0.7045618053335625","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@aegenet/belt-fetch","version":"2.3.0","keywords":["fetch","tools"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/belt-fetch@2.3.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/belt/tree/master#readme","bugs":{"url":"https://github.com/aegenet/belt/issues"},"dist":{"shasum":"1e302385a7a8336f2992717f5efe09e415afb1a6","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-2.3.0.tgz","fileCount":10,"integrity":"sha512-3l+jOpudD0oefe6xSkKC4DDUq9WcFIsWa4Dv+9/J154zOPGj+SsbjgiLnqW0+bED+ah8pOl4yVQkZ21sXOibww==","signatures":[{"sig":"MEQCIHyb/JT+w2kNrWxiJgwuSKw3NFOAVitilxDB9i3A9It3AiB6z3vO0TTwvJsbNtqGsgXn2o/XLTnMwkGzIo8DyyrRkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21401},"main":"dist/node/node.cjs","types":"./dist/node/bundle.d.ts","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"types":"./dist/node/bundle.d.ts","import":"./dist/node/node.mjs","require":"./dist/node/node.cjs"},"default":{"types":"./dist/node/bundle.d.ts","import":"./dist/web/browser.mjs","require":"./dist/web/browser.cjs"}},"gitHead":"91fcc9c38668d7655d6e88dd4aada0a39590882d","scripts":{},"typings":"./dist/node/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/aegenet/belt.git#master","type":"git"},"_npmVersion":"10.8.2","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/belt-fetch_2.3.0_1731616516676_0.8349170208191723","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@aegenet/belt-fetch","description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","keywords":["fetch","tools"],"version":"2.4.0","main":"dist/node/node.cjs","module":"dist/node/node.mjs","browser":"dist/web/browser.mjs","exports":{"node":{"require":"./dist/node/node.cjs","import":"./dist/node/node.mjs","types":"./dist/node/bundle.d.ts"},"default":{"require":"./dist/web/browser.cjs","import":"./dist/web/browser.mjs","types":"./dist/node/bundle.d.ts"}},"typings":"./dist/node/bundle.d.ts","types":"./dist/node/bundle.d.ts","author":{"name":"Alexandre Genet"},"sideEffects":false,"license":"MIT","publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/aegenet/belt.git#master"},"dependencies":{},"peerDependencies":{},"devDependencies":{},"pre-commit":["lint"],"scripts":{},"_id":"@aegenet/belt-fetch@2.4.0","gitHead":"2206bc43a358dc96c7b8f55fe0f46c696885fed4","bugs":{"url":"https://github.com/aegenet/belt/issues"},"homepage":"https://github.com/aegenet/belt/tree/master#readme","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-5PtmoOFE+58xF1Ttz2dR8sOE6gQr8l4kdqTguhtwO6TMt/DgsUNcH6uEa0FvaFo99f4ZAADaXMZEEjvKicf/rA==","shasum":"eea0f6147a26b026e80c26632e5e356d8c5b1c8a","tarball":"https://registry.npmjs.org/@aegenet/belt-fetch/-/belt-fetch-2.4.0.tgz","fileCount":10,"unpackedSize":21401,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBl+sdgFpZADvjX9QS6+hQdBe2ujLKT1dFZCcF/QkbfPAiB8fo86p4qUSYxjs/i0s1ZhS9fRjTgDbfc3Ilq374OuEg=="}]},"_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"directories":{},"maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/belt-fetch_2.4.0_1760893172908_0.18818352535903315"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-15T18:53:09.621Z","modified":"2025-10-19T16:59:33.297Z","1.2.0":"2024-01-15T18:53:09.854Z","1.3.0":"2024-01-18T08:46:58.467Z","1.3.1":"2024-01-18T10:07:56.797Z","1.3.2":"2024-01-21T20:33:38.436Z","1.4.0":"2024-02-26T20:05:24.226Z","1.4.1":"2024-02-27T22:44:23.860Z","1.4.2":"2024-02-29T07:43:20.212Z","1.5.0":"2024-03-24T17:54:24.321Z","1.6.1":"2024-08-02T20:17:08.181Z","1.6.2":"2024-08-02T20:49:54.467Z","1.7.0":"2024-08-03T10:35:25.361Z","2.0.0":"2024-08-04T16:19:33.557Z","2.1.0":"2024-09-04T20:14:00.640Z","2.2.0":"2024-10-10T20:03:34.100Z","2.3.0":"2024-11-14T20:35:16.860Z","2.4.0":"2025-10-19T16:59:33.087Z"},"bugs":{"url":"https://github.com/aegenet/belt/issues"},"author":{"name":"Alexandre Genet"},"license":"MIT","homepage":"https://github.com/aegenet/belt/tree/master#readme","keywords":["fetch","tools"],"repository":{"type":"git","url":"git+https://github.com/aegenet/belt.git#master"},"description":"bFetch is fetch with a default timeout and an asynchronous DNS resolver (node only). +fetch utility: ensureFetch response","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"readme":"[![npm version](https://img.shields.io/npm/v/@aegenet/belt-fetch.svg)](https://www.npmjs.com/package/@aegenet/belt-fetch)\n<br>\n\n# @aegenet/belt-fetch\n\n> Belt fetch\n\n## 💾 Installation\n\n```shell\nyarn add @aegenet/belt-fetch@^2.0.0\n# or\nnpm i @aegenet/belt-fetch@^2.0.0\n```\n\n## `bFetch`\n\n### Why?\n\n**bFetch** is `fetch` with:\n- a configurable timeout *(default 10 seconds)*\n- (**node only**) an asynchronous DNS resolver: by default, native fetch uses a synchronous DNS resolver*, which can potentially block your entire Node.js process.\n\n> *Though the call to dns.lookup() will be asynchronous from JavaScript's perspective, it is implemented as a synchronous call to getaddrinfo(3) that runs on libuv's threadpool. This can have surprising negative performance implications for some applications, see the UV_THREADPOOL_SIZE documentation for more information.*\n\n**Important**: there is a drawback; the DNS is not resolved in the same way as `dns.lookup`. For example, the host file is not taken into account.\n\nFor more informations: https://nodejs.org/api/dns.html#implementation-considerations\n\n### Basic usage\n\n```typescript\nimport { bFetch, fetchEnsure } from '@aegenet/belt-fetch';\n\nconst response = await bFetch('https://jsonplaceholder.typicode.com/todos/1');\nconst results = await fetchEnsure(response);\n// ->\n{\n  \"userId\": 1,\n  \"id\": 1,\n  \"title\": \"delectus aut autem\",\n  \"completed\": false\n}\n```\n\n### DNS Cache\n\n```typescript\nimport { bFetch, fetchEnsure } from '@aegenet/belt-fetch';\n\nconst response = await bFetch('https://jsonplaceholder.typicode.com/todos/1', {\n  dnsCacheTTL: 10000\n});\nconst results = await fetchEnsure(response);\n// ->\n{\n  \"userId\": 1,\n  \"id\": 1,\n  \"title\": \"delectus aut autem\",\n  \"completed\": false\n}\n```\n\n### Custom DNS resolution\n\n```typescript\nimport { bFetch, fetchEnsure } from '@aegenet/belt-fetch';\n\nconst resp = await bFetch(\n  'http://dontexistbutmapped:3030/text',\n  {},\n  {\n    timeout: 200,\n    replaceDNSByIP: true,\n    dnsMapAsFallback: true,\n    dnsMap: {\n      dontexistbutmapped: '127.0.0.1',\n    },\n  }\n);\n// resp.status 200 (Hello World!)\n```\n\n```typescript\nimport { bFetch, fetchEnsure } from '@aegenet/belt-fetch';\n\nconst resp = await bFetch(\n  'http://github.com:3030/text',\n  {},\n  {\n    timeout: 200,\n    replaceDNSByIP: true,\n    /** Not as a fallback, but as a primary resolver */\n    dnsMapAsFallback: false,\n    dnsMap: {\n      'github.com': '127.0.0.1',\n    },\n  }\n);\n// resp.status 200 (Hello World!)\n```\n\n### API\n\n```typescript\nexport type bFetchOptions = {\n  /**\n   * Timeout in milliseconds\n   *\n   * @default 10000\n   *\n   * @kind Browser/Node.js\n   */\n  timeout?: number;\n  /**\n   * Make the request using the IP address instead of the DNS name\n   *\n   * @kind Browser/Node.js\n   */\n  replaceDNSByIP?: boolean;\n  /**\n   * DNS Map { 'github.com': '127.0.0.1' }\n   *\n   * @kind Browser/Node.js\n   */\n  dnsMap?: Record<string, string>;\n  /**\n   * DNS Map as fallback or as a primary resolver\n   *\n   * @default true\n   *\n   * @kind Node.js\n   */\n  dnsMapAsFallback?: boolean;\n  /**\n   * DNS Cache TTL (ms)\n   *\n   * @default 0\n   *\n   * @kind Node.js\n   */\n  dnsCacheTTL?: number;\n};\n```\n\n## `fetchEnsure`\n\nThe purpose of this function is simply to ensure that the fetch response is OK and then format the response according to the content-type.\n\n```typescript\nimport { fetchEnsure } from '@aegenet/belt-fetch';\n\nconst response = await fetch('https://jsonplaceholder.typicode.com/todos/1');\nconst results = await fetchEnsure(response);\n// ->\n{\n  \"userId\": 1,\n  \"id\": 1,\n  \"title\": \"delectus aut autem\",\n  \"completed\": false\n}\n```\n","readmeFilename":"README.md"}