{"_id":"@d-fischer/cross-fetch","_rev":"12-df17c00dab84f07e41cc4c0576731b71","name":"@d-fischer/cross-fetch","dist-tags":{"latest":"5.0.5","prev":"4.2.1"},"versions":{"4.0.0":{"name":"@d-fischer/cross-fetch","version":"4.0.0","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","typings":"index.d.ts","lint-staged":{"*.js":["standard --fix"]},"husky":{"hooks":{"pre-commit":"make build && make check-dependencies && lint-staged"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai","sinon"],"ignore":["/dist/","bundle.js","bundle.*.js"]},"nyc":{"temp-dir":".reports/.coverage"},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"2.6.0","whatwg-fetch":"3.0.0"},"devDependencies":{"chai":"4.2.0","codecov":"3.6.5","husky":"4.2.3","lint-staged":"10.0.8","mocha":"7.1.0","mocha-headless-chrome":"2.0.1","nock":"12.0.2","nyc":"15.0.0","ora":"4.0.3","rollup":"2.0.2","rollup-plugin-copy":"3.3.0","rollup-plugin-uglify":"6.0.4","semver":"7.1.3","sinon":"9.0.0","standard":"14.3.1","webpack":"4.42.0","webpack-cli":"3.3.11"},"keywords":["fetch","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"eff988cf54665733316c97415cef144d70864604","_id":"@d-fischer/cross-fetch@4.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-DuoY/mZiDBQfscVg8RiIr8qDA95HdIbfrOemUViflfPTbtQP1cj6Rza032pj3ZAJhGQD5JCegvvPS3T8Fx7stw==","shasum":"19499f37ea712ea02ee446459e1a608a8b8863f7","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.0.0.tgz","fileCount":14,"unpackedSize":73408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehjFjCRA9TVsSAnZWagAA1r4P/2+qcEksxr0NcXM2vko8\nKYrAz9fLw7eL8Ly6kVTBJHMyVdWpMWunVmUCzKF5QNzCuYeboLmJzcG0SX7f\nyx2jNb2uJ5spmZUEAqwJf59mrPN1Sc3cUJ9zLzMSRYb079UTyI7gnbOeROAJ\nK2MhToaTs8l4UbKDfyuuRCIhvWQv5QDssAFcuHo25qMIpRxBXiO5N2d4lI4c\n2OhMQI3QszrApjwK8InTP7nMaWlZ4FNWhGJ/ZSvYjJP2xq+Zy2TXQswJAOiU\nNhe6JHjnYcJ8ezkklbEoVAOmJ2NpvD4+9wuqBvbmLk7ygPlKOmKRS4rP79Cb\n9y0DxKGw8WRsefxflZ0qd/OwpbRgr7ftClVMCpPdpWZoY/vfWsLN9W6azols\nCySYMrKhL6fdpPheVEJ0RWxaYjyw8i4gce9T6TfBmedYkxC7wXDIGn7egcsb\nG2YPU09YyPlSORkxiM6w2Inn3F8I21mHpz06e5j1iyhNpc6747gy7E91ooyd\n0FuCtsjcb8CzQ5UxN6PveqOcsA1BB9uaQk3dtPWGp9YeiWER0mWrd+JncQT3\nnGtVkWp7ffKFD9+bAEdvzL1AhO9j78fw+iVfDsVmVCu+inWTjuaE1pGlRuVf\nV1XkKg6hb2yvJ+hhuKohnD2Br9T2Ot6Fi1wSv0ZaFgkLp/o0F9Hl3YjgwPGn\nUpI1\r\n=XKZ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtct0yH/sFzeKaxnJEr6d+9BbmAwM0oaregV/dO7SplAiEAxoIkNxFDdFTQ44MuHS6GNtPwWtqsKLDPfgYi6NtkuLA="}]},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.0.0_1585852770731_0.4281343844772574"},"_hasShrinkwrap":false},"4.0.1":{"name":"@d-fischer/cross-fetch","version":"4.0.1","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","typings":"index.d.ts","lint-staged":{"*.js":["standard --fix"]},"husky":{"hooks":{"pre-commit":"make build && make check-dependencies && lint-staged"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai","sinon"],"ignore":["/dist/","bundle.js","bundle.*.js"]},"nyc":{"temp-dir":".reports/.coverage"},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"2.6.0","whatwg-fetch":"3.0.0"},"devDependencies":{"chai":"4.2.0","codecov":"3.6.5","husky":"4.2.3","lint-staged":"10.0.8","mocha":"7.1.0","mocha-headless-chrome":"2.0.1","nock":"12.0.2","nyc":"15.0.0","ora":"4.0.3","rollup":"2.0.2","rollup-plugin-copy":"3.3.0","rollup-plugin-uglify":"6.0.4","semver":"7.1.3","sinon":"9.0.0","standard":"14.3.1","webpack":"4.42.0","webpack-cli":"3.3.11"},"keywords":["fetch","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"a98bc4f1d8202f31f40569ad144683bd6e99ccb6","_id":"@d-fischer/cross-fetch@4.0.1","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-N2wdpOaSSLtCERlOFLPU3UpW27VSWiPfu65SKWdVrYJP2DeH2ZBwwvDz2OYAWkXb0fSUKQWuWk+yWhDpcmQljQ==","shasum":"884e44bfa3999a76e85d3a64f0629c7f5b56d40d","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.0.1.tgz","fileCount":14,"unpackedSize":73409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehkA1CRA9TVsSAnZWagAAHD8P+wQ/34Pste4/aRwe6dI3\n/HYMzgz+41iikwazQuROZ+oj5tyeaQbnjF3lofeyxztsIu13ZVw4AHgtdJ/z\nb8Q/IfjDmo2PtorBd7iVk4WvZqd464aiB/24KpoUhVtEJfU7lR20C9T96T8k\naXhgZXmLD3T5g3RWj3mJzr+SrVe1gM/qegKj6I8AIej+vOlfu5etAuAI3oYA\nFHFIgwy9rteSPrqqKzBZa6lxzFtMfgOA/FKmkuCP39HiWlv0AbjQsLTeV1PO\n5NSfmuks/+eVAjWR0NAT0cRuNYvENRETXzsBrVk9R1wNGa7B7wRWJPMCMZUe\nQjdgwPeFplLSVM4HqOtYGrkm7VStPdTOMI1onqQ35WYX3TvcVvpS0YzT8y7E\nE5p4U3pbRt8SbNTHQPjHeYQt69NXJ2DkKoX65nwdvKBSDmz5P/hHWdv3vfZt\nKK0zZwc/VjLX6UT30CaPL75H7Xv5rkM1Xr8F+iVnFrab3Mp2rHFkp56ubK3W\nuIUqjxgiOcv0nMbGx62CZoLf/fX4+RRRllWaVPfaO/1jz0VAweYIC2n0w93M\n4YgaQEfJkkPDW2V9k94YeZLGgYXmG0rkNMUjSCV0WA7m+o46/PbOdZCtAvB2\nQceFXmKfa6Y7EsaYt1dq9vd9w2boq6PMwnizw+ahX3djOw4fjHKc0GnKDDyT\n5dSr\r\n=Gld2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3S2F7zUw2OsEGEvWASspSJ//ZApVhmCElRB3HxUEdCAiB0oWIetXoI87pJl9QcrNcrYz2fmjNdYyJZKhu+X88ZSw=="}]},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.0.1_1585856564768_0.22839515192684856"},"_hasShrinkwrap":false},"4.0.2":{"name":"@d-fischer/cross-fetch","version":"4.0.2","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","typings":"index.d.ts","lint-staged":{"*.js":["standard --fix"]},"husky":{"hooks":{"pre-commit":"make build && make check-dependencies && lint-staged"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai","sinon"],"ignore":["/dist/","bundle.js","bundle.*.js"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"2.6.1"},"devDependencies":{"chai":"4.2.0","codecov":"3.7.2","husky":"4.3.0","lint-staged":"10.3.0","mocha":"8.1.3","mocha-headless-chrome":"2.0.1","nock":"13.0.4","nyc":"15.1.0","ora":"5.1.0","rollup":"2.26.11","rollup-plugin-copy":"3.3.0","rollup-plugin-uglify":"6.0.4","semver":"7.3.2","sinon":"9.0.3","standard":"14.3.4","webpack":"4.44.1","webpack-cli":"3.3.12","whatwg-fetch":"3.0.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"531c68487bca47dc572b483cb90fdf2b6293e9c9","_id":"@d-fischer/cross-fetch@4.0.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-3ONhZxPmgCerBi8rU9kDQktF2zMpv7gkVJuoR8I+pYeO4QWccEcqQem0i1mLBh7/y7ejR474RZb3S3EO/Sdi3A==","shasum":"1a086c0066462fee196420748c283389c66fd5aa","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.0.2.tgz","fileCount":14,"unpackedSize":74053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkE39CRA9TVsSAnZWagAAXa8P/21YykU0/i9rVaGLKx9r\nniQY/QTEzemkxjDZnEfVLf11NhzPpB7dOGpGhGzJSjbRpOeo3FVcfe0GQ4oh\n/yZj7SyhoWoU/ChdbaHM9Sz1c9ezQJMuGKxrIekNl0I4SKvhqZDBjU4iTaNn\n1NFnT/a1dL8kZp6KVl4ueIwd5TKkCM9aeLyhfNc6ODCFFQ9BZmDgrwLbrILS\nCJ289VH2mLRXZxep+eKtGpcJ++aJXwuuccvYTH3M6c77wrkQz2X1BQihiaN1\nvTY3HjMBZZaTMBqgsty1Y9Y5Q6t32BXShgRE7wzzYFZKkL1FFnZyW9ZvvR4X\nGZ4MbZb2hn5NKqF4xbe1nGAlNJB2FeD0BaEfS5xQMZqk6cY6QHqPEUesNqEy\nXXuOYToXVSgV20CSCj+47iSHeS2+bI5+YILQbpZOkTj231JqkDkfLAyRLnzr\nQbiwz9uwrC/SFjBeVwVeFtzBfRJi9ORFgbD/x2F5Hbzd+5pbqjotz+32b9ee\nLUIS/a1PQyhKE8jXJcYlZn+WwV8liG+lEa/msPim4OdmFuTf0gioVuD4ldxt\nVVEEu8ThjQDLZpX4mqH01v13QnzDCrG/4dUoEoZazFOLlsRpcoL8EYhvXVFB\n8S12RizJC3GHd+wRKeU2FHqM6g+HN8tpIpvpLDr4CWqidpMHY6gTxGKdaXIK\nF9PO\r\n=OCaS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwlMYxVQve4kmpw9ngRA2T6152spl7rMYxIAn9SAGCcgIhAPOYZn5oPqVPoJtkjmwb/1yixEkqjNC5bggs5ILmQ2Ec"}]},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.0.2_1603292668639_0.11922018281192237"},"_hasShrinkwrap":false},"4.1.0":{"name":"@d-fischer/cross-fetch","version":"4.1.0","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"prepare":"husky install"},"lint-staged":{"*.js":["make build","standard --fix"]},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"standard-version":{"skip":{"changelog":true}},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"2.6.7"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","@types/node":"14.14.37","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"3.1.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.58.2","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"f044f0549cac15b585c64a4f4bd595ea7b7f25e4","_id":"@d-fischer/cross-fetch@4.1.0","_nodeVersion":"17.2.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-HH87JacceXOANr5XuBuSIQmPRPOvOUPwU1JR0DLUT6A8jGcP0jq2YUAiFCyZ8VGwDbTjsD3CZFpWIp5o7mIFWQ==","shasum":"6a25d3244c5014ccd97a7f1056f7f7b619aca6a3","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.1.0.tgz","fileCount":14,"unpackedSize":74639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7adSCRA9TVsSAnZWagAAw60P/2bPYRGRCFT+bQWpoIlI\njTFKnxwUpp64EK+0g0/aR1gpJYm8QcCa2EfphNTg8SK9VBE/vGRBKOH0khPZ\nsDEYSna2O6kVkrF6wiG+QosOUyqQq0fkFD4ttGEpw0CyNCZofn8d9soLkDKa\njFX3HRnLvc767AtPNoS3d+YcGPHmrk0OZn/mRGUjxEBgZO/DZ0Q9INJVuc7n\nSpsgnJA7kwPjGlLuiYw4GCD65hp7/K53hhHFst5nQCC5n8K2gFuXQmpkyS3z\nY/27Eyf8LAmQVxKGU512E7qBhjXrkwQo/0E1Cmuy0XwDLhopjraOzlPjraXG\negnJ7KNrOaadmnmoDuzrQgxnmrHqSHfBGZQ3qj6Ax1/NByKahYTQP/xy6MI/\nyijCwxLFjjStySJLP1eCub16JagSjk065AqSKNLWz2SH7Jc3lwcuinmMFYAZ\nUOUXD8N/2200M2787X3ELDH8lMAiCOPFMSEvGuutOII9cyH8vvdj6f1UCZLQ\nDN8CHq2fHZWEYD6aEbWYQ2tE3mguO6pqWH0dZXDaa2BZNrCSl7hlmzlXTo4K\nepb7VKwdrOQ3hw+vNiYQfRzFXZT93+AwuVxCL4NwLq8ujiHm642T5AGpRn99\nefdljwVheyd5JSs7sbL8siWAwp6idnioXFqS06146ZN9VoWIldTCBbM3zpOE\natgd\r\n=4iOX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6OcdfYMCuPWl2czkpXGYRtHMEzL2akNrwKW3BiSDZvgIgAS+lE4rWnDah2bch61ODANzSFn5wDsz0iP0+sPfHiaQ="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.1.0_1642964818297_0.49574463848412464"},"_hasShrinkwrap":false},"4.2.0":{"name":"@d-fischer/cross-fetch","version":"4.2.0","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.11"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","@types/node":"14.14.37","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"58d6cd5839eb0ba5062dcc052a1b475a3de67105","_id":"@d-fischer/cross-fetch@4.2.0","_nodeVersion":"18.15.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-D7lFEGbsANGPkug4yf3Y/QWGrhoQvRz0f9J7NGhN1GRfjiBi9LP+2Uwaog7OQCJBezoEEeS5eCw1fpFSVUjO1Q==","shasum":"3f0ab82f24bdab3077eaf6f536ca6362fefadc01","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.2.0.tgz","fileCount":13,"unpackedSize":74381,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJWPnBMqU5Dkcc3l4nqGQfojJT1XuNRZ0Nn70JUwmx+AiEAuCxqWxQK5A7PrvacwOKEDogOgP/UgedFuXSY/BAZ9tc="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.2.0_1684700877044_0.03744327139692305"},"_hasShrinkwrap":false},"5.0.0":{"name":"@d-fischer/cross-fetch","version":"5.0.0","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.11"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"a306c14a4f5f951e009bf1259a2d28926db4a6a0","_id":"@d-fischer/cross-fetch@5.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-Yr+QEfkoQCk+wKhcHXquBt1ARTc7DuvNqPQUEf/lQWW/GuPmTQWxNzLlrFLu1vmKYk/GWYI72/KQiWsUFHII2Q==","shasum":"22c1700923e2b8b9772d422c532728689d0e2cb0","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.0.tgz","fileCount":13,"unpackedSize":77550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUC7b1a+WrAPmw8FRfkLBztF+M/kKyVjwURkfXflBpyQIgIELEpapIyDlqjjfcypgOzBcLwr1fY6E4pRKOjxUrYvA="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.0_1684702849235_0.8458553047908952"},"_hasShrinkwrap":false},"5.0.1":{"name":"@d-fischer/cross-fetch","version":"5.0.1","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.11"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"773cfa0910c48f842a9fe0900f37b2974d94b49e","_id":"@d-fischer/cross-fetch@5.0.1","_nodeVersion":"18.15.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-CAiR+faFPwJ6g9aIm4Wthx+CI+vSNTd9jLwKzMBU3LbS7Yto1PMqXEOXeol/O+a0YFkPHcnWEUzj+qofhnrwrQ==","shasum":"c301e24e5f32028c8de63311a1981f8fb4a7f2fc","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.1.tgz","fileCount":13,"unpackedSize":77612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAwmuFB6YDRUXMrxMXbWL1zQkGsoMmd7NPlug5k3yTEQIhAKpASiroWWUBhA1MPw5rqr8fY16Mm1WCjnXu2fwcQAVN"}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.1_1684703133249_0.8531106676193938"},"_hasShrinkwrap":false},"5.0.2":{"name":"@d-fischer/cross-fetch","version":"5.0.2","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.11"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"2346a5c24c7e37db07c4e97296d8a0641d356c94","_id":"@d-fischer/cross-fetch@5.0.2","_nodeVersion":"18.15.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-Y+Q2mKaVvZ0ouWnaSwhiLZAOEeh1r7rivNMSzD6TBXi2D8VNwSBu6j4TDnX4oHca6jjm9h8e2Ic9Heguz40f6Q==","shasum":"e0a469f854606c0a9f905af725132b246015e2e3","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.2.tgz","fileCount":14,"unpackedSize":78118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICbtAGC+IQp2TzeWigPfcJWjJcTaJVo2mAOVTIUnWlXUAiEA6Tms2EBDNJ06iUOcaB0PEpJgZgYN4z5rTA43f5SXIt4="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.2_1684741364915_0.8185649335676692"},"_hasShrinkwrap":false},"4.2.1":{"name":"@d-fischer/cross-fetch","version":"4.2.1","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.11"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","@types/node":"14.14.37","body-parser":"1.19.0","chai":"4.3.4","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"readme":"cross-fetch<br>\n[![NPM Version](https://img.shields.io/npm/v/cross-fetch.svg?branch=main)](https://www.npmjs.com/package/cross-fetch)\n[![Downloads Per Week](https://img.shields.io/npm/dw/cross-fetch.svg?color=blue)](https://www.npmjs.com/package/cross-fetch)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml/badge.svg)](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/lquixada/cross-fetch/branch/main/graph/badge.svg)](https://codecov.io/gh/lquixada/cross-fetch)\n================\n\nUniversal WHATWG Fetch API for Node, Browsers and React Native. The scenario that cross-fetch really shines is when the same JavaScript codebase needs to run on different platforms.\n\n- **Platform agnostic**: browsers, Node or React Native\n- **Optional polyfill**: it's up to you if something is going to be added to the global object or not\n- **Simple interface**: no instantiation, no configuration and no extra dependency\n- **WHATWG compliant**: it works the same way wherever your code runs\n- **TypeScript support**: better development experience with types.\n\n\n* * *\n\n## Table of Contents\n\n-   [Install](#install)\n-   [Usage](#usage)\n-   [Demo & API](#demo--api)\n-   [FAQ](#faq)\n-   [Thanks](#thanks)\n-   [License](#license)\n-   [Author](#author)\n\n* * *\n\n## Install\n\n```sh\nnpm install --save cross-fetch\n```\n\nAs a [ponyfill](https://github.com/sindresorhus/ponyfill):\n\n```javascript\n// Using ES6 modules with Babel or TypeScript\nimport fetch from 'cross-fetch';\n\n// Using CommonJS modules\nconst fetch = require('cross-fetch');\n```\n\nAs a polyfill:\n\n```javascript\n// Using ES6 modules\nimport 'cross-fetch/polyfill';\n\n// Using CommonJS modules\nrequire('cross-fetch/polyfill');\n```\n\n\nThe CDN build is also available on unpkg:\n\n```html\n<script src=\"//unpkg.com/cross-fetch/dist/cross-fetch.js\"></script>\n```\n\nThis adds the fetch function to the window object. Note that this is not UMD compatible.\n\n\n* * *\n\n## Usage\n\nWith [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise):\n\n```javascript\nimport fetch from 'cross-fetch';\n// Or just: import 'cross-fetch/polyfill';\n\nfetch('//api.github.com/users/lquixada')\n  .then(res => {\n    if (res.status >= 400) {\n      throw new Error(\"Bad response from server\");\n    }\n    return res.json();\n  })\n  .then(user => {\n    console.log(user);\n  })\n  .catch(err => {\n    console.error(err);\n  });\n```\n\nWith [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):\n\n```javascript\nimport fetch from 'cross-fetch';\n// Or just: import 'cross-fetch/polyfill';\n\n(async () => {\n  try {\n    const res = await fetch('//api.github.com/users/lquixada');\n    \n    if (res.status >= 400) {\n      throw new Error(\"Bad response from server\");\n    }\n    \n    const user = await res.json();\n  \n    console.log(user);\n  } catch (err) {\n    console.error(err);\n  }\n})();\n```\n\n> ⚠️ **Warning**: If you're in an environment that doesn't support Promises such as Internet Explorer, you must install an ES6 Promise compatible polyfill. [es6-promise](https://github.com/jakearchibald/es6-promise) is suggested.\n\n\n## Demo & API\n\nYou can find a comprehensive doc at [Github's fetch](https://github.github.io/fetch/) page. If you want to play with cross-fetch, check our [**JSFiddle playground**](https://jsfiddle.net/lquixada/3ypqgacp/).\n\n> **Tip**: Run the fiddle on various browsers and with different settings (for instance: cross-domain requests, wrong urls or text requests). Don't forget to open the console in the test suite page and play around.\n\n\n## FAQ\n\n#### Yet another fetch library?\n\nI did a lot of research in order to find a fetch library that could be simple, cross-platform and provide polyfill as an option. There's a plethora of libs out there but none could match those requirements.\n\n\n#### Why not isomorphic-fetch?\n\nMy preferred library used to be [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) but it has this [bug](https://github.com/matthew-andrews/isomorphic-fetch/issues/125) that prevents it from running in a react native environment. It seems unlikely to be fixed since there haven't been any new commits to it since 2016. That means dependencies are outdated as well. \n\n\n#### Why polyfill might not be a good idea?\n\nIn a word? Risk. If the spec changes in the future, it might be problematic to debug. Read more about it on [sindresorhus's ponyfill](https://github.com/sindresorhus/ponyfill#how-are-ponyfills-better-than-polyfills) page. It's up to you if you're fine with it or not.\n\n\n#### How does cross-fetch work?\n\nJust like isomorphic-fetch, it is just a proxy. If you're in node, it delivers you the [node-fetch](https://github.com/bitinn/node-fetch/) library, if you're in a browser or React Native, it delivers you the github's [whatwg-fetch](https://github.com/github/fetch/). The same strategy applies whether you're using polyfill or ponyfill.\n\n\n## Who's Using It?\n\n|[![The New York Times](./docs/images/logo-nytimes.png)](https://www.nytimes.com/)|[![Apollo GraphQL](./docs/images/logo-apollo.png)](https://github.com/apollographql/apollo-client/)|[![Facebook](./docs/images/logo-facebook.png)](https://github.com/facebook/fbjs/)|[![Swagger](./docs/images/logo-swagger.png)](https://swagger.io/)|[![VulcanJS](./docs/images/logo-vulcanjs.png)](http://vulcanjs.org)|[![graphql-request](./docs/images/logo-graphql-request.png)](https://github.com/prisma/graphql-request)|\n|:---:|:---:|:---:|:---:|:---:|:---:|\n|The New York Times|Apollo GraphQL|Facebook|Swagger|VulcanJS|graphql-request|\n\n\n## Thanks\n\nHeavily inspired by the works of [matthew-andrews](https://github.com/matthew-andrews). Kudos to him!\n\n\n## License\n\ncross-fetch is licensed under the [MIT license](https://github.com/lquixada/cross-fetch/blob/main/LICENSE) © [Leonardo Quixadá](https://twitter.com/lquixada/)\n\n\n## Author\n\n|[![@lquixada](https://avatars0.githubusercontent.com/u/195494?v=4&s=96)](https://github.com/lquixada)|\n|:---:|\n|[@lquixada](http://www.github.com/lquixada)|\n","readmeFilename":"README.md","gitHead":"207a742bc5cf9d79357885bfe01b1d3dd11837fb","_id":"@d-fischer/cross-fetch@4.2.1","_nodeVersion":"18.15.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-/tvOWaOFBW2NyLCuJ0Tf2wFaEqZudT9osF/2A7/K4NU+g7MAQfOAEMUizKtg3TTrEfwWLjGic3oOBdbmR3WBKg==","shasum":"9ecd936f0a365612404d324d0fc6d6c4ee44f46d","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.2.1.tgz","fileCount":14,"unpackedSize":74887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDznjsRXedyHRYxgovXX/VNtM+okDswTn+hdJus6G0YWQIhAI6S+tC8evqjEEBuRgm2XOwb+H0yjuWsTLWssErwTjpC"}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_4.2.1_1684741505377_0.6762016217718507"},"_hasShrinkwrap":false},"5.0.3":{"name":"@d-fischer/cross-fetch","version":"5.0.3","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.12"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.10","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"04de9a1cb9896a929631ec0a44494c25e2d71d04","_id":"@d-fischer/cross-fetch@5.0.3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-PAxxY2MJff3DUZP6uYWAo0gvp7lGry8SjZ07H661RBnJviy91o+NWR5C7E67dMvrSGvfA1kZC0xrwk+v4eTcMA==","shasum":"f17ab1b71bc58b30ac7a576412cac01af3a60e81","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.3.tgz","fileCount":14,"unpackedSize":78085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJLLE5E3mkk3GCx5rtmfbEp38i+TRxchtTQbmU0pCgSgIgZOxAbKRhchhWbdx3u+h/00IsbriuXob8xGzyVImOSos="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.3_1701290136953_0.9731667960304433"},"_hasShrinkwrap":false},"5.0.4":{"name":"@d-fischer/cross-fetch","version":"5.0.4","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"types":"./index.d.ts","require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.12"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.10","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"gitHead":"ce01404fc5d4e883e60df8a03704201adcbb5b9e","_id":"@d-fischer/cross-fetch@5.0.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-u2IBCipsiE8565AbepyOrIk2LGuaIMr5ARFHHYmGmY9dp2HfX2iMqiLjPz0DnxH3ZBalYA4IxzxcstcgLIWRag==","shasum":"27e62d9b4ff9a37e8cbc4f1a62aa5fd6c262d59b","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.4.tgz","fileCount":14,"unpackedSize":78116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEj9QKuPFVU5AYD92AgTVXLVtiEGegAqwbywtBS5CIACAiEAr4IhiM7YFq0m3nvo4NbL0tDffHGeUD1g/SlR2wrdJDs="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.4_1702201616389_0.582546488301317"},"_hasShrinkwrap":false},"5.0.5":{"name":"@d-fischer/cross-fetch","version":"5.0.5","description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","main":"dist/node-ponyfill.js","browser":"dist/browser-ponyfill.js","exports":{".":{"types":"./index.d.ts","browser":"./dist/browser-ponyfill.js","require":"./dist/node-ponyfill.js","import":"./dist/node-ponyfill.mjs"},"./polyfill":{"browser":"./dist/browser-polyfill.js","require":"./dist/node-polyfill.js","import":"./dist/node-polyfill.js"}},"sideEffects":["./dist/node-polyfill.js","./dist/browser-polyfill.js"],"react-native":"dist/react-native-ponyfill.js","types":"index.d.ts","scripts":{"commit":"cz","prepare":"husky install","prepublishOnly":"rimraf dist && make build"},"lint-staged":{"*.js":["standard --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"standard":{"env":["mocha","browser"],"globals":["expect","assert","chai"],"ignore":["/dist/","bundle.js","test.js","test.*.js","api.spec.js","*.ts"]},"mocha":{"require":["chai/register-expect","chai/register-assert"],"check-leaks":true},"nyc":{"temp-dir":".reports/.coverage"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"license":"MIT","bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"dependencies":{"node-fetch":"^2.6.12"},"devDependencies":{"@commitlint/cli":"12.0.1","@commitlint/config-conventional":"12.0.1","@types/chai":"4.2.22","@types/mocha":"8.2.2","body-parser":"1.19.0","chai":"4.3.10","codecov":"3.8.3","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","express":"4.17.1","husky":"6.0.0","lint-staged":"10.5.4","mocha":"8.3.2","mocha-headless-chrome":"4.0.0","nock":"13.1.3","nyc":"15.1.0","open-cli":"6.0.1","rimraf":"3.0.2","rollup":"2.58.0","rollup-plugin-copy":"3.4.0","rollup-plugin-terser":"7.0.2","semver":"7.3.5","serve-index":"1.9.1","standard":"16.0.4","standard-version":"9.3.1","typescript":"4.4.4","webpack":"5.82.1","webpack-cli":"4.9.0","whatwg-fetch":"3.0.0","yargs":"16.2.0"},"keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"_id":"@d-fischer/cross-fetch@5.0.5","gitHead":"6e00cf64801421c1e1128414f06cb45446de5792","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-symjDUPInTrkfIsZc2n2mo9hiAJLcTJsZkNICjZajEWnWpJ3s3zn50/FY8xpNUAf5w3eFuQii2wxztTGpvG1Xg==","shasum":"5905ac512e8e14110de8d4b92c0c4e7da0e6b5d9","tarball":"https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-5.0.5.tgz","fileCount":14,"unpackedSize":78244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1MIxeMrmB2tZMdcA8KSq6wvhPbjLiZevvZa0DYitBvAiBWeTyxENdaW7R7iygds3kmcdgxRsLkMz3p2iC7kCMC9w=="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-fetch_5.0.5_1707682758251_0.1135133766101355"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-02T18:39:30.493Z","4.0.0":"2020-04-02T18:39:30.876Z","modified":"2024-02-11T20:19:18.601Z","4.0.1":"2020-04-02T19:42:44.955Z","4.0.2":"2020-10-21T15:04:28.758Z","4.1.0":"2022-01-23T19:06:58.424Z","4.2.0":"2023-05-21T20:27:57.272Z","5.0.0":"2023-05-21T21:00:49.468Z","5.0.1":"2023-05-21T21:05:33.432Z","5.0.2":"2023-05-22T07:42:45.082Z","4.2.1":"2023-05-22T07:45:05.565Z","5.0.3":"2023-11-29T20:35:37.181Z","5.0.4":"2023-12-10T09:46:56.627Z","5.0.5":"2024-02-11T20:19:18.429Z"},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"description":"Universal WHATWG Fetch API for Node, Browsers and React Native","homepage":"https://github.com/d-fischer/cross-fetch","keywords":["fetch","http","url","promise","async","await","isomorphic","universal","node","react","native","browser","ponyfill","whatwg","xhr","ajax"],"repository":{"type":"git","url":"git+https://github.com/d-fischer/cross-fetch.git"},"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"bugs":{"url":"https://github.com/d-fischer/cross-fetch/issues"},"license":"MIT","readme":"cross-fetch<br>\n[![NPM Version](https://img.shields.io/npm/v/cross-fetch.svg?branch=main)](https://www.npmjs.com/package/cross-fetch)\n[![Downloads Per Week](https://img.shields.io/npm/dw/cross-fetch.svg?color=blue)](https://www.npmjs.com/package/cross-fetch)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml/badge.svg)](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/lquixada/cross-fetch/branch/main/graph/badge.svg)](https://codecov.io/gh/lquixada/cross-fetch)\n================\n\nUniversal WHATWG Fetch API for Node, Browsers and React Native. The scenario that cross-fetch really shines is when the same JavaScript codebase needs to run on different platforms.\n\n- **Platform agnostic**: browsers, Node or React Native\n- **Optional polyfill**: it's up to you if something is going to be added to the global object or not\n- **Simple interface**: no instantiation, no configuration and no extra dependency\n- **WHATWG compliant**: it works the same way wherever your code runs\n- **TypeScript support**: better development experience with types.\n\n\n* * *\n\n## Table of Contents\n\n-   [Install](#install)\n-   [Usage](#usage)\n-   [Demo & API](#demo--api)\n-   [FAQ](#faq)\n-   [Thanks](#thanks)\n-   [License](#license)\n-   [Author](#author)\n\n* * *\n\n## Install\n\n```sh\nnpm install --save cross-fetch\n```\n\nAs a [ponyfill](https://github.com/sindresorhus/ponyfill):\n\n```javascript\n// Using ES6 modules with Babel or TypeScript\nimport fetch from 'cross-fetch';\n\n// Using CommonJS modules\nconst fetch = require('cross-fetch');\n```\n\nAs a polyfill:\n\n```javascript\n// Using ES6 modules\nimport 'cross-fetch/polyfill';\n\n// Using CommonJS modules\nrequire('cross-fetch/polyfill');\n```\n\n\nThe CDN build is also available on unpkg:\n\n```html\n<script src=\"//unpkg.com/cross-fetch/dist/cross-fetch.js\"></script>\n```\n\nThis adds the fetch function to the window object. Note that this is not UMD compatible.\n\n\n* * *\n\n## Usage\n\nWith [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise):\n\n```javascript\nimport fetch from 'cross-fetch';\n// Or just: import 'cross-fetch/polyfill';\n\nfetch('//api.github.com/users/lquixada')\n  .then(res => {\n    if (res.status >= 400) {\n      throw new Error(\"Bad response from server\");\n    }\n    return res.json();\n  })\n  .then(user => {\n    console.log(user);\n  })\n  .catch(err => {\n    console.error(err);\n  });\n```\n\nWith [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):\n\n```javascript\nimport fetch from 'cross-fetch';\n// Or just: import 'cross-fetch/polyfill';\n\n(async () => {\n  try {\n    const res = await fetch('//api.github.com/users/lquixada');\n    \n    if (res.status >= 400) {\n      throw new Error(\"Bad response from server\");\n    }\n    \n    const user = await res.json();\n  \n    console.log(user);\n  } catch (err) {\n    console.error(err);\n  }\n})();\n```\n\n> ⚠️ **Warning**: If you're in an environment that doesn't support Promises such as Internet Explorer, you must install an ES6 Promise compatible polyfill. [es6-promise](https://github.com/jakearchibald/es6-promise) is suggested.\n\n\n## Demo & API\n\nYou can find a comprehensive doc at [Github's fetch](https://github.github.io/fetch/) page. If you want to play with cross-fetch, check our [**JSFiddle playground**](https://jsfiddle.net/lquixada/3ypqgacp/).\n\n> **Tip**: Run the fiddle on various browsers and with different settings (for instance: cross-domain requests, wrong urls or text requests). Don't forget to open the console in the test suite page and play around.\n\n\n## FAQ\n\n#### Yet another fetch library?\n\nI did a lot of research in order to find a fetch library that could be simple, cross-platform and provide polyfill as an option. There's a plethora of libs out there but none could match those requirements.\n\n\n#### Why not isomorphic-fetch?\n\nMy preferred library used to be [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) but it has this [bug](https://github.com/matthew-andrews/isomorphic-fetch/issues/125) that prevents it from running in a react native environment. It seems unlikely to be fixed since there haven't been any new commits to it since 2016. That means dependencies are outdated as well. \n\n\n#### Why polyfill might not be a good idea?\n\nIn a word? Risk. If the spec changes in the future, it might be problematic to debug. Read more about it on [sindresorhus's ponyfill](https://github.com/sindresorhus/ponyfill#how-are-ponyfills-better-than-polyfills) page. It's up to you if you're fine with it or not.\n\n\n#### How does cross-fetch work?\n\nJust like isomorphic-fetch, it is just a proxy. If you're in node, it delivers you the [node-fetch](https://github.com/bitinn/node-fetch/) library, if you're in a browser or React Native, it delivers you the github's [whatwg-fetch](https://github.com/github/fetch/). The same strategy applies whether you're using polyfill or ponyfill.\n\n\n## Who's Using It?\n\n|[![The New York Times](./docs/images/logo-nytimes.png)](https://www.nytimes.com/)|[![Apollo GraphQL](./docs/images/logo-apollo.png)](https://github.com/apollographql/apollo-client/)|[![Facebook](./docs/images/logo-facebook.png)](https://github.com/facebook/fbjs/)|[![Swagger](./docs/images/logo-swagger.png)](https://swagger.io/)|[![VulcanJS](./docs/images/logo-vulcanjs.png)](http://vulcanjs.org)|[![graphql-request](./docs/images/logo-graphql-request.png)](https://github.com/prisma/graphql-request)|\n|:---:|:---:|:---:|:---:|:---:|:---:|\n|The New York Times|Apollo GraphQL|Facebook|Swagger|VulcanJS|graphql-request|\n\n\n## Thanks\n\nHeavily inspired by the works of [matthew-andrews](https://github.com/matthew-andrews). Kudos to him!\n\n\n## License\n\ncross-fetch is licensed under the [MIT license](https://github.com/lquixada/cross-fetch/blob/main/LICENSE) © [Leonardo Quixadá](https://twitter.com/lquixada/)\n\n\n## Author\n\n|[![@lquixada](https://avatars0.githubusercontent.com/u/195494?v=4&s=96)](https://github.com/lquixada)|\n|:---:|\n|[@lquixada](http://www.github.com/lquixada)|\n","readmeFilename":"README.md"}