{"name":"fetch-ponyfill","version":"7.1.0","description":"A ponyfill (doesn't overwrite the native fetch) for the Fetch specification https://fetch.spec.whatwg.org.","main":"fetch-node.js","browser":"build/fetch-browser.js","types":"./index.d.ts","config":{"web_port":"8088"},"scripts":{"test":"mocha tests/fetch-node.spec.js","lint":"eslint .","pretest:browserify":"npm run build && browserify tests/fetch-browser.spec.js --outfile build/browser-test-bundle.js","test:browserify":"testem ci","pretest:webpack":"npm run build && webpack --mode development --entry ./tests/fetch-browser.spec.js -o build/browser-test","test:webpack":"testem ci","pretest:webpack:node":"webpack --mode development --target node --entry ./tests/fetch-node.spec.js -o build/node-test","test:webpack:node":"mocha build/node-test/main.js","build":"rimraf build && mkdirp build && node build.js > build/fetch-browser.js","prepublishOnly":"npm run build"},"author":{"name":"Mark Stanley Everitt"},"repository":{"type":"git","url":"git://github.com/qubyte/fetch-ponyfill.git"},"license":"MIT","keywords":["fetch","ponyfill"],"dependencies":{"node-fetch":"~2.6.1"},"devDependencies":{"browserify":"^17.0.0","eslint":"^7.12.1","eslint-config-qubyte":"^3.0.0","mkdirp":"^1.0.4","mocha":"^8.2.0","nock":"^13.0.4","promise":"^8.1.0","rimraf":"^3.0.2","sinon":"^9.2.1","testem":"^3.2.0","webpack":"^5.3.0","webpack-cli":"^4.1.0","whatwg-fetch":"^3.5.0"},"gitHead":"ffaa834f7fe4cbe8cf1cd509894dc3c591c2f86d","bugs":{"url":"https://github.com/qubyte/fetch-ponyfill/issues"},"homepage":"https://github.com/qubyte/fetch-ponyfill#readme","_id":"fetch-ponyfill@7.1.0","_nodeVersion":"15.5.1","_npmVersion":"7.3.0","dist":{"integrity":"sha512-FhbbL55dj/qdVO3YNK7ZEkshvj3eQ7EuIGV2I6ic/2YiocvyWv+7jg2s4AyS0wdRU75s3tA8ZxI/xPigb0v5Aw==","shasum":"4266ed48b4e64663a50ab7f7fcb8e76f990526d0","tarball":"http://registry-npm.ywwl.com/fetch-ponyfill/download/fetch-ponyfill-7.1.0.tgz","fileCount":7,"unpackedSize":29744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBy6zCRA9TVsSAnZWagAAWocP/RLg/u2Okg3JWgW30QPe\n/8IMi9wWyW0Cw9XFsqIuSEQgsJm6zZfIjJyWFDw+9sGeI/hQTtMB3r6PGzny\naqXXNLV8vetdNTRkP66xwrBlMUy96/8gwVGgGYNXujswEQFaLjWnCDj6Xj/4\nDvxwUp47VI6PdaWCzOxybiFru8dBTGiwGz7EXAyi4qt4Sk2C/5pvrIHwOTdY\nHM5Uysh4zEXeqNK3Rh7NnCLOduUBXMp2YPzZTsyNbcldX0x9Y/kAhjWjqy1q\njEb89tu0T6HTR0YzXNJzeW223VZo2/gN5uLm/QHldHhSbzPtIo21RK6DwDuv\ntweNL2HKCr7doVrAQCBCptW/NoMSl9UzYX/ZrCghx9R5iG4O8WvfB3v4lSC3\nbYkqYj7B/O6tTApF9iw0tZ1bL3GzAHCt7hNPU62GxnAKkgKQJf8tICsHE0ON\n2ooIUZZ9pAvduBkPhMnQSMbX19uIcxFZp6eKno7wOTuuxJ9iylTzCIgB+Oq+\nNHwzr1n4Q9Ed4bC7JBcFVMTF93Uu/FdLpHTwm+fLXNg+re5r84YMGOoCfMlp\nTbodsNahFFSInYicEmbVaNC8rNVbOlucKpAL0fTsyKxUBCtVxsKcNM3gKLJt\nCwlOlfNbwb3Wux3GpB4t9uVcu937s2PFkQcqgVCbTX9g4ebTD/WbY86QFVzS\n2X5l\r\n=s3s4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQgShIQu81kaTrTNpO6amfRdA4wJ2iz3my0FljKSbCKAiA+sohIAtWMUTISgo9C0JFEwRrUL3+dS/xrQd8A7kmerQ=="}],"size":8482,"noattachment":false,"key":"/fetch-ponyfill/-/fetch-ponyfill-7.1.0.tgz"},"_npmUser":{"name":"qubyte","email":"mark.s.everitt@gmail.com"},"directories":{},"maintainers":[{"name":"qubyte","email":"mark.s.everitt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-ponyfill_7.1.0_1611083443222_0.02783756678707139"},"_hasShrinkwrap":false,"readme":"# Fetch Ponyfill\n\n> WHATWG `fetch` [ponyfill](https://ponyfill.com)\n\nThis module wraps the [github/fetch](https://github.com/github/fetch) polyfill in a CommonJS module\nfor browserification, and avoids appending anything to the window, instead returning a setup\nfunction when `fetch-ponyfill` is required. Inspired by\n[object-assign](https://github.com/sindresorhus/object-assign).\n\nWhen used in Node, delegates to `node-fetch` instead.\n\n## Usage\n\n### Browserify\n\n```javascript\nconst {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);\n```\n\n### Webpack\n\n```javascript\nimport fetchPonyfill from 'fetch-ponyfill';\nconst {fetch, Request, Response, Headers} = fetchPonyfill(options);\n```\n\n### Options\n\nWhere `options` is an object with the following optional properties:\n\n| option | description |\n| ------ | ----------- |\n| `Promise` | An A+ Promise implementation. Defaults to `window.Promise` in the browser, and `global.Promise` in Node. |\n| `XMLHttpRequest` | The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to `window.XMLHttpRequest`. Has no effect in Node. |\n","publish_time":1611083443427,"_cnpm_publish_time":1611083443427,"dist-tags":{"latest":"7.1.0"}}