fix: min semver Node version (#874)

* fix semver node version

* add package.json to editorconfig
This commit is contained in:
Konstantin Vyatkin 2020-06-11 15:27:45 -04:00 committed by GitHub
parent 2c005872ae
commit 91155d6be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 137 additions and 140 deletions

View File

@ -14,3 +14,8 @@ trim_trailing_whitespace = false
[*.yml] [*.yml]
indent_style = space indent_style = space
[package.json]
indent_style = space
indent_size = 2
insert_final_newline = false

View File

@ -1,141 +1,133 @@
{ {
"name": "node-fetch", "name": "node-fetch",
"version": "3.0.0-beta.7", "version": "3.0.0-beta.7",
"description": "A light-weight module that brings window.fetch to node.js", "description": "A light-weight module that brings window.fetch to node.js",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
"module": "./src/index.js", "module": "./src/index.js",
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"exports": { "exports": {
"import": "./src/index.js", "import": "./src/index.js",
"require": "./dist/index.cjs" "require": "./dist/index.cjs"
}, },
"files": [ "files": [
"src", "src",
"dist", "dist",
"@types/index.d.ts" "@types/index.d.ts"
], ],
"types": "./@types/index.d.ts", "types": "./@types/index.d.ts",
"engines": { "engines": {
"node": ">=10.17" "node": "^10.17 || >=12.3"
}, },
"scripts": { "scripts": {
"build": "rollup -c", "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", "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", "coverage": "c8 report --reporter=text-lcov | coveralls",
"test-types": "tsd", "test-types": "tsd",
"lint": "xo", "lint": "xo",
"prepublishOnly": "node ./test/commonjs/test-artifact.js" "prepublishOnly": "node ./test/commonjs/test-artifact.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/node-fetch/node-fetch.git" "url": "https://github.com/node-fetch/node-fetch.git"
}, },
"keywords": [ "keywords": [
"fetch", "fetch",
"http", "http",
"promise" "promise"
], ],
"author": "David Frank", "author": "David Frank",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/node-fetch/node-fetch/issues" "url": "https://github.com/node-fetch/node-fetch/issues"
}, },
"homepage": "https://github.com/node-fetch/node-fetch", "homepage": "https://github.com/node-fetch/node-fetch",
"funding": { "funding": {
"type": "opencollective", "type": "opencollective",
"url": "https://opencollective.com/node-fetch" "url": "https://opencollective.com/node-fetch"
}, },
"devDependencies": { "devDependencies": {
"abort-controller": "^3.0.0", "abort-controller": "^3.0.0",
"abortcontroller-polyfill": "^1.4.0", "abortcontroller-polyfill": "^1.4.0",
"busboy": "^0.3.1", "busboy": "^0.3.1",
"c8": "^7.1.2", "c8": "^7.1.2",
"chai": "^4.2.0", "chai": "^4.2.0",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"chai-iterator": "^3.0.2", "chai-iterator": "^3.0.2",
"chai-string": "^1.5.0", "chai-string": "^1.5.0",
"coveralls": "^3.1.0", "coveralls": "^3.1.0",
"delay": "^4.3.0", "delay": "^4.3.0",
"form-data": "^3.0.0", "form-data": "^3.0.0",
"formdata-node": "^2.2.0", "formdata-node": "^2.2.0",
"mocha": "^8.0.0", "mocha": "^8.0.0",
"p-timeout": "^3.2.0", "p-timeout": "^3.2.0",
"parted": "^0.1.1", "parted": "^0.1.1",
"rollup": "^2.15.0", "rollup": "^2.15.0",
"string-to-arraybuffer": "^1.0.2", "string-to-arraybuffer": "^1.0.2",
"tsd": "^0.11.0", "tsd": "^0.11.0",
"xo": "^0.32.0" "xo": "^0.32.0"
}, },
"dependencies": { "dependencies": {
"data-uri-to-buffer": "^3.0.1", "data-uri-to-buffer": "^3.0.1",
"fetch-blob": "^2.0.0" "fetch-blob": "^2.0.0"
}, },
"esm": { "esm": {
"sourceMap": true, "sourceMap": true,
"cjs": false "cjs": false
}, },
"tsd": { "tsd": {
"cwd": "@types", "cwd": "@types",
"compilerOptions": { "compilerOptions": {
"target": "esnext", "target": "esnext",
"lib": [ "lib": [
"es2018" "es2018"
], ],
"allowSyntheticDefaultImports": false, "allowSyntheticDefaultImports": false,
"esModuleInterop": false "esModuleInterop": false
} }
}, },
"xo": { "xo": {
"envs": [ "envs": [
"node", "node",
"browser" "browser"
], ],
"rules": { "rules": {
"complexity": 0, "complexity": 0,
"import/extensions": 0, "import/extensions": 0,
"import/no-useless-path-segments": 0, "import/no-useless-path-segments": 0,
"import/no-anonymous-default-export": 0, "import/no-anonymous-default-export": 0,
"unicorn/import-index": 0, "unicorn/import-index": 0,
"unicorn/no-reduce": 0, "unicorn/no-reduce": 0,
"capitalized-comments": 0, "capitalized-comments": 0
"node/no-unsupported-features/node-builtins": [ },
"error", "ignores": [
{ "dist",
"ignores": [ "@types"
"stream.Readable.from" ],
] "overrides": [
} {
] "files": "test/**/*.js",
}, "envs": [
"ignores": [ "node",
"dist", "mocha"
"@types" ],
], "rules": {
"overrides": [ "max-nested-callbacks": 0,
{ "no-unused-expressions": 0,
"files": "test/**/*.js", "new-cap": 0,
"envs": [ "guard-for-in": 0,
"node", "unicorn/prevent-abbreviations": 0,
"mocha" "promise/prefer-await-to-then": 0,
], "ava/no-import-test-files": 0
"rules": { }
"max-nested-callbacks": 0, },
"no-unused-expressions": 0, {
"new-cap": 0, "files": "example.js",
"guard-for-in": 0, "rules": {
"unicorn/prevent-abbreviations": 0, "import/no-extraneous-dependencies": 0
"promise/prefer-await-to-then": 0, }
"ava/no-import-test-files": 0 }
} ]
}, },
{ "runkitExampleFilename": "example.js"
"files": "example.js", }
"rules": {
"import/no-extraneous-dependencies": 0
}
}
]
},
"runkitExampleFilename": "example.js"
}