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 1.1.14 to 1.2.0

10

graceful-fs.js
// this keeps a queue of opened file descriptors, and will make
// fs operations wait until some have closed before trying to open more.
var fs = require("fs")
var fs_ = require("fs")
// there is such a thing as TOO graceful.
if (fs.open === gracefulOpen) return
var fs = module.exports = {}
Object.getOwnPropertyNames(fs_).forEach(function(prop) {
var desc = Object.getOwnPropertyDescriptor(fs_, prop)
Object.defineProperty(fs, prop, desc)
})
var queue = []

@@ -10,0 +14,0 @@ , constants = require("constants")

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

"description": "fs monkey-patching to avoid EMFILE and other problems",
"version": "1.1.14",
"version": "1.2.0",
"repository": {

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

var test = require('tap').test
var fs = require('../graceful-fs.js')
test('graceful fs is not fs', function (t) {
t.notEqual(fs, require('fs'))
t.end()
})
test('open an existing file works', function (t) {

@@ -5,0 +10,0 @@ var start = fs._curOpen

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