Socket
Socket
Sign inDemoInstall

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.2 to 3.0.3

test/stat.js

14

fs.js

@@ -1,11 +0,5 @@

// eeeeeevvvvviiiiiiillllll
// more evil than monkey-patching the native builtin?
// Not sure.
// extend the builtin so that our monkeypatchery doesn't
// muck with things not using graceful-fs
var mod = require("module")
var pre = '(function (exports, require, module, __filename, __dirname) { '
var post = '});'
var src = pre + process.binding('natives').fs + post
var vm = require('vm')
var fn = vm.runInThisContext(src)
return fn(exports, require, module, __filename, __dirname)
var util = require('util')
module.exports = util._extend({}, require('fs'))

@@ -5,3 +5,3 @@ {

"description": "A drop-in replacement for fs, making various improvements.",
"version": "3.0.2",
"version": "3.0.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -17,3 +17,2 @@ var test = require("tap").test

throw er
console.error(files)
t.same(files, [ "a", "b", "z" ])

@@ -20,0 +19,0 @@ t.end()

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