node-fetch
Advanced tools
Comparing version 3.0.0-beta.7 to 3.0.0-beta.8
262
package.json
{ | ||
"name": "node-fetch", | ||
"version": "3.0.0-beta.7", | ||
"description": "A light-weight module that brings window.fetch to node.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./src/index.js", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
"import": "./src/index.js", | ||
"require": "./dist/index.cjs" | ||
"name": "node-fetch", | ||
"version": "3.0.0-beta.8", | ||
"description": "A light-weight module that brings Fetch API to node.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./src/index.js", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./src/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"@types/index.d.ts" | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"@types/index.d.ts" | ||
], | ||
"types": "./@types/index.d.ts", | ||
"engines": { | ||
"node": "^10.17 || >=12.3" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "node --experimental-modules node_modules/c8/bin/c8 --reporter=html --reporter=lcov --reporter=text --check-coverage node --experimental-modules node_modules/mocha/bin/mocha", | ||
"coverage": "c8 report --reporter=text-lcov | coveralls", | ||
"test-types": "tsd", | ||
"lint": "xo", | ||
"prepublishOnly": "node ./test/commonjs/test-artifact.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/node-fetch/node-fetch.git" | ||
}, | ||
"keywords": [ | ||
"fetch", | ||
"http", | ||
"promise", | ||
"request", | ||
"curl", | ||
"wget", | ||
"xhr", | ||
"whatwg" | ||
], | ||
"author": "David Frank", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/node-fetch/node-fetch/issues" | ||
}, | ||
"homepage": "https://github.com/node-fetch/node-fetch", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/node-fetch" | ||
}, | ||
"devDependencies": { | ||
"abort-controller": "^3.0.0", | ||
"abortcontroller-polyfill": "^1.4.0", | ||
"busboy": "^0.3.1", | ||
"c8": "^7.1.2", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-iterator": "^3.0.2", | ||
"chai-string": "^1.5.0", | ||
"coveralls": "^3.1.0", | ||
"delay": "^4.3.0", | ||
"form-data": "^3.0.0", | ||
"formdata-node": "^2.2.0", | ||
"mocha": "^8.0.0", | ||
"p-timeout": "^3.2.0", | ||
"rollup": "^2.15.0", | ||
"tsd": "^0.13.1", | ||
"xo": "^0.32.0" | ||
}, | ||
"dependencies": { | ||
"data-uri-to-buffer": "^3.0.1", | ||
"fetch-blob": "^2.0.0" | ||
}, | ||
"esm": { | ||
"sourceMap": true, | ||
"cjs": false | ||
}, | ||
"tsd": { | ||
"cwd": "@types", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"lib": [ | ||
"es2018" | ||
], | ||
"allowSyntheticDefaultImports": false, | ||
"esModuleInterop": false | ||
} | ||
}, | ||
"xo": { | ||
"envs": [ | ||
"node", | ||
"browser" | ||
], | ||
"types": "./@types/index.d.ts", | ||
"engines": { | ||
"node": ">=10.17" | ||
"rules": { | ||
"complexity": 0, | ||
"import/extensions": 0, | ||
"import/no-useless-path-segments": 0, | ||
"import/no-anonymous-default-export": 0, | ||
"unicorn/import-index": 0, | ||
"unicorn/no-reduce": 0, | ||
"capitalized-comments": 0 | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "node --experimental-modules node_modules/c8/bin/c8 --reporter=html --reporter=lcov --reporter=text --check-coverage node --experimental-modules node_modules/mocha/bin/mocha", | ||
"coverage": "c8 report --reporter=text-lcov | coveralls", | ||
"test-types": "tsd", | ||
"lint": "xo", | ||
"prepublishOnly": "node ./test/commonjs/test-artifact.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/node-fetch/node-fetch.git" | ||
}, | ||
"keywords": [ | ||
"fetch", | ||
"http", | ||
"promise" | ||
"ignores": [ | ||
"dist", | ||
"@types" | ||
], | ||
"author": "David Frank", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/node-fetch/node-fetch/issues" | ||
}, | ||
"homepage": "https://github.com/node-fetch/node-fetch", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/node-fetch" | ||
}, | ||
"devDependencies": { | ||
"abort-controller": "^3.0.0", | ||
"abortcontroller-polyfill": "^1.4.0", | ||
"busboy": "^0.3.1", | ||
"c8": "^7.1.2", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-iterator": "^3.0.2", | ||
"chai-string": "^1.5.0", | ||
"coveralls": "^3.1.0", | ||
"delay": "^4.3.0", | ||
"form-data": "^3.0.0", | ||
"formdata-node": "^2.2.0", | ||
"mocha": "^8.0.0", | ||
"p-timeout": "^3.2.0", | ||
"parted": "^0.1.1", | ||
"rollup": "^2.15.0", | ||
"string-to-arraybuffer": "^1.0.2", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.32.0" | ||
}, | ||
"dependencies": { | ||
"data-uri-to-buffer": "^3.0.1", | ||
"fetch-blob": "^2.0.0" | ||
}, | ||
"esm": { | ||
"sourceMap": true, | ||
"cjs": false | ||
}, | ||
"tsd": { | ||
"cwd": "@types", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"lib": [ | ||
"es2018" | ||
], | ||
"allowSyntheticDefaultImports": false, | ||
"esModuleInterop": false | ||
} | ||
}, | ||
"xo": { | ||
"overrides": [ | ||
{ | ||
"files": "test/**/*.js", | ||
"envs": [ | ||
"node", | ||
"browser" | ||
"node", | ||
"mocha" | ||
], | ||
"rules": { | ||
"complexity": 0, | ||
"import/extensions": 0, | ||
"import/no-useless-path-segments": 0, | ||
"import/no-anonymous-default-export": 0, | ||
"unicorn/import-index": 0, | ||
"unicorn/no-reduce": 0, | ||
"capitalized-comments": 0, | ||
"node/no-unsupported-features/node-builtins": [ | ||
"error", | ||
{ | ||
"ignores": [ | ||
"stream.Readable.from" | ||
] | ||
} | ||
] | ||
}, | ||
"ignores": [ | ||
"dist", | ||
"@types" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": "test/**/*.js", | ||
"envs": [ | ||
"node", | ||
"mocha" | ||
], | ||
"rules": { | ||
"max-nested-callbacks": 0, | ||
"no-unused-expressions": 0, | ||
"new-cap": 0, | ||
"guard-for-in": 0, | ||
"unicorn/prevent-abbreviations": 0, | ||
"promise/prefer-await-to-then": 0, | ||
"ava/no-import-test-files": 0 | ||
} | ||
}, | ||
{ | ||
"files": "example.js", | ||
"rules": { | ||
"import/no-extraneous-dependencies": 0 | ||
} | ||
} | ||
] | ||
}, | ||
"runkitExampleFilename": "example.js" | ||
"max-nested-callbacks": 0, | ||
"no-unused-expressions": 0, | ||
"new-cap": 0, | ||
"guard-for-in": 0, | ||
"unicorn/prevent-abbreviations": 0, | ||
"promise/prefer-await-to-then": 0, | ||
"ava/no-import-test-files": 0 | ||
} | ||
}, | ||
{ | ||
"files": "example.js", | ||
"rules": { | ||
"import/no-extraneous-dependencies": 0 | ||
} | ||
} | ||
] | ||
}, | ||
"runkitExampleFilename": "example.js" | ||
} |
<div align="center"> | ||
<img src="docs/media/Banner.svg" alt="Node Fetch"/> | ||
<br> | ||
<p>A light-weight module that brings <code>window.fetch</code> to Node.js.</p> | ||
<p>A light-weight module that brings <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API</a> to Node.js.</p> | ||
<a href="https://github.com/node-fetch/node-fetch/actions"><img src="https://github.com/node-fetch/node-fetch/workflows/CI/badge.svg?branch=master" alt="Build status"></a> | ||
@@ -52,2 +52,3 @@ <a href="https://coveralls.io/github/node-fetch/node-fetch"><img src="https://img.shields.io/coveralls/github/node-fetch/node-fetch" alt="Coverage status"></a> | ||
- [Custom highWaterMark](#custom-highwatermark) | ||
- [Insecure HTTP Parser](#insecure-http-parser) | ||
- [Class: Request](#class-request) | ||
@@ -54,0 +55,0 @@ - [new Request(input[, options])](#new-requestinput-options) |
@@ -60,2 +60,3 @@ /** | ||
typeof object.getAll === 'function' && | ||
typeof object.has === 'function' && | ||
typeof object.delete === 'function' && | ||
@@ -62,0 +63,0 @@ typeof object.keys === 'function' && |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17
2748
770
188404