File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var path = require('path');
3
3
var caller = require ( './caller.js' ) ;
4
4
var nodeModulesPaths = require ( './node-modules-paths.js' ) ;
5
5
var normalizeOptions = require ( './normalize-options.js' ) ;
6
- var isCore = require ( './ is-core' ) ;
6
+ var isCore = require ( 'is-core-module ' ) ;
7
7
8
8
var realpathFS = fs . realpath && typeof fs . realpath . native === 'function' ? fs . realpath . native : fs . realpath ;
9
9
Original file line number Diff line number Diff line change
1
+ console . warn ( '`resolve/lib/core` is deprecated; please use `is-core-module` directly' ) ;
2
+
1
3
var current = ( process . versions && process . versions . node && process . versions . node . split ( '.' ) ) || [ ] ;
2
4
3
5
function specifierIncluded ( specifier ) {
Original file line number Diff line number Diff line change 1
- var core = require ( './ core' ) ;
1
+ var isCoreModule = require ( 'is- core-module ' ) ;
2
2
3
3
module . exports = function isCore ( x ) {
4
- return Object . prototype . hasOwnProperty . call ( core , x ) ;
4
+ return isCoreModule ( x ) ;
5
5
} ;
Original file line number Diff line number Diff line change 1
- var isCore = require ( './ is-core' ) ;
1
+ var isCore = require ( 'is-core-module ' ) ;
2
2
var fs = require ( 'fs' ) ;
3
3
var path = require ( 'path' ) ;
4
4
var caller = require ( './caller.js' ) ;
Original file line number Diff line number Diff line change 53
53
" module"
54
54
],
55
55
"scripts" : {
56
- "prepublish" : " safe-publish-latest" ,
56
+ "prepublish" : " safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ " ,
57
57
"lint" : " eslint --ext=js,mjs ." ,
58
58
"pretests-only" : " cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async" ,
59
59
"tests-only" : " tape test/*.js" ,
82
82
"url" : " https://github.com/sponsors/ljharb"
83
83
},
84
84
"dependencies" : {
85
+ "is-core-module" : " ^2.0.0" ,
85
86
"path-parse" : " ^1.0.6"
86
87
}
87
88
}
You can’t perform that action at this time.
0 commit comments