git0 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +288 -285
- package/dist/cli.js.map +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9045,7 +9045,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
9045
9045
|
if (resCode !== undefined) {
|
|
9046
9046
|
dbcsCode = resCode;
|
|
9047
9047
|
nextChar = uCode;
|
|
9048
|
-
}
|
|
9048
|
+
}
|
|
9049
9049
|
}
|
|
9050
9050
|
seqObj = undefined;
|
|
9051
9051
|
} else if (uCode >= 0) {
|
|
@@ -9110,7 +9110,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
9110
9110
|
newBuf[j++] = dbcsCode >> 8;
|
|
9111
9111
|
newBuf[j++] = dbcsCode & 255;
|
|
9112
9112
|
}
|
|
9113
|
-
}
|
|
9113
|
+
}
|
|
9114
9114
|
this.seqObj = undefined;
|
|
9115
9115
|
}
|
|
9116
9116
|
if (this.leadSurrogate !== -1) {
|
|
@@ -24155,9 +24155,9 @@ import Vt from "node:fs";
|
|
|
24155
24155
|
import { dirname as Ln, parse as Nn } from "path";
|
|
24156
24156
|
import { EventEmitter as _n } from "events";
|
|
24157
24157
|
import Pi from "assert";
|
|
24158
|
-
import { Buffer as
|
|
24158
|
+
import { Buffer as Ot } from "buffer";
|
|
24159
24159
|
import * as vs from "zlib";
|
|
24160
|
-
import
|
|
24160
|
+
import Qr from "zlib";
|
|
24161
24161
|
import { posix as Zt } from "node:path";
|
|
24162
24162
|
import { basename as Sn } from "node:path";
|
|
24163
24163
|
import ui from "fs";
|
|
@@ -24165,7 +24165,7 @@ import $ from "fs";
|
|
|
24165
24165
|
import Xs from "path";
|
|
24166
24166
|
import { win32 as Cn } from "node:path";
|
|
24167
24167
|
import rr from "path";
|
|
24168
|
-
import
|
|
24168
|
+
import kr from "node:fs";
|
|
24169
24169
|
import ro from "node:assert";
|
|
24170
24170
|
import { randomBytes as Cr } from "node:crypto";
|
|
24171
24171
|
import u from "node:fs";
|
|
@@ -24173,12 +24173,12 @@ import R from "node:path";
|
|
|
24173
24173
|
import fr from "fs";
|
|
24174
24174
|
import Ei from "node:fs";
|
|
24175
24175
|
import we from "node:path";
|
|
24176
|
-
import
|
|
24177
|
-
import
|
|
24176
|
+
import F from "node:fs";
|
|
24177
|
+
import Jn from "node:fs/promises";
|
|
24178
24178
|
import wi from "node:path";
|
|
24179
|
-
import { join as
|
|
24179
|
+
import { join as br } from "node:path";
|
|
24180
24180
|
import v from "node:fs";
|
|
24181
|
-
import
|
|
24181
|
+
import Fr from "node:path";
|
|
24182
24182
|
var vr = Object.defineProperty;
|
|
24183
24183
|
var Mr = (s, t) => {
|
|
24184
24184
|
for (var e in t)
|
|
@@ -24189,42 +24189,42 @@ var Pr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof D
|
|
|
24189
24189
|
var zr = (s) => !!s && typeof s == "object" && s instanceof Li && typeof s.pipe == "function" && s.pipe !== Ds.Writable.prototype.pipe;
|
|
24190
24190
|
var Ur = (s) => !!s && typeof s == "object" && s instanceof Li && typeof s.write == "function" && typeof s.end == "function";
|
|
24191
24191
|
var q = Symbol("EOF");
|
|
24192
|
-
var
|
|
24192
|
+
var Q = Symbol("maybeEmitEnd");
|
|
24193
24193
|
var rt = Symbol("emittedEnd");
|
|
24194
24194
|
var Ne = Symbol("emittingEnd");
|
|
24195
|
-
var
|
|
24195
|
+
var Qt = Symbol("emittedError");
|
|
24196
24196
|
var De = Symbol("closed");
|
|
24197
24197
|
var xs = Symbol("read");
|
|
24198
24198
|
var Ae = Symbol("flush");
|
|
24199
24199
|
var Ls = Symbol("flushChunk");
|
|
24200
24200
|
var z = Symbol("encoding");
|
|
24201
24201
|
var Mt = Symbol("decoder");
|
|
24202
|
-
var
|
|
24203
|
-
var
|
|
24202
|
+
var g = Symbol("flowing");
|
|
24203
|
+
var Jt = Symbol("paused");
|
|
24204
24204
|
var Bt = Symbol("resume");
|
|
24205
|
-
var
|
|
24205
|
+
var b = Symbol("buffer");
|
|
24206
24206
|
var D = Symbol("pipes");
|
|
24207
24207
|
var _2 = Symbol("bufferLength");
|
|
24208
|
-
var
|
|
24208
|
+
var gi = Symbol("bufferPush");
|
|
24209
24209
|
var Ie = Symbol("bufferShift");
|
|
24210
24210
|
var L = Symbol("objectMode");
|
|
24211
24211
|
var w = Symbol("destroyed");
|
|
24212
|
-
var
|
|
24212
|
+
var bi = Symbol("error");
|
|
24213
24213
|
var _i = Symbol("emitData");
|
|
24214
24214
|
var Ns = Symbol("emitEnd");
|
|
24215
24215
|
var Oi = Symbol("emitEnd2");
|
|
24216
24216
|
var Z = Symbol("async");
|
|
24217
24217
|
var Ti = Symbol("abort");
|
|
24218
24218
|
var Ce = Symbol("aborted");
|
|
24219
|
-
var
|
|
24220
|
-
var
|
|
24219
|
+
var jt = Symbol("signal");
|
|
24220
|
+
var Rt = Symbol("dataListeners");
|
|
24221
24221
|
var C = Symbol("discarded");
|
|
24222
24222
|
var te = (s) => Promise.resolve().then(s);
|
|
24223
24223
|
var Hr = (s) => s();
|
|
24224
24224
|
var Wr = (s) => s === "end" || s === "finish" || s === "prefinish";
|
|
24225
24225
|
var Gr = (s) => s instanceof ArrayBuffer || !!s && typeof s == "object" && s.constructor && s.constructor.name === "ArrayBuffer" && s.byteLength >= 0;
|
|
24226
24226
|
var Zr = (s) => !Buffer.isBuffer(s) && ArrayBuffer.isView(s);
|
|
24227
|
-
var
|
|
24227
|
+
var ke = class {
|
|
24228
24228
|
src;
|
|
24229
24229
|
dest;
|
|
24230
24230
|
opts;
|
|
@@ -24240,7 +24240,7 @@ var Fe = class {
|
|
|
24240
24240
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
24241
24241
|
}
|
|
24242
24242
|
};
|
|
24243
|
-
var xi = class extends
|
|
24243
|
+
var xi = class extends ke {
|
|
24244
24244
|
unpipe() {
|
|
24245
24245
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
24246
24246
|
}
|
|
@@ -24251,10 +24251,10 @@ var xi = class extends Fe {
|
|
|
24251
24251
|
var Yr = (s) => !!s.objectMode;
|
|
24252
24252
|
var Kr = (s) => !s.objectMode && !!s.encoding && s.encoding !== "buffer";
|
|
24253
24253
|
var A = class extends Li {
|
|
24254
|
-
[
|
|
24255
|
-
[
|
|
24254
|
+
[g] = false;
|
|
24255
|
+
[Jt] = false;
|
|
24256
24256
|
[D] = [];
|
|
24257
|
-
[
|
|
24257
|
+
[b] = [];
|
|
24258
24258
|
[L];
|
|
24259
24259
|
[z];
|
|
24260
24260
|
[Z];
|
|
@@ -24263,12 +24263,12 @@ var A = class extends Li {
|
|
|
24263
24263
|
[rt] = false;
|
|
24264
24264
|
[Ne] = false;
|
|
24265
24265
|
[De] = false;
|
|
24266
|
-
[
|
|
24266
|
+
[Qt] = null;
|
|
24267
24267
|
[_2] = 0;
|
|
24268
24268
|
[w] = false;
|
|
24269
|
-
[
|
|
24269
|
+
[jt];
|
|
24270
24270
|
[Ce] = false;
|
|
24271
|
-
[
|
|
24271
|
+
[Rt] = 0;
|
|
24272
24272
|
[C] = false;
|
|
24273
24273
|
writable = true;
|
|
24274
24274
|
readable = true;
|
|
@@ -24276,9 +24276,9 @@ var A = class extends Li {
|
|
|
24276
24276
|
let e = t[0] || {};
|
|
24277
24277
|
if (super(), e.objectMode && typeof e.encoding == "string")
|
|
24278
24278
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
24279
|
-
Yr(e) ? (this[L] = true, this[z] = null) : Kr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new Br(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[
|
|
24279
|
+
Yr(e) ? (this[L] = true, this[z] = null) : Kr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new Br(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D] });
|
|
24280
24280
|
let { signal: i } = e;
|
|
24281
|
-
i && (this[
|
|
24281
|
+
i && (this[jt] = i, i.aborted ? this[Ti]() : i.addEventListener("abort", () => this[Ti]()));
|
|
24282
24282
|
}
|
|
24283
24283
|
get bufferLength() {
|
|
24284
24284
|
return this[_2];
|
|
@@ -24305,7 +24305,7 @@ var A = class extends Li {
|
|
|
24305
24305
|
this[Z] = this[Z] || !!t;
|
|
24306
24306
|
}
|
|
24307
24307
|
[Ti]() {
|
|
24308
|
-
this[Ce] = true, this.emit("abort", this[
|
|
24308
|
+
this[Ce] = true, this.emit("abort", this[jt]?.reason), this.destroy(this[jt]?.reason);
|
|
24309
24309
|
}
|
|
24310
24310
|
get aborted() {
|
|
24311
24311
|
return this[Ce];
|
|
@@ -24328,72 +24328,72 @@ var A = class extends Li {
|
|
|
24328
24328
|
else if (typeof t != "string")
|
|
24329
24329
|
throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
24330
24330
|
}
|
|
24331
|
-
return this[L] ? (this[
|
|
24331
|
+
return this[L] ? (this[g] && this[_2] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[gi](t), this[_2] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_2] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[gi](t), this[_2] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_2] !== 0 && this.emit("readable"), i && r(i), this[g]);
|
|
24332
24332
|
}
|
|
24333
24333
|
read(t) {
|
|
24334
24334
|
if (this[w])
|
|
24335
24335
|
return null;
|
|
24336
24336
|
if (this[C] = false, this[_2] === 0 || t === 0 || t && t > this[_2])
|
|
24337
|
-
return this[
|
|
24338
|
-
this[L] && (t = null), this[
|
|
24339
|
-
let e = this[xs](t || null, this[
|
|
24340
|
-
return this[
|
|
24337
|
+
return this[Q](), null;
|
|
24338
|
+
this[L] && (t = null), this[b].length > 1 && !this[L] && (this[b] = [this[z] ? this[b].join("") : Buffer.concat(this[b], this[_2])]);
|
|
24339
|
+
let e = this[xs](t || null, this[b][0]);
|
|
24340
|
+
return this[Q](), e;
|
|
24341
24341
|
}
|
|
24342
24342
|
[xs](t, e) {
|
|
24343
24343
|
if (this[L])
|
|
24344
24344
|
this[Ie]();
|
|
24345
24345
|
else {
|
|
24346
24346
|
let i = e;
|
|
24347
|
-
t === i.length || t === null ? this[Ie]() : typeof i == "string" ? (this[
|
|
24347
|
+
t === i.length || t === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_2] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_2] -= t);
|
|
24348
24348
|
}
|
|
24349
|
-
return this.emit("data", e), !this[
|
|
24349
|
+
return this.emit("data", e), !this[b].length && !this[q] && this.emit("drain"), e;
|
|
24350
24350
|
}
|
|
24351
24351
|
end(t, e, i) {
|
|
24352
|
-
return typeof t == "function" && (i = t, t = undefined), typeof e == "function" && (i = e, e = "utf8"), t !== undefined && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[
|
|
24352
|
+
return typeof t == "function" && (i = t, t = undefined), typeof e == "function" && (i = e, e = "utf8"), t !== undefined && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[g] || !this[Jt]) && this[Q](), this;
|
|
24353
24353
|
}
|
|
24354
24354
|
[Bt]() {
|
|
24355
|
-
this[w] || (!this[
|
|
24355
|
+
this[w] || (!this[Rt] && !this[D].length && (this[C] = true), this[Jt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[Ae]() : this[q] ? this[Q]() : this.emit("drain"));
|
|
24356
24356
|
}
|
|
24357
24357
|
resume() {
|
|
24358
24358
|
return this[Bt]();
|
|
24359
24359
|
}
|
|
24360
24360
|
pause() {
|
|
24361
|
-
this[
|
|
24361
|
+
this[g] = false, this[Jt] = true, this[C] = false;
|
|
24362
24362
|
}
|
|
24363
24363
|
get destroyed() {
|
|
24364
24364
|
return this[w];
|
|
24365
24365
|
}
|
|
24366
24366
|
get flowing() {
|
|
24367
|
-
return this[
|
|
24367
|
+
return this[g];
|
|
24368
24368
|
}
|
|
24369
24369
|
get paused() {
|
|
24370
|
-
return this[
|
|
24370
|
+
return this[Jt];
|
|
24371
24371
|
}
|
|
24372
|
-
[
|
|
24373
|
-
this[L] ? this[_2] += 1 : this[_2] += t.length, this[
|
|
24372
|
+
[gi](t) {
|
|
24373
|
+
this[L] ? this[_2] += 1 : this[_2] += t.length, this[b].push(t);
|
|
24374
24374
|
}
|
|
24375
24375
|
[Ie]() {
|
|
24376
|
-
return this[L] ? this[_2] -= 1 : this[_2] -= this[
|
|
24376
|
+
return this[L] ? this[_2] -= 1 : this[_2] -= this[b][0].length, this[b].shift();
|
|
24377
24377
|
}
|
|
24378
24378
|
[Ae](t = false) {
|
|
24379
24379
|
do
|
|
24380
24380
|
;
|
|
24381
|
-
while (this[Ls](this[Ie]()) && this[
|
|
24382
|
-
!t && !this[
|
|
24381
|
+
while (this[Ls](this[Ie]()) && this[b].length);
|
|
24382
|
+
!t && !this[b].length && !this[q] && this.emit("drain");
|
|
24383
24383
|
}
|
|
24384
24384
|
[Ls](t) {
|
|
24385
|
-
return this.emit("data", t), this[
|
|
24385
|
+
return this.emit("data", t), this[g];
|
|
24386
24386
|
}
|
|
24387
24387
|
pipe(t, e) {
|
|
24388
24388
|
if (this[w])
|
|
24389
24389
|
return t;
|
|
24390
24390
|
this[C] = false;
|
|
24391
24391
|
let i = this[rt];
|
|
24392
|
-
return e = e || {}, t === Ts.stdout || t === Ts.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new
|
|
24392
|
+
return e = e || {}, t === Ts.stdout || t === Ts.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new ke(this, t, e)), this[Z] ? te(() => this[Bt]()) : this[Bt]()), t;
|
|
24393
24393
|
}
|
|
24394
24394
|
unpipe(t) {
|
|
24395
24395
|
let e = this[D].find((i) => i.dest === t);
|
|
24396
|
-
e && (this[D].length === 1 ? (this[
|
|
24396
|
+
e && (this[D].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[D] = []) : this[D].splice(this[D].indexOf(e), 1), e.unpipe());
|
|
24397
24397
|
}
|
|
24398
24398
|
addListener(t, e) {
|
|
24399
24399
|
return this.on(t, e);
|
|
@@ -24401,14 +24401,14 @@ var A = class extends Li {
|
|
|
24401
24401
|
on(t, e) {
|
|
24402
24402
|
let i = super.on(t, e);
|
|
24403
24403
|
if (t === "data")
|
|
24404
|
-
this[C] = false, this[
|
|
24404
|
+
this[C] = false, this[Rt]++, !this[D].length && !this[g] && this[Bt]();
|
|
24405
24405
|
else if (t === "readable" && this[_2] !== 0)
|
|
24406
24406
|
super.emit("readable");
|
|
24407
24407
|
else if (Wr(t) && this[rt])
|
|
24408
24408
|
super.emit(t), this.removeAllListeners(t);
|
|
24409
|
-
else if (t === "error" && this[
|
|
24409
|
+
else if (t === "error" && this[Qt]) {
|
|
24410
24410
|
let r = e;
|
|
24411
|
-
this[Z] ? te(() => r.call(this, this[
|
|
24411
|
+
this[Z] ? te(() => r.call(this, this[Qt])) : r.call(this, this[Qt]);
|
|
24412
24412
|
}
|
|
24413
24413
|
return i;
|
|
24414
24414
|
}
|
|
@@ -24417,17 +24417,17 @@ var A = class extends Li {
|
|
|
24417
24417
|
}
|
|
24418
24418
|
off(t, e) {
|
|
24419
24419
|
let i = super.off(t, e);
|
|
24420
|
-
return t === "data" && (this[
|
|
24420
|
+
return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[C] && !this[D].length && (this[g] = false)), i;
|
|
24421
24421
|
}
|
|
24422
24422
|
removeAllListeners(t) {
|
|
24423
24423
|
let e = super.removeAllListeners(t);
|
|
24424
|
-
return (t === "data" || t === undefined) && (this[
|
|
24424
|
+
return (t === "data" || t === undefined) && (this[Rt] = 0, !this[C] && !this[D].length && (this[g] = false)), e;
|
|
24425
24425
|
}
|
|
24426
24426
|
get emittedEnd() {
|
|
24427
24427
|
return this[rt];
|
|
24428
24428
|
}
|
|
24429
|
-
[
|
|
24430
|
-
!this[Ne] && !this[rt] && !this[w] && this[
|
|
24429
|
+
[Q]() {
|
|
24430
|
+
!this[Ne] && !this[rt] && !this[w] && this[b].length === 0 && this[q] && (this[Ne] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[De] && this.emit("close"), this[Ne] = false);
|
|
24431
24431
|
}
|
|
24432
24432
|
emit(t, ...e) {
|
|
24433
24433
|
let i = e[0];
|
|
@@ -24443,24 +24443,24 @@ var A = class extends Li {
|
|
|
24443
24443
|
let n = super.emit("close");
|
|
24444
24444
|
return this.removeAllListeners("close"), n;
|
|
24445
24445
|
} else if (t === "error") {
|
|
24446
|
-
this[
|
|
24447
|
-
let n = !this[
|
|
24448
|
-
return this[
|
|
24446
|
+
this[Qt] = i, super.emit(bi, i);
|
|
24447
|
+
let n = !this[jt] || this.listeners("error").length ? super.emit("error", i) : false;
|
|
24448
|
+
return this[Q](), n;
|
|
24449
24449
|
} else if (t === "resume") {
|
|
24450
24450
|
let n = super.emit("resume");
|
|
24451
|
-
return this[
|
|
24451
|
+
return this[Q](), n;
|
|
24452
24452
|
} else if (t === "finish" || t === "prefinish") {
|
|
24453
24453
|
let n = super.emit(t);
|
|
24454
24454
|
return this.removeAllListeners(t), n;
|
|
24455
24455
|
}
|
|
24456
24456
|
let r = super.emit(t, ...e);
|
|
24457
|
-
return this[
|
|
24457
|
+
return this[Q](), r;
|
|
24458
24458
|
}
|
|
24459
24459
|
[_i](t) {
|
|
24460
24460
|
for (let i of this[D])
|
|
24461
24461
|
i.dest.write(t) === false && this.pause();
|
|
24462
24462
|
let e = this[C] ? false : super.emit("data", t);
|
|
24463
|
-
return this[
|
|
24463
|
+
return this[Q](), e;
|
|
24464
24464
|
}
|
|
24465
24465
|
[Ns]() {
|
|
24466
24466
|
return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[Oi]()), true) : this[Oi]());
|
|
@@ -24525,20 +24525,20 @@ var A = class extends Li {
|
|
|
24525
24525
|
}
|
|
24526
24526
|
[Symbol.iterator]() {
|
|
24527
24527
|
this[C] = false;
|
|
24528
|
-
let t = false, e = () => (this.pause(), this.off(
|
|
24528
|
+
let t = false, e = () => (this.pause(), this.off(bi, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: undefined }), i = () => {
|
|
24529
24529
|
if (t)
|
|
24530
24530
|
return e();
|
|
24531
24531
|
let r = this.read();
|
|
24532
24532
|
return r === null ? e() : { done: false, value: r };
|
|
24533
24533
|
};
|
|
24534
|
-
return this.once("end", e), this.once(
|
|
24534
|
+
return this.once("end", e), this.once(bi, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
|
|
24535
24535
|
return this;
|
|
24536
24536
|
}, [Symbol.dispose]: () => {} };
|
|
24537
24537
|
}
|
|
24538
24538
|
destroy(t) {
|
|
24539
24539
|
if (this[w])
|
|
24540
24540
|
return t ? this.emit("error", t) : this.emit(w), this;
|
|
24541
|
-
this[w] = true, this[C] = true, this[
|
|
24541
|
+
this[w] = true, this[C] = true, this[b].length = 0, this[_2] = 0;
|
|
24542
24542
|
let e = this;
|
|
24543
24543
|
return typeof e.close == "function" && !this[De] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
|
|
24544
24544
|
}
|
|
@@ -24552,12 +24552,12 @@ var H = Symbol("_close");
|
|
|
24552
24552
|
var ee = Symbol("_ended");
|
|
24553
24553
|
var m = Symbol("_fd");
|
|
24554
24554
|
var Ni = Symbol("_finished");
|
|
24555
|
-
var
|
|
24555
|
+
var j = Symbol("_flags");
|
|
24556
24556
|
var Di = Symbol("_flush");
|
|
24557
|
-
var
|
|
24558
|
-
var
|
|
24557
|
+
var ki = Symbol("_handleChunk");
|
|
24558
|
+
var Fi = Symbol("_makeBuf");
|
|
24559
24559
|
var se = Symbol("_mode");
|
|
24560
|
-
var
|
|
24560
|
+
var Fe = Symbol("_needDrain");
|
|
24561
24561
|
var Ut = Symbol("_onerror");
|
|
24562
24562
|
var Ht = Symbol("_onopen");
|
|
24563
24563
|
var Ai = Symbol("_onread");
|
|
@@ -24568,26 +24568,26 @@ var nt = Symbol("_pos");
|
|
|
24568
24568
|
var Y = Symbol("_queue");
|
|
24569
24569
|
var zt = Symbol("_read");
|
|
24570
24570
|
var Ii = Symbol("_readSize");
|
|
24571
|
-
var
|
|
24571
|
+
var J = Symbol("_reading");
|
|
24572
24572
|
var ie = Symbol("_remain");
|
|
24573
24573
|
var Ci = Symbol("_size");
|
|
24574
24574
|
var ve = Symbol("_write");
|
|
24575
|
-
var
|
|
24575
|
+
var gt = Symbol("_writing");
|
|
24576
24576
|
var Me = Symbol("_defaultFlag");
|
|
24577
24577
|
var bt = Symbol("_errored");
|
|
24578
|
-
var
|
|
24578
|
+
var _t = class extends A {
|
|
24579
24579
|
[bt] = false;
|
|
24580
24580
|
[m];
|
|
24581
24581
|
[U];
|
|
24582
24582
|
[Ii];
|
|
24583
|
-
[
|
|
24583
|
+
[J] = false;
|
|
24584
24584
|
[Ci];
|
|
24585
24585
|
[ie];
|
|
24586
24586
|
[ot];
|
|
24587
24587
|
constructor(t, e) {
|
|
24588
24588
|
if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string")
|
|
24589
24589
|
throw new TypeError("path must be a string");
|
|
24590
|
-
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : undefined, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[
|
|
24590
|
+
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : undefined, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[J] = false, this[Ci] = typeof e.size == "number" ? e.size : 1 / 0, this[ie] = this[Ci], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
|
|
24591
24591
|
}
|
|
24592
24592
|
get fd() {
|
|
24593
24593
|
return this[m];
|
|
@@ -24607,20 +24607,20 @@ var gt = class extends A {
|
|
|
24607
24607
|
[Ht](t, e) {
|
|
24608
24608
|
t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
|
|
24609
24609
|
}
|
|
24610
|
-
[
|
|
24610
|
+
[Fi]() {
|
|
24611
24611
|
return Buffer.allocUnsafe(Math.min(this[Ii], this[ie]));
|
|
24612
24612
|
}
|
|
24613
24613
|
[zt]() {
|
|
24614
|
-
if (!this[
|
|
24615
|
-
this[
|
|
24616
|
-
let t = this[
|
|
24614
|
+
if (!this[J]) {
|
|
24615
|
+
this[J] = true;
|
|
24616
|
+
let t = this[Fi]();
|
|
24617
24617
|
if (t.length === 0)
|
|
24618
24618
|
return process.nextTick(() => this[Ai](null, 0, t));
|
|
24619
24619
|
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
|
|
24620
24620
|
}
|
|
24621
24621
|
}
|
|
24622
24622
|
[Ai](t, e, i) {
|
|
24623
|
-
this[
|
|
24623
|
+
this[J] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
|
|
24624
24624
|
}
|
|
24625
24625
|
[H]() {
|
|
24626
24626
|
if (this[ot] && typeof this[m] == "number") {
|
|
@@ -24629,9 +24629,9 @@ var gt = class extends A {
|
|
|
24629
24629
|
}
|
|
24630
24630
|
}
|
|
24631
24631
|
[Ut](t) {
|
|
24632
|
-
this[
|
|
24632
|
+
this[J] = true, this[H](), this.emit("error", t);
|
|
24633
24633
|
}
|
|
24634
|
-
[
|
|
24634
|
+
[ki](t, e) {
|
|
24635
24635
|
let i = false;
|
|
24636
24636
|
return this[ie] -= t, t > 0 && (i = super.write(t < e.length ? e.subarray(0, t) : e)), (t === 0 || this[ie] <= 0) && (i = false, this[H](), super.end()), i;
|
|
24637
24637
|
}
|
|
@@ -24649,7 +24649,7 @@ var gt = class extends A {
|
|
|
24649
24649
|
}
|
|
24650
24650
|
}
|
|
24651
24651
|
};
|
|
24652
|
-
var Be = class extends
|
|
24652
|
+
var Be = class extends _t {
|
|
24653
24653
|
[ht]() {
|
|
24654
24654
|
let t = true;
|
|
24655
24655
|
try {
|
|
@@ -24661,14 +24661,14 @@ var Be = class extends gt {
|
|
|
24661
24661
|
[zt]() {
|
|
24662
24662
|
let t = true;
|
|
24663
24663
|
try {
|
|
24664
|
-
if (!this[
|
|
24665
|
-
this[
|
|
24664
|
+
if (!this[J]) {
|
|
24665
|
+
this[J] = true;
|
|
24666
24666
|
do {
|
|
24667
|
-
let e = this[
|
|
24668
|
-
if (!this[
|
|
24667
|
+
let e = this[Fi](), i = e.length === 0 ? 0 : I.readSync(this[m], e, 0, e.length, null);
|
|
24668
|
+
if (!this[ki](i, e))
|
|
24669
24669
|
break;
|
|
24670
24670
|
} while (true);
|
|
24671
|
-
this[
|
|
24671
|
+
this[J] = false;
|
|
24672
24672
|
}
|
|
24673
24673
|
t = false;
|
|
24674
24674
|
} finally {
|
|
@@ -24686,22 +24686,22 @@ var tt = class extends Vr {
|
|
|
24686
24686
|
readable = false;
|
|
24687
24687
|
writable = true;
|
|
24688
24688
|
[bt] = false;
|
|
24689
|
-
[
|
|
24689
|
+
[gt] = false;
|
|
24690
24690
|
[ee] = false;
|
|
24691
24691
|
[Y] = [];
|
|
24692
|
-
[
|
|
24692
|
+
[Fe] = false;
|
|
24693
24693
|
[U];
|
|
24694
24694
|
[se];
|
|
24695
24695
|
[ot];
|
|
24696
24696
|
[m];
|
|
24697
24697
|
[Me];
|
|
24698
|
-
[
|
|
24698
|
+
[j];
|
|
24699
24699
|
[Ni] = false;
|
|
24700
24700
|
[nt];
|
|
24701
24701
|
constructor(t, e) {
|
|
24702
24702
|
e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : undefined, this[se] = e.mode === undefined ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : undefined, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
|
|
24703
24703
|
let i = this[nt] !== undefined ? "r+" : "w";
|
|
24704
|
-
this[Me] = e.flags === undefined, this[
|
|
24704
|
+
this[Me] = e.flags === undefined, this[j] = e.flags === undefined ? i : e.flags, this[m] === undefined && this[ht]();
|
|
24705
24705
|
}
|
|
24706
24706
|
emit(t, ...e) {
|
|
24707
24707
|
if (t === "error") {
|
|
@@ -24718,25 +24718,25 @@ var tt = class extends Vr {
|
|
|
24718
24718
|
return this[U];
|
|
24719
24719
|
}
|
|
24720
24720
|
[Ut](t) {
|
|
24721
|
-
this[H](), this[
|
|
24721
|
+
this[H](), this[gt] = true, this.emit("error", t);
|
|
24722
24722
|
}
|
|
24723
24723
|
[ht]() {
|
|
24724
|
-
I.open(this[U], this[
|
|
24724
|
+
I.open(this[U], this[j], this[se], (t, e) => this[Ht](t, e));
|
|
24725
24725
|
}
|
|
24726
24726
|
[Ht](t, e) {
|
|
24727
|
-
this[Me] && this[
|
|
24727
|
+
this[Me] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
|
|
24728
24728
|
}
|
|
24729
24729
|
end(t, e) {
|
|
24730
|
-
return t && this.write(t, e), this[ee] = true, !this[
|
|
24730
|
+
return t && this.write(t, e), this[ee] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
|
|
24731
24731
|
}
|
|
24732
24732
|
write(t, e) {
|
|
24733
|
-
return typeof t == "string" && (t = Buffer.from(t, e)), this[ee] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === undefined || this[
|
|
24733
|
+
return typeof t == "string" && (t = Buffer.from(t, e)), this[ee] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === undefined || this[gt] || this[Y].length ? (this[Y].push(t), this[Fe] = true, false) : (this[gt] = true, this[ve](t), true);
|
|
24734
24734
|
}
|
|
24735
24735
|
[ve](t) {
|
|
24736
24736
|
I.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
|
|
24737
24737
|
}
|
|
24738
24738
|
[Pt](t, e) {
|
|
24739
|
-
t ? this[Ut](t) : (this[nt] !== undefined && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[
|
|
24739
|
+
t ? this[Ut](t) : (this[nt] !== undefined && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = false, this[ee] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[Fe] && (this[Fe] = false, this.emit("drain"))));
|
|
24740
24740
|
}
|
|
24741
24741
|
[Di]() {
|
|
24742
24742
|
if (this[Y].length === 0)
|
|
@@ -24758,16 +24758,16 @@ var tt = class extends Vr {
|
|
|
24758
24758
|
var Wt = class extends tt {
|
|
24759
24759
|
[ht]() {
|
|
24760
24760
|
let t;
|
|
24761
|
-
if (this[Me] && this[
|
|
24761
|
+
if (this[Me] && this[j] === "r+")
|
|
24762
24762
|
try {
|
|
24763
|
-
t = I.openSync(this[U], this[
|
|
24763
|
+
t = I.openSync(this[U], this[j], this[se]);
|
|
24764
24764
|
} catch (e) {
|
|
24765
24765
|
if (e?.code === "ENOENT")
|
|
24766
|
-
return this[
|
|
24766
|
+
return this[j] = "w", this[ht]();
|
|
24767
24767
|
throw e;
|
|
24768
24768
|
}
|
|
24769
24769
|
else
|
|
24770
|
-
t = I.openSync(this[U], this[
|
|
24770
|
+
t = I.openSync(this[U], this[j], this[se]);
|
|
24771
24771
|
this[Ht](null, t);
|
|
24772
24772
|
}
|
|
24773
24773
|
[H]() {
|
|
@@ -24792,8 +24792,8 @@ var Xr = new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePat
|
|
|
24792
24792
|
var As = (s) => !!s.sync && !!s.file;
|
|
24793
24793
|
var Is = (s) => !s.sync && !!s.file;
|
|
24794
24794
|
var Cs = (s) => !!s.sync && !s.file;
|
|
24795
|
-
var
|
|
24796
|
-
var
|
|
24795
|
+
var ks = (s) => !s.sync && !s.file;
|
|
24796
|
+
var Fs = (s) => !!s.file;
|
|
24797
24797
|
var qr = (s) => {
|
|
24798
24798
|
let t = Xr.get(s);
|
|
24799
24799
|
return t || s;
|
|
@@ -24822,22 +24822,22 @@ var K = (s, t, e, i, r) => Object.assign((n = [], o, h) => {
|
|
|
24822
24822
|
if (typeof h == "function")
|
|
24823
24823
|
throw new TypeError("callback not supported for sync tar functions");
|
|
24824
24824
|
return e(a, o);
|
|
24825
|
-
} else if (
|
|
24825
|
+
} else if (ks(a)) {
|
|
24826
24826
|
if (typeof h == "function")
|
|
24827
24827
|
throw new TypeError("callback only supported with file option");
|
|
24828
24828
|
return i(a, o);
|
|
24829
24829
|
}
|
|
24830
24830
|
throw new Error("impossible options??");
|
|
24831
24831
|
}, { syncFile: s, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
|
|
24832
|
-
var
|
|
24833
|
-
var M = Object.freeze(Object.assign(Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 },
|
|
24834
|
-
var
|
|
24835
|
-
var Ms = Object.getOwnPropertyDescriptor(
|
|
24832
|
+
var Jr = Qr.constants || { ZLIB_VERNUM: 4736 };
|
|
24833
|
+
var M = Object.freeze(Object.assign(Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, Jr));
|
|
24834
|
+
var jr = Ot.concat;
|
|
24835
|
+
var Ms = Object.getOwnPropertyDescriptor(Ot, "concat");
|
|
24836
24836
|
var tn = (s) => s;
|
|
24837
24837
|
var Mi = Ms?.writable === true || Ms?.set !== undefined ? (s) => {
|
|
24838
|
-
|
|
24838
|
+
Ot.concat = s ? tn : jr;
|
|
24839
24839
|
} : (s) => {};
|
|
24840
|
-
var
|
|
24840
|
+
var Tt = Symbol("_superWrite");
|
|
24841
24841
|
var Gt = class extends Error {
|
|
24842
24842
|
code;
|
|
24843
24843
|
errno;
|
|
@@ -24888,7 +24888,7 @@ var ne = class extends A {
|
|
|
24888
24888
|
return Pi(this.#e, "zlib binding closed"), this.#e.reset?.();
|
|
24889
24889
|
}
|
|
24890
24890
|
flush(t) {
|
|
24891
|
-
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(
|
|
24891
|
+
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(Ot.alloc(0), { [Bi]: t })));
|
|
24892
24892
|
}
|
|
24893
24893
|
end(t, e, i) {
|
|
24894
24894
|
return typeof t == "function" && (i = t, e = undefined, t = undefined), typeof e == "function" && (i = e, e = undefined), t && (e ? this.write(t, e) : this.write(t)), this.flush(this.#n), this.#i = true, super.end(i);
|
|
@@ -24896,11 +24896,11 @@ var ne = class extends A {
|
|
|
24896
24896
|
get ended() {
|
|
24897
24897
|
return this.#i;
|
|
24898
24898
|
}
|
|
24899
|
-
[
|
|
24899
|
+
[Tt](t) {
|
|
24900
24900
|
return super.write(t);
|
|
24901
24901
|
}
|
|
24902
24902
|
write(t, e, i) {
|
|
24903
|
-
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t =
|
|
24903
|
+
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t = Ot.from(t, e)), this.#t)
|
|
24904
24904
|
return;
|
|
24905
24905
|
Pi(this.#e, "zlib binding closed");
|
|
24906
24906
|
let r = this.#e._handle, n = r.close;
|
|
@@ -24921,11 +24921,11 @@ var ne = class extends A {
|
|
|
24921
24921
|
if (h)
|
|
24922
24922
|
if (Array.isArray(h) && h.length > 0) {
|
|
24923
24923
|
let l = h[0];
|
|
24924
|
-
a = this[
|
|
24924
|
+
a = this[Tt](Ot.from(l));
|
|
24925
24925
|
for (let c = 1;c < h.length; c++)
|
|
24926
|
-
a = this[
|
|
24926
|
+
a = this[Tt](h[c]);
|
|
24927
24927
|
} else
|
|
24928
|
-
a = this[
|
|
24928
|
+
a = this[Tt](Ot.from(h));
|
|
24929
24929
|
return i && i(), a;
|
|
24930
24930
|
}
|
|
24931
24931
|
};
|
|
@@ -24962,8 +24962,8 @@ var ze = class extends Pe {
|
|
|
24962
24962
|
constructor(t) {
|
|
24963
24963
|
super(t, "Gzip"), this.#t = t && !!t.portable;
|
|
24964
24964
|
}
|
|
24965
|
-
[
|
|
24966
|
-
return this.#t ? (this.#t = false, t[9] = 255, super[
|
|
24965
|
+
[Tt](t) {
|
|
24966
|
+
return this.#t ? (this.#t = false, t[9] = 255, super[Tt](t)) : super[Tt](t);
|
|
24967
24967
|
}
|
|
24968
24968
|
};
|
|
24969
24969
|
var Ue = class extends Pe {
|
|
@@ -25052,7 +25052,7 @@ var oe = (s) => he.has(s);
|
|
|
25052
25052
|
var an = (s) => Ve.has(s);
|
|
25053
25053
|
var he = new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
|
|
25054
25054
|
var Ve = new Map(Array.from(he).map((s) => [s[1], s[0]]));
|
|
25055
|
-
var
|
|
25055
|
+
var k = class {
|
|
25056
25056
|
cksumValid = false;
|
|
25057
25057
|
needPax = false;
|
|
25058
25058
|
nullBlock = false;
|
|
@@ -25080,14 +25080,14 @@ var F = class {
|
|
|
25080
25080
|
decode(t, e, i, r) {
|
|
25081
25081
|
if (e || (e = 0), !t || !(t.length >= e + 512))
|
|
25082
25082
|
throw new Error("need 512 bytes for header");
|
|
25083
|
-
this.path = i?.path ??
|
|
25084
|
-
let n =
|
|
25085
|
-
if (oe(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath =
|
|
25086
|
-
if (this.uname = i?.uname ?? r?.uname ??
|
|
25087
|
-
let h =
|
|
25083
|
+
this.path = i?.path ?? xt(t, e, 100), this.mode = i?.mode ?? r?.mode ?? at(t, e + 100, 8), this.uid = i?.uid ?? r?.uid ?? at(t, e + 108, 8), this.gid = i?.gid ?? r?.gid ?? at(t, e + 116, 8), this.size = i?.size ?? r?.size ?? at(t, e + 124, 12), this.mtime = i?.mtime ?? r?.mtime ?? Ui(t, e + 136, 12), this.cksum = at(t, e + 148, 12), r && this.#i(r, true), i && this.#i(i);
|
|
25084
|
+
let n = xt(t, e + 156, 1);
|
|
25085
|
+
if (oe(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000")
|
|
25086
|
+
if (this.uname = i?.uname ?? r?.uname ?? xt(t, e + 265, 32), this.gname = i?.gname ?? r?.gname ?? xt(t, e + 297, 32), this.devmaj = i?.devmaj ?? r?.devmaj ?? at(t, e + 329, 8) ?? 0, this.devmin = i?.devmin ?? r?.devmin ?? at(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
|
|
25087
|
+
let h = xt(t, e + 345, 155);
|
|
25088
25088
|
this.path = h + "/" + this.path;
|
|
25089
25089
|
} else {
|
|
25090
|
-
let h =
|
|
25090
|
+
let h = xt(t, e + 345, 130);
|
|
25091
25091
|
h && (this.path = h + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Ui(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Ui(t, e + 488, 12);
|
|
25092
25092
|
}
|
|
25093
25093
|
let o = 256;
|
|
@@ -25104,7 +25104,7 @@ var F = class {
|
|
|
25104
25104
|
if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512))
|
|
25105
25105
|
throw new Error("need 512 bytes for header");
|
|
25106
25106
|
let i = this.ctime || this.atime ? 130 : 155, r = ln(this.path || "", i), n = r[0], o = r[1];
|
|
25107
|
-
this.needPax = !!r[2], this.needPax =
|
|
25107
|
+
this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = Hi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Hi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Hi(t, e + 488, 12, this.ctime) || this.needPax);
|
|
25108
25108
|
let h = 256;
|
|
25109
25109
|
for (let a = e;a < e + 148; a++)
|
|
25110
25110
|
h += t[a];
|
|
@@ -25141,7 +25141,7 @@ var ln = (s, t) => {
|
|
|
25141
25141
|
}
|
|
25142
25142
|
return n;
|
|
25143
25143
|
};
|
|
25144
|
-
var
|
|
25144
|
+
var xt = (s, t, e) => s.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
|
|
25145
25145
|
var Ui = (s, t, e) => cn(at(s, t, e));
|
|
25146
25146
|
var cn = (s) => s === undefined ? undefined : new Date(s * 1000);
|
|
25147
25147
|
var at = (s, t, e) => Number(s[t]) & 128 ? Ps(s.subarray(t, t + e)) : dn(s, t, e);
|
|
@@ -25154,7 +25154,7 @@ var pn = (s, t) => En(Math.floor(s).toString(8), t);
|
|
|
25154
25154
|
var En = (s, t) => (s.length === t - 1 ? s : new Array(t - s.length - 1).join("0") + s + " ") + "\x00";
|
|
25155
25155
|
var Hi = (s, t, e, i) => i === undefined ? false : lt(s, t, e, i.getTime() / 1000);
|
|
25156
25156
|
var wn = new Array(156).join("\x00");
|
|
25157
|
-
var
|
|
25157
|
+
var Lt = (s, t, e, i) => i === undefined ? false : (s.write(i + wn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
|
|
25158
25158
|
var ct = class s {
|
|
25159
25159
|
atime;
|
|
25160
25160
|
mtime;
|
|
@@ -25183,7 +25183,7 @@ var ct = class s {
|
|
|
25183
25183
|
let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
|
|
25184
25184
|
for (let n = 0;n < 512; n++)
|
|
25185
25185
|
r[n] = 0;
|
|
25186
|
-
new
|
|
25186
|
+
new k({ path: ("PaxHeader/" + Sn(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
|
|
25187
25187
|
for (let n = e + 512;n < r.length; n++)
|
|
25188
25188
|
r[n] = 0;
|
|
25189
25189
|
return r;
|
|
@@ -25204,8 +25204,8 @@ var ct = class s {
|
|
|
25204
25204
|
};
|
|
25205
25205
|
var yn = (s2, t) => t ? Object.assign({}, t, s2) : s2;
|
|
25206
25206
|
var Rn = (s2) => s2.replace(/\n$/, "").split(`
|
|
25207
|
-
`).reduce(
|
|
25208
|
-
var
|
|
25207
|
+
`).reduce(gn, Object.create(null));
|
|
25208
|
+
var gn = (s2, t) => {
|
|
25209
25209
|
let e = parseInt(t, 10);
|
|
25210
25210
|
if (e !== Buffer.byteLength(t) + 1)
|
|
25211
25211
|
return s2;
|
|
@@ -25216,8 +25216,8 @@ var bn = (s2, t) => {
|
|
|
25216
25216
|
let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
|
|
25217
25217
|
return s2[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1000) : /^[0-9]+$/.test(o) ? +o : o, s2;
|
|
25218
25218
|
};
|
|
25219
|
-
var
|
|
25220
|
-
var f =
|
|
25219
|
+
var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
25220
|
+
var f = bn !== "win32" ? (s2) => s2 : (s2) => s2 && s2.replaceAll(/\\/g, "/");
|
|
25221
25221
|
var Yt = class extends A {
|
|
25222
25222
|
extended;
|
|
25223
25223
|
globalExtended;
|
|
@@ -25284,7 +25284,7 @@ var Yt = class extends A {
|
|
|
25284
25284
|
t.path && (t.path = f(t.path)), t.linkpath && (t.linkpath = f(t.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e))));
|
|
25285
25285
|
}
|
|
25286
25286
|
};
|
|
25287
|
-
var
|
|
25287
|
+
var Nt = (s2, t, e, i = {}) => {
|
|
25288
25288
|
s2.file && (i.file = s2.file), s2.cwd && (i.cwd = s2.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s2.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s2.emit("warn", t, e, i)) : e instanceof Error ? s2.emit("error", Object.assign(e, i)) : s2.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
|
|
25289
25289
|
};
|
|
25290
25290
|
var On = 1024 * 1024;
|
|
@@ -25292,7 +25292,7 @@ var Ki = Buffer.from([31, 139]);
|
|
|
25292
25292
|
var Vi = Buffer.from([40, 181, 47, 253]);
|
|
25293
25293
|
var Tn = Math.max(Ki.length, Vi.length);
|
|
25294
25294
|
var B = Symbol("state");
|
|
25295
|
-
var
|
|
25295
|
+
var Dt = Symbol("writeEntry");
|
|
25296
25296
|
var et = Symbol("readEntry");
|
|
25297
25297
|
var Wi = Symbol("nextEntry");
|
|
25298
25298
|
var Hs = Symbol("processEntry");
|
|
@@ -25304,7 +25304,7 @@ var p = Symbol("buffer");
|
|
|
25304
25304
|
var it = Symbol("queue");
|
|
25305
25305
|
var dt = Symbol("ended");
|
|
25306
25306
|
var Gi = Symbol("emittedEnd");
|
|
25307
|
-
var
|
|
25307
|
+
var At = Symbol("emit");
|
|
25308
25308
|
var y = Symbol("unzip");
|
|
25309
25309
|
var $e = Symbol("consumeChunk");
|
|
25310
25310
|
var Xe = Symbol("consumeChunkSub");
|
|
@@ -25316,10 +25316,10 @@ var Yi = Symbol("bufferConcat");
|
|
|
25316
25316
|
var qe = Symbol("maybeEnd");
|
|
25317
25317
|
var Kt = Symbol("writing");
|
|
25318
25318
|
var ut = Symbol("aborted");
|
|
25319
|
-
var
|
|
25320
|
-
var
|
|
25321
|
-
var
|
|
25322
|
-
var
|
|
25319
|
+
var Qe = Symbol("onDone");
|
|
25320
|
+
var It = Symbol("sawValidEntry");
|
|
25321
|
+
var Je = Symbol("sawNullBlock");
|
|
25322
|
+
var je = Symbol("sawEOF");
|
|
25323
25323
|
var Ys = Symbol("closeStream");
|
|
25324
25324
|
var xn = () => true;
|
|
25325
25325
|
var st = class extends _n {
|
|
@@ -25334,7 +25334,7 @@ var st = class extends _n {
|
|
|
25334
25334
|
[it] = [];
|
|
25335
25335
|
[p];
|
|
25336
25336
|
[et];
|
|
25337
|
-
[
|
|
25337
|
+
[Dt];
|
|
25338
25338
|
[B] = "begin";
|
|
25339
25339
|
[ft] = "";
|
|
25340
25340
|
[V];
|
|
@@ -25342,16 +25342,16 @@ var st = class extends _n {
|
|
|
25342
25342
|
[dt] = false;
|
|
25343
25343
|
[y];
|
|
25344
25344
|
[ut] = false;
|
|
25345
|
-
[
|
|
25346
|
-
[Qe] = false;
|
|
25345
|
+
[It];
|
|
25347
25346
|
[Je] = false;
|
|
25347
|
+
[je] = false;
|
|
25348
25348
|
[Kt] = false;
|
|
25349
25349
|
[le] = false;
|
|
25350
25350
|
[Gi] = false;
|
|
25351
25351
|
constructor(t = {}) {
|
|
25352
|
-
super(), this.file = t.file || "", this.on(
|
|
25353
|
-
(this[B] === "begin" || this[
|
|
25354
|
-
}), t.ondone ? this.on(
|
|
25352
|
+
super(), this.file = t.file || "", this.on(Qe, () => {
|
|
25353
|
+
(this[B] === "begin" || this[It] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
25354
|
+
}), t.ondone ? this.on(Qe, t.ondone) : this.on(Qe, () => {
|
|
25355
25355
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
25356
25356
|
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || On, this.filter = typeof t.filter == "function" ? t.filter : xn;
|
|
25357
25357
|
let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
|
|
@@ -25360,19 +25360,19 @@ var st = class extends _n {
|
|
|
25360
25360
|
this.zstd = !(t.gzip || t.brotli) && t.zstd !== undefined ? t.zstd : i ? true : undefined, this.on("end", () => this[Ys]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
|
|
25361
25361
|
}
|
|
25362
25362
|
warn(t, e, i = {}) {
|
|
25363
|
-
|
|
25363
|
+
Nt(this, t, e, i);
|
|
25364
25364
|
}
|
|
25365
25365
|
[Zs](t, e) {
|
|
25366
|
-
this[
|
|
25366
|
+
this[It] === undefined && (this[It] = false);
|
|
25367
25367
|
let i;
|
|
25368
25368
|
try {
|
|
25369
|
-
i = new
|
|
25369
|
+
i = new k(t, e, this[V], this[ae]);
|
|
25370
25370
|
} catch (r) {
|
|
25371
25371
|
return this.warn("TAR_ENTRY_INVALID", r);
|
|
25372
25372
|
}
|
|
25373
25373
|
if (i.nullBlock)
|
|
25374
|
-
this[
|
|
25375
|
-
else if (this[
|
|
25374
|
+
this[Je] ? (this[je] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[Je] = true, this[At]("nullBlock"));
|
|
25375
|
+
else if (this[Je] = false, !i.cksumValid)
|
|
25376
25376
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
|
|
25377
25377
|
else if (!i.path)
|
|
25378
25378
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header: i });
|
|
@@ -25383,16 +25383,16 @@ var st = class extends _n {
|
|
|
25383
25383
|
else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath)
|
|
25384
25384
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
|
|
25385
25385
|
else {
|
|
25386
|
-
let n = this[
|
|
25387
|
-
if (!this[
|
|
25386
|
+
let n = this[Dt] = new Yt(i, this[V], this[ae]);
|
|
25387
|
+
if (!this[It])
|
|
25388
25388
|
if (n.remain) {
|
|
25389
25389
|
let o = () => {
|
|
25390
|
-
n.invalid || (this[
|
|
25390
|
+
n.invalid || (this[It] = true);
|
|
25391
25391
|
};
|
|
25392
25392
|
n.on("end", o);
|
|
25393
25393
|
} else
|
|
25394
|
-
this[
|
|
25395
|
-
n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[
|
|
25394
|
+
this[It] = true;
|
|
25395
|
+
n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[ft] = "", n.on("data", (o) => this[ft] += o), this[B] = "meta") : (this[V] = undefined, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[et] ? this[it].push(n) : (this[it].push(n), this[Wi]())));
|
|
25396
25396
|
}
|
|
25397
25397
|
}
|
|
25398
25398
|
}
|
|
@@ -25420,21 +25420,21 @@ var st = class extends _n {
|
|
|
25420
25420
|
}
|
|
25421
25421
|
}
|
|
25422
25422
|
[Zi](t, e) {
|
|
25423
|
-
let i = this[
|
|
25423
|
+
let i = this[Dt];
|
|
25424
25424
|
if (!i)
|
|
25425
25425
|
throw new Error("attempt to consume body without entry??");
|
|
25426
25426
|
let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
|
|
25427
|
-
return i.write(n), i.blockRemain || (this[B] = "header", this[
|
|
25427
|
+
return i.write(n), i.blockRemain || (this[B] = "header", this[Dt] = undefined, i.end()), n.length;
|
|
25428
25428
|
}
|
|
25429
25429
|
[Gs](t, e) {
|
|
25430
|
-
let i = this[
|
|
25431
|
-
return !this[
|
|
25430
|
+
let i = this[Dt], r = this[Zi](t, e);
|
|
25431
|
+
return !this[Dt] && i && this[Ws](i), r;
|
|
25432
25432
|
}
|
|
25433
|
-
[
|
|
25433
|
+
[At](t, e, i) {
|
|
25434
25434
|
this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
|
|
25435
25435
|
}
|
|
25436
25436
|
[Ws](t) {
|
|
25437
|
-
switch (this[
|
|
25437
|
+
switch (this[At]("meta", this[ft]), t.type) {
|
|
25438
25438
|
case "ExtendedHeader":
|
|
25439
25439
|
case "OldExtendedHeader":
|
|
25440
25440
|
this[V] = ct.parse(this[ft], this[V], false);
|
|
@@ -25486,7 +25486,7 @@ var st = class extends _n {
|
|
|
25486
25486
|
return this[p] = t, i?.(), true;
|
|
25487
25487
|
else
|
|
25488
25488
|
try {
|
|
25489
|
-
new
|
|
25489
|
+
new k(t.subarray(0, 512)), this.brotli = false;
|
|
25490
25490
|
} catch {
|
|
25491
25491
|
this.brotli = true;
|
|
25492
25492
|
}
|
|
@@ -25509,12 +25509,12 @@ var st = class extends _n {
|
|
|
25509
25509
|
[qe]() {
|
|
25510
25510
|
if (this[dt] && !this[Gi] && !this[ut] && !this[le]) {
|
|
25511
25511
|
this[Gi] = true;
|
|
25512
|
-
let t = this[
|
|
25512
|
+
let t = this[Dt];
|
|
25513
25513
|
if (t && t.blockRemain) {
|
|
25514
25514
|
let e = this[p] ? this[p].length : 0;
|
|
25515
25515
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`, { entry: t }), this[p] && t.write(this[p]), t.end();
|
|
25516
25516
|
}
|
|
25517
|
-
this[
|
|
25517
|
+
this[At](Qe);
|
|
25518
25518
|
}
|
|
25519
25519
|
}
|
|
25520
25520
|
[$e](t) {
|
|
@@ -25529,7 +25529,7 @@ var st = class extends _n {
|
|
|
25529
25529
|
this[p] = undefined, this[Xe](e);
|
|
25530
25530
|
} else
|
|
25531
25531
|
this[Xe](t);
|
|
25532
|
-
for (;this[p] && this[p]?.length >= 512 && !this[ut] && !this[
|
|
25532
|
+
for (;this[p] && this[p]?.length >= 512 && !this[ut] && !this[je]; ) {
|
|
25533
25533
|
let e = this[p];
|
|
25534
25534
|
this[p] = undefined, this[Xe](e);
|
|
25535
25535
|
}
|
|
@@ -25539,7 +25539,7 @@ var st = class extends _n {
|
|
|
25539
25539
|
}
|
|
25540
25540
|
[Xe](t) {
|
|
25541
25541
|
let e = 0, i = t.length;
|
|
25542
|
-
for (;e + 512 <= i && !this[ut] && !this[
|
|
25542
|
+
for (;e + 512 <= i && !this[ut] && !this[je]; )
|
|
25543
25543
|
switch (this[B]) {
|
|
25544
25544
|
case "begin":
|
|
25545
25545
|
case "header":
|
|
@@ -25618,20 +25618,20 @@ var In = (s2, t) => {
|
|
|
25618
25618
|
if (a)
|
|
25619
25619
|
h(a);
|
|
25620
25620
|
else {
|
|
25621
|
-
let c = new
|
|
25621
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
25622
25622
|
c.on("error", h), c.pipe(e);
|
|
25623
25623
|
}
|
|
25624
25624
|
});
|
|
25625
25625
|
});
|
|
25626
25626
|
};
|
|
25627
|
-
var
|
|
25627
|
+
var Ct = K(An, In, (s2) => new st(s2), (s2) => new st(s2), (s2, t) => {
|
|
25628
25628
|
t?.length && $i(s2, t), s2.noResume || Dn(s2);
|
|
25629
25629
|
});
|
|
25630
25630
|
var Xi = (s2, t, e) => (s2 &= 4095, e && (s2 = (s2 | 384) & -19), t && (s2 & 256 && (s2 |= 64), s2 & 32 && (s2 |= 8), s2 & 4 && (s2 |= 1)), s2);
|
|
25631
|
-
var { isAbsolute:
|
|
25631
|
+
var { isAbsolute: kn, parse: Ks } = Cn;
|
|
25632
25632
|
var ce = (s2) => {
|
|
25633
25633
|
let t = "", e = Ks(s2);
|
|
25634
|
-
for (;
|
|
25634
|
+
for (;kn(s2) || e.root; ) {
|
|
25635
25635
|
let i = s2.charAt(0) === "/" && s2.slice(0, 4) !== "//?/" ? "/" : e.root;
|
|
25636
25636
|
s2 = s2.slice(i.length), t += i, e = Ks(s2);
|
|
25637
25637
|
}
|
|
@@ -25639,17 +25639,17 @@ var ce = (s2) => {
|
|
|
25639
25639
|
};
|
|
25640
25640
|
var ti = ["|", "<", ">", "?", ":"];
|
|
25641
25641
|
var qi = ti.map((s2) => String.fromCodePoint(61440 + Number(s2.codePointAt(0))));
|
|
25642
|
-
var
|
|
25642
|
+
var Fn = new Map(ti.map((s2, t) => [s2, qi[t]]));
|
|
25643
25643
|
var vn = new Map(qi.map((s2, t) => [s2, ti[t]]));
|
|
25644
|
-
var
|
|
25644
|
+
var Qi = (s2) => ti.reduce((t, e) => t.split(e).join(Fn.get(e)), s2);
|
|
25645
25645
|
var Vs = (s2) => qi.reduce((t, e) => t.split(e).join(vn.get(e)), s2);
|
|
25646
25646
|
var tr = (s2, t) => t ? (s2 = f(s2).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s2) : f(s2);
|
|
25647
25647
|
var Mn = 16 * 1024 * 1024;
|
|
25648
25648
|
var qs = Symbol("process");
|
|
25649
|
-
var
|
|
25650
|
-
var
|
|
25651
|
-
var
|
|
25652
|
-
var
|
|
25649
|
+
var Qs = Symbol("file");
|
|
25650
|
+
var Js = Symbol("directory");
|
|
25651
|
+
var ji = Symbol("symlink");
|
|
25652
|
+
var js = Symbol("hardlink");
|
|
25653
25653
|
var fe = Symbol("header");
|
|
25654
25654
|
var ei = Symbol("read");
|
|
25655
25655
|
var ts = Symbol("lstat");
|
|
@@ -25661,7 +25661,7 @@ var rs = Symbol("onopenfile");
|
|
|
25661
25661
|
var pt = Symbol("close");
|
|
25662
25662
|
var si = Symbol("mode");
|
|
25663
25663
|
var ns = Symbol("awaitDrain");
|
|
25664
|
-
var
|
|
25664
|
+
var Ji = Symbol("ondrain");
|
|
25665
25665
|
var X = Symbol("prefix");
|
|
25666
25666
|
var de = class extends A {
|
|
25667
25667
|
path;
|
|
@@ -25707,7 +25707,7 @@ var de = class extends A {
|
|
|
25707
25707
|
n ? this[ii](n) : this[ts]();
|
|
25708
25708
|
}
|
|
25709
25709
|
warn(t, e, i = {}) {
|
|
25710
|
-
return
|
|
25710
|
+
return Nt(this, t, e, i);
|
|
25711
25711
|
}
|
|
25712
25712
|
emit(t, ...e) {
|
|
25713
25713
|
return t === "error" && (this.#t = true), super.emit(t, ...e);
|
|
@@ -25725,11 +25725,11 @@ var de = class extends A {
|
|
|
25725
25725
|
[qs]() {
|
|
25726
25726
|
switch (this.type) {
|
|
25727
25727
|
case "File":
|
|
25728
|
-
return this[js]();
|
|
25729
|
-
case "Directory":
|
|
25730
25728
|
return this[Qs]();
|
|
25729
|
+
case "Directory":
|
|
25730
|
+
return this[Js]();
|
|
25731
25731
|
case "SymbolicLink":
|
|
25732
|
-
return this[
|
|
25732
|
+
return this[ji]();
|
|
25733
25733
|
default:
|
|
25734
25734
|
return this.end();
|
|
25735
25735
|
}
|
|
@@ -25743,18 +25743,18 @@ var de = class extends A {
|
|
|
25743
25743
|
[fe]() {
|
|
25744
25744
|
if (!this.stat)
|
|
25745
25745
|
throw new Error("cannot write header before stat");
|
|
25746
|
-
this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new
|
|
25746
|
+
this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new k({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== undefined ? this[X](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? undefined : this.stat.uid, gid: this.portable ? undefined : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? undefined : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? undefined : this.type, uname: this.portable ? undefined : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? undefined : this.stat.atime, ctime: this.portable ? undefined : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? undefined : this.header.atime, ctime: this.portable ? undefined : this.header.ctime, gid: this.portable ? undefined : this.header.gid, mtime: this.noMtime ? undefined : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== undefined ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? undefined : this.header.uid, uname: this.portable ? undefined : this.header.uname, dev: this.portable ? undefined : this.stat.dev, ino: this.portable ? undefined : this.stat.ino, nlink: this.portable ? undefined : this.stat.nlink }).encode());
|
|
25747
25747
|
let t = this.header?.block;
|
|
25748
25748
|
if (!t)
|
|
25749
25749
|
throw new Error("failed to encode header");
|
|
25750
25750
|
super.write(t);
|
|
25751
25751
|
}
|
|
25752
|
-
[
|
|
25752
|
+
[Js]() {
|
|
25753
25753
|
if (!this.stat)
|
|
25754
25754
|
throw new Error("cannot create directory entry without stat");
|
|
25755
25755
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
|
|
25756
25756
|
}
|
|
25757
|
-
[
|
|
25757
|
+
[ji]() {
|
|
25758
25758
|
$.readlink(this.absolute, (t, e) => {
|
|
25759
25759
|
if (t)
|
|
25760
25760
|
return this.emit("error", t);
|
|
@@ -25764,18 +25764,18 @@ var de = class extends A {
|
|
|
25764
25764
|
[is](t) {
|
|
25765
25765
|
this.linkpath = f(t), this[fe](), this.end();
|
|
25766
25766
|
}
|
|
25767
|
-
[
|
|
25767
|
+
[js](t) {
|
|
25768
25768
|
if (!this.stat)
|
|
25769
25769
|
throw new Error("cannot create link entry without stat");
|
|
25770
25770
|
this.type = "Link", this.linkpath = f(Xs.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
|
|
25771
25771
|
}
|
|
25772
|
-
[
|
|
25772
|
+
[Qs]() {
|
|
25773
25773
|
if (!this.stat)
|
|
25774
25774
|
throw new Error("cannot create file entry without stat");
|
|
25775
25775
|
if (this.stat.nlink > 1) {
|
|
25776
25776
|
let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
|
|
25777
25777
|
if (e?.indexOf(this.cwd) === 0)
|
|
25778
|
-
return this[
|
|
25778
|
+
return this[js](e);
|
|
25779
25779
|
this.linkCache.set(t, this.absolute);
|
|
25780
25780
|
}
|
|
25781
25781
|
if (this[fe](), this.stat.size === 0)
|
|
@@ -25826,7 +25826,7 @@ var de = class extends A {
|
|
|
25826
25826
|
for (let r = t;r < this.length && t < this.blockRemain; r++)
|
|
25827
25827
|
this.buf[r + this.offset] = 0, t++, this.remain++;
|
|
25828
25828
|
let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
|
|
25829
|
-
this.write(e) ? this[
|
|
25829
|
+
this.write(e) ? this[Ji]() : this[ns](() => this[Ji]());
|
|
25830
25830
|
}
|
|
25831
25831
|
[ns](t) {
|
|
25832
25832
|
this.once("drain", t);
|
|
@@ -25838,7 +25838,7 @@ var de = class extends A {
|
|
|
25838
25838
|
}
|
|
25839
25839
|
return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
|
|
25840
25840
|
}
|
|
25841
|
-
[
|
|
25841
|
+
[Ji]() {
|
|
25842
25842
|
if (!this.remain)
|
|
25843
25843
|
return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
|
|
25844
25844
|
if (!this.buf)
|
|
@@ -25851,7 +25851,7 @@ var ri = class extends de {
|
|
|
25851
25851
|
[ts]() {
|
|
25852
25852
|
this[ii]($.lstatSync(this.absolute));
|
|
25853
25853
|
}
|
|
25854
|
-
[
|
|
25854
|
+
[ji]() {
|
|
25855
25855
|
this[is]($.readlinkSync(this.absolute));
|
|
25856
25856
|
}
|
|
25857
25857
|
[ss]() {
|
|
@@ -25908,7 +25908,7 @@ var ni = class extends A {
|
|
|
25908
25908
|
size;
|
|
25909
25909
|
onWriteEntry;
|
|
25910
25910
|
warn(t, e, i = {}) {
|
|
25911
|
-
return
|
|
25911
|
+
return Nt(this, t, e, i);
|
|
25912
25912
|
}
|
|
25913
25913
|
constructor(t, e = {}) {
|
|
25914
25914
|
let i = re(e);
|
|
@@ -25922,7 +25922,7 @@ var ni = class extends A {
|
|
|
25922
25922
|
let [h, a] = ce(this.path);
|
|
25923
25923
|
h && typeof a == "string" && (this.path = a, n = h);
|
|
25924
25924
|
}
|
|
25925
|
-
this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new
|
|
25925
|
+
this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new k({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== undefined ? this[X](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? undefined : this.uid, gid: this.portable ? undefined : this.gid, size: this.size, mtime: this.noMtime ? undefined : this.mtime, type: this.type, uname: this.portable ? undefined : this.uname, atime: this.portable ? undefined : this.atime, ctime: this.portable ? undefined : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? undefined : this.atime, ctime: this.portable ? undefined : this.ctime, gid: this.portable ? undefined : this.gid, mtime: this.noMtime ? undefined : this.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== undefined ? this[X](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? undefined : this.uid, uname: this.portable ? undefined : this.uname, dev: this.portable ? undefined : this.readEntry.dev, ino: this.portable ? undefined : this.readEntry.ino, nlink: this.portable ? undefined : this.readEntry.nlink }).encode());
|
|
25926
25926
|
let o = this.header?.block;
|
|
25927
25927
|
if (!o)
|
|
25928
25928
|
throw new Error("failed to encode header");
|
|
@@ -26151,6 +26151,7 @@ var mi = class {
|
|
|
26151
26151
|
stat;
|
|
26152
26152
|
readdir;
|
|
26153
26153
|
pending = false;
|
|
26154
|
+
pendingLink = false;
|
|
26154
26155
|
ignore = false;
|
|
26155
26156
|
piped = false;
|
|
26156
26157
|
constructor(t, e) {
|
|
@@ -26162,8 +26163,8 @@ var ai = Symbol("onStat");
|
|
|
26162
26163
|
var me = Symbol("ended");
|
|
26163
26164
|
var W = Symbol("queue");
|
|
26164
26165
|
var pe = Symbol("queue");
|
|
26165
|
-
var
|
|
26166
|
-
var
|
|
26166
|
+
var Et = Symbol("current");
|
|
26167
|
+
var kt = Symbol("process");
|
|
26167
26168
|
var Ee = Symbol("processing");
|
|
26168
26169
|
var hi = Symbol("processJob");
|
|
26169
26170
|
var G = Symbol("jobs");
|
|
@@ -26179,7 +26180,7 @@ var hs = Symbol("entryOpt");
|
|
|
26179
26180
|
var di = Symbol("writeEntryClass");
|
|
26180
26181
|
var nr = Symbol("write");
|
|
26181
26182
|
var as = Symbol("ondrain");
|
|
26182
|
-
var
|
|
26183
|
+
var wt = class extends A {
|
|
26183
26184
|
sync = false;
|
|
26184
26185
|
opt;
|
|
26185
26186
|
cwd;
|
|
@@ -26226,7 +26227,7 @@ var Et = class extends A {
|
|
|
26226
26227
|
return this.write(t), this;
|
|
26227
26228
|
}
|
|
26228
26229
|
end(t, e, i) {
|
|
26229
|
-
return typeof t == "function" && (i = t, t = undefined), typeof e == "function" && (i = e, e = undefined), t && this.add(t), this[me] = true, this[
|
|
26230
|
+
return typeof t == "function" && (i = t, t = undefined), typeof e == "function" && (i = e, e = undefined), t && this.add(t), this[me] = true, this[kt](), i && i(), this;
|
|
26230
26231
|
}
|
|
26231
26232
|
write(t) {
|
|
26232
26233
|
if (this[me])
|
|
@@ -26241,11 +26242,11 @@ var Et = class extends A {
|
|
|
26241
26242
|
let i = new mi(t.path, e);
|
|
26242
26243
|
i.entry = new ni(t, this[hs](i)), i.entry.on("end", () => this[os4](i)), this[G] += 1, this[W].push(i);
|
|
26243
26244
|
}
|
|
26244
|
-
this[
|
|
26245
|
+
this[kt]();
|
|
26245
26246
|
}
|
|
26246
26247
|
[li](t) {
|
|
26247
26248
|
let e = f(rr.resolve(this.cwd, t));
|
|
26248
|
-
this[W].push(new mi(t, e)), this[
|
|
26249
|
+
this[W].push(new mi(t, e)), this[kt]();
|
|
26249
26250
|
}
|
|
26250
26251
|
[ls](t) {
|
|
26251
26252
|
t.pending = true, this[G] += 1;
|
|
@@ -26258,13 +26259,13 @@ var Et = class extends A {
|
|
|
26258
26259
|
if (this.statCache.set(t.absolute, e), t.stat = e, !this.filter(t.path, e))
|
|
26259
26260
|
t.ignore = true;
|
|
26260
26261
|
else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync)
|
|
26261
|
-
if (t === this[
|
|
26262
|
+
if (t === this[Et])
|
|
26262
26263
|
this[hi](t);
|
|
26263
26264
|
else {
|
|
26264
26265
|
let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
|
|
26265
|
-
r ? r.push(t) : this[pe].set(i, [t]), t.pending = true;
|
|
26266
|
+
r ? r.push(t) : this[pe].set(i, [t]), t.pendingLink = true, t.pending = true;
|
|
26266
26267
|
}
|
|
26267
|
-
this[
|
|
26268
|
+
this[kt]();
|
|
26268
26269
|
}
|
|
26269
26270
|
[cs](t) {
|
|
26270
26271
|
t.pending = true, this[G] += 1, ui.readdir(t.absolute, (e, i) => {
|
|
@@ -26274,9 +26275,9 @@ var Et = class extends A {
|
|
|
26274
26275
|
});
|
|
26275
26276
|
}
|
|
26276
26277
|
[ci](t, e) {
|
|
26277
|
-
this.readdirCache.set(t.absolute, e), t.readdir = e, this[
|
|
26278
|
+
this.readdirCache.set(t.absolute, e), t.readdir = e, this[kt]();
|
|
26278
26279
|
}
|
|
26279
|
-
[
|
|
26280
|
+
[kt]() {
|
|
26280
26281
|
if (!this[Ee]) {
|
|
26281
26282
|
this[Ee] = true;
|
|
26282
26283
|
for (let t = this[W].head;t && this[G] < this.jobs; t = t.next)
|
|
@@ -26287,7 +26288,7 @@ var Et = class extends A {
|
|
|
26287
26288
|
this[Ee] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(er) : (super.write(er), super.end()));
|
|
26288
26289
|
}
|
|
26289
26290
|
}
|
|
26290
|
-
get [
|
|
26291
|
+
get [Et]() {
|
|
26291
26292
|
return this[W] && this[W].head && this[W].head.value;
|
|
26292
26293
|
}
|
|
26293
26294
|
[os4](t) {
|
|
@@ -26295,16 +26296,18 @@ var Et = class extends A {
|
|
|
26295
26296
|
let { stat: e } = t;
|
|
26296
26297
|
if (e && e.isFile() && e.nlink > 1) {
|
|
26297
26298
|
let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
|
|
26298
|
-
if (
|
|
26299
|
+
if (r) {
|
|
26300
|
+
this[pe].delete(i);
|
|
26299
26301
|
for (let n of r)
|
|
26300
26302
|
n.pending = false, this[hi](n);
|
|
26303
|
+
}
|
|
26301
26304
|
}
|
|
26302
|
-
this[
|
|
26305
|
+
this[kt]();
|
|
26303
26306
|
}
|
|
26304
26307
|
[hi](t) {
|
|
26305
|
-
if (!t.pending) {
|
|
26308
|
+
if (t.pending && t.pendingLink && t === this[Et] && (t.pending = false, t.pendingLink = false), !t.pending) {
|
|
26306
26309
|
if (t.entry) {
|
|
26307
|
-
t === this[
|
|
26310
|
+
t === this[Et] && !t.piped && this[fi](t);
|
|
26308
26311
|
return;
|
|
26309
26312
|
}
|
|
26310
26313
|
if (!t.stat) {
|
|
@@ -26321,7 +26324,7 @@ var Et = class extends A {
|
|
|
26321
26324
|
t.ignore = true;
|
|
26322
26325
|
return;
|
|
26323
26326
|
}
|
|
26324
|
-
t === this[
|
|
26327
|
+
t === this[Et] && !t.piped && this[fi](t);
|
|
26325
26328
|
}
|
|
26326
26329
|
}
|
|
26327
26330
|
}
|
|
@@ -26337,7 +26340,7 @@ var Et = class extends A {
|
|
|
26337
26340
|
}
|
|
26338
26341
|
}
|
|
26339
26342
|
[as]() {
|
|
26340
|
-
this[
|
|
26343
|
+
this[Et] && this[Et].entry && this[Et].entry.resume();
|
|
26341
26344
|
}
|
|
26342
26345
|
[fi](t) {
|
|
26343
26346
|
t.piped = true, t.readdir && t.readdir.forEach((r) => {
|
|
@@ -26357,10 +26360,10 @@ var Et = class extends A {
|
|
|
26357
26360
|
return this.zip && this.zip.pause(), super.pause();
|
|
26358
26361
|
}
|
|
26359
26362
|
warn(t, e, i = {}) {
|
|
26360
|
-
|
|
26363
|
+
Nt(this, t, e, i);
|
|
26361
26364
|
}
|
|
26362
26365
|
};
|
|
26363
|
-
var
|
|
26366
|
+
var Ft = class extends wt {
|
|
26364
26367
|
sync = true;
|
|
26365
26368
|
constructor(t) {
|
|
26366
26369
|
super(t), this[di] = ri;
|
|
@@ -26389,11 +26392,11 @@ var kt = class extends Et {
|
|
|
26389
26392
|
}
|
|
26390
26393
|
};
|
|
26391
26394
|
var Hn = (s3, t) => {
|
|
26392
|
-
let e = new
|
|
26395
|
+
let e = new Ft(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
|
|
26393
26396
|
e.pipe(i), hr(e, t);
|
|
26394
26397
|
};
|
|
26395
26398
|
var Wn = (s3, t) => {
|
|
26396
|
-
let e = new
|
|
26399
|
+
let e = new wt(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
|
|
26397
26400
|
e.pipe(i);
|
|
26398
26401
|
let r = new Promise((n, o) => {
|
|
26399
26402
|
i.on("error", o), i.on("close", n), e.on("error", o);
|
|
@@ -26402,22 +26405,22 @@ var Wn = (s3, t) => {
|
|
|
26402
26405
|
};
|
|
26403
26406
|
var hr = (s3, t) => {
|
|
26404
26407
|
t.forEach((e) => {
|
|
26405
|
-
e.charAt(0) === "@" ?
|
|
26408
|
+
e.charAt(0) === "@" ? Ct({ file: or.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
26406
26409
|
}), s3.end();
|
|
26407
26410
|
};
|
|
26408
26411
|
var ar = async (s3, t) => {
|
|
26409
26412
|
for (let e of t)
|
|
26410
|
-
e.charAt(0) === "@" ? await
|
|
26413
|
+
e.charAt(0) === "@" ? await Ct({ file: or.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
|
|
26411
26414
|
s3.add(i);
|
|
26412
26415
|
} }) : s3.add(e);
|
|
26413
26416
|
s3.end();
|
|
26414
26417
|
};
|
|
26415
26418
|
var Gn = (s3, t) => {
|
|
26416
|
-
let e = new
|
|
26419
|
+
let e = new Ft(s3);
|
|
26417
26420
|
return hr(e, t), e;
|
|
26418
26421
|
};
|
|
26419
26422
|
var Zn = (s3, t) => {
|
|
26420
|
-
let e = new
|
|
26423
|
+
let e = new wt(s3);
|
|
26421
26424
|
return ar(e, t).catch((i) => e.emit("error", i)), e;
|
|
26422
26425
|
};
|
|
26423
26426
|
var Yn = K(Hn, Wn, Gn, Zn, (s3, t) => {
|
|
@@ -26481,7 +26484,7 @@ var us = (s3, t, e, i) => {
|
|
|
26481
26484
|
qn(s3, l, t, e, a);
|
|
26482
26485
|
});
|
|
26483
26486
|
};
|
|
26484
|
-
var
|
|
26487
|
+
var Qn = (s3, t, e, i) => {
|
|
26485
26488
|
t.isDirectory() && ms(we.resolve(s3, t.name), e, i), ds(we.resolve(s3, t.name), e, i);
|
|
26486
26489
|
};
|
|
26487
26490
|
var ms = (s3, t, e) => {
|
|
@@ -26497,7 +26500,7 @@ var ms = (s3, t, e) => {
|
|
|
26497
26500
|
throw n;
|
|
26498
26501
|
}
|
|
26499
26502
|
for (let r of i)
|
|
26500
|
-
|
|
26503
|
+
Qn(s3, r, t, e);
|
|
26501
26504
|
return ds(s3, t, e);
|
|
26502
26505
|
};
|
|
26503
26506
|
var Se = class extends Error {
|
|
@@ -26511,7 +26514,7 @@ var Se = class extends Error {
|
|
|
26511
26514
|
return "CwdError";
|
|
26512
26515
|
}
|
|
26513
26516
|
};
|
|
26514
|
-
var
|
|
26517
|
+
var St = class extends Error {
|
|
26515
26518
|
path;
|
|
26516
26519
|
symlink;
|
|
26517
26520
|
syscall = "symlink";
|
|
@@ -26523,20 +26526,20 @@ var wt = class extends Error {
|
|
|
26523
26526
|
return "SymlinkError";
|
|
26524
26527
|
}
|
|
26525
26528
|
};
|
|
26526
|
-
var
|
|
26527
|
-
|
|
26529
|
+
var jn = (s3, t) => {
|
|
26530
|
+
F.stat(s3, (e, i) => {
|
|
26528
26531
|
(e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
|
|
26529
26532
|
});
|
|
26530
26533
|
};
|
|
26531
26534
|
var wr = (s3, t, e) => {
|
|
26532
26535
|
s3 = f(s3);
|
|
26533
26536
|
let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
|
|
26534
|
-
E ? e(E) : x && a ? us(x, o, h, (Le) => S(Le)) : n ?
|
|
26537
|
+
E ? e(E) : x && a ? us(x, o, h, (Le) => S(Le)) : n ? F.chmod(s3, r, e) : e();
|
|
26535
26538
|
};
|
|
26536
26539
|
if (s3 === d)
|
|
26537
|
-
return
|
|
26540
|
+
return jn(s3, S);
|
|
26538
26541
|
if (l)
|
|
26539
|
-
return
|
|
26542
|
+
return Jn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? undefined), S);
|
|
26540
26543
|
let N = f(wi.relative(d, s3)).split("/");
|
|
26541
26544
|
ps(d, N, r, c, d, undefined, S);
|
|
26542
26545
|
};
|
|
@@ -26544,23 +26547,23 @@ var ps = (s3, t, e, i, r, n, o) => {
|
|
|
26544
26547
|
if (t.length === 0)
|
|
26545
26548
|
return o(null, n);
|
|
26546
26549
|
let h = t.shift(), a = f(wi.resolve(s3 + "/" + h));
|
|
26547
|
-
|
|
26550
|
+
F.mkdir(a, e, Sr(a, t, e, i, r, n, o));
|
|
26548
26551
|
};
|
|
26549
26552
|
var Sr = (s3, t, e, i, r, n, o) => (h) => {
|
|
26550
|
-
h ?
|
|
26553
|
+
h ? F.lstat(s3, (a, l) => {
|
|
26551
26554
|
if (a)
|
|
26552
26555
|
a.path = a.path && f(a.path), o(a);
|
|
26553
26556
|
else if (l.isDirectory())
|
|
26554
26557
|
ps(s3, t, e, i, r, n, o);
|
|
26555
26558
|
else if (i)
|
|
26556
|
-
|
|
26559
|
+
F.unlink(s3, (c) => {
|
|
26557
26560
|
if (c)
|
|
26558
26561
|
return o(c);
|
|
26559
|
-
|
|
26562
|
+
F.mkdir(s3, e, Sr(s3, t, e, i, r, n, o));
|
|
26560
26563
|
});
|
|
26561
26564
|
else {
|
|
26562
26565
|
if (l.isSymbolicLink())
|
|
26563
|
-
return o(new
|
|
26566
|
+
return o(new St(s3, s3 + "/" + t.join("/")));
|
|
26564
26567
|
o(h);
|
|
26565
26568
|
}
|
|
26566
26569
|
}) : (n = n || s3, ps(s3, t, e, i, r, n, o));
|
|
@@ -26568,7 +26571,7 @@ var Sr = (s3, t, e, i, r, n, o) => (h) => {
|
|
|
26568
26571
|
var to = (s3) => {
|
|
26569
26572
|
let t = false, e;
|
|
26570
26573
|
try {
|
|
26571
|
-
t =
|
|
26574
|
+
t = F.statSync(s3).isDirectory();
|
|
26572
26575
|
} catch (i) {
|
|
26573
26576
|
e = i?.code;
|
|
26574
26577
|
} finally {
|
|
@@ -26579,26 +26582,26 @@ var to = (s3) => {
|
|
|
26579
26582
|
var yr = (s3, t) => {
|
|
26580
26583
|
s3 = f(s3);
|
|
26581
26584
|
let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
|
|
26582
|
-
E && h && ms(E, n, o), r &&
|
|
26585
|
+
E && h && ms(E, n, o), r && F.chmodSync(s3, i);
|
|
26583
26586
|
};
|
|
26584
26587
|
if (s3 === c)
|
|
26585
26588
|
return to(c), d();
|
|
26586
26589
|
if (a)
|
|
26587
|
-
return d(
|
|
26590
|
+
return d(F.mkdirSync(s3, { mode: i, recursive: true }) ?? undefined);
|
|
26588
26591
|
let T = f(wi.relative(c, s3)).split("/"), N;
|
|
26589
26592
|
for (let E = T.shift(), x = c;E && (x += "/" + E); E = T.shift()) {
|
|
26590
26593
|
x = f(wi.resolve(x));
|
|
26591
26594
|
try {
|
|
26592
|
-
|
|
26595
|
+
F.mkdirSync(x, i), N = N || x;
|
|
26593
26596
|
} catch {
|
|
26594
|
-
let Le =
|
|
26597
|
+
let Le = F.lstatSync(x);
|
|
26595
26598
|
if (Le.isDirectory())
|
|
26596
26599
|
continue;
|
|
26597
26600
|
if (l) {
|
|
26598
|
-
|
|
26601
|
+
F.unlinkSync(x), F.mkdirSync(x, i), N = N || x;
|
|
26599
26602
|
continue;
|
|
26600
26603
|
} else if (Le.isSymbolicLink())
|
|
26601
|
-
return new
|
|
26604
|
+
return new St(x, x + "/" + T.join("/"));
|
|
26602
26605
|
}
|
|
26603
26606
|
}
|
|
26604
26607
|
return d(N);
|
|
@@ -26606,7 +26609,7 @@ var yr = (s3, t) => {
|
|
|
26606
26609
|
var Es = Object.create(null);
|
|
26607
26610
|
var Rr = 1e4;
|
|
26608
26611
|
var $t = new Set;
|
|
26609
|
-
var
|
|
26612
|
+
var gr = (s3) => {
|
|
26610
26613
|
$t.has(s3) ? $t.delete(s3) : Es[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
|
|
26611
26614
|
let t = Es[s3], e = $t.size - Rr;
|
|
26612
26615
|
if (e > Rr / 10) {
|
|
@@ -26620,14 +26623,14 @@ var eo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
|
26620
26623
|
var io = eo === "win32";
|
|
26621
26624
|
var so = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
|
|
26622
26625
|
let r = e.at(-1);
|
|
26623
|
-
return r !== undefined && (i =
|
|
26626
|
+
return r !== undefined && (i = br(r, i)), e.push(i || "/"), e;
|
|
26624
26627
|
}, []);
|
|
26625
26628
|
var Si = class {
|
|
26626
26629
|
#t = new Map;
|
|
26627
26630
|
#i = new Map;
|
|
26628
26631
|
#s = new Set;
|
|
26629
26632
|
reserve(t, e) {
|
|
26630
|
-
t = io ? ["win32 parallelization disabled"] : t.map((r) => mt(gr(
|
|
26633
|
+
t = io ? ["win32 parallelization disabled"] : t.map((r) => mt(br(gr(r))));
|
|
26631
26634
|
let i = new Set(t.map((r) => so(r)).reduce((r, n) => r.concat(n)));
|
|
26632
26635
|
this.#i.set(e, { dirs: i, paths: t });
|
|
26633
26636
|
for (let r of t) {
|
|
@@ -26700,9 +26703,9 @@ var _r = () => process.umask();
|
|
|
26700
26703
|
var Or = Symbol("onEntry");
|
|
26701
26704
|
var Rs = Symbol("checkFs");
|
|
26702
26705
|
var Tr = Symbol("checkFs2");
|
|
26703
|
-
var
|
|
26706
|
+
var gs = Symbol("isReusable");
|
|
26704
26707
|
var P = Symbol("makeFs");
|
|
26705
|
-
var
|
|
26708
|
+
var bs = Symbol("file");
|
|
26706
26709
|
var _s = Symbol("directory");
|
|
26707
26710
|
var Ri = Symbol("link");
|
|
26708
26711
|
var xr = Symbol("symlink");
|
|
@@ -26711,7 +26714,7 @@ var Re = Symbol("ensureNoSymlink");
|
|
|
26711
26714
|
var Nr = Symbol("unsupported");
|
|
26712
26715
|
var Dr = Symbol("checkPath");
|
|
26713
26716
|
var ws = Symbol("stripAbsolutePath");
|
|
26714
|
-
var
|
|
26717
|
+
var yt = Symbol("mkdir");
|
|
26715
26718
|
var O = Symbol("onError");
|
|
26716
26719
|
var yi = Symbol("pending");
|
|
26717
26720
|
var Ar = Symbol("pend");
|
|
@@ -26719,8 +26722,8 @@ var Xt = Symbol("unpend");
|
|
|
26719
26722
|
var Ss = Symbol("ended");
|
|
26720
26723
|
var ys = Symbol("maybeClose");
|
|
26721
26724
|
var Os = Symbol("skip");
|
|
26722
|
-
var
|
|
26723
|
-
var
|
|
26725
|
+
var ge = Symbol("doChown");
|
|
26726
|
+
var be = Symbol("uid");
|
|
26724
26727
|
var _e = Symbol("gid");
|
|
26725
26728
|
var Oe = Symbol("checkedCwd");
|
|
26726
26729
|
var no = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
@@ -26829,9 +26832,9 @@ var qt = class extends st {
|
|
|
26829
26832
|
return false;
|
|
26830
26833
|
if (this.win32) {
|
|
26831
26834
|
let { root: r } = R.win32.parse(String(t.absolute));
|
|
26832
|
-
t.absolute = r +
|
|
26835
|
+
t.absolute = r + Qi(String(t.absolute).slice(r.length));
|
|
26833
26836
|
let { root: n } = R.win32.parse(t.path);
|
|
26834
|
-
t.path = n +
|
|
26837
|
+
t.path = n + Qi(t.path.slice(n.length));
|
|
26835
26838
|
}
|
|
26836
26839
|
return true;
|
|
26837
26840
|
}
|
|
@@ -26855,19 +26858,19 @@ var qt = class extends st {
|
|
|
26855
26858
|
[O](t, e) {
|
|
26856
26859
|
t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
|
|
26857
26860
|
}
|
|
26858
|
-
[
|
|
26861
|
+
[yt](t, e, i) {
|
|
26859
26862
|
wr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
|
|
26860
26863
|
}
|
|
26861
|
-
[
|
|
26864
|
+
[ge](t) {
|
|
26862
26865
|
return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
|
26863
26866
|
}
|
|
26864
|
-
[
|
|
26867
|
+
[be](t) {
|
|
26865
26868
|
return Ir(this.uid, t.uid, this.processUid);
|
|
26866
26869
|
}
|
|
26867
26870
|
[_e](t) {
|
|
26868
26871
|
return Ir(this.gid, t.gid, this.processGid);
|
|
26869
26872
|
}
|
|
26870
|
-
[
|
|
26873
|
+
[bs](t, e) {
|
|
26871
26874
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: fs(t.size), mode: i, autoClose: false });
|
|
26872
26875
|
r.on("error", (a) => {
|
|
26873
26876
|
r.fd && u.close(r.fd, () => {}), r.write = () => true, this[O](a, t), e();
|
|
@@ -26888,9 +26891,9 @@ var qt = class extends st {
|
|
|
26888
26891
|
let c = t.atime || new Date, d = t.mtime;
|
|
26889
26892
|
u.futimes(l, c, d, (S) => S ? u.utimes(a, c, d, (T) => o(T && S)) : o());
|
|
26890
26893
|
}
|
|
26891
|
-
if (typeof l == "number" && this[
|
|
26894
|
+
if (typeof l == "number" && this[ge](t)) {
|
|
26892
26895
|
n++;
|
|
26893
|
-
let c = this[
|
|
26896
|
+
let c = this[be](t), d = this[_e](t);
|
|
26894
26897
|
typeof c == "number" && typeof d == "number" && u.fchown(l, c, d, (S) => S ? u.chown(a, c, d, (T) => o(T && S)) : o());
|
|
26895
26898
|
}
|
|
26896
26899
|
o();
|
|
@@ -26902,7 +26905,7 @@ var qt = class extends st {
|
|
|
26902
26905
|
}
|
|
26903
26906
|
[_s](t, e) {
|
|
26904
26907
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
|
|
26905
|
-
this[
|
|
26908
|
+
this[yt](String(t.absolute), i, (r) => {
|
|
26906
26909
|
if (r) {
|
|
26907
26910
|
this[O](r, t), e();
|
|
26908
26911
|
return;
|
|
@@ -26910,7 +26913,7 @@ var qt = class extends st {
|
|
|
26910
26913
|
let n = 1, o = () => {
|
|
26911
26914
|
--n === 0 && (e(), this[Xt](), t.resume());
|
|
26912
26915
|
};
|
|
26913
|
-
t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || new Date, t.mtime, o)), this[
|
|
26916
|
+
t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || new Date, t.mtime, o)), this[ge](t) && (n++, u.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
|
|
26914
26917
|
});
|
|
26915
26918
|
}
|
|
26916
26919
|
[Nr](t) {
|
|
@@ -26937,7 +26940,7 @@ var qt = class extends st {
|
|
|
26937
26940
|
if (a)
|
|
26938
26941
|
return r();
|
|
26939
26942
|
if (l?.isSymbolicLink())
|
|
26940
|
-
return n(new
|
|
26943
|
+
return n(new St(h, R.resolve(h, i.join("/"))));
|
|
26941
26944
|
this[Re](t, h, i, r, n);
|
|
26942
26945
|
});
|
|
26943
26946
|
}
|
|
@@ -26950,7 +26953,7 @@ var qt = class extends st {
|
|
|
26950
26953
|
[Os](t) {
|
|
26951
26954
|
this[Xt](), t.resume();
|
|
26952
26955
|
}
|
|
26953
|
-
[
|
|
26956
|
+
[gs](t, e) {
|
|
26954
26957
|
return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Te;
|
|
26955
26958
|
}
|
|
26956
26959
|
[Rs](t) {
|
|
@@ -26962,7 +26965,7 @@ var qt = class extends st {
|
|
|
26962
26965
|
let i = (h) => {
|
|
26963
26966
|
e(h);
|
|
26964
26967
|
}, r = () => {
|
|
26965
|
-
this[
|
|
26968
|
+
this[yt](this.cwd, this.dmode, (h) => {
|
|
26966
26969
|
if (h) {
|
|
26967
26970
|
this[O](h, t), i();
|
|
26968
26971
|
return;
|
|
@@ -26973,7 +26976,7 @@ var qt = class extends st {
|
|
|
26973
26976
|
if (t.absolute !== this.cwd) {
|
|
26974
26977
|
let h = f(R.dirname(String(t.absolute)));
|
|
26975
26978
|
if (h !== this.cwd)
|
|
26976
|
-
return this[
|
|
26979
|
+
return this[yt](h, this.dmode, (a) => {
|
|
26977
26980
|
if (a) {
|
|
26978
26981
|
this[O](a, t), i();
|
|
26979
26982
|
return;
|
|
@@ -26988,7 +26991,7 @@ var qt = class extends st {
|
|
|
26988
26991
|
this[Os](t), i();
|
|
26989
26992
|
return;
|
|
26990
26993
|
}
|
|
26991
|
-
if (h || this[
|
|
26994
|
+
if (h || this[gs](t, a))
|
|
26992
26995
|
return this[P](null, t, i);
|
|
26993
26996
|
if (a.isDirectory()) {
|
|
26994
26997
|
if (t.type === "Directory") {
|
|
@@ -27014,7 +27017,7 @@ var qt = class extends st {
|
|
|
27014
27017
|
case "File":
|
|
27015
27018
|
case "OldFile":
|
|
27016
27019
|
case "ContiguousFile":
|
|
27017
|
-
return this[
|
|
27020
|
+
return this[bs](e, i);
|
|
27018
27021
|
case "Link":
|
|
27019
27022
|
return this[Lr](e, i);
|
|
27020
27023
|
case "SymbolicLink":
|
|
@@ -27044,7 +27047,7 @@ var xe = class extends qt {
|
|
|
27044
27047
|
}
|
|
27045
27048
|
[Rs](t) {
|
|
27046
27049
|
if (!this[Oe]) {
|
|
27047
|
-
let n = this[
|
|
27050
|
+
let n = this[yt](this.cwd, this.dmode);
|
|
27048
27051
|
if (n)
|
|
27049
27052
|
return this[O](n, t);
|
|
27050
27053
|
this[Oe] = true;
|
|
@@ -27052,7 +27055,7 @@ var xe = class extends qt {
|
|
|
27052
27055
|
if (t.absolute !== this.cwd) {
|
|
27053
27056
|
let n = f(R.dirname(String(t.absolute)));
|
|
27054
27057
|
if (n !== this.cwd) {
|
|
27055
|
-
let o = this[
|
|
27058
|
+
let o = this[yt](n, this.dmode);
|
|
27056
27059
|
if (o)
|
|
27057
27060
|
return this[O](o, t);
|
|
27058
27061
|
}
|
|
@@ -27060,7 +27063,7 @@ var xe = class extends qt {
|
|
|
27060
27063
|
let [e, i] = ye(() => u.lstatSync(String(t.absolute)));
|
|
27061
27064
|
if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime)))
|
|
27062
27065
|
return this[Os](t);
|
|
27063
|
-
if (e || this[
|
|
27066
|
+
if (e || this[gs](t, i))
|
|
27064
27067
|
return this[P](null, t);
|
|
27065
27068
|
if (i.isDirectory()) {
|
|
27066
27069
|
if (t.type === "Directory") {
|
|
@@ -27075,7 +27078,7 @@ var xe = class extends qt {
|
|
|
27075
27078
|
let [r] = t.absolute === this.cwd ? [] : ye(() => ao(String(t.absolute)));
|
|
27076
27079
|
this[P](r, t);
|
|
27077
27080
|
}
|
|
27078
|
-
[
|
|
27081
|
+
[bs](t, e) {
|
|
27079
27082
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
|
|
27080
27083
|
let a;
|
|
27081
27084
|
try {
|
|
@@ -27111,8 +27114,8 @@ var xe = class extends qt {
|
|
|
27111
27114
|
}
|
|
27112
27115
|
}
|
|
27113
27116
|
}
|
|
27114
|
-
if (this[
|
|
27115
|
-
let a = this[
|
|
27117
|
+
if (this[ge](t)) {
|
|
27118
|
+
let a = this[be](t), l = this[_e](t);
|
|
27116
27119
|
try {
|
|
27117
27120
|
u.fchownSync(n, Number(a), Number(l));
|
|
27118
27121
|
} catch (c) {
|
|
@@ -27127,7 +27130,7 @@ var xe = class extends qt {
|
|
|
27127
27130
|
});
|
|
27128
27131
|
}
|
|
27129
27132
|
[_s](t, e) {
|
|
27130
|
-
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[
|
|
27133
|
+
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[yt](String(t.absolute), i);
|
|
27131
27134
|
if (r) {
|
|
27132
27135
|
this[O](r, t), e();
|
|
27133
27136
|
return;
|
|
@@ -27136,13 +27139,13 @@ var xe = class extends qt {
|
|
|
27136
27139
|
try {
|
|
27137
27140
|
u.utimesSync(String(t.absolute), t.atime || new Date, t.mtime);
|
|
27138
27141
|
} catch {}
|
|
27139
|
-
if (this[
|
|
27142
|
+
if (this[ge](t))
|
|
27140
27143
|
try {
|
|
27141
|
-
u.chownSync(String(t.absolute), Number(this[
|
|
27144
|
+
u.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
|
|
27142
27145
|
} catch {}
|
|
27143
27146
|
e(), t.resume();
|
|
27144
27147
|
}
|
|
27145
|
-
[
|
|
27148
|
+
[yt](t, e) {
|
|
27146
27149
|
try {
|
|
27147
27150
|
return yr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
|
|
27148
27151
|
} catch (i) {
|
|
@@ -27159,7 +27162,7 @@ var xe = class extends qt {
|
|
|
27159
27162
|
if (a)
|
|
27160
27163
|
return r();
|
|
27161
27164
|
if (l.isSymbolicLink())
|
|
27162
|
-
return n(new
|
|
27165
|
+
return n(new St(o, R.resolve(e, i.join("/"))));
|
|
27163
27166
|
}
|
|
27164
27167
|
r();
|
|
27165
27168
|
}
|
|
@@ -27173,17 +27176,17 @@ var xe = class extends qt {
|
|
|
27173
27176
|
}
|
|
27174
27177
|
};
|
|
27175
27178
|
var lo = (s3) => {
|
|
27176
|
-
let t = new xe(s3), e = s3.file, i =
|
|
27179
|
+
let t = new xe(s3), e = s3.file, i = kr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
|
|
27177
27180
|
new Be(e, { readSize: r, size: i.size }).pipe(t);
|
|
27178
27181
|
};
|
|
27179
27182
|
var co = (s3, t) => {
|
|
27180
27183
|
let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
27181
27184
|
return new Promise((o, h) => {
|
|
27182
|
-
e.on("error", h), e.on("close", o),
|
|
27185
|
+
e.on("error", h), e.on("close", o), kr.stat(r, (a, l) => {
|
|
27183
27186
|
if (a)
|
|
27184
27187
|
h(a);
|
|
27185
27188
|
else {
|
|
27186
|
-
let c = new
|
|
27189
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
27187
27190
|
c.on("error", h), c.pipe(e);
|
|
27188
27191
|
}
|
|
27189
27192
|
});
|
|
@@ -27193,7 +27196,7 @@ var fo = K(lo, co, (s3) => new xe(s3), (s3) => new qt(s3), (s3, t) => {
|
|
|
27193
27196
|
t?.length && $i(s3, t);
|
|
27194
27197
|
});
|
|
27195
27198
|
var uo = (s3, t) => {
|
|
27196
|
-
let e = new
|
|
27199
|
+
let e = new Ft(s3), i = true, r, n;
|
|
27197
27200
|
try {
|
|
27198
27201
|
try {
|
|
27199
27202
|
r = v.openSync(s3.file, "r+");
|
|
@@ -27212,7 +27215,7 @@ var uo = (s3, t) => {
|
|
|
27212
27215
|
if (!d)
|
|
27213
27216
|
break t;
|
|
27214
27217
|
}
|
|
27215
|
-
let a = new
|
|
27218
|
+
let a = new k(h);
|
|
27216
27219
|
if (!a.cksumValid)
|
|
27217
27220
|
break;
|
|
27218
27221
|
let l = 512 * Math.ceil((a.size || 0) / 512);
|
|
@@ -27234,7 +27237,7 @@ var mo = (s3, t, e, i, r) => {
|
|
|
27234
27237
|
};
|
|
27235
27238
|
var po = (s3, t) => {
|
|
27236
27239
|
t = Array.from(t);
|
|
27237
|
-
let e = new
|
|
27240
|
+
let e = new wt(s3), i = (n, o, h) => {
|
|
27238
27241
|
let a = (T, N) => {
|
|
27239
27242
|
T ? v.close(n, (E) => h(T)) : h(null, N);
|
|
27240
27243
|
}, l = 0;
|
|
@@ -27249,7 +27252,7 @@ var po = (s3, t) => {
|
|
|
27249
27252
|
return a(new Error("cannot append to compressed archives"));
|
|
27250
27253
|
if (c < 512)
|
|
27251
27254
|
return a(null, l);
|
|
27252
|
-
let E = new
|
|
27255
|
+
let E = new k(d);
|
|
27253
27256
|
if (!E.cksumValid)
|
|
27254
27257
|
return a(null, l);
|
|
27255
27258
|
let x = 512 * Math.ceil((E.size ?? 0) / 512);
|
|
@@ -27282,12 +27285,12 @@ var po = (s3, t) => {
|
|
|
27282
27285
|
};
|
|
27283
27286
|
var Eo = (s3, t) => {
|
|
27284
27287
|
t.forEach((e) => {
|
|
27285
|
-
e.charAt(0) === "@" ?
|
|
27288
|
+
e.charAt(0) === "@" ? Ct({ file: Fr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
27286
27289
|
}), s3.end();
|
|
27287
27290
|
};
|
|
27288
27291
|
var wo = async (s3, t) => {
|
|
27289
27292
|
for (let e of t)
|
|
27290
|
-
e.charAt(0) === "@" ? await
|
|
27293
|
+
e.charAt(0) === "@" ? await Ct({ file: Fr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
27291
27294
|
s3.end();
|
|
27292
27295
|
};
|
|
27293
27296
|
var vt = K(uo, po, () => {
|
|
@@ -27295,7 +27298,7 @@ var vt = K(uo, po, () => {
|
|
|
27295
27298
|
}, () => {
|
|
27296
27299
|
throw new TypeError("file is required");
|
|
27297
27300
|
}, (s3, t) => {
|
|
27298
|
-
if (!
|
|
27301
|
+
if (!Fs(s3))
|
|
27299
27302
|
throw new TypeError("file is required");
|
|
27300
27303
|
if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr"))
|
|
27301
27304
|
throw new TypeError("cannot append to compressed archives");
|
|
@@ -27776,5 +27779,5 @@ async function main() {
|
|
|
27776
27779
|
}
|
|
27777
27780
|
main();
|
|
27778
27781
|
|
|
27779
|
-
//# debugId=
|
|
27782
|
+
//# debugId=BD9727DA341E252264756E2164756E21
|
|
27780
27783
|
//# sourceMappingURL=cli.js.map
|