Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resolve

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve - npm Package Compare versions

Comparing version 1.18.0 to 1.18.1

.editorconfig

6

lib/async.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc