fs-write-stream-atomic
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7894
6
177
1