Skip to content

Commit 152214c

Browse files
authored
Fix(package.json): Corrected main file path in package.json (#1274)
* fix main configuration in package.json * pinned a breaking change in codecov & teeny-request
1 parent b5e2e41 commit 152214c

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Changelog
55

66
# 2.x release
77

8+
## v2.6.2
9+
10+
- Fix: used full filename for main in package.json
11+
- Other: pinned codecov & teeny-request (had one breaking change with spread operators)
12+
813
## v2.6.1
914

1015
**This is an important security release. It is strongly recommended to update as soon as possible.**

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "node-fetch",
3-
"version": "2.6.1",
3+
"version": "2.6.2",
44
"description": "A light-weight module that brings window.fetch to node.js",
5-
"main": "lib/index",
5+
"main": "lib/index.js",
66
"browser": "./browser.js",
77
"module": "lib/index.mjs",
88
"files": [
@@ -48,7 +48,7 @@
4848
"chai-as-promised": "^7.1.1",
4949
"chai-iterator": "^1.1.1",
5050
"chai-string": "~1.3.0",
51-
"codecov": "^3.3.0",
51+
"codecov": "3.3.0",
5252
"cross-env": "^5.2.0",
5353
"form-data": "^2.3.3",
5454
"is-builtin-module": "^1.0.0",
@@ -60,7 +60,7 @@
6060
"rollup": "^0.63.4",
6161
"rollup-plugin-babel": "^3.0.7",
6262
"string-to-arraybuffer": "^1.0.2",
63+
"teeny-request": "3.7.0",
6364
"whatwg-url": "^5.0.0"
64-
},
65-
"dependencies": {}
65+
}
6666
}

rollup.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ export default {
1818
tweakDefault()
1919
],
2020
external: function (id) {
21-
if (isBuiltin(id)) {
22-
return true;
23-
}
24-
id = id.split('/').slice(0, id[0] === '@' ? 2 : 1).join('/');
25-
return !!require('./package.json').dependencies[id];
21+
return isBuiltin(id);
2622
}
2723
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy