Remove archiver-utils dependency

This commit is contained in:
advplyr
2022-07-08 18:11:09 -05:00
parent bca2cfda13
commit 3c5bf376b5
86 changed files with 17236 additions and 210 deletions

View File

@ -6,15 +6,15 @@
* https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT
*/
var Stream = require('stream').Stream;
var PassThrough = require('readable-stream').PassThrough;
var PassThrough = require('../../archiverUtils/readableStream').PassThrough;
var util = module.exports = {};
util.isStream = function(source) {
util.isStream = function (source) {
return source instanceof Stream;
};
util.normalizeInputSource = function(source) {
util.normalizeInputSource = function (source) {
if (source === null) {
return Buffer.alloc(0);
} else if (typeof source === 'string') {