Comparing version 2.10.1 to 3.0.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32023
699