Socket
Socket
Sign inDemoInstall

resolve

Package Overview
Dependencies
Maintainers
1
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 0.7.0 to 0.7.1

5

lib/node-modules-paths.js

@@ -15,2 +15,7 @@ var path = require('path');

var splitRe = process.platform === 'win32' ? /[\/\\]/ : /\/+/;
// ensure that `start` is an absolute path at this point,
// resolving againt the process' current working directory
start = path.resolve(start);
var parts = start.split(splitRe);

@@ -17,0 +22,0 @@

2

package.json
{
"name" : "resolve",
"description" : "resolve like require.resolve() on behalf of files asynchronously and synchronously",
"version" : "0.7.0",
"version" : "0.7.1",
"repository" : {

@@ -6,0 +6,0 @@ "type" : "git",

@@ -0,1 +1,2 @@

var path = require('path');
var test = require('tap').test;

@@ -36,2 +37,13 @@ var resolve = require('../');

});
// ensure that relative paths still resolve against the
// regular `node_modules` correctly
resolve('tap', {
paths: [
'node_path',
],
basedir: 'node_path/x',
}, function (err, res) {
t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap/lib/main.js'));
});
});
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