Skip to content

Commit 91155d6

Browse files
authored
fix: min semver Node version (node-fetch#874)
* fix semver node version * add package.json to editorconfig
1 parent 2c00587 commit 91155d6

File tree

2 files changed

+137
-140
lines changed

2 files changed

+137
-140
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ trim_trailing_whitespace = false
1414

1515
[*.yml]
1616
indent_style = space
17+
18+
[package.json]
19+
indent_style = space
20+
indent_size = 2
21+
insert_final_newline = false

package.json

+132-140
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,133 @@
11
{
2-
"name": "node-fetch",
3-
"version": "3.0.0-beta.7",
4-
"description": "A light-weight module that brings window.fetch to node.js",
5-
"main": "./dist/index.cjs",
6-
"module": "./src/index.js",
7-
"sideEffects": false,
8-
"type": "module",
9-
"exports": {
10-
"import": "./src/index.js",
11-
"require": "./dist/index.cjs"
12-
},
13-
"files": [
14-
"src",
15-
"dist",
16-
"@types/index.d.ts"
17-
],
18-
"types": "./@types/index.d.ts",
19-
"engines": {
20-
"node": ">=10.17"
21-
},
22-
"scripts": {
23-
"build": "rollup -c",
24-
"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",
25-
"coverage": "c8 report --reporter=text-lcov | coveralls",
26-
"test-types": "tsd",
27-
"lint": "xo",
28-
"prepublishOnly": "node ./test/commonjs/test-artifact.js"
29-
},
30-
"repository": {
31-
"type": "git",
32-
"url": "https://github.com/node-fetch/node-fetch.git"
33-
},
34-
"keywords": [
35-
"fetch",
36-
"http",
37-
"promise"
38-
],
39-
"author": "David Frank",
40-
"license": "MIT",
41-
"bugs": {
42-
"url": "https://github.com/node-fetch/node-fetch/issues"
43-
},
44-
"homepage": "https://github.com/node-fetch/node-fetch",
45-
"funding": {
46-
"type": "opencollective",
47-
"url": "https://opencollective.com/node-fetch"
48-
},
49-
"devDependencies": {
50-
"abort-controller": "^3.0.0",
51-
"abortcontroller-polyfill": "^1.4.0",
52-
"busboy": "^0.3.1",
53-
"c8": "^7.1.2",
54-
"chai": "^4.2.0",
55-
"chai-as-promised": "^7.1.1",
56-
"chai-iterator": "^3.0.2",
57-
"chai-string": "^1.5.0",
58-
"coveralls": "^3.1.0",
59-
"delay": "^4.3.0",
60-
"form-data": "^3.0.0",
61-
"formdata-node": "^2.2.0",
62-
"mocha": "^8.0.0",
63-
"p-timeout": "^3.2.0",
64-
"parted": "^0.1.1",
65-
"rollup": "^2.15.0",
66-
"string-to-arraybuffer": "^1.0.2",
67-
"tsd": "^0.11.0",
68-
"xo": "^0.32.0"
69-
},
70-
"dependencies": {
71-
"data-uri-to-buffer": "^3.0.1",
72-
"fetch-blob": "^2.0.0"
73-
},
74-
"esm": {
75-
"sourceMap": true,
76-
"cjs": false
77-
},
78-
"tsd": {
79-
"cwd": "@types",
80-
"compilerOptions": {
81-
"target": "esnext",
82-
"lib": [
83-
"es2018"
84-
],
85-
"allowSyntheticDefaultImports": false,
86-
"esModuleInterop": false
87-
}
88-
},
89-
"xo": {
90-
"envs": [
91-
"node",
92-
"browser"
93-
],
94-
"rules": {
95-
"complexity": 0,
96-
"import/extensions": 0,
97-
"import/no-useless-path-segments": 0,
98-
"import/no-anonymous-default-export": 0,
99-
"unicorn/import-index": 0,
100-
"unicorn/no-reduce": 0,
101-
"capitalized-comments": 0,
102-
"node/no-unsupported-features/node-builtins": [
103-
"error",
104-
{
105-
"ignores": [
106-
"stream.Readable.from"
107-
]
108-
}
109-
]
110-
},
111-
"ignores": [
112-
"dist",
113-
"@types"
114-
],
115-
"overrides": [
116-
{
117-
"files": "test/**/*.js",
118-
"envs": [
119-
"node",
120-
"mocha"
121-
],
122-
"rules": {
123-
"max-nested-callbacks": 0,
124-
"no-unused-expressions": 0,
125-
"new-cap": 0,
126-
"guard-for-in": 0,
127-
"unicorn/prevent-abbreviations": 0,
128-
"promise/prefer-await-to-then": 0,
129-
"ava/no-import-test-files": 0
130-
}
131-
},
132-
{
133-
"files": "example.js",
134-
"rules": {
135-
"import/no-extraneous-dependencies": 0
136-
}
137-
}
138-
]
139-
},
140-
"runkitExampleFilename": "example.js"
141-
}
2+
"name": "node-fetch",
3+
"version": "3.0.0-beta.7",
4+
"description": "A light-weight module that brings window.fetch to node.js",
5+
"main": "./dist/index.cjs",
6+
"module": "./src/index.js",
7+
"sideEffects": false,
8+
"type": "module",
9+
"exports": {
10+
"import": "./src/index.js",
11+
"require": "./dist/index.cjs"
12+
},
13+
"files": [
14+
"src",
15+
"dist",
16+
"@types/index.d.ts"
17+
],
18+
"types": "./@types/index.d.ts",
19+
"engines": {
20+
"node": "^10.17 || >=12.3"
21+
},
22+
"scripts": {
23+
"build": "rollup -c",
24+
"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",
25+
"coverage": "c8 report --reporter=text-lcov | coveralls",
26+
"test-types": "tsd",
27+
"lint": "xo",
28+
"prepublishOnly": "node ./test/commonjs/test-artifact.js"
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "https://github.com/node-fetch/node-fetch.git"
33+
},
34+
"keywords": [
35+
"fetch",
36+
"http",
37+
"promise"
38+
],
39+
"author": "David Frank",
40+
"license": "MIT",
41+
"bugs": {
42+
"url": "https://github.com/node-fetch/node-fetch/issues"
43+
},
44+
"homepage": "https://github.com/node-fetch/node-fetch",
45+
"funding": {
46+
"type": "opencollective",
47+
"url": "https://opencollective.com/node-fetch"
48+
},
49+
"devDependencies": {
50+
"abort-controller": "^3.0.0",
51+
"abortcontroller-polyfill": "^1.4.0",
52+
"busboy": "^0.3.1",
53+
"c8": "^7.1.2",
54+
"chai": "^4.2.0",
55+
"chai-as-promised": "^7.1.1",
56+
"chai-iterator": "^3.0.2",
57+
"chai-string": "^1.5.0",
58+
"coveralls": "^3.1.0",
59+
"delay": "^4.3.0",
60+
"form-data": "^3.0.0",
61+
"formdata-node": "^2.2.0",
62+
"mocha": "^8.0.0",
63+
"p-timeout": "^3.2.0",
64+
"parted": "^0.1.1",
65+
"rollup": "^2.15.0",
66+
"string-to-arraybuffer": "^1.0.2",
67+
"tsd": "^0.11.0",
68+
"xo": "^0.32.0"
69+
},
70+
"dependencies": {
71+
"data-uri-to-buffer": "^3.0.1",
72+
"fetch-blob": "^2.0.0"
73+
},
74+
"esm": {
75+
"sourceMap": true,
76+
"cjs": false
77+
},
78+
"tsd": {
79+
"cwd": "@types",
80+
"compilerOptions": {
81+
"target": "esnext",
82+
"lib": [
83+
"es2018"
84+
],
85+
"allowSyntheticDefaultImports": false,
86+
"esModuleInterop": false
87+
}
88+
},
89+
"xo": {
90+
"envs": [
91+
"node",
92+
"browser"
93+
],
94+
"rules": {
95+
"complexity": 0,
96+
"import/extensions": 0,
97+
"import/no-useless-path-segments": 0,
98+
"import/no-anonymous-default-export": 0,
99+
"unicorn/import-index": 0,
100+
"unicorn/no-reduce": 0,
101+
"capitalized-comments": 0
102+
},
103+
"ignores": [
104+
"dist",
105+
"@types"
106+
],
107+
"overrides": [
108+
{
109+
"files": "test/**/*.js",
110+
"envs": [
111+
"node",
112+
"mocha"
113+
],
114+
"rules": {
115+
"max-nested-callbacks": 0,
116+
"no-unused-expressions": 0,
117+
"new-cap": 0,
118+
"guard-for-in": 0,
119+
"unicorn/prevent-abbreviations": 0,
120+
"promise/prefer-await-to-then": 0,
121+
"ava/no-import-test-files": 0
122+
}
123+
},
124+
{
125+
"files": "example.js",
126+
"rules": {
127+
"import/no-extraneous-dependencies": 0
128+
}
129+
}
130+
]
131+
},
132+
"runkitExampleFilename": "example.js"
133+
}

0 commit comments

Comments
 (0)