package.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "node-fetch",
  3. "version": "2.7.0",
  4. "description": "A light-weight module that brings window.fetch to node.js",
  5. "main": "lib/index.js",
  6. "browser": "./browser.js",
  7. "module": "lib/index.mjs",
  8. "files": [
  9. "lib/index.js",
  10. "lib/index.mjs",
  11. "lib/index.es.js",
  12. "browser.js"
  13. ],
  14. "engines": {
  15. "node": "4.x || >=6.0.0"
  16. },
  17. "scripts": {
  18. "build": "cross-env BABEL_ENV=rollup rollup -c",
  19. "prepare": "npm run build",
  20. "test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js",
  21. "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js",
  22. "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json"
  23. },
  24. "repository": {
  25. "type": "git",
  26. "url": "https://github.com/bitinn/node-fetch.git"
  27. },
  28. "keywords": [
  29. "fetch",
  30. "http",
  31. "promise"
  32. ],
  33. "author": "David Frank",
  34. "license": "MIT",
  35. "bugs": {
  36. "url": "https://github.com/bitinn/node-fetch/issues"
  37. },
  38. "homepage": "https://github.com/bitinn/node-fetch",
  39. "dependencies": {
  40. "whatwg-url": "^5.0.0"
  41. },
  42. "peerDependencies": {
  43. "encoding": "^0.1.0"
  44. },
  45. "peerDependenciesMeta": {
  46. "encoding": {
  47. "optional": true
  48. }
  49. },
  50. "devDependencies": {
  51. "@ungap/url-search-params": "^0.1.2",
  52. "abort-controller": "^1.1.0",
  53. "abortcontroller-polyfill": "^1.3.0",
  54. "babel-core": "^6.26.3",
  55. "babel-plugin-istanbul": "^4.1.6",
  56. "babel-plugin-transform-async-generator-functions": "^6.24.1",
  57. "babel-polyfill": "^6.26.0",
  58. "babel-preset-env": "1.4.0",
  59. "babel-register": "^6.16.3",
  60. "chai": "^3.5.0",
  61. "chai-as-promised": "^7.1.1",
  62. "chai-iterator": "^1.1.1",
  63. "chai-string": "~1.3.0",
  64. "codecov": "3.3.0",
  65. "cross-env": "^5.2.0",
  66. "form-data": "^2.3.3",
  67. "is-builtin-module": "^1.0.0",
  68. "mocha": "^5.0.0",
  69. "nyc": "11.9.0",
  70. "parted": "^0.1.1",
  71. "promise": "^8.0.3",
  72. "resumer": "0.0.0",
  73. "rollup": "^0.63.4",
  74. "rollup-plugin-babel": "^3.0.7",
  75. "string-to-arraybuffer": "^1.0.2",
  76. "teeny-request": "3.7.0"
  77. },
  78. "release": {
  79. "branches": [
  80. "+([0-9]).x",
  81. "main",
  82. "next",
  83. {
  84. "name": "beta",
  85. "prerelease": true
  86. }
  87. ]
  88. }
  89. }