Comparing version 1.21.1 to 1.22.0
var fs = require('fs'); | ||
var getHomedir = require('./homedir'); | ||
var path = require('path'); | ||
@@ -10,2 +11,10 @@ var caller = require('./caller'); | ||
var homedir = getHomedir(); | ||
var defaultPaths = function () { | ||
return [ | ||
path.join(homedir, '.node_modules'), | ||
path.join(homedir, '.node_libraries') | ||
]; | ||
}; | ||
var defaultIsFile = function isFile(file, cb) { | ||
@@ -102,3 +111,3 @@ fs.stat(file, function (err, stat) { | ||
opts.paths = opts.paths || []; | ||
opts.paths = opts.paths || defaultPaths(); | ||
@@ -105,0 +114,0 @@ // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory |
@@ -8,3 +8,3 @@ { | ||
"node:async_hooks": [">= 14.18 && < 15", ">= 16"], | ||
"buffer_ieee754": "< 0.9.7", | ||
"buffer_ieee754": ">= 0.5 && < 0.9.7", | ||
"buffer": true, | ||
@@ -14,3 +14,3 @@ "node:buffer": [">= 14.18 && < 15", ">= 16"], | ||
"node:child_process": [">= 14.18 && < 15", ">= 16"], | ||
"cluster": true, | ||
"cluster": ">= 0.5", | ||
"node:cluster": [">= 14.18 && < 15", ">= 16"], | ||
@@ -82,3 +82,3 @@ "console": true, | ||
"node:process": [">= 14.18 && < 15", ">= 16"], | ||
"punycode": true, | ||
"punycode": ">= 0.5", | ||
"node:punycode": [">= 14.18 && < 15", ">= 16"], | ||
@@ -116,3 +116,3 @@ "querystring": true, | ||
"node:string_decoder": [">= 14.18 && < 15", ">= 16"], | ||
"sys": [">= 0.6 && < 0.7", ">= 0.8"], | ||
"sys": [">= 0.4 && < 0.7", ">= 0.8"], | ||
"node:sys": [">= 14.18 && < 15", ">= 16"], | ||
@@ -154,4 +154,4 @@ "timers": true, | ||
"node:worker_threads": [">= 14.18 && < 15", ">= 16"], | ||
"zlib": true, | ||
"zlib": ">= 0.5", | ||
"node:zlib": [">= 14.18 && < 15", ">= 16"] | ||
} |
var isCore = require('is-core-module'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var getHomedir = require('./homedir'); | ||
var caller = require('./caller'); | ||
@@ -10,2 +11,10 @@ var nodeModulesPaths = require('./node-modules-paths'); | ||
var homedir = getHomedir(); | ||
var defaultPaths = function () { | ||
return [ | ||
path.join(homedir, '.node_modules'), | ||
path.join(homedir, '.node_libraries') | ||
]; | ||
}; | ||
var defaultIsFile = function isFile(file) { | ||
@@ -86,3 +95,3 @@ try { | ||
opts.paths = opts.paths || []; | ||
opts.paths = opts.paths || defaultPaths(); | ||
@@ -89,0 +98,0 @@ // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory |
{ | ||
"name": "resolve", | ||
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version": "1.21.1", | ||
"version": "1.22.0", | ||
"repository": { | ||
@@ -35,9 +35,14 @@ "type": "git", | ||
"aud": "^2.0.0", | ||
"copy-dir": "^1.3.0", | ||
"eclint": "^2.8.1", | ||
"eslint": "^8.7.0", | ||
"in-publish": "^2.0.1", | ||
"mkdirp": "^0.5.5", | ||
"mv": "^2.1.1", | ||
"object-keys": "^1.1.1", | ||
"rimraf": "^2.7.1", | ||
"safe-publish-latest": "^2.0.0", | ||
"tap": "0.4.13", | ||
"tape": "^5.4.1" | ||
"tape": "^5.4.1", | ||
"tmp": "^0.0.31" | ||
}, | ||
@@ -54,3 +59,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"is-core-module": "^2.8.0", | ||
"is-core-module": "^2.8.1", | ||
"path-parse": "^1.0.7", | ||
@@ -57,0 +62,0 @@ "supports-preserve-symlinks-flag": "^1.0.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 8 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143964
98
3197
15
26
Updatedis-core-module@^2.8.1