Bump tar from 7.4.3 to 7.5.7 (#337)
* Bump tar from 7.4.3 to 7.5.7 Bumps [tar](https://github.com/isaacs/node-tar) from 7.4.3 to 7.5.7. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v7.4.3...v7.5.7) --- updated-dependencies: - dependency-name: tar dependency-version: 7.5.7 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Rebuild dist after dependency updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tingting Wang <tingx2wang@github.com>
This commit is contained in:
+77
-13
@@ -195716,32 +195716,72 @@ exports.constants = Object.freeze(Object.assign(Object.create(null), {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.BrotliDecompress = exports.BrotliCompress = exports.Brotli = exports.Unzip = exports.InflateRaw = exports.DeflateRaw = exports.Gunzip = exports.Gzip = exports.Inflate = exports.Deflate = exports.Zlib = exports.ZlibError = exports.constants = void 0;
|
||||
exports.ZstdDecompress = exports.ZstdCompress = exports.BrotliDecompress = exports.BrotliCompress = exports.Unzip = exports.InflateRaw = exports.DeflateRaw = exports.Gunzip = exports.Gzip = exports.Inflate = exports.Deflate = exports.Zlib = exports.ZlibError = exports.constants = void 0;
|
||||
const assert_1 = __importDefault(__nccwpck_require__(42613));
|
||||
const buffer_1 = __nccwpck_require__(20181);
|
||||
const minipass_1 = __nccwpck_require__(78275);
|
||||
const zlib_1 = __importDefault(__nccwpck_require__(43106));
|
||||
const realZlib = __importStar(__nccwpck_require__(43106));
|
||||
const constants_js_1 = __nccwpck_require__(5474);
|
||||
var constants_js_2 = __nccwpck_require__(5474);
|
||||
Object.defineProperty(exports, "constants", ({ enumerable: true, get: function () { return constants_js_2.constants; } }));
|
||||
const OriginalBufferConcat = buffer_1.Buffer.concat;
|
||||
const desc = Object.getOwnPropertyDescriptor(buffer_1.Buffer, 'concat');
|
||||
const noop = (args) => args;
|
||||
const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
|
||||
? (makeNoOp) => {
|
||||
buffer_1.Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
|
||||
}
|
||||
: (_) => { };
|
||||
const _superWrite = Symbol('_superWrite');
|
||||
class ZlibError extends Error {
|
||||
code;
|
||||
errno;
|
||||
constructor(err) {
|
||||
super('zlib: ' + err.message);
|
||||
constructor(err, origin) {
|
||||
super('zlib: ' + err.message, { cause: err });
|
||||
this.code = err.code;
|
||||
this.errno = err.errno;
|
||||
/* c8 ignore next */
|
||||
if (!this.code)
|
||||
this.code = 'ZLIB_ERROR';
|
||||
this.message = 'zlib: ' + err.message;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
Error.captureStackTrace(this, origin ?? this.constructor);
|
||||
}
|
||||
get name() {
|
||||
return 'ZlibError';
|
||||
@@ -195782,15 +195822,19 @@ class ZlibBase extends minipass_1.Minipass {
|
||||
this.#finishFlushFlag = opts.finishFlush ?? 0;
|
||||
this.#fullFlushFlag = opts.fullFlushFlag ?? 0;
|
||||
/* c8 ignore stop */
|
||||
//@ts-ignore
|
||||
if (typeof realZlib[mode] !== 'function') {
|
||||
throw new TypeError('Compression method not supported: ' + mode);
|
||||
}
|
||||
// this will throw if any options are invalid for the class selected
|
||||
try {
|
||||
// @types/node doesn't know that it exports the classes, but they're there
|
||||
//@ts-ignore
|
||||
this.#handle = new zlib_1.default[mode](opts);
|
||||
this.#handle = new realZlib[mode](opts);
|
||||
}
|
||||
catch (er) {
|
||||
// make sure that all errors get decorated properly
|
||||
throw new ZlibError(er);
|
||||
throw new ZlibError(er, this.constructor);
|
||||
}
|
||||
this.#onError = err => {
|
||||
// no sense raising multiple errors, since we abort on the first one.
|
||||
@@ -195876,7 +195920,7 @@ class ZlibBase extends minipass_1.Minipass {
|
||||
this.#handle.close = () => { };
|
||||
// It also calls `Buffer.concat()` at the end, which may be convenient
|
||||
// for some, but which we are not interested in as it slows us down.
|
||||
buffer_1.Buffer.concat = args => args;
|
||||
passthroughBufferConcat(true);
|
||||
let result = undefined;
|
||||
try {
|
||||
const flushFlag = typeof chunk[_flushFlag] === 'number'
|
||||
@@ -195884,13 +195928,13 @@ class ZlibBase extends minipass_1.Minipass {
|
||||
: this.#flushFlag;
|
||||
result = this.#handle._processChunk(chunk, flushFlag);
|
||||
// if we don't throw, reset it back how it was
|
||||
buffer_1.Buffer.concat = OriginalBufferConcat;
|
||||
passthroughBufferConcat(false);
|
||||
}
|
||||
catch (err) {
|
||||
// or if we do, put Buffer.concat() back before we emit error
|
||||
// Error events call into user code, which may call Buffer.concat()
|
||||
buffer_1.Buffer.concat = OriginalBufferConcat;
|
||||
this.#onError(new ZlibError(err));
|
||||
passthroughBufferConcat(false);
|
||||
this.#onError(new ZlibError(err, this.write));
|
||||
}
|
||||
finally {
|
||||
if (this.#handle) {
|
||||
@@ -195909,7 +195953,7 @@ class ZlibBase extends minipass_1.Minipass {
|
||||
}
|
||||
}
|
||||
if (this.#handle)
|
||||
this.#handle.on('error', er => this.#onError(new ZlibError(er)));
|
||||
this.#handle.on('error', er => this.#onError(new ZlibError(er, this.write)));
|
||||
let writeReturn;
|
||||
if (result) {
|
||||
if (Array.isArray(result) && result.length > 0) {
|
||||
@@ -196053,7 +196097,6 @@ class Brotli extends ZlibBase {
|
||||
super(opts, mode);
|
||||
}
|
||||
}
|
||||
exports.Brotli = Brotli;
|
||||
class BrotliCompress extends Brotli {
|
||||
constructor(opts) {
|
||||
super(opts, 'BrotliCompress');
|
||||
@@ -196066,6 +196109,27 @@ class BrotliDecompress extends Brotli {
|
||||
}
|
||||
}
|
||||
exports.BrotliDecompress = BrotliDecompress;
|
||||
class Zstd extends ZlibBase {
|
||||
constructor(opts, mode) {
|
||||
opts = opts || {};
|
||||
opts.flush = opts.flush || constants_js_1.constants.ZSTD_e_continue;
|
||||
opts.finishFlush = opts.finishFlush || constants_js_1.constants.ZSTD_e_end;
|
||||
opts.fullFlushFlag = constants_js_1.constants.ZSTD_e_flush;
|
||||
super(opts, mode);
|
||||
}
|
||||
}
|
||||
class ZstdCompress extends Zstd {
|
||||
constructor(opts) {
|
||||
super(opts, 'ZstdCompress');
|
||||
}
|
||||
}
|
||||
exports.ZstdCompress = ZstdCompress;
|
||||
class ZstdDecompress extends Zstd {
|
||||
constructor(opts) {
|
||||
super(opts, 'ZstdDecompress');
|
||||
}
|
||||
}
|
||||
exports.ZstdDecompress = ZstdDecompress;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
Reference in New Issue
Block a user