From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/archiver/lib/core.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'node_modules/archiver/lib/core.js') 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; -- cgit v1.2.3