Comparing version 0.5.0 to 0.5.1
@@ -140,11 +140,2 @@ /** | ||
if (!this.moduleOutputPiped) { | ||
if (!this.archiver.module) { | ||
callback(new Error('format module not registered')); | ||
return this; | ||
} | ||
this._pipeModuleOutput(); | ||
} | ||
if (typeof data.name !== 'string' || data.name.length === 0) { | ||
@@ -239,3 +230,9 @@ callback(new Error('filename must be a non-empty string value')); | ||
Archiver.prototype.setModule = function(module) { | ||
if (this.moduleOutputPiped) { | ||
self.emit('error', new Error('format module already set')); | ||
return; | ||
} | ||
this.archiver.module = module; | ||
this._pipeModuleOutput(); | ||
}; |
{ | ||
"name": "archiver", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Creates Archives (ZIP) via Node Streams.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ctalkington/node-archiver", |
@@ -1,2 +0,2 @@ | ||
# Archiver v0.5.0 [![Build Status](https://secure.travis-ci.org/ctalkington/node-archiver.png?branch=master)](http://travis-ci.org/ctalkington/node-archiver) | ||
# Archiver v0.5.1 [![Build Status](https://secure.travis-ci.org/ctalkington/node-archiver.png?branch=master)](http://travis-ci.org/ctalkington/node-archiver) | ||
@@ -3,0 +3,0 @@ Creates Archives (Zip, Tar) via Node Streams. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75452
1549