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

graceful-fs

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graceful-fs - npm Package Compare versions

Comparing version 3.0.9 to 3.0.10

.travis.yml

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

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