{"_id":"@buttercup/fetch","_rev":"4-66bbac5468681beb907fa7c06dc748ce","name":"@buttercup/fetch","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@buttercup/fetch","version":"0.1.0","description":"Fetch adapter for cross-platform use.","type":"module","exports":{".":{"browser":"./dist/index.browser.js","default":"./dist/index.node.js"}},"types":"./dist/index.node.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf dist","format":"prettier --write \"{source,test}/**/*.{js,ts}\"","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:format","test:format":"prettier --check \"{source,test}/**/*.{js,ts}\"","test:node":"npm run build && mocha 'test/node/**.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"lint-staged":{"{source,test}/**/*.{js,ts}":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["fetch","request"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/buttercup/fetch/issues"},"homepage":"https://github.com/buttercup/fetch#readme","devDependencies":{"@types/node":"^18.11.18","chai":"^4.3.7","husky":"^4.3.8","json-server":"^0.17.1","lint-staged":"^13.1.0","mocha":"^10.2.0","prettier":"^2.8.3","rimraf":"^4.1.2","typescript":"^4.9.5","url-join":"^5.0.0"},"optionalDependencies":{"node-fetch":"^3.3.0"},"gitHead":"ea3ee2ef2403f84d9cb65e54980cabe52de91cdc","dependencies":{"node-fetch":"^3.3.0"},"_id":"@buttercup/fetch@0.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-jkV4NLlE9BGQPgY+0sGi4s41IfreHACIICGpM6YhTlJlGp8XC4W2VapMBxdPenTgzduLU30c12PTvRlxpzoqBw==","shasum":"2c2dd34ac0758927dc612832b2834d9c42fd8d71","tarball":"https://registry.npmjs.org/@buttercup/fetch/-/fetch-0.1.0.tgz","fileCount":7,"unpackedSize":4799,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRvTTZbA06JxNz8urTsJxUXbz5XXjO5afkafhk0R8QwwIhAK/hEt/PjgtwI/HpRcTh8a4e356j1HYLAStm0lQA6oZa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj35NcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKHQ//RtNuTDPsvfSc5+2TgAokoy6kBq/QnGH2kxdE7z9lO0Md8U8I\r\n3f6UHH9H5bZFGua9CM+RXkVXbdpvCft1tJoz4H0S0roJI937NGW4VtWgRkDa\r\nii1H3EdOuseLO7oModqKh9tWl+MHOiTVCChldGmlcQMJp98bLwRp4h0Nch1V\r\nu91vVBL9bKttsZLxUGRBsVihpHL+Dn7utsCQ1RbMNsA/JS0zLctn5hdEMk60\r\njzz3Q8iTs6jhmKqfNihsC0/RHPtPT4BN3q2GNf8JTc7XRRnHa1LMfpum3pQw\r\nRq4nnNdXUE3MkIlTq1GBCKAInZzSbt/teGlvx1vmnuHSSBp6agbsNxqwOvhG\r\ngLJSnTCvkN0+z1h3hAhwhVR21KxMG+rAUS5VL+Vtx0Pq5l394hxrpul2mDGv\r\nPGXfkjL6NO8NshADvtLZTRuVCK0nHDacc0Lc+5KEtU8z0uDNooP+SmSD5rJ6\r\n6Nrue14ztRbPmWS83fvsGWmpmTjQ0UD4MbMX3YbenhO32na9xaBM6gp6odkC\r\n19tjYB49CI2i8zoXYYS5t9d2bufyBnCtET6dF5eh4Q+irmCnuQuhl2jzhpYI\r\nDsnrnkTonjhmIu9KXzPEPTn2P7Yhbj6ZY/XyjY9DPuqlk8P0SF2YavGhR+jv\r\nMITcZ+xyEJpYTHWjgWiA9xPUj+BUJm9L/yo=\r\n=vrMq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch_0.1.0_1675596636173_0.5320658882899845"},"_hasShrinkwrap":false},"0.1.1":{"name":"@buttercup/fetch","version":"0.1.1","description":"Fetch adapter for cross-platform use.","type":"module","exports":{".":{"browser":"./dist/index.browser.js","default":"./dist/index.node.js"}},"types":"./dist/index.node.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf dist","format":"prettier --write \"{source,test}/**/*.{js,ts}\"","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:format","test:format":"prettier --check \"{source,test}/**/*.{js,ts}\"","test:node":"npm run build && mocha 'test/node/**.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"lint-staged":{"{source,test}/**/*.{js,ts}":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["fetch","request"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/buttercup/fetch/issues"},"homepage":"https://github.com/buttercup/fetch#readme","devDependencies":{"@types/node":"^18.11.18","chai":"^4.3.7","husky":"^4.3.8","json-server":"^0.17.1","lint-staged":"^13.1.0","mocha":"^10.2.0","prettier":"^2.8.3","rimraf":"^4.1.2","typescript":"^4.9.5","url-join":"^5.0.0"},"optionalDependencies":{"node-fetch":"^3.3.0"},"gitHead":"a63e55fa96a50c85faae8a33cc9b6eb7e46b014b","dependencies":{"node-fetch":"^3.3.0"},"_id":"@buttercup/fetch@0.1.1","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-RwBiPEmPaZv3oLOPY0fcmAGYdd3A4FDoYDc7JN+qxGTXumrYAYEC1RpyCM2pHSr6RYpuaAeg4A1fJy+PiigPIA==","shasum":"ccdffc74c9aaf95a0b99dd6807441f2019d5de42","tarball":"https://registry.npmjs.org/@buttercup/fetch/-/fetch-0.1.1.tgz","fileCount":7,"unpackedSize":5028,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEN9Lk8sVa0p67bJkT/HigQE7zxs8kZ+61YC4A/JuYUdAiEAuBJo2nNhmsguXUM9Lt0uYLLgt+M1K4b6j2RTADpOTEo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRr7tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzTA/7B8s6GIgDks6JZsfL9uBqWw3tXm0MMlCrhUuYZwd15GQOWtR1\r\nbI0KFOKWUvXYjLvGHuc/CcUlYrK4jJRKxVeun3zYfgatZHvRbVtpYluPqj0o\r\n1Mg4CntdMJCmpIVmKC0F+rvqHKnF1M5nfdgPPES310wY5wpsRMsH8D5qd3Vp\r\n1PxMu/rllmpLloEc8Xwot6xIjTHOVg5A84Od72tRn0jimG9+cTkDnburWfUW\r\naY6cKoNvlYuZsrZf15Jo8zXbWMRqxPY6Rr7kFkpNKG0Q1jsP0hNBNnluoTLw\r\nyDrDZZ3WYY+JTFFd5wllcUZ/7aS/3qlT29cFIfvpUg+RWlO9MiZIpOphfzUT\r\nuafwerAdRhBlQfdTuLa5SJ79gf971pQfBhO+RCA61rJ2ShmKTeeb3ON0lPTF\r\nf9Dr0NPTUQYFqzT1kgc2/2synt21qrrb2nEyXxGwWuyUF0GqQu54oeavjUG9\r\n0Skx2w06kqu5DWSiXXapHqbXH1vi49AEUPI/ES/ntUCtZgMSkunYvcwWqTR1\r\nfHvDQT26QnJi4LOn3UgkkxqPWlf/PPCnJ1JydYi7mGuICfH6pqNbn4CZACch\r\nipKs9uYQ8RjkvIh30jJroK08pk3T7u6cL1sWdRsQsPZyCpy3Q6zw0iStR4sL\r\nODwdY2l/BzsxXwkci9lGufUPBLb40HT2GdI=\r\n=5Z3p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch_0.1.1_1682357997365_0.9057852328812219"},"_hasShrinkwrap":false},"0.1.2":{"name":"@buttercup/fetch","version":"0.1.2","description":"Fetch adapter for cross-platform use.","type":"module","exports":{".":{"browser":"./dist/index.browser.js","default":"./dist/index.node.js"}},"react-native":"./dist/index.browser.js","types":"./dist/index.node.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf dist","format":"prettier --write \"{source,test}/**/*.{js,ts}\"","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:format","test:format":"prettier --check \"{source,test}/**/*.{js,ts}\"","test:node":"npm run build && mocha 'test/node/**.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"lint-staged":{"{source,test}/**/*.{js,ts}":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["fetch","request"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/buttercup/fetch/issues"},"homepage":"https://github.com/buttercup/fetch#readme","devDependencies":{"@types/node":"^18.11.18","chai":"^4.3.7","husky":"^4.3.8","json-server":"^0.17.1","lint-staged":"^13.1.0","mocha":"^10.2.0","prettier":"^2.8.3","rimraf":"^4.1.2","typescript":"^4.9.5","url-join":"^5.0.0"},"optionalDependencies":{"node-fetch":"^3.3.0"},"gitHead":"76c1086d3b631efef65ff1c2bcd385512da285ad","dependencies":{"node-fetch":"^3.3.0"},"_id":"@buttercup/fetch@0.1.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-mDBtsysQ0Gnrp4FamlRJGpu7HUHwbyLC4uUav1I7QAqThFAa/4d1cdZCxrV5gKvh6zO1fu95bILNJi4Y2hALhQ==","shasum":"528e457aa0bddd74a802427318a3e061993092fd","tarball":"https://registry.npmjs.org/@buttercup/fetch/-/fetch-0.1.2.tgz","fileCount":7,"unpackedSize":5073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjHjLDCD4PA413bEovJXxF8l0xSNiRnu0Bf2TK/qwK8QIhAPy5YDLiXyqN+MjP76oKg7qGHqq/zSXaDTjvw0+nS8Im"}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch_0.1.2_1689703230193_0.4771427799099217"},"_hasShrinkwrap":false},"0.2.0":{"name":"@buttercup/fetch","version":"0.2.0","description":"Fetch adapter for cross-platform use.","type":"module","exports":{".":{"browser":"./dist/index.browser.js","default":"./dist/index.node.js"}},"react-native":"./dist/index.browser.js","types":"./dist/index.node.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf dist","format":"prettier --write \"{source,test}/**/*.{js,ts}\"","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:format","test:format":"prettier --check \"{source,test}/**/*.{js,ts}\"","test:node":"npm run build && mocha 'test/node/**.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"lint-staged":{"{source,test}/**/*.{js,ts}":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["fetch","request"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/buttercup/fetch/issues"},"homepage":"https://github.com/buttercup/fetch#readme","devDependencies":{"@types/node":"^18.11.18","chai":"^4.3.7","husky":"^4.3.8","json-server":"^0.17.1","lint-staged":"^13.1.0","mocha":"^10.2.0","prettier":"^2.8.3","rimraf":"^4.1.2","typescript":"^4.9.5","url-join":"^5.0.0"},"optionalDependencies":{"node-fetch":"^3.3.0"},"gitHead":"8fa4cf4ff85feee328a62ee6b552cd098cc1c23e","dependencies":{"node-fetch":"^3.3.0"},"_id":"@buttercup/fetch@0.2.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uoa6RpSiJxgacZTso0nPLyXhzUDGfcQiMrfu2kI0fdVC2kI07wmyCUtrWqC4fwdIgBNAmDjp7vSFLY8Xe17TeA==","shasum":"17388269fd7fc17b3980ce0c0872a4164857384c","tarball":"https://registry.npmjs.org/@buttercup/fetch/-/fetch-0.2.0.tgz","fileCount":7,"unpackedSize":5099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiaYr5qlkk0fCeyUU31yrmdjFQ13iC4sra1xq5eIpImwIhAPH5iOIf8YFKOmBh51ra0N5YWdv5LWpbIdKXIuuEmeeZ"}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch_0.2.0_1694522361152_0.5276275520228408"},"_hasShrinkwrap":false},"0.2.1":{"name":"@buttercup/fetch","version":"0.2.1","description":"Fetch adapter for cross-platform use.","type":"module","exports":{".":{"browser":"./dist/index.browser.js","default":"./dist/index.node.js"}},"react-native":"./dist/index.browser.js","types":"./dist/index.node.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf dist","format":"prettier --write \"{source,test}/**/*.{js,ts}\"","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:format","test:format":"prettier --check \"{source,test}/**/*.{js,ts}\"","test:node":"npm run build && mocha 'test/node/**.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"lint-staged":{"{source,test}/**/*.{js,ts}":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["fetch","request"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/buttercup/fetch/issues"},"homepage":"https://github.com/buttercup/fetch#readme","devDependencies":{"@types/node":"^18.11.18","chai":"^4.3.7","husky":"^4.3.8","json-server":"^0.17.1","lint-staged":"^13.1.0","mocha":"^10.2.0","prettier":"^2.8.3","rimraf":"^4.1.2","typescript":"^4.9.5","url-join":"^5.0.0"},"optionalDependencies":{"node-fetch":"^3.3.0"},"gitHead":"a6b023d6a4af894aff45b0d86b872c0bfe2431f8","dependencies":{"node-fetch":"^3.3.0"},"_id":"@buttercup/fetch@0.2.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sCgECOx8wiqY8NN1xN22BqqKzXYIG2AicNLlakOAI4f0WgyLVUbAigMf8CZhBtJxdudTcB1gD5lciqi44jwJvg==","shasum":"f38bed5f879231920ed4477bd202695d6e70a867","tarball":"https://registry.npmjs.org/@buttercup/fetch/-/fetch-0.2.1.tgz","fileCount":7,"unpackedSize":5272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9qHN+cGjfe656xY5x2anBMn3JUo/DFpRB6YuvbwSvoQIhAIyy8fkJEuSM/DeNWqzcLeA6+JGVQYtxSvE9VJk3zbTh"}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch_0.2.1_1694522825342_0.5513963479073383"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-05T11:30:36.108Z","0.1.0":"2023-02-05T11:30:36.338Z","modified":"2023-09-12T12:47:05.744Z","0.1.1":"2023-04-24T17:39:57.560Z","0.1.2":"2023-07-18T18:00:30.338Z","0.2.0":"2023-09-12T12:39:21.367Z","0.2.1":"2023-09-12T12:47:05.510Z"},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"},{"name":"sallar","email":"sallar@kaboli.org"}],"description":"Fetch adapter for cross-platform use.","homepage":"https://github.com/buttercup/fetch#readme","keywords":["fetch","request"],"repository":{"type":"git","url":"git+https://github.com/buttercup/fetch.git"},"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"bugs":{"url":"https://github.com/buttercup/fetch/issues"},"license":"MIT","readme":"# Fetch\n> Fetch adapter for cross-platform use.\n\n[![Buttercup](https://cdn.rawgit.com/buttercup-pw/buttercup-assets/6582a033/badge/buttercup-slim.svg)](https://buttercup.pw) [![npm (scoped)](https://img.shields.io/npm/v/@buttercup/fetch)](https://www.npmjs.com/package/@buttercup/fetch) ![Tests](https://github.com/buttercup/fetch/actions/workflows/test.yml/badge.svg)\n\n## About\n\nThis library exports `fetch` in various environments, such as within a browser or under NodeJS:\n\n * Browsers get the native `window.fetch`\n * NodeJS gets `node-fetch`\n\n_This library was designed to be used primarily within Buttercup and its supporting libraries: Features and fixes implemented here will be oriented to furthering Buttercup's goals, and unnessarily changes may be rejected due to that._\n\n## Installation\n\nFor browser use you need only install this library:\n\n```shell\nnpm install @buttercup/fetch --save-dev\n```\n\nFor NodeJS use you must also install `node-fetch`:\n\n```shell\nnpm install @buttercup/fetch node-fetch --save\n```\n\n## Usage\n\nYou can import the various components related to fetch regardless of the entry your application uses:\n\n```typescript\nimport {\n    fetch,\n    Headers,\n    Request,\n    Response\n} from \"@buttercup/fetch\";\n\n// ...\n\nconst res = await fetch(\"https://...\");\n```\n","readmeFilename":"README.md"}