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.15.1 to 1.16.0

4

lib/async.js

@@ -8,2 +8,4 @@ var fs = require('fs');

var realpath = typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
var defaultIsFile = function isFile(file, cb) {

@@ -31,3 +33,3 @@ fs.stat(file, function (err, stat) {

if (opts && opts.preserveSymlinks === false) {
fs.realpath(x, function (realPathErr, realPath) {
realpath(x, function (realPathErr, realPath) {
if (realPathErr && realPathErr.code !== 'ENOENT') cb(realPathErr);

@@ -34,0 +36,0 @@ else cb(null, realPathErr ? x : realPath);

@@ -19,3 +19,3 @@ {

"fs": true,
"fs/promises": ">= 10 && < 10.1",
"fs/promises": [">= 10 && < 10.1", ">= 14"],
"_http_agent": ">= 0.11.1",

@@ -22,0 +22,0 @@ "_http_client": ">= 0.11.1",

@@ -8,2 +8,4 @@ var isCore = require('./is-core');

var realpath = typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
var defaultIsFile = function isFile(file) {

@@ -32,3 +34,3 @@ try {

try {
return fs.realpathSync(x);
return realpath(x);
} catch (realPathErr) {

@@ -35,0 +37,0 @@ if (realPathErr.code !== 'ENOENT') {

{
"name": "resolve",
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
"version": "1.15.1",
"version": "1.16.0",
"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