skipper-disk
Advanced tools
Comparing version
@@ -55,4 +55,4 @@ /** | ||
adapter.receive = function(options) { | ||
return r_buildDiskReceiverStream(options, adapter); | ||
adapter.receive = function(opts) { | ||
return r_buildDiskReceiverStream(_.defaults(opts, options), adapter); | ||
}; | ||
@@ -59,0 +59,0 @@ |
{ | ||
"name": "skipper-disk", | ||
"version": "0.5.4", | ||
"version": "0.5.6", | ||
"description": "Receive Skipper's file uploads on your local filesystem", | ||
@@ -31,10 +31,10 @@ "main": "index.js", | ||
"devDependencies": { | ||
"skipper-adapter-tests": "~1.5.2" | ||
"skipper-adapter-tests": "~1.5.8" | ||
}, | ||
"dependencies": { | ||
"fs-extra": "~0.8.1", | ||
"lodash": "~2.4.1", | ||
"node-uuid": "~1.4.1", | ||
"debug": "^2.1.1" | ||
"debug": "2.2.0", | ||
"fs-extra": "0.30.0", | ||
"lodash": "3.10.1", | ||
"node-uuid": "1.4.7" | ||
} | ||
} |
@@ -117,2 +117,9 @@ /** | ||
log('finished file: ' + __newFile.filename); | ||
// File the file entry in the receiver with the same fd as the finished stream. | ||
var file = _.find(receiver__._files, {fd: __newFile.fd}); | ||
// Set the byteCount of the stream to the "total" value of the file, which has | ||
// been updated as the file was written. | ||
__newFile.byteCount = file.total; | ||
// Indicate that a file was persisted. | ||
receiver__.emit('writefile', __newFile); | ||
done(); | ||
@@ -119,0 +126,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
20762
2.28%293
2.45%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated