skipper-disk
Advanced tools
Comparing version 0.5.4 to 0.5.6
@@ -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
293
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@2.2.0(transitive)
+ Addedfs-extra@0.30.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjsonfile@2.4.0(transitive)
+ Addedklaw@1.3.1(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedms@0.7.1(transitive)
+ Addednode-uuid@1.4.7(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedfs-extra@0.8.1(transitive)
- Removedjsonfile@1.1.1(transitive)
- Removedlodash@2.4.2(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedms@2.0.0(transitive)
- Removedncp@0.4.2(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedrimraf@2.2.8(transitive)
Updateddebug@2.2.0
Updatedfs-extra@0.30.0
Updatedlodash@3.10.1
Updatednode-uuid@1.4.7