graceful-fs
Advanced tools
Comparing version 3.0.9 to 3.0.10
33
fs.js
@@ -1,32 +0,1 @@ | ||
// eeeeeevvvvviiiiiiillllll | ||
// more evil than monkey-patching the native builtin? | ||
// Not sure. | ||
var mod = require("module") | ||
var pre = '(function (exports, require, module, __filename, __dirname) { ' | ||
var post = '});' | ||
var src = pre + process.binding('natives').fs + post | ||
var deprecation = '' | ||
var printDeprecation = ['var prefix = \'(\' + [process.release.name, process.pid].join(\':\') + \')\';', | ||
'var printDeprecation = function(msg, warned) {', | ||
' if (process.noDeprecation)', | ||
' return true;', | ||
' if (warned)', | ||
' return warned;', | ||
' if (process.throwDeprecation)', | ||
' throw new Error(prefix + msg);', | ||
' else if (process.traceDeprecation)', | ||
' console.trace(msg);', | ||
' else', | ||
' console.error(prefix + msg);', | ||
' return true;', | ||
'};'].join('\n'); | ||
var deprecrationRequire = /const printDeprecation = require\(\'internal\/util\'\).printDeprecationMessage;/ | ||
src = src.replace(deprecrationRequire, printDeprecation); | ||
var vm = require('vm') | ||
var fn = vm.runInThisContext(src) | ||
fn(exports, require, module, __filename, __dirname) | ||
module.exports = require('natives').require('fs') |
@@ -5,3 +5,3 @@ { | ||
"description": "A drop-in replacement for fs, making various improvements.", | ||
"version": "3.0.9", | ||
"version": "3.0.10", | ||
"repository": { | ||
@@ -42,3 +42,6 @@ "type": "git", | ||
"tap": "^1.2.0" | ||
}, | ||
"dependencies": { | ||
"natives": "^1.0.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
2
16173
1
12
497
+ Addednatives@^1.0.1
+ Addednatives@1.1.6(transitive)