123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- {
- "name": "node-fetch-native",
- "version": "1.6.2",
- "description": "better fetch for Node.js. Works on any JavaScript runtime!",
- "repository": "unjs/node-fetch-native",
- "license": "MIT",
- "type": "module",
- "exports": {
- ".": {
- "browser": "./dist/native.mjs",
- "bun": "./dist/native.mjs",
- "deno": "./dist/native.mjs",
- "edge-light": "./dist/native.mjs",
- "edge-routine": "./dist/native.mjs",
- "lagon": "./dist/native.mjs",
- "netlify": "./dist/native.mjs",
- "react-native": "./dist/native.mjs",
- "wintercg": "./dist/native.mjs",
- "worker": "./dist/native.mjs",
- "workerd": "./dist/native.mjs",
- "node": {
- "import": {
- "types": "./lib/index.d.mts",
- "default": "./dist/index.mjs"
- },
- "require": {
- "types": "./lib/index.d.cts",
- "default": "./lib/index.cjs"
- }
- },
- "types": "./lib/index.d.mts",
- "import": "./dist/native.mjs",
- "require": "./dist/native.cjs",
- "default": "./dist/native.mjs"
- },
- "./polyfill": {
- "node": {
- "import": {
- "types": "./lib/polyfill.d.mts",
- "default": "./dist/polyfill.mjs"
- },
- "require": {
- "types": "./lib/polyfill.d.cts",
- "default": "./dist/polyfill.cjs"
- }
- },
- "types": "./lib/polyfill.d.mts",
- "import": "./lib/empty.mjs",
- "require": "./lib/empty.cjs",
- "default": "./lib/empty.mjs"
- },
- "./node": {
- "import": {
- "types": "./lib/index.d.mts",
- "default": "./dist/node.mjs"
- },
- "require": {
- "types": "./lib/index.d.cts",
- "default": "./dist/node.cjs"
- }
- },
- "./native": {
- "import": {
- "types": "./lib/index.d.mts",
- "default": "./dist/native.mjs"
- },
- "require": {
- "types": "./lib/index.d.cts",
- "default": "./lib/native.cjs"
- }
- },
- "./src/index.js": {
- "import": {
- "types": "./lib/index.d.mts",
- "default": "./dist/index.mjs"
- },
- "require": {
- "types": "./lib/index.d.cts",
- "default": "./lib/index.cjs"
- }
- },
- "./proxy": {
- "node": {
- "require": {
- "types": "./lib/proxy.d.ts",
- "default": "./dist/proxy.cjs"
- }
- },
- "default": {
- "import": {
- "types": "./lib/proxy.d.ts",
- "default": "./dist/proxy-stub.mjs"
- },
- "require": {
- "types": "./lib/proxy.d.ts",
- "default": "./dist/proxy-stub.cjs"
- }
- }
- }
- },
- "main": "./lib/index.cjs",
- "module": "./dist/index.mjs",
- "react-native": "./dist/native.mjs",
- "types": "./lib/index.d.mts",
- "files": [
- "dist",
- "lib",
- "index.d.ts",
- "node.d.ts",
- "polyfill.d.ts",
- "proxy.d.ts"
- ],
- "scripts": {
- "build": "unbuild",
- "lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c src test lib",
- "lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w src test lib",
- "prepack": "unbuild",
- "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
- "test": "pnpm lint && pnpm build && vitest run --coverage"
- },
- "devDependencies": {
- "@types/node": "^20.11.16",
- "@vitest/coverage-v8": "^1.2.2",
- "abort-controller": "^3.0.0",
- "agent-base": "^7.1.0",
- "changelogen": "^0.5.5",
- "eslint": "^8.56.0",
- "eslint-config-unjs": "^0.2.1",
- "http-proxy-agent": "^7.0.0",
- "https-proxy-agent": "^7.0.2",
- "node-fetch": "^3.3.2",
- "prettier": "^3.2.5",
- "proxy-agent": "^6.3.1",
- "typescript": "^5.3.3",
- "unbuild": "^2.0.0",
- "undici": "^6.6.2",
- "vitest": "^1.2.2"
- },
- "packageManager": "pnpm@8.15.1"
- }
|