fs-write-stream-atomic
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "fs-write-stream-atomic", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Like `fs.createWriteStream(...)`, but atomic.", | ||
@@ -10,6 +10,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"graceful-fs": "^3.0.2" | ||
"graceful-fs": "^4.1.2" | ||
}, | ||
"devDependencies": { | ||
"tap": "^0.4.12" | ||
"tap": "^1.2.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -17,4 +17,8 @@ var path = require('path') | ||
var stream = writeStream(target) | ||
var hadError = false | ||
stream.on('error', function (er) { | ||
t.is(er.code, 'ENAMETOOLONG', target.length + " character name results in ENAMETOOLONG") | ||
if (!hadError) { | ||
t.is(er.code, 'ENAMETOOLONG', target.length + " character name results in ENAMETOOLONG") | ||
hadError = true | ||
} | ||
}) | ||
@@ -25,2 +29,2 @@ stream.on('close', function () { | ||
stream.end() | ||
}) | ||
}) |
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
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
7968
182
+ Addedgraceful-fs@4.2.11(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removednatives@1.1.6(transitive)
Updatedgraceful-fs@^4.1.2