{"name":"fetch-ponyfill","version":"7.0.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.4.1"},"gitHead":"7a30c4208bed2c3e24ef9341f0aded718cf85759","bugs":{"url":"https://github.com/qubyte/fetch-ponyfill/issues"},"homepage":"https://github.com/qubyte/fetch-ponyfill#readme","_id":"fetch-ponyfill@7.0.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ynRMX7w11EcG3sJSYTT2N6EUl0QsqWbyW3Xw5+DuLeA2uo/yhssb7JqnjamGQaHBUo/AOUsmTz6zeUX3cPvZsQ==","shasum":"5a53db6fc8c3e1901476f3e9b7b146a30a412594","tarball":"http://registry-npm.ywwl.com/fetch-ponyfill/download/fetch-ponyfill-7.0.0.tgz","fileCount":7,"unpackedSize":29267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmYCbCRA9TVsSAnZWagAA5O8P/iIXWbpuKaz19DjFLp/T\nNXL9NwGxAD0PmmNcV/TAj/LMi4BA3aQJdp4XImUXFL1iT4/bCxKY0SudLUFg\nHAicw8Tp3RmuI7jkdt6dCbgHD5XAUgI+2dJ6wVacYXCXan0bfwAi4dJrvLBZ\nzCka9SJeWxvs5Dc3u6yQMgPeekkYfIHlN8GyQsWSMOsDY199m8MBCDdnFHwX\nKKW5/AN0o4KsHpu7XEgO2lcSOM3sQsq6m4lMvqWL6yIBt69i9f1i/YJqsGDq\nV7F/SqHiTgHO45SSIdruw9pea5qZ0zD6enFY6Sr5uhz84vZUU3VY37cmkmbh\nCCgwXhm3/45k3MISIabQiUqr+AH+znSuJ0bbsPYQNd2WC+QLi2rihl306OCl\nYsfAWk0OYjK5plYHlmb7naQGkLmjGhwI3yWCzcXicOe8pv7UD+78EaWqTiCK\nhiNCgqBarBH21/duuwSz4/tlaZWP0hk0m6ovzLJOvlPQyVho/WASl8SdD3XW\nT+Qfyr/tv7BcPnrkpU9sABNyb6FU77q7BoXFNgMxON0D+I0GYB51GEZHF+LJ\nMZuKLVaZ6ny2Xe9u8dZsh9JjYR93V+T8t0Cs8DI6B/7xt2ZZSmC8RqEMVcPY\n7pozdJW+vFBZFpGQqxhv6b7P0J+O0f3BwX7LFNNLCnbajdEbL7ZyzuSJxC5z\nszsg\r\n=cAvq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy1veLQyiNgUCbRzp4tQ6c2tO/magkr0FXhMsE1exp0wIhAI5ORiqi2GfcgIIUwHX3vgxTzlOtmuNKB0PzG7/eNAuG"}],"size":8318,"noattachment":false,"key":"/fetch-ponyfill/-/fetch-ponyfill-7.0.0.tgz"},"maintainers":[{"name":"qubyte","email":"mark.s.everitt@gmail.com"}],"_npmUser":{"name":"qubyte","email":"mark.s.everitt@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-ponyfill_7.0.0_1603895450411_0.23948799977568447"},"_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":1603895450532,"_cnpm_publish_time":1603895450532,"dist-tags":{"latest":"7.1.0"}}