File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- const supportsAsyncAwait = parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) ) > 760 ;
1+ const supportsAsyncAwait =
2+ parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) . substring ( 0 , 3 ) ) > 760 ;
23
34const path = supportsAsyncAwait ? './src/index' : './dist/index' ;
45
Original file line number Diff line number Diff line change 1- const supportsAsyncAwait = parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) ) > 760 ;
1+ const supportsAsyncAwait =
2+ parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) . substring ( 0 , 3 ) ) > 760 ;
23
34const path = supportsAsyncAwait ? './src/unit-tests' : './dist/unit-tests' ;
45
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ const pkg = require('./package.json');
66
77updateNotifier ( { pkg } ) . notify ( ) ;
88
9- const supportsAsyncAwait = parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) ) > 760 ;
9+ const supportsAsyncAwait =
10+ parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) . substring ( 0 , 3 ) ) > 760 ;
1011
1112const microAnalytics = supportsAsyncAwait ? './src/index' : './dist/index' ;
1213
You can’t perform that action at this time.
0 commit comments