graceful-fs
Advanced tools
Comparing version 3.0.8 to 3.0.9
21
fs.js
@@ -9,4 +9,25 @@ // eeeeeevvvvviiiiiiillllll | ||
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) |
@@ -5,3 +5,3 @@ { | ||
"description": "A drop-in replacement for fs, making various improvements.", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
1031978
39
938