diff options
Diffstat (limited to 'node_modules/archiver/lib')
-rw-r--r-- | node_modules/archiver/lib/core.js | 12 |
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;
|