aboutsummaryrefslogtreecommitdiff
path: root/node_modules/archiver/lib/core.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/archiver/lib/core.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/archiver/lib/core.js')
-rw-r--r--node_modules/archiver/lib/core.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/archiver/lib/core.js b/node_modules/archiver/lib/core.js
index 59435a5ad..6103d43e4 100644
--- a/node_modules/archiver/lib/core.js
+++ b/node_modules/archiver/lib/core.js
@@ -58,6 +58,8 @@ var Archiver = function(format, options) {
};
this._streams = [];
+
+ this._loggedBulkDeprecation = false;
};
inherits(Archiver, Transform);
@@ -555,6 +557,16 @@ Archiver.prototype.append = function(source, data) {
* @return {this}
*/
Archiver.prototype.bulk = function(mappings) {
+ if (!this._loggedBulkDeprecation) {
+ this._loggedBulkDeprecation = true;
+ var warning = 'Archiver.bulk() deprecated since 0.21.0';
+ if (typeof process !== 'undefined' && typeof process.emitWarning !== 'undefined') {
+ process.emitWarning(warning, 'DeprecationWarning');
+ } else {
+ console.warn(warning);
+ }
+ }
+
if (this._state.finalize || this._state.aborted) {
this.emit('error', new Error('bulk: queue closed'));
return this;