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

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.3.0 to 0.3.1

2

lib/async.js

@@ -18,3 +18,3 @@ var core = require('./core');

else if (err) cb(err)
else cb(null, stat.isFile())
else cb(null, stat.isFile() || stat.isFIFO())
});

@@ -21,0 +21,0 @@ };

var core = require('./core');
var fs = require('fs');
var path = require('path');
var existsSync = fs.existsSync || path.existsSync;

@@ -11,3 +10,5 @@ module.exports = function (x, opts) {

var isFile = opts.isFile || function (file) {
return existsSync(file) && fs.statSync(file).isFile()
try { var stat = fs.statSync(file) }
catch (err) { if (err && err.code === 'ENOENT') return false }
return stat.isFile() || stat.isFIFO();
};

@@ -14,0 +15,0 @@ var readFileSync = opts.readFileSync || fs.readFileSync;

{
"name" : "resolve",
"description" : "resolve like require.resolve() on behalf of files asynchronously and synchronously",
"version" : "0.3.0",
"version" : "0.3.1",
"repository" : {

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

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