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

fs-plus

Package Overview
Dependencies
Maintainers
9
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-plus - npm Package Compare versions

Comparing version 2.10.1 to 3.0.0

53

lib/fs-plus.js

@@ -20,2 +20,3 @@ (function() {

fsPlus = {
__esModule: false,
getHomeDirectory: function() {

@@ -514,5 +515,13 @@ if (process.platform === 'win32') {

resolveOnLoadPath: function() {
var args, loadPaths;
var args, loadPaths, modulePaths;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
loadPaths = Module.globalPaths.concat(module.paths);
modulePaths = null;
if (module.paths != null) {
modulePaths = module.paths;
} else if (process.resourcesPath) {
modulePaths = [path.join(process.resourcesPath, 'app', 'node_modules')];
} else {
modulePaths = [];
}
loadPaths = Module.globalPaths.concat(modulePaths);
return fsPlus.resolve.apply(fsPlus, __slice.call(loadPaths).concat(__slice.call(args)));

@@ -588,8 +597,8 @@ },

statSyncNoException = fs.statSyncNoException, lstatSyncNoException = fs.lstatSyncNoException;
if (statSyncNoException == null) {
statSyncNoException = function() {
var args, error;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
statSyncNoException = function() {
var args, error;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (fs.statSyncNoException) {
return fs.statSyncNoException.apply(fs, args);
} else {
try {

@@ -601,9 +610,11 @@ return fs.statSync.apply(fs, args);

}
};
}
}
};
if (lstatSyncNoException == null) {
lstatSyncNoException = function() {
var args, error;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
lstatSyncNoException = function() {
var args, error;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (fs.lstatSyncNoException) {
return fs.lstatSyncNoException.apply(fs, args);
} else {
try {

@@ -615,4 +626,4 @@ return fs.lstatSync.apply(fs, args);

}
};
}
}
};

@@ -702,4 +713,12 @@ BINARY_EXTENSIONS = {

module.exports = _.extend({}, fs, fsPlus);
module.exports = new Proxy({}, {
get: function(target, key) {
var _ref;
return (_ref = fsPlus[key]) != null ? _ref : fs[key];
},
set: function(target, key, value) {
return fsPlus[key] = value;
}
});
}).call(this);
{
"name": "fs-plus",
"version": "2.10.1",
"version": "3.0.0",
"description": "node's fs with more helpers",

@@ -5,0 +5,0 @@ "main": "./lib/fs-plus.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