File tree 3 files changed +11
-10
lines changed
3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ Changelog
5
5
6
6
# 2.x release
7
7
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
+
8
13
## v2.6.1
9
14
10
15
** This is an important security release. It is strongly recommended to update as soon as possible.**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-fetch" ,
3
- "version" : " 2.6.1 " ,
3
+ "version" : " 2.6.2 " ,
4
4
"description" : " A light-weight module that brings window.fetch to node.js" ,
5
- "main" : " lib/index" ,
5
+ "main" : " lib/index.js " ,
6
6
"browser" : " ./browser.js" ,
7
7
"module" : " lib/index.mjs" ,
8
8
"files" : [
48
48
"chai-as-promised" : " ^7.1.1" ,
49
49
"chai-iterator" : " ^1.1.1" ,
50
50
"chai-string" : " ~1.3.0" ,
51
- "codecov" : " ^ 3.3.0" ,
51
+ "codecov" : " 3.3.0" ,
52
52
"cross-env" : " ^5.2.0" ,
53
53
"form-data" : " ^2.3.3" ,
54
54
"is-builtin-module" : " ^1.0.0" ,
60
60
"rollup" : " ^0.63.4" ,
61
61
"rollup-plugin-babel" : " ^3.0.7" ,
62
62
"string-to-arraybuffer" : " ^1.0.2" ,
63
+ "teeny-request" : " 3.7.0" ,
63
64
"whatwg-url" : " ^5.0.0"
64
- },
65
- "dependencies" : {}
65
+ }
66
66
}
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ export default {
18
18
tweakDefault ( )
19
19
] ,
20
20
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 ) ;
26
22
}
27
23
} ;
You can’t perform that action at this time.
0 commit comments