Mirror: A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)
at main 2.7 kB view raw
1{ 2 "name": "fetch-nodeshim", 3 "version": "0.3.0", 4 "description": "A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)", 5 "author": "Phil Pluckthun <phil@kitten.sh>", 6 "source": "./src/index.ts", 7 "main": "./dist/minifetch", 8 "module": "./dist/minifetch.mjs", 9 "types": "./dist/minifetch.d.ts", 10 "files": [ 11 "LICENSE.md", 12 "README.md", 13 "CHANGELOG.md", 14 "dist/" 15 ], 16 "scripts": { 17 "test": "vitest test", 18 "test:run": "vitest test --run", 19 "build": "rollup -c ./scripts/rollup.config.mjs", 20 "postbuild": "tsc --noEmit ./dist/minifetch.d.ts", 21 "check": "tsc --noEmit", 22 "check:node18": "tsc --noEmit -p ./tsconfig-node18.json", 23 "check:node20": "tsc --noEmit -p ./tsconfig-node20.json", 24 "check:all": "run-s check check:node18 check:node20", 25 "clean": "rimraf dist node_modules/.cache", 26 "prepublishOnly": "run-s clean build check:all test:run", 27 "prepare": "node ./scripts/prepare.js || true", 28 "changeset:version": "changeset version && pnpm install --lockfile-only", 29 "changeset:publish": "changeset publish" 30 }, 31 "exports": { 32 ".": { 33 "types": "./dist/minifetch.d.ts", 34 "import": "./dist/minifetch.mjs", 35 "require": "./dist/minifetch.js", 36 "source": "./src/index.ts" 37 }, 38 "./package.json": "./package.json" 39 }, 40 "prettier": { 41 "singleQuote": true, 42 "arrowParens": "avoid", 43 "trailingComma": "es5" 44 }, 45 "lint-staged": { 46 "*.{js,ts,json,md}": "prettier --write" 47 }, 48 "keywords": [], 49 "license": "MIT", 50 "repository": "https://github.com/kitten/fetch-nodeshim", 51 "bugs": { 52 "url": "https://github.com/kitten/fetch-nodeshim/issues" 53 }, 54 "devDependencies": { 55 "@babel/plugin-transform-block-scoping": "^7.25.9", 56 "@babel/plugin-transform-typescript": "^7.26.7", 57 "@changesets/cli": "^2.29.6", 58 "@changesets/get-github-info": "^0.6.0", 59 "@rollup/plugin-babel": "^6.0.4", 60 "@rollup/plugin-commonjs": "^28.0.2", 61 "@rollup/plugin-node-resolve": "^16.0.0", 62 "@rollup/plugin-terser": "^0.4.4", 63 "@types-internal/node-18": "npm:@types/node@^18.19.0", 64 "@types-internal/node-20": "npm:@types/node@^20.17.0", 65 "@types/node": "^22.12.0", 66 "busboy": "^0.3.1", 67 "dotenv": "^16.4.7", 68 "form-data": "^4.0.1", 69 "lint-staged": "^15.4.3", 70 "npm-run-all": "^4.1.5", 71 "prettier": "^3.4.2", 72 "rimraf": "^6.0.1", 73 "rollup": "^4.32.1", 74 "rollup-plugin-cjs-check": "^1.0.3", 75 "rollup-plugin-dts": "^6.1.1", 76 "typescript": "^5.7.3", 77 "undici-types": "^6.20.0", 78 "vitest": "^3.0.4" 79 }, 80 "publishConfig": { 81 "access": "public", 82 "provenance": true 83 } 84}