Comparing version 1.18.0 to 1.18.1
var fs = require('fs'); | ||
var path = require('path'); | ||
var caller = require('./caller.js'); | ||
var nodeModulesPaths = require('./node-modules-paths.js'); | ||
var normalizeOptions = require('./normalize-options.js'); | ||
var caller = require('./caller'); | ||
var nodeModulesPaths = require('./node-modules-paths'); | ||
var normalizeOptions = require('./normalize-options'); | ||
var isCore = require('is-core-module'); | ||
@@ -7,0 +7,0 @@ |
@@ -1,3 +0,1 @@ | ||
console.warn('`resolve/lib/core` is deprecated; please use `is-core-module` directly'); | ||
var current = (process.versions && process.versions.node && process.versions.node.split('.')) || []; | ||
@@ -4,0 +2,0 @@ |
var isCore = require('is-core-module'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var caller = require('./caller.js'); | ||
var nodeModulesPaths = require('./node-modules-paths.js'); | ||
var normalizeOptions = require('./normalize-options.js'); | ||
var caller = require('./caller'); | ||
var nodeModulesPaths = require('./node-modules-paths'); | ||
var normalizeOptions = require('./normalize-options'); | ||
@@ -8,0 +8,0 @@ var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync; |
{ | ||
"name": "resolve", | ||
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version": "1.18.0", | ||
"version": "1.18.1", | ||
"repository": { | ||
@@ -18,2 +18,3 @@ "type": "git", | ||
"prepublish": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/", | ||
"prelint": "eclint check '**/*'", | ||
"lint": "eslint --ext=js,mjs .", | ||
@@ -24,3 +25,3 @@ "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", | ||
"test": "npm run --silent tests-only", | ||
"posttest": "npm run test:multirepo", | ||
"posttest": "npm run test:multirepo && aud --production", | ||
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" | ||
@@ -31,3 +32,5 @@ }, | ||
"array.prototype.map": "^1.0.2", | ||
"eslint": "^7.10.0", | ||
"aud": "^1.1.2", | ||
"eclint": "^2.8.1", | ||
"eslint": "^7.11.0", | ||
"object-keys": "^1.1.1", | ||
@@ -34,0 +37,0 @@ "safe-publish-latest": "^1.1.4", |
@@ -71,3 +71,6 @@ var path = require('path'); | ||
t.doesNotThrow(function () { | ||
t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js')); | ||
t.equal( | ||
resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), | ||
path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js') | ||
); | ||
}); | ||
@@ -74,0 +77,0 @@ t.ok(new Date() - start < 50, 'resolve.sync timedout'); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
100
1
1
11
1
105670
9
91
2388