57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
|
{
|
||
|
"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": "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"
|
||
|
},
|
||
|
"files": [
|
||
|
"fetch-node.js",
|
||
|
"build/fetch-browser.js",
|
||
|
"index.d.ts"
|
||
|
]
|
||
|
}
|