Socket
Socket
Sign inDemoInstall

fs-write-stream-atomic

Package Overview
Dependencies
2
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

test/toolong.js

6

index.js

@@ -42,7 +42,7 @@ var fs = require('graceful-fs')

function cleanupSync (er) {
function cleanupSync () {
try {
fs.unlinkSync(this.__atomicTmp)
} finally {
return fs.WriteStream.prototype.emit.call(this, 'error', er)
return
}

@@ -54,3 +54,3 @@ }

if (ev === 'error')
return cleanupSync(this)
cleanupSync.call(this)

@@ -57,0 +57,0 @@ if (ev !== 'close' && ev !== 'finish')

{
"name": "fs-write-stream-atomic",
"version": "1.0.2",
"version": "1.0.3",
"description": "Like `fs.createWriteStream(...)`, but atomic.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc