Socket
Socket
Sign inDemoInstall

with-open-file

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

with-open-file - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

index.js

@@ -5,2 +5,3 @@ 'use strict'

const pify = require('pify')
const pTry = require('p-try')
const pFinally = require('p-finally')

@@ -14,3 +15,3 @@

.open(...args)
.then(fd => pFinally(callback(fd), _ => fsP.close(fd)))
.then(fd => pFinally(pTry(callback, fd), _ => fsP.close(fd)))
}

@@ -17,0 +18,0 @@

{
"name": "with-open-file",
"version": "0.1.0",
"version": "0.1.1",
"description": "Do stuff with an open file, knowing it will finally be closed",

@@ -25,6 +25,7 @@ "repository": "raphinesse/with-open-file",

"scripts": {
"test": "ava"
"test": "xo && nyc ava"
},
"dependencies": {
"p-finally": "^1.0.0",
"p-try": "^2.0.0",
"pify": "^3.0.0"

@@ -34,5 +35,7 @@ },

"ava": "^0.25.0",
"delay": "^3.1.0",
"nyc": "^12.0.2",
"rewire": "^4.0.1",
"sinon": "^6.1.5",
"xo": "^0.22.0"
"xo": "^0.21.0"
},

@@ -39,0 +42,0 @@ "engines": {

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