package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "name": "node-fetch-native",
  3. "version": "1.6.2",
  4. "description": "better fetch for Node.js. Works on any JavaScript runtime!",
  5. "repository": "unjs/node-fetch-native",
  6. "license": "MIT",
  7. "type": "module",
  8. "exports": {
  9. ".": {
  10. "browser": "./dist/native.mjs",
  11. "bun": "./dist/native.mjs",
  12. "deno": "./dist/native.mjs",
  13. "edge-light": "./dist/native.mjs",
  14. "edge-routine": "./dist/native.mjs",
  15. "lagon": "./dist/native.mjs",
  16. "netlify": "./dist/native.mjs",
  17. "react-native": "./dist/native.mjs",
  18. "wintercg": "./dist/native.mjs",
  19. "worker": "./dist/native.mjs",
  20. "workerd": "./dist/native.mjs",
  21. "node": {
  22. "import": {
  23. "types": "./lib/index.d.mts",
  24. "default": "./dist/index.mjs"
  25. },
  26. "require": {
  27. "types": "./lib/index.d.cts",
  28. "default": "./lib/index.cjs"
  29. }
  30. },
  31. "types": "./lib/index.d.mts",
  32. "import": "./dist/native.mjs",
  33. "require": "./dist/native.cjs",
  34. "default": "./dist/native.mjs"
  35. },
  36. "./polyfill": {
  37. "node": {
  38. "import": {
  39. "types": "./lib/polyfill.d.mts",
  40. "default": "./dist/polyfill.mjs"
  41. },
  42. "require": {
  43. "types": "./lib/polyfill.d.cts",
  44. "default": "./dist/polyfill.cjs"
  45. }
  46. },
  47. "types": "./lib/polyfill.d.mts",
  48. "import": "./lib/empty.mjs",
  49. "require": "./lib/empty.cjs",
  50. "default": "./lib/empty.mjs"
  51. },
  52. "./node": {
  53. "import": {
  54. "types": "./lib/index.d.mts",
  55. "default": "./dist/node.mjs"
  56. },
  57. "require": {
  58. "types": "./lib/index.d.cts",
  59. "default": "./dist/node.cjs"
  60. }
  61. },
  62. "./native": {
  63. "import": {
  64. "types": "./lib/index.d.mts",
  65. "default": "./dist/native.mjs"
  66. },
  67. "require": {
  68. "types": "./lib/index.d.cts",
  69. "default": "./lib/native.cjs"
  70. }
  71. },
  72. "./src/index.js": {
  73. "import": {
  74. "types": "./lib/index.d.mts",
  75. "default": "./dist/index.mjs"
  76. },
  77. "require": {
  78. "types": "./lib/index.d.cts",
  79. "default": "./lib/index.cjs"
  80. }
  81. },
  82. "./proxy": {
  83. "node": {
  84. "require": {
  85. "types": "./lib/proxy.d.ts",
  86. "default": "./dist/proxy.cjs"
  87. }
  88. },
  89. "default": {
  90. "import": {
  91. "types": "./lib/proxy.d.ts",
  92. "default": "./dist/proxy-stub.mjs"
  93. },
  94. "require": {
  95. "types": "./lib/proxy.d.ts",
  96. "default": "./dist/proxy-stub.cjs"
  97. }
  98. }
  99. }
  100. },
  101. "main": "./lib/index.cjs",
  102. "module": "./dist/index.mjs",
  103. "react-native": "./dist/native.mjs",
  104. "types": "./lib/index.d.mts",
  105. "files": [
  106. "dist",
  107. "lib",
  108. "index.d.ts",
  109. "node.d.ts",
  110. "polyfill.d.ts",
  111. "proxy.d.ts"
  112. ],
  113. "scripts": {
  114. "build": "unbuild",
  115. "lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c src test lib",
  116. "lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w src test lib",
  117. "prepack": "unbuild",
  118. "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
  119. "test": "pnpm lint && pnpm build && vitest run --coverage"
  120. },
  121. "devDependencies": {
  122. "@types/node": "^20.11.16",
  123. "@vitest/coverage-v8": "^1.2.2",
  124. "abort-controller": "^3.0.0",
  125. "agent-base": "^7.1.0",
  126. "changelogen": "^0.5.5",
  127. "eslint": "^8.56.0",
  128. "eslint-config-unjs": "^0.2.1",
  129. "http-proxy-agent": "^7.0.0",
  130. "https-proxy-agent": "^7.0.2",
  131. "node-fetch": "^3.3.2",
  132. "prettier": "^3.2.5",
  133. "proxy-agent": "^6.3.1",
  134. "typescript": "^5.3.3",
  135. "unbuild": "^2.0.0",
  136. "undici": "^6.6.2",
  137. "vitest": "^1.2.2"
  138. },
  139. "packageManager": "pnpm@8.15.1"
  140. }