appwrite-cli 15.1.0 → 16.0.0
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/CHANGELOG.md +4 -0
- package/README.md +3 -3
- package/cli.ts +2 -0
- package/dist/bundle-win-arm64.mjs +1328 -1046
- package/dist/cli.cjs +1272 -990
- package/dist/index.cjs +967 -929
- package/dist/index.js +1023 -985
- package/dist/lib/commands/generators/typescript/databases.d.ts +5 -0
- package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/services/webhooks.d.ts +3 -0
- package/dist/lib/commands/services/webhooks.d.ts.map +1 -0
- package/dist/lib/commands/utils/deployment.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/docs/examples/webhooks/create.md +7 -0
- package/docs/examples/webhooks/delete.md +4 -0
- package/docs/examples/webhooks/get.md +4 -0
- package/docs/examples/webhooks/list.md +3 -0
- package/docs/examples/webhooks/update-signature.md +4 -0
- package/docs/examples/webhooks/update.md +7 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/commands/generators/typescript/databases.ts +36 -6
- package/lib/commands/pull.ts +30 -12
- package/lib/commands/services/projects.ts +0 -100
- package/lib/commands/services/webhooks.ts +134 -0
- package/lib/commands/utils/deployment.ts +4 -1
- package/lib/constants.ts +1 -1
- package/lib/parser.ts +1 -0
- package/package.json +2 -2
- package/scoop/appwrite.config.json +3 -3
- package/docs/examples/projects/create-webhook.md +0 -8
- package/docs/examples/projects/delete-webhook.md +0 -5
- package/docs/examples/projects/get-webhook.md +0 -5
- package/docs/examples/projects/list-webhooks.md +0 -4
- package/docs/examples/projects/update-webhook-signature.md +0 -5
- package/docs/examples/projects/update-webhook.md +0 -9
package/dist/index.js
CHANGED
|
@@ -19586,9 +19586,9 @@ var require_stream_duplex = __commonJS({
|
|
|
19586
19586
|
}
|
|
19587
19587
|
});
|
|
19588
19588
|
|
|
19589
|
-
// node_modules/safe-buffer/index.js
|
|
19589
|
+
// node_modules/string_decoder/node_modules/safe-buffer/index.js
|
|
19590
19590
|
var require_safe_buffer = __commonJS({
|
|
19591
|
-
"node_modules/safe-buffer/index.js"(exports, module) {
|
|
19591
|
+
"node_modules/string_decoder/node_modules/safe-buffer/index.js"(exports, module) {
|
|
19592
19592
|
var buffer = __require("buffer");
|
|
19593
19593
|
var Buffer2 = buffer.Buffer;
|
|
19594
19594
|
function copyProps(src, dst) {
|
|
@@ -53493,8 +53493,8 @@ var require_bignumber = __commonJS({
|
|
|
53493
53493
|
y2.s = -b2;
|
|
53494
53494
|
return x.plus(y2);
|
|
53495
53495
|
}
|
|
53496
|
-
var
|
|
53497
|
-
if (!
|
|
53496
|
+
var xe = x.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x.c, yc = y2.c;
|
|
53497
|
+
if (!xe || !ye2) {
|
|
53498
53498
|
if (!xc || !yc) return xc ? (y2.s = -b2, y2) : new BigNumber2(yc ? x : NaN);
|
|
53499
53499
|
if (!xc[0] || !yc[0]) {
|
|
53500
53500
|
return yc[0] ? (y2.s = -b2, y2) : new BigNumber2(xc[0] ? x : (
|
|
@@ -53503,15 +53503,15 @@ var require_bignumber = __commonJS({
|
|
|
53503
53503
|
));
|
|
53504
53504
|
}
|
|
53505
53505
|
}
|
|
53506
|
-
|
|
53506
|
+
xe = bitFloor(xe);
|
|
53507
53507
|
ye2 = bitFloor(ye2);
|
|
53508
53508
|
xc = xc.slice();
|
|
53509
|
-
if (a =
|
|
53509
|
+
if (a = xe - ye2) {
|
|
53510
53510
|
if (xLTy = a < 0) {
|
|
53511
53511
|
a = -a;
|
|
53512
53512
|
t = xc;
|
|
53513
53513
|
} else {
|
|
53514
|
-
ye2 =
|
|
53514
|
+
ye2 = xe;
|
|
53515
53515
|
t = yc;
|
|
53516
53516
|
}
|
|
53517
53517
|
t.reverse();
|
|
@@ -53638,17 +53638,17 @@ var require_bignumber = __commonJS({
|
|
|
53638
53638
|
y2.s = -b2;
|
|
53639
53639
|
return x.minus(y2);
|
|
53640
53640
|
}
|
|
53641
|
-
var
|
|
53642
|
-
if (!
|
|
53641
|
+
var xe = x.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x.c, yc = y2.c;
|
|
53642
|
+
if (!xe || !ye2) {
|
|
53643
53643
|
if (!xc || !yc) return new BigNumber2(a / 0);
|
|
53644
53644
|
if (!xc[0] || !yc[0]) return yc[0] ? y2 : new BigNumber2(xc[0] ? x : a * 0);
|
|
53645
53645
|
}
|
|
53646
|
-
|
|
53646
|
+
xe = bitFloor(xe);
|
|
53647
53647
|
ye2 = bitFloor(ye2);
|
|
53648
53648
|
xc = xc.slice();
|
|
53649
|
-
if (a =
|
|
53649
|
+
if (a = xe - ye2) {
|
|
53650
53650
|
if (a > 0) {
|
|
53651
|
-
ye2 =
|
|
53651
|
+
ye2 = xe;
|
|
53652
53652
|
t = yc;
|
|
53653
53653
|
} else {
|
|
53654
53654
|
a = -a;
|
|
@@ -62727,7 +62727,7 @@ var id_default = ID;
|
|
|
62727
62727
|
// lib/constants.ts
|
|
62728
62728
|
var SDK_TITLE = "Appwrite";
|
|
62729
62729
|
var SDK_TITLE_LOWER = "appwrite";
|
|
62730
|
-
var SDK_VERSION = "
|
|
62730
|
+
var SDK_VERSION = "16.0.0";
|
|
62731
62731
|
var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
|
|
62732
62732
|
var EXECUTABLE_NAME = "appwrite";
|
|
62733
62733
|
var NPM_PACKAGE_NAME = "appwrite-cli";
|
|
@@ -78128,85 +78128,85 @@ import os4 from "os";
|
|
|
78128
78128
|
import path from "path";
|
|
78129
78129
|
|
|
78130
78130
|
// node_modules/tar/dist/esm/index.min.js
|
|
78131
|
-
import
|
|
78131
|
+
import Ur from "events";
|
|
78132
78132
|
import I from "fs";
|
|
78133
|
-
import { EventEmitter as
|
|
78134
|
-
import
|
|
78135
|
-
import { StringDecoder as
|
|
78136
|
-
import
|
|
78133
|
+
import { EventEmitter as Ti } from "node:events";
|
|
78134
|
+
import Ns from "node:stream";
|
|
78135
|
+
import { StringDecoder as Dr } from "node:string_decoder";
|
|
78136
|
+
import nr from "node:path";
|
|
78137
78137
|
import Vt from "node:fs";
|
|
78138
|
-
import { dirname as
|
|
78139
|
-
import { EventEmitter as
|
|
78140
|
-
import
|
|
78141
|
-
import { Buffer as
|
|
78142
|
-
import * as
|
|
78143
|
-
import
|
|
78138
|
+
import { dirname as Rn, parse as bn } from "path";
|
|
78139
|
+
import { EventEmitter as En } from "events";
|
|
78140
|
+
import Mi from "assert";
|
|
78141
|
+
import { Buffer as gt } from "buffer";
|
|
78142
|
+
import * as ks from "zlib";
|
|
78143
|
+
import Zr from "zlib";
|
|
78144
78144
|
import { posix as Zt } from "node:path";
|
|
78145
|
-
import { basename as
|
|
78146
|
-
import
|
|
78145
|
+
import { basename as fn } from "node:path";
|
|
78146
|
+
import fi from "fs";
|
|
78147
78147
|
import $ from "fs";
|
|
78148
|
-
import
|
|
78149
|
-
import { win32 as
|
|
78150
|
-
import
|
|
78151
|
-
import
|
|
78152
|
-
import
|
|
78153
|
-
import { randomBytes as
|
|
78148
|
+
import $s from "path";
|
|
78149
|
+
import { win32 as Tn } from "node:path";
|
|
78150
|
+
import sr from "path";
|
|
78151
|
+
import xr from "node:fs";
|
|
78152
|
+
import eo from "node:assert";
|
|
78153
|
+
import { randomBytes as Tr } from "node:crypto";
|
|
78154
78154
|
import u from "node:fs";
|
|
78155
78155
|
import R from "node:path";
|
|
78156
|
-
import
|
|
78157
|
-
import
|
|
78156
|
+
import ar from "fs";
|
|
78157
|
+
import mi from "node:fs";
|
|
78158
78158
|
import Ee from "node:path";
|
|
78159
78159
|
import k from "node:fs";
|
|
78160
|
-
import
|
|
78161
|
-
import
|
|
78162
|
-
import { join as
|
|
78160
|
+
import Xn from "node:fs/promises";
|
|
78161
|
+
import pi from "node:path";
|
|
78162
|
+
import { join as pr } from "node:path";
|
|
78163
78163
|
import v from "node:fs";
|
|
78164
|
-
import
|
|
78165
|
-
var
|
|
78164
|
+
import Lr from "node:path";
|
|
78165
|
+
var Nr = Object.defineProperty;
|
|
78166
78166
|
var Ar = (s3, t) => {
|
|
78167
|
-
for (var e in t)
|
|
78167
|
+
for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
|
|
78168
78168
|
};
|
|
78169
|
-
var
|
|
78170
|
-
var
|
|
78171
|
-
var
|
|
78172
|
-
var
|
|
78169
|
+
var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
|
|
78170
|
+
var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Cr(s3) || Fr(s3));
|
|
78171
|
+
var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
|
|
78172
|
+
var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
|
|
78173
78173
|
var q = /* @__PURE__ */ Symbol("EOF");
|
|
78174
78174
|
var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
|
|
78175
78175
|
var rt = /* @__PURE__ */ Symbol("emittedEnd");
|
|
78176
|
-
var
|
|
78176
|
+
var Le = /* @__PURE__ */ Symbol("emittingEnd");
|
|
78177
78177
|
var jt = /* @__PURE__ */ Symbol("emittedError");
|
|
78178
|
-
var
|
|
78179
|
-
var
|
|
78180
|
-
var
|
|
78181
|
-
var
|
|
78178
|
+
var Ne = /* @__PURE__ */ Symbol("closed");
|
|
78179
|
+
var Ts = /* @__PURE__ */ Symbol("read");
|
|
78180
|
+
var Ae = /* @__PURE__ */ Symbol("flush");
|
|
78181
|
+
var xs = /* @__PURE__ */ Symbol("flushChunk");
|
|
78182
78182
|
var z3 = /* @__PURE__ */ Symbol("encoding");
|
|
78183
78183
|
var Mt = /* @__PURE__ */ Symbol("decoder");
|
|
78184
78184
|
var b = /* @__PURE__ */ Symbol("flowing");
|
|
78185
78185
|
var Qt = /* @__PURE__ */ Symbol("paused");
|
|
78186
78186
|
var Bt = /* @__PURE__ */ Symbol("resume");
|
|
78187
|
-
var
|
|
78188
|
-
var
|
|
78189
|
-
var
|
|
78190
|
-
var
|
|
78187
|
+
var _ = /* @__PURE__ */ Symbol("buffer");
|
|
78188
|
+
var A = /* @__PURE__ */ Symbol("pipes");
|
|
78189
|
+
var g = /* @__PURE__ */ Symbol("bufferLength");
|
|
78190
|
+
var yi = /* @__PURE__ */ Symbol("bufferPush");
|
|
78191
78191
|
var De = /* @__PURE__ */ Symbol("bufferShift");
|
|
78192
78192
|
var L = /* @__PURE__ */ Symbol("objectMode");
|
|
78193
78193
|
var w = /* @__PURE__ */ Symbol("destroyed");
|
|
78194
|
-
var
|
|
78195
|
-
var
|
|
78196
|
-
var
|
|
78197
|
-
var
|
|
78194
|
+
var Ri = /* @__PURE__ */ Symbol("error");
|
|
78195
|
+
var bi = /* @__PURE__ */ Symbol("emitData");
|
|
78196
|
+
var Ls = /* @__PURE__ */ Symbol("emitEnd");
|
|
78197
|
+
var _i = /* @__PURE__ */ Symbol("emitEnd2");
|
|
78198
78198
|
var Z = /* @__PURE__ */ Symbol("async");
|
|
78199
78199
|
var gi = /* @__PURE__ */ Symbol("abort");
|
|
78200
|
-
var
|
|
78200
|
+
var Ie = /* @__PURE__ */ Symbol("aborted");
|
|
78201
78201
|
var Jt = /* @__PURE__ */ Symbol("signal");
|
|
78202
78202
|
var yt = /* @__PURE__ */ Symbol("dataListeners");
|
|
78203
78203
|
var C = /* @__PURE__ */ Symbol("discarded");
|
|
78204
78204
|
var te = (s3) => Promise.resolve().then(s3);
|
|
78205
|
-
var
|
|
78206
|
-
var
|
|
78207
|
-
var
|
|
78208
|
-
var
|
|
78209
|
-
var
|
|
78205
|
+
var kr = (s3) => s3();
|
|
78206
|
+
var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
|
|
78207
|
+
var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
|
|
78208
|
+
var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
|
|
78209
|
+
var Ce = class {
|
|
78210
78210
|
src;
|
|
78211
78211
|
dest;
|
|
78212
78212
|
opts;
|
|
@@ -78223,7 +78223,7 @@ var Ie = class {
|
|
|
78223
78223
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
78224
78224
|
}
|
|
78225
78225
|
};
|
|
78226
|
-
var
|
|
78226
|
+
var Oi = class extends Ce {
|
|
78227
78227
|
unpipe() {
|
|
78228
78228
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
78229
78229
|
}
|
|
@@ -78231,26 +78231,26 @@ var _i = class extends Ie {
|
|
|
78231
78231
|
super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
|
|
78232
78232
|
}
|
|
78233
78233
|
};
|
|
78234
|
-
var
|
|
78235
|
-
var
|
|
78236
|
-
var
|
|
78234
|
+
var Pr = (s3) => !!s3.objectMode;
|
|
78235
|
+
var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
|
|
78236
|
+
var D = class extends Ti {
|
|
78237
78237
|
[b] = false;
|
|
78238
78238
|
[Qt] = false;
|
|
78239
|
-
[
|
|
78240
|
-
[
|
|
78239
|
+
[A] = [];
|
|
78240
|
+
[_] = [];
|
|
78241
78241
|
[L];
|
|
78242
78242
|
[z3];
|
|
78243
78243
|
[Z];
|
|
78244
78244
|
[Mt];
|
|
78245
78245
|
[q] = false;
|
|
78246
78246
|
[rt] = false;
|
|
78247
|
-
[xe] = false;
|
|
78248
78247
|
[Le] = false;
|
|
78248
|
+
[Ne] = false;
|
|
78249
78249
|
[jt] = null;
|
|
78250
|
-
[
|
|
78250
|
+
[g] = 0;
|
|
78251
78251
|
[w] = false;
|
|
78252
78252
|
[Jt];
|
|
78253
|
-
[
|
|
78253
|
+
[Ie] = false;
|
|
78254
78254
|
[yt] = 0;
|
|
78255
78255
|
[C] = false;
|
|
78256
78256
|
writable = true;
|
|
@@ -78258,12 +78258,12 @@ var A = class extends Oi {
|
|
|
78258
78258
|
constructor(...t) {
|
|
78259
78259
|
let e = t[0] || {};
|
|
78260
78260
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
78261
|
-
|
|
78261
|
+
Pr(e) ? (this[L] = true, this[z3] = null) : zr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new Dr(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
|
|
78262
78262
|
let { signal: i } = e;
|
|
78263
78263
|
i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
|
|
78264
78264
|
}
|
|
78265
78265
|
get bufferLength() {
|
|
78266
|
-
return this[
|
|
78266
|
+
return this[g];
|
|
78267
78267
|
}
|
|
78268
78268
|
get encoding() {
|
|
78269
78269
|
return this[z3];
|
|
@@ -78287,46 +78287,46 @@ var A = class extends Oi {
|
|
|
78287
78287
|
this[Z] = this[Z] || !!t;
|
|
78288
78288
|
}
|
|
78289
78289
|
[gi]() {
|
|
78290
|
-
this[
|
|
78290
|
+
this[Ie] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
|
|
78291
78291
|
}
|
|
78292
78292
|
get aborted() {
|
|
78293
|
-
return this[
|
|
78293
|
+
return this[Ie];
|
|
78294
78294
|
}
|
|
78295
78295
|
set aborted(t) {
|
|
78296
78296
|
}
|
|
78297
78297
|
write(t, e, i) {
|
|
78298
|
-
if (this[
|
|
78298
|
+
if (this[Ie]) return false;
|
|
78299
78299
|
if (this[q]) throw new Error("write after end");
|
|
78300
78300
|
if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
78301
78301
|
typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
|
|
78302
|
-
let r = this[Z] ? te :
|
|
78302
|
+
let r = this[Z] ? te : kr;
|
|
78303
78303
|
if (!this[L] && !Buffer.isBuffer(t)) {
|
|
78304
|
-
if (
|
|
78305
|
-
else if (
|
|
78304
|
+
if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
78305
|
+
else if (Mr(t)) t = Buffer.from(t);
|
|
78306
78306
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
78307
78307
|
}
|
|
78308
|
-
return this[L] ? (this[b] && this[
|
|
78308
|
+
return this[L] ? (this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : t.length ? (typeof t == "string" && !(e === this[z3] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z3] && (t = this[Mt].write(t)), this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : (this[g] !== 0 && this.emit("readable"), i && r(i), this[b]);
|
|
78309
78309
|
}
|
|
78310
78310
|
read(t) {
|
|
78311
78311
|
if (this[w]) return null;
|
|
78312
|
-
if (this[C] = false, this[
|
|
78313
|
-
this[L] && (t = null), this[
|
|
78314
|
-
let e = this[
|
|
78312
|
+
if (this[C] = false, this[g] === 0 || t === 0 || t && t > this[g]) return this[j](), null;
|
|
78313
|
+
this[L] && (t = null), this[_].length > 1 && !this[L] && (this[_] = [this[z3] ? this[_].join("") : Buffer.concat(this[_], this[g])]);
|
|
78314
|
+
let e = this[Ts](t || null, this[_][0]);
|
|
78315
78315
|
return this[j](), e;
|
|
78316
78316
|
}
|
|
78317
|
-
[
|
|
78317
|
+
[Ts](t, e) {
|
|
78318
78318
|
if (this[L]) this[De]();
|
|
78319
78319
|
else {
|
|
78320
78320
|
let i = e;
|
|
78321
|
-
t === i.length || t === null ? this[De]() : typeof i == "string" ? (this[
|
|
78321
|
+
t === i.length || t === null ? this[De]() : typeof i == "string" ? (this[_][0] = i.slice(t), e = i.slice(0, t), this[g] -= t) : (this[_][0] = i.subarray(t), e = i.subarray(0, t), this[g] -= t);
|
|
78322
78322
|
}
|
|
78323
|
-
return this.emit("data", e), !this[
|
|
78323
|
+
return this.emit("data", e), !this[_].length && !this[q] && this.emit("drain"), e;
|
|
78324
78324
|
}
|
|
78325
78325
|
end(t, e, i) {
|
|
78326
78326
|
return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[b] || !this[Qt]) && this[j](), this;
|
|
78327
78327
|
}
|
|
78328
78328
|
[Bt]() {
|
|
78329
|
-
this[w] || (!this[yt] && !this[
|
|
78329
|
+
this[w] || (!this[yt] && !this[A].length && (this[C] = true), this[Qt] = false, this[b] = true, this.emit("resume"), this[_].length ? this[Ae]() : this[q] ? this[j]() : this.emit("drain"));
|
|
78330
78330
|
}
|
|
78331
78331
|
resume() {
|
|
78332
78332
|
return this[Bt]();
|
|
@@ -78343,39 +78343,39 @@ var A = class extends Oi {
|
|
|
78343
78343
|
get paused() {
|
|
78344
78344
|
return this[Qt];
|
|
78345
78345
|
}
|
|
78346
|
-
[
|
|
78347
|
-
this[L] ? this[
|
|
78346
|
+
[yi](t) {
|
|
78347
|
+
this[L] ? this[g] += 1 : this[g] += t.length, this[_].push(t);
|
|
78348
78348
|
}
|
|
78349
78349
|
[De]() {
|
|
78350
|
-
return this[L] ? this[
|
|
78350
|
+
return this[L] ? this[g] -= 1 : this[g] -= this[_][0].length, this[_].shift();
|
|
78351
78351
|
}
|
|
78352
|
-
[
|
|
78352
|
+
[Ae](t = false) {
|
|
78353
78353
|
do
|
|
78354
78354
|
;
|
|
78355
|
-
while (this[
|
|
78356
|
-
!t && !this[
|
|
78355
|
+
while (this[xs](this[De]()) && this[_].length);
|
|
78356
|
+
!t && !this[_].length && !this[q] && this.emit("drain");
|
|
78357
78357
|
}
|
|
78358
|
-
[
|
|
78358
|
+
[xs](t) {
|
|
78359
78359
|
return this.emit("data", t), this[b];
|
|
78360
78360
|
}
|
|
78361
78361
|
pipe(t, e) {
|
|
78362
78362
|
if (this[w]) return t;
|
|
78363
78363
|
this[C] = false;
|
|
78364
78364
|
let i = this[rt];
|
|
78365
|
-
return e = e || {}, t ===
|
|
78365
|
+
return e = e || {}, t === Os.stdout || t === Os.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[A].push(e.proxyErrors ? new Oi(this, t, e) : new Ce(this, t, e)), this[Z] ? te(() => this[Bt]()) : this[Bt]()), t;
|
|
78366
78366
|
}
|
|
78367
78367
|
unpipe(t) {
|
|
78368
|
-
let e = this[
|
|
78369
|
-
e && (this[
|
|
78368
|
+
let e = this[A].find((i) => i.dest === t);
|
|
78369
|
+
e && (this[A].length === 1 ? (this[b] && this[yt] === 0 && (this[b] = false), this[A] = []) : this[A].splice(this[A].indexOf(e), 1), e.unpipe());
|
|
78370
78370
|
}
|
|
78371
78371
|
addListener(t, e) {
|
|
78372
78372
|
return this.on(t, e);
|
|
78373
78373
|
}
|
|
78374
78374
|
on(t, e) {
|
|
78375
78375
|
let i = super.on(t, e);
|
|
78376
|
-
if (t === "data") this[C] = false, this[yt]++, !this[
|
|
78377
|
-
else if (t === "readable" && this[
|
|
78378
|
-
else if (
|
|
78376
|
+
if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
|
|
78377
|
+
else if (t === "readable" && this[g] !== 0) super.emit("readable");
|
|
78378
|
+
else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
|
|
78379
78379
|
else if (t === "error" && this[jt]) {
|
|
78380
78380
|
let r = e;
|
|
78381
78381
|
this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
|
|
@@ -78387,29 +78387,29 @@ var A = class extends Oi {
|
|
|
78387
78387
|
}
|
|
78388
78388
|
off(t, e) {
|
|
78389
78389
|
let i = super.off(t, e);
|
|
78390
|
-
return t === "data" && (this[yt] = this.listeners("data").length, this[yt] === 0 && !this[C] && !this[
|
|
78390
|
+
return t === "data" && (this[yt] = this.listeners("data").length, this[yt] === 0 && !this[C] && !this[A].length && (this[b] = false)), i;
|
|
78391
78391
|
}
|
|
78392
78392
|
removeAllListeners(t) {
|
|
78393
78393
|
let e = super.removeAllListeners(t);
|
|
78394
|
-
return (t === "data" || t === void 0) && (this[yt] = 0, !this[C] && !this[
|
|
78394
|
+
return (t === "data" || t === void 0) && (this[yt] = 0, !this[C] && !this[A].length && (this[b] = false)), e;
|
|
78395
78395
|
}
|
|
78396
78396
|
get emittedEnd() {
|
|
78397
78397
|
return this[rt];
|
|
78398
78398
|
}
|
|
78399
78399
|
[j]() {
|
|
78400
|
-
!this[
|
|
78400
|
+
!this[Le] && !this[rt] && !this[w] && this[_].length === 0 && this[q] && (this[Le] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[Le] = false);
|
|
78401
78401
|
}
|
|
78402
78402
|
emit(t, ...e) {
|
|
78403
78403
|
let i = e[0];
|
|
78404
78404
|
if (t !== "error" && t !== "close" && t !== w && this[w]) return false;
|
|
78405
|
-
if (t === "data") return !this[L] && !i ? false : this[Z] ? (te(() => this[
|
|
78406
|
-
if (t === "end") return this[
|
|
78405
|
+
if (t === "data") return !this[L] && !i ? false : this[Z] ? (te(() => this[bi](i)), true) : this[bi](i);
|
|
78406
|
+
if (t === "end") return this[Ls]();
|
|
78407
78407
|
if (t === "close") {
|
|
78408
|
-
if (this[
|
|
78408
|
+
if (this[Ne] = true, !this[rt] && !this[w]) return false;
|
|
78409
78409
|
let n = super.emit("close");
|
|
78410
78410
|
return this.removeAllListeners("close"), n;
|
|
78411
78411
|
} else if (t === "error") {
|
|
78412
|
-
this[jt] = i, super.emit(
|
|
78412
|
+
this[jt] = i, super.emit(Ri, i);
|
|
78413
78413
|
let n = !this[Jt] || this.listeners("error").length ? super.emit("error", i) : false;
|
|
78414
78414
|
return this[j](), n;
|
|
78415
78415
|
} else if (t === "resume") {
|
|
@@ -78422,23 +78422,23 @@ var A = class extends Oi {
|
|
|
78422
78422
|
let r = super.emit(t, ...e);
|
|
78423
78423
|
return this[j](), r;
|
|
78424
78424
|
}
|
|
78425
|
-
[
|
|
78426
|
-
for (let i of this[
|
|
78425
|
+
[bi](t) {
|
|
78426
|
+
for (let i of this[A]) i.dest.write(t) === false && this.pause();
|
|
78427
78427
|
let e = this[C] ? false : super.emit("data", t);
|
|
78428
78428
|
return this[j](), e;
|
|
78429
78429
|
}
|
|
78430
|
-
[
|
|
78431
|
-
return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[
|
|
78430
|
+
[Ls]() {
|
|
78431
|
+
return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[_i]()), true) : this[_i]());
|
|
78432
78432
|
}
|
|
78433
|
-
[
|
|
78433
|
+
[_i]() {
|
|
78434
78434
|
if (this[Mt]) {
|
|
78435
78435
|
let e = this[Mt].end();
|
|
78436
78436
|
if (e) {
|
|
78437
|
-
for (let i of this[
|
|
78437
|
+
for (let i of this[A]) i.dest.write(e);
|
|
78438
78438
|
this[C] || super.emit("data", e);
|
|
78439
78439
|
}
|
|
78440
78440
|
}
|
|
78441
|
-
for (let e of this[
|
|
78441
|
+
for (let e of this[A]) e.end();
|
|
78442
78442
|
let t = super.emit("end");
|
|
78443
78443
|
return this.removeAllListeners("end"), t;
|
|
78444
78444
|
}
|
|
@@ -78485,67 +78485,67 @@ var A = class extends Oi {
|
|
|
78485
78485
|
}
|
|
78486
78486
|
[Symbol.iterator]() {
|
|
78487
78487
|
this[C] = false;
|
|
78488
|
-
let t = false, e = () => (this.pause(), this.off(
|
|
78488
|
+
let t = false, e = () => (this.pause(), this.off(Ri, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
|
|
78489
78489
|
if (t) return e();
|
|
78490
78490
|
let r = this.read();
|
|
78491
78491
|
return r === null ? e() : { done: false, value: r };
|
|
78492
78492
|
};
|
|
78493
|
-
return this.once("end", e), this.once(
|
|
78493
|
+
return this.once("end", e), this.once(Ri, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
|
|
78494
78494
|
return this;
|
|
78495
78495
|
}, [Symbol.dispose]: () => {
|
|
78496
78496
|
} };
|
|
78497
78497
|
}
|
|
78498
78498
|
destroy(t) {
|
|
78499
78499
|
if (this[w]) return t ? this.emit("error", t) : this.emit(w), this;
|
|
78500
|
-
this[w] = true, this[C] = true, this[
|
|
78500
|
+
this[w] = true, this[C] = true, this[_].length = 0, this[g] = 0;
|
|
78501
78501
|
let e = this;
|
|
78502
|
-
return typeof e.close == "function" && !this[
|
|
78502
|
+
return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
|
|
78503
78503
|
}
|
|
78504
78504
|
static get isStream() {
|
|
78505
|
-
return
|
|
78505
|
+
return Ir;
|
|
78506
78506
|
}
|
|
78507
78507
|
};
|
|
78508
|
-
var
|
|
78508
|
+
var Hr = I.writev;
|
|
78509
78509
|
var ot = /* @__PURE__ */ Symbol("_autoClose");
|
|
78510
78510
|
var H = /* @__PURE__ */ Symbol("_close");
|
|
78511
78511
|
var ee = /* @__PURE__ */ Symbol("_ended");
|
|
78512
78512
|
var m = /* @__PURE__ */ Symbol("_fd");
|
|
78513
|
-
var
|
|
78513
|
+
var xi = /* @__PURE__ */ Symbol("_finished");
|
|
78514
78514
|
var J = /* @__PURE__ */ Symbol("_flags");
|
|
78515
|
-
var
|
|
78516
|
-
var
|
|
78517
|
-
var
|
|
78515
|
+
var Li = /* @__PURE__ */ Symbol("_flush");
|
|
78516
|
+
var Ii = /* @__PURE__ */ Symbol("_handleChunk");
|
|
78517
|
+
var Ci = /* @__PURE__ */ Symbol("_makeBuf");
|
|
78518
78518
|
var se = /* @__PURE__ */ Symbol("_mode");
|
|
78519
|
-
var
|
|
78519
|
+
var Fe = /* @__PURE__ */ Symbol("_needDrain");
|
|
78520
78520
|
var Ut = /* @__PURE__ */ Symbol("_onerror");
|
|
78521
78521
|
var Ht = /* @__PURE__ */ Symbol("_onopen");
|
|
78522
|
-
var
|
|
78522
|
+
var Ni = /* @__PURE__ */ Symbol("_onread");
|
|
78523
78523
|
var Pt = /* @__PURE__ */ Symbol("_onwrite");
|
|
78524
78524
|
var ht = /* @__PURE__ */ Symbol("_open");
|
|
78525
78525
|
var U = /* @__PURE__ */ Symbol("_path");
|
|
78526
78526
|
var nt = /* @__PURE__ */ Symbol("_pos");
|
|
78527
78527
|
var Y = /* @__PURE__ */ Symbol("_queue");
|
|
78528
78528
|
var zt = /* @__PURE__ */ Symbol("_read");
|
|
78529
|
-
var
|
|
78529
|
+
var Ai = /* @__PURE__ */ Symbol("_readSize");
|
|
78530
78530
|
var Q = /* @__PURE__ */ Symbol("_reading");
|
|
78531
78531
|
var ie = /* @__PURE__ */ Symbol("_remain");
|
|
78532
78532
|
var Di = /* @__PURE__ */ Symbol("_size");
|
|
78533
|
-
var
|
|
78533
|
+
var ke = /* @__PURE__ */ Symbol("_write");
|
|
78534
78534
|
var Rt = /* @__PURE__ */ Symbol("_writing");
|
|
78535
|
-
var
|
|
78535
|
+
var ve = /* @__PURE__ */ Symbol("_defaultFlag");
|
|
78536
78536
|
var bt = /* @__PURE__ */ Symbol("_errored");
|
|
78537
|
-
var
|
|
78537
|
+
var _t = class extends D {
|
|
78538
78538
|
[bt] = false;
|
|
78539
78539
|
[m];
|
|
78540
78540
|
[U];
|
|
78541
|
-
[
|
|
78541
|
+
[Ai];
|
|
78542
78542
|
[Q] = false;
|
|
78543
78543
|
[Di];
|
|
78544
78544
|
[ie];
|
|
78545
78545
|
[ot];
|
|
78546
78546
|
constructor(t, e) {
|
|
78547
78547
|
if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
|
|
78548
|
-
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[
|
|
78548
|
+
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ai] = e.readSize || 16 * 1024 * 1024, this[Q] = false, this[Di] = typeof e.size == "number" ? e.size : 1 / 0, this[ie] = this[Di], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
|
|
78549
78549
|
}
|
|
78550
78550
|
get fd() {
|
|
78551
78551
|
return this[m];
|
|
@@ -78565,19 +78565,19 @@ var gt = class extends A {
|
|
|
78565
78565
|
[Ht](t, e) {
|
|
78566
78566
|
t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
|
|
78567
78567
|
}
|
|
78568
|
-
[
|
|
78569
|
-
return Buffer.allocUnsafe(Math.min(this[
|
|
78568
|
+
[Ci]() {
|
|
78569
|
+
return Buffer.allocUnsafe(Math.min(this[Ai], this[ie]));
|
|
78570
78570
|
}
|
|
78571
78571
|
[zt]() {
|
|
78572
78572
|
if (!this[Q]) {
|
|
78573
78573
|
this[Q] = true;
|
|
78574
|
-
let t = this[
|
|
78575
|
-
if (t.length === 0) return process.nextTick(() => this[
|
|
78576
|
-
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[
|
|
78574
|
+
let t = this[Ci]();
|
|
78575
|
+
if (t.length === 0) return process.nextTick(() => this[Ni](null, 0, t));
|
|
78576
|
+
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ni](e, i, r));
|
|
78577
78577
|
}
|
|
78578
78578
|
}
|
|
78579
|
-
[
|
|
78580
|
-
this[Q] = false, t ? this[Ut](t) : this[
|
|
78579
|
+
[Ni](t, e, i) {
|
|
78580
|
+
this[Q] = false, t ? this[Ut](t) : this[Ii](e, i) && this[zt]();
|
|
78581
78581
|
}
|
|
78582
78582
|
[H]() {
|
|
78583
78583
|
if (this[ot] && typeof this[m] == "number") {
|
|
@@ -78588,7 +78588,7 @@ var gt = class extends A {
|
|
|
78588
78588
|
[Ut](t) {
|
|
78589
78589
|
this[Q] = true, this[H](), this.emit("error", t);
|
|
78590
78590
|
}
|
|
78591
|
-
[
|
|
78591
|
+
[Ii](t, e) {
|
|
78592
78592
|
let i = false;
|
|
78593
78593
|
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;
|
|
78594
78594
|
}
|
|
@@ -78606,7 +78606,7 @@ var gt = class extends A {
|
|
|
78606
78606
|
}
|
|
78607
78607
|
}
|
|
78608
78608
|
};
|
|
78609
|
-
var
|
|
78609
|
+
var Me = class extends _t {
|
|
78610
78610
|
[ht]() {
|
|
78611
78611
|
let t = true;
|
|
78612
78612
|
try {
|
|
@@ -78621,8 +78621,8 @@ var ve = class extends gt {
|
|
|
78621
78621
|
if (!this[Q]) {
|
|
78622
78622
|
this[Q] = true;
|
|
78623
78623
|
do {
|
|
78624
|
-
let e = this[
|
|
78625
|
-
if (!this[
|
|
78624
|
+
let e = this[Ci](), i = e.length === 0 ? 0 : I.readSync(this[m], e, 0, e.length, null);
|
|
78625
|
+
if (!this[Ii](i, e)) break;
|
|
78626
78626
|
} while (true);
|
|
78627
78627
|
this[Q] = false;
|
|
78628
78628
|
}
|
|
@@ -78638,26 +78638,26 @@ var ve = class extends gt {
|
|
|
78638
78638
|
}
|
|
78639
78639
|
}
|
|
78640
78640
|
};
|
|
78641
|
-
var tt = class extends
|
|
78641
|
+
var tt = class extends Ur {
|
|
78642
78642
|
readable = false;
|
|
78643
78643
|
writable = true;
|
|
78644
78644
|
[bt] = false;
|
|
78645
78645
|
[Rt] = false;
|
|
78646
78646
|
[ee] = false;
|
|
78647
78647
|
[Y] = [];
|
|
78648
|
-
[
|
|
78648
|
+
[Fe] = false;
|
|
78649
78649
|
[U];
|
|
78650
78650
|
[se];
|
|
78651
78651
|
[ot];
|
|
78652
78652
|
[m];
|
|
78653
|
-
[
|
|
78653
|
+
[ve];
|
|
78654
78654
|
[J];
|
|
78655
|
-
[
|
|
78655
|
+
[xi] = false;
|
|
78656
78656
|
[nt];
|
|
78657
78657
|
constructor(t, e) {
|
|
78658
78658
|
e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[se] = e.mode === void 0 ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : void 0, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
|
|
78659
78659
|
let i = this[nt] !== void 0 ? "r+" : "w";
|
|
78660
|
-
this[
|
|
78660
|
+
this[ve] = e.flags === void 0, this[J] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
|
|
78661
78661
|
}
|
|
78662
78662
|
emit(t, ...e) {
|
|
78663
78663
|
if (t === "error") {
|
|
@@ -78679,26 +78679,26 @@ var tt = class extends Hr {
|
|
|
78679
78679
|
I.open(this[U], this[J], this[se], (t, e) => this[Ht](t, e));
|
|
78680
78680
|
}
|
|
78681
78681
|
[Ht](t, e) {
|
|
78682
|
-
this[
|
|
78682
|
+
this[ve] && this[J] === "r+" && t && t.code === "ENOENT" ? (this[J] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[Rt] || this[Li]());
|
|
78683
78683
|
}
|
|
78684
78684
|
end(t, e) {
|
|
78685
78685
|
return t && this.write(t, e), this[ee] = true, !this[Rt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
|
|
78686
78686
|
}
|
|
78687
78687
|
write(t, e) {
|
|
78688
|
-
return typeof t == "string" && (t = Buffer.from(t, e)), this[ee] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[Rt] || this[Y].length ? (this[Y].push(t), this[
|
|
78688
|
+
return typeof t == "string" && (t = Buffer.from(t, e)), this[ee] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[Rt] || this[Y].length ? (this[Y].push(t), this[Fe] = true, false) : (this[Rt] = true, this[ke](t), true);
|
|
78689
78689
|
}
|
|
78690
|
-
[
|
|
78690
|
+
[ke](t) {
|
|
78691
78691
|
I.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
|
|
78692
78692
|
}
|
|
78693
78693
|
[Pt](t, e) {
|
|
78694
|
-
t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[
|
|
78694
|
+
t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Li]() : (this[Rt] = false, this[ee] && !this[xi] ? (this[xi] = true, this[H](), this.emit("finish")) : this[Fe] && (this[Fe] = false, this.emit("drain"))));
|
|
78695
78695
|
}
|
|
78696
|
-
[
|
|
78696
|
+
[Li]() {
|
|
78697
78697
|
if (this[Y].length === 0) this[ee] && this[Pt](null, 0);
|
|
78698
|
-
else if (this[Y].length === 1) this[
|
|
78698
|
+
else if (this[Y].length === 1) this[ke](this[Y].pop());
|
|
78699
78699
|
else {
|
|
78700
78700
|
let t = this[Y];
|
|
78701
|
-
this[Y] = [],
|
|
78701
|
+
this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
|
|
78702
78702
|
}
|
|
78703
78703
|
}
|
|
78704
78704
|
[H]() {
|
|
@@ -78711,7 +78711,7 @@ var tt = class extends Hr {
|
|
|
78711
78711
|
var Wt = class extends tt {
|
|
78712
78712
|
[ht]() {
|
|
78713
78713
|
let t;
|
|
78714
|
-
if (this[
|
|
78714
|
+
if (this[ve] && this[J] === "r+") try {
|
|
78715
78715
|
t = I.openSync(this[U], this[J], this[se]);
|
|
78716
78716
|
} catch (e) {
|
|
78717
78717
|
if (e?.code === "ENOENT") return this[J] = "w", this[ht]();
|
|
@@ -78726,7 +78726,7 @@ var Wt = class extends tt {
|
|
|
78726
78726
|
this[m] = void 0, I.closeSync(t), this.emit("close");
|
|
78727
78727
|
}
|
|
78728
78728
|
}
|
|
78729
|
-
[
|
|
78729
|
+
[ke](t) {
|
|
78730
78730
|
let e = true;
|
|
78731
78731
|
try {
|
|
78732
78732
|
this[Pt](null, I.writeSync(this[m], t, 0, t.length, this[nt])), e = false;
|
|
@@ -78738,49 +78738,50 @@ var Wt = class extends tt {
|
|
|
78738
78738
|
}
|
|
78739
78739
|
}
|
|
78740
78740
|
};
|
|
78741
|
-
var
|
|
78741
|
+
var Wr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
|
|
78742
78742
|
var As = (s3) => !!s3.sync && !!s3.file;
|
|
78743
|
-
var
|
|
78744
|
-
var
|
|
78745
|
-
var
|
|
78746
|
-
var
|
|
78747
|
-
var
|
|
78748
|
-
let t =
|
|
78743
|
+
var Ds = (s3) => !s3.sync && !!s3.file;
|
|
78744
|
+
var Is = (s3) => !!s3.sync && !s3.file;
|
|
78745
|
+
var Cs = (s3) => !s3.sync && !s3.file;
|
|
78746
|
+
var Fs = (s3) => !!s3.file;
|
|
78747
|
+
var Gr = (s3) => {
|
|
78748
|
+
let t = Wr.get(s3);
|
|
78749
78749
|
return t || s3;
|
|
78750
78750
|
};
|
|
78751
78751
|
var re = (s3 = {}) => {
|
|
78752
78752
|
if (!s3) return {};
|
|
78753
78753
|
let t = {};
|
|
78754
78754
|
for (let [e, i] of Object.entries(s3)) {
|
|
78755
|
-
let r =
|
|
78755
|
+
let r = Gr(e);
|
|
78756
78756
|
t[r] = i;
|
|
78757
78757
|
}
|
|
78758
78758
|
return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
|
|
78759
78759
|
};
|
|
78760
78760
|
var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
|
|
78761
|
-
Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o
|
|
78761
|
+
Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
|
|
78762
78762
|
let a = re(n);
|
|
78763
78763
|
if (r?.(a, o), As(a)) {
|
|
78764
78764
|
if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
78765
78765
|
return s3(a, o);
|
|
78766
|
+
} else if (Ds(a)) {
|
|
78767
|
+
let l = t(a, o);
|
|
78768
|
+
return h ? l.then(() => h(), h) : l;
|
|
78766
78769
|
} else if (Is(a)) {
|
|
78767
|
-
let l = t(a, o), c = h || void 0;
|
|
78768
|
-
return c ? l.then(() => c(), c) : l;
|
|
78769
|
-
} else if (Cs(a)) {
|
|
78770
78770
|
if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
78771
78771
|
return e(a, o);
|
|
78772
|
-
} else if (
|
|
78772
|
+
} else if (Cs(a)) {
|
|
78773
78773
|
if (typeof h == "function") throw new TypeError("callback only supported with file option");
|
|
78774
78774
|
return i(a, o);
|
|
78775
|
-
}
|
|
78775
|
+
}
|
|
78776
|
+
throw new Error("impossible options??");
|
|
78776
78777
|
}, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
|
|
78777
|
-
var
|
|
78778
|
-
var M = Object.freeze(Object.assign(/* @__PURE__ */ 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 },
|
|
78779
|
-
var
|
|
78780
|
-
var
|
|
78781
|
-
var
|
|
78782
|
-
var
|
|
78783
|
-
|
|
78778
|
+
var Yr = Zr.constants || { ZLIB_VERNUM: 4736 };
|
|
78779
|
+
var M = Object.freeze(Object.assign(/* @__PURE__ */ 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 }, Yr));
|
|
78780
|
+
var Kr = gt.concat;
|
|
78781
|
+
var vs = Object.getOwnPropertyDescriptor(gt, "concat");
|
|
78782
|
+
var Vr = (s3) => s3;
|
|
78783
|
+
var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
|
|
78784
|
+
gt.concat = s3 ? Vr : Kr;
|
|
78784
78785
|
} : (s3) => {
|
|
78785
78786
|
};
|
|
78786
78787
|
var Ot = /* @__PURE__ */ Symbol("_superWrite");
|
|
@@ -78794,8 +78795,8 @@ var Gt = class extends Error {
|
|
|
78794
78795
|
return "ZlibError";
|
|
78795
78796
|
}
|
|
78796
78797
|
};
|
|
78797
|
-
var
|
|
78798
|
-
var ne = class extends
|
|
78798
|
+
var vi = /* @__PURE__ */ Symbol("flushFlag");
|
|
78799
|
+
var ne = class extends D {
|
|
78799
78800
|
#t = false;
|
|
78800
78801
|
#i = false;
|
|
78801
78802
|
#s;
|
|
@@ -78814,9 +78815,9 @@ var ne = class extends A {
|
|
|
78814
78815
|
}
|
|
78815
78816
|
constructor(t, e) {
|
|
78816
78817
|
if (!t || typeof t != "object") throw new TypeError("invalid options for ZlibBase constructor");
|
|
78817
|
-
if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof
|
|
78818
|
+
if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof ks[e] != "function") throw new TypeError("Compression method not supported: " + e);
|
|
78818
78819
|
try {
|
|
78819
|
-
this.#e = new
|
|
78820
|
+
this.#e = new ks[e](t);
|
|
78820
78821
|
} catch (i) {
|
|
78821
78822
|
throw new Gt(i, this.constructor);
|
|
78822
78823
|
}
|
|
@@ -78828,10 +78829,10 @@ var ne = class extends A {
|
|
|
78828
78829
|
this.#e && (this.#e.close(), this.#e = void 0, this.emit("close"));
|
|
78829
78830
|
}
|
|
78830
78831
|
reset() {
|
|
78831
|
-
if (!this.#t) return
|
|
78832
|
+
if (!this.#t) return Mi(this.#e, "zlib binding closed"), this.#e.reset?.();
|
|
78832
78833
|
}
|
|
78833
78834
|
flush(t) {
|
|
78834
|
-
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(
|
|
78835
|
+
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(gt.alloc(0), { [vi]: t })));
|
|
78835
78836
|
}
|
|
78836
78837
|
end(t, e, i) {
|
|
78837
78838
|
return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), t && (e ? this.write(t, e) : this.write(t)), this.flush(this.#n), this.#i = true, super.end(i);
|
|
@@ -78843,20 +78844,20 @@ var ne = class extends A {
|
|
|
78843
78844
|
return super.write(t);
|
|
78844
78845
|
}
|
|
78845
78846
|
write(t, e, i) {
|
|
78846
|
-
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t =
|
|
78847
|
-
|
|
78847
|
+
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t = gt.from(t, e)), this.#t) return;
|
|
78848
|
+
Mi(this.#e, "zlib binding closed");
|
|
78848
78849
|
let r = this.#e._handle, n = r.close;
|
|
78849
78850
|
r.close = () => {
|
|
78850
78851
|
};
|
|
78851
78852
|
let o = this.#e.close;
|
|
78852
78853
|
this.#e.close = () => {
|
|
78853
|
-
},
|
|
78854
|
+
}, ki(true);
|
|
78854
78855
|
let h;
|
|
78855
78856
|
try {
|
|
78856
|
-
let l = typeof t[
|
|
78857
|
-
h = this.#e._processChunk(t, l),
|
|
78857
|
+
let l = typeof t[vi] == "number" ? t[vi] : this.#s;
|
|
78858
|
+
h = this.#e._processChunk(t, l), ki(false);
|
|
78858
78859
|
} catch (l) {
|
|
78859
|
-
|
|
78860
|
+
ki(false), this.#o(new Gt(l, this.write));
|
|
78860
78861
|
} finally {
|
|
78861
78862
|
this.#e && (this.#e._handle = r, r.close = n, this.#e.close = o, this.#e.removeAllListeners("error"));
|
|
78862
78863
|
}
|
|
@@ -78864,13 +78865,13 @@ var ne = class extends A {
|
|
|
78864
78865
|
let a;
|
|
78865
78866
|
if (h) if (Array.isArray(h) && h.length > 0) {
|
|
78866
78867
|
let l = h[0];
|
|
78867
|
-
a = this[Ot](
|
|
78868
|
+
a = this[Ot](gt.from(l));
|
|
78868
78869
|
for (let c = 1; c < h.length; c++) a = this[Ot](h[c]);
|
|
78869
|
-
} else a = this[Ot](
|
|
78870
|
+
} else a = this[Ot](gt.from(h));
|
|
78870
78871
|
return i && i(), a;
|
|
78871
78872
|
}
|
|
78872
78873
|
};
|
|
78873
|
-
var
|
|
78874
|
+
var Be = class extends ne {
|
|
78874
78875
|
#t;
|
|
78875
78876
|
#i;
|
|
78876
78877
|
constructor(t, e) {
|
|
@@ -78881,7 +78882,7 @@ var Me = class extends ne {
|
|
|
78881
78882
|
if (!this.handle) throw new Error("cannot switch params when binding is closed");
|
|
78882
78883
|
if (!this.handle.params) throw new Error("not supported in this implementation");
|
|
78883
78884
|
if (this.#t !== t || this.#i !== e) {
|
|
78884
|
-
this.flush(M.Z_SYNC_FLUSH),
|
|
78885
|
+
this.flush(M.Z_SYNC_FLUSH), Mi(this.handle, "zlib binding closed");
|
|
78885
78886
|
let i = this.handle.flush;
|
|
78886
78887
|
this.handle.flush = (r, n) => {
|
|
78887
78888
|
typeof r == "function" && (n = r, r = this.flushFlag), this.flush(r), n?.();
|
|
@@ -78896,7 +78897,7 @@ var Me = class extends ne {
|
|
|
78896
78897
|
}
|
|
78897
78898
|
}
|
|
78898
78899
|
};
|
|
78899
|
-
var
|
|
78900
|
+
var Pe = class extends Be {
|
|
78900
78901
|
#t;
|
|
78901
78902
|
constructor(t) {
|
|
78902
78903
|
super(t, "Gzip"), this.#t = t && !!t.portable;
|
|
@@ -78905,87 +78906,87 @@ var Be = class extends Me {
|
|
|
78905
78906
|
return this.#t ? (this.#t = false, t[9] = 255, super[Ot](t)) : super[Ot](t);
|
|
78906
78907
|
}
|
|
78907
78908
|
};
|
|
78908
|
-
var
|
|
78909
|
+
var ze = class extends Be {
|
|
78909
78910
|
constructor(t) {
|
|
78910
78911
|
super(t, "Unzip");
|
|
78911
78912
|
}
|
|
78912
78913
|
};
|
|
78913
|
-
var
|
|
78914
|
+
var Ue = class extends ne {
|
|
78914
78915
|
constructor(t, e) {
|
|
78915
78916
|
t = t || {}, t.flush = t.flush || M.BROTLI_OPERATION_PROCESS, t.finishFlush = t.finishFlush || M.BROTLI_OPERATION_FINISH, t.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t, e);
|
|
78916
78917
|
}
|
|
78917
78918
|
};
|
|
78918
|
-
var
|
|
78919
|
+
var He = class extends Ue {
|
|
78919
78920
|
constructor(t) {
|
|
78920
78921
|
super(t, "BrotliCompress");
|
|
78921
78922
|
}
|
|
78922
78923
|
};
|
|
78923
|
-
var
|
|
78924
|
+
var We = class extends Ue {
|
|
78924
78925
|
constructor(t) {
|
|
78925
78926
|
super(t, "BrotliDecompress");
|
|
78926
78927
|
}
|
|
78927
78928
|
};
|
|
78928
|
-
var
|
|
78929
|
+
var Ge = class extends ne {
|
|
78929
78930
|
constructor(t, e) {
|
|
78930
78931
|
t = t || {}, t.flush = t.flush || M.ZSTD_e_continue, t.finishFlush = t.finishFlush || M.ZSTD_e_end, t.fullFlushFlag = M.ZSTD_e_flush, super(t, e);
|
|
78931
78932
|
}
|
|
78932
78933
|
};
|
|
78933
|
-
var
|
|
78934
|
+
var Ze = class extends Ge {
|
|
78934
78935
|
constructor(t) {
|
|
78935
78936
|
super(t, "ZstdCompress");
|
|
78936
78937
|
}
|
|
78937
78938
|
};
|
|
78938
|
-
var
|
|
78939
|
+
var Ye = class extends Ge {
|
|
78939
78940
|
constructor(t) {
|
|
78940
78941
|
super(t, "ZstdDecompress");
|
|
78941
78942
|
}
|
|
78942
78943
|
};
|
|
78943
|
-
var
|
|
78944
|
-
if (Number.isSafeInteger(s3)) s3 < 0 ?
|
|
78944
|
+
var Ms = (s3, t) => {
|
|
78945
|
+
if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
|
|
78945
78946
|
else throw Error("cannot encode number outside of javascript safe integer range");
|
|
78946
78947
|
return t;
|
|
78947
78948
|
};
|
|
78948
|
-
var
|
|
78949
|
+
var Xr = (s3, t) => {
|
|
78949
78950
|
t[0] = 128;
|
|
78950
78951
|
for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
|
|
78951
78952
|
};
|
|
78952
|
-
var
|
|
78953
|
+
var qr = (s3, t) => {
|
|
78953
78954
|
t[0] = 255;
|
|
78954
78955
|
var e = false;
|
|
78955
78956
|
s3 = s3 * -1;
|
|
78956
78957
|
for (var i = t.length; i > 1; i--) {
|
|
78957
78958
|
var r = s3 & 255;
|
|
78958
|
-
s3 = Math.floor(s3 / 256), e ? t[i - 1] =
|
|
78959
|
+
s3 = Math.floor(s3 / 256), e ? t[i - 1] = Ps(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = zs(r));
|
|
78959
78960
|
}
|
|
78960
78961
|
};
|
|
78961
|
-
var
|
|
78962
|
-
let t = s3[0], e = t === 128 ?
|
|
78962
|
+
var Bs = (s3) => {
|
|
78963
|
+
let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
|
|
78963
78964
|
if (e === null) throw Error("invalid base256 encoding");
|
|
78964
78965
|
if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
|
|
78965
78966
|
return e;
|
|
78966
78967
|
};
|
|
78967
|
-
var
|
|
78968
|
+
var jr = (s3) => {
|
|
78968
78969
|
for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
|
|
78969
78970
|
var n = Number(s3[r]), o;
|
|
78970
|
-
i ? o =
|
|
78971
|
+
i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
|
|
78971
78972
|
}
|
|
78972
78973
|
return e;
|
|
78973
78974
|
};
|
|
78974
|
-
var
|
|
78975
|
+
var Qr = (s3) => {
|
|
78975
78976
|
for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
|
|
78976
78977
|
var r = Number(s3[i]);
|
|
78977
78978
|
r !== 0 && (e += r * Math.pow(256, t - i - 1));
|
|
78978
78979
|
}
|
|
78979
78980
|
return e;
|
|
78980
78981
|
};
|
|
78981
|
-
var
|
|
78982
|
-
var
|
|
78983
|
-
var
|
|
78984
|
-
Ar(
|
|
78982
|
+
var Ps = (s3) => (255 ^ s3) & 255;
|
|
78983
|
+
var zs = (s3) => (255 ^ s3) + 1 & 255;
|
|
78984
|
+
var Bi = {};
|
|
78985
|
+
Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
|
|
78985
78986
|
var oe = (s3) => he.has(s3);
|
|
78986
|
-
var
|
|
78987
|
+
var tn = (s3) => Ke.has(s3);
|
|
78987
78988
|
var he = /* @__PURE__ */ 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"]]);
|
|
78988
|
-
var
|
|
78989
|
+
var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
|
|
78989
78990
|
var F = class {
|
|
78990
78991
|
cksumValid = false;
|
|
78991
78992
|
needPax = false;
|
|
@@ -79013,14 +79014,14 @@ var F = class {
|
|
|
79013
79014
|
}
|
|
79014
79015
|
decode(t, e, i, r) {
|
|
79015
79016
|
if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
|
|
79016
|
-
this.path = i?.path ?? Tt(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 ??
|
|
79017
|
+
this.path = i?.path ?? Tt(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 ?? Pi(t, e + 136, 12), this.cksum = at(t, e + 148, 12), r && this.#i(r, true), i && this.#i(i);
|
|
79017
79018
|
let n = Tt(t, e + 156, 1);
|
|
79018
79019
|
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 = Tt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = i?.uname ?? r?.uname ?? Tt(t, e + 265, 32), this.gname = i?.gname ?? r?.gname ?? Tt(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) {
|
|
79019
79020
|
let h = Tt(t, e + 345, 155);
|
|
79020
79021
|
this.path = h + "/" + this.path;
|
|
79021
79022
|
} else {
|
|
79022
79023
|
let h = Tt(t, e + 345, 130);
|
|
79023
|
-
h && (this.path = h + "/" + this.path), this.atime = i?.atime ?? r?.atime ??
|
|
79024
|
+
h && (this.path = h + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Pi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Pi(t, e + 488, 12);
|
|
79024
79025
|
}
|
|
79025
79026
|
let o = 256;
|
|
79026
79027
|
for (let h = e; h < e + 148; h++) o += t[h];
|
|
@@ -79032,8 +79033,8 @@ var F = class {
|
|
|
79032
79033
|
}
|
|
79033
79034
|
encode(t, e = 0) {
|
|
79034
79035
|
if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
|
|
79035
|
-
let i = this.ctime || this.atime ? 130 : 155, r =
|
|
79036
|
-
this.needPax = !!r[2], this.needPax = xt(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 =
|
|
79036
|
+
let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
|
|
79037
|
+
this.needPax = !!r[2], this.needPax = xt(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 = zi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = xt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = xt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = xt(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 = xt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = xt(t, e + 345, 155, o) || this.needPax : (this.needPax = xt(t, e + 345, 130, o) || this.needPax, this.needPax = zi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = zi(t, e + 488, 12, this.ctime) || this.needPax);
|
|
79037
79038
|
let h = 256;
|
|
79038
79039
|
for (let a = e; a < e + 148; a++) h += t[a];
|
|
79039
79040
|
for (let a = e + 156; a < e + 512; a++) h += t[a];
|
|
@@ -79046,13 +79047,13 @@ var F = class {
|
|
|
79046
79047
|
return this.#t;
|
|
79047
79048
|
}
|
|
79048
79049
|
set type(t) {
|
|
79049
|
-
let e = String(
|
|
79050
|
+
let e = String(Ke.get(t));
|
|
79050
79051
|
if (oe(e) || e === "Unsupported") this.#t = e;
|
|
79051
79052
|
else if (oe(t)) this.#t = t;
|
|
79052
79053
|
else throw new TypeError("invalid entry type: " + t);
|
|
79053
79054
|
}
|
|
79054
79055
|
};
|
|
79055
|
-
var
|
|
79056
|
+
var en = (s3, t) => {
|
|
79056
79057
|
let i = s3, r = "", n, o = Zt.parse(s3).root || ".";
|
|
79057
79058
|
if (Buffer.byteLength(i) < 100) n = [i, r, false];
|
|
79058
79059
|
else {
|
|
@@ -79065,19 +79066,19 @@ var sn = (s3, t) => {
|
|
|
79065
79066
|
return n;
|
|
79066
79067
|
};
|
|
79067
79068
|
var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
|
|
79068
|
-
var
|
|
79069
|
-
var
|
|
79070
|
-
var at = (s3, t, e) => Number(s3[t]) & 128 ?
|
|
79071
|
-
var
|
|
79072
|
-
var
|
|
79073
|
-
var
|
|
79074
|
-
var lt = (s3, t, e, i) => i === void 0 ? false : i >
|
|
79075
|
-
var
|
|
79076
|
-
var
|
|
79077
|
-
var
|
|
79078
|
-
var
|
|
79079
|
-
var
|
|
79080
|
-
var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i +
|
|
79069
|
+
var Pi = (s3, t, e) => sn(at(s3, t, e));
|
|
79070
|
+
var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
|
|
79071
|
+
var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
|
|
79072
|
+
var rn = (s3) => isNaN(s3) ? void 0 : s3;
|
|
79073
|
+
var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
|
|
79074
|
+
var on = { 12: 8589934591, 8: 2097151 };
|
|
79075
|
+
var lt = (s3, t, e, i) => i === void 0 ? false : i > on[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (hn(s3, t, e, i), false);
|
|
79076
|
+
var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
|
|
79077
|
+
var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
|
|
79078
|
+
var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
|
|
79079
|
+
var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
|
|
79080
|
+
var cn = new Array(156).join("\0");
|
|
79081
|
+
var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + cn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
|
|
79081
79082
|
var ct = class s {
|
|
79082
79083
|
atime;
|
|
79083
79084
|
mtime;
|
|
@@ -79104,7 +79105,7 @@ var ct = class s {
|
|
|
79104
79105
|
if (t === "") return Buffer.allocUnsafe(0);
|
|
79105
79106
|
let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
|
|
79106
79107
|
for (let n = 0; n < 512; n++) r[n] = 0;
|
|
79107
|
-
new F({ path: ("PaxHeader/" +
|
|
79108
|
+
new F({ path: ("PaxHeader/" + fn(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");
|
|
79108
79109
|
for (let n = e + 512; n < r.length; n++) r[n] = 0;
|
|
79109
79110
|
return r;
|
|
79110
79111
|
}
|
|
@@ -79118,13 +79119,13 @@ var ct = class s {
|
|
|
79118
79119
|
return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
|
|
79119
79120
|
}
|
|
79120
79121
|
static parse(t, e, i = false) {
|
|
79121
|
-
return new s(un(
|
|
79122
|
+
return new s(dn(un(t), e), i);
|
|
79122
79123
|
}
|
|
79123
79124
|
};
|
|
79124
|
-
var
|
|
79125
|
-
var
|
|
79126
|
-
`).reduce(
|
|
79127
|
-
var
|
|
79125
|
+
var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
|
|
79126
|
+
var un = (s3) => s3.replace(/\n$/, "").split(`
|
|
79127
|
+
`).reduce(mn, /* @__PURE__ */ Object.create(null));
|
|
79128
|
+
var mn = (s3, t) => {
|
|
79128
79129
|
let e = parseInt(t, 10);
|
|
79129
79130
|
if (e !== Buffer.byteLength(t) + 1) return s3;
|
|
79130
79131
|
t = t.slice((e + " ").length);
|
|
@@ -79133,9 +79134,9 @@ var pn = (s3, t) => {
|
|
|
79133
79134
|
let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
|
|
79134
79135
|
return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
|
|
79135
79136
|
};
|
|
79136
|
-
var
|
|
79137
|
-
var f =
|
|
79138
|
-
var Yt = class extends
|
|
79137
|
+
var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
79138
|
+
var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
|
|
79139
|
+
var Yt = class extends D {
|
|
79139
79140
|
extended;
|
|
79140
79141
|
globalExtended;
|
|
79141
79142
|
header;
|
|
@@ -79202,42 +79203,42 @@ var Yt = class extends A {
|
|
|
79202
79203
|
var Lt = (s3, t, e, i = {}) => {
|
|
79203
79204
|
s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
|
|
79204
79205
|
};
|
|
79205
|
-
var
|
|
79206
|
-
var
|
|
79207
|
-
var
|
|
79208
|
-
var
|
|
79206
|
+
var wn = 1024 * 1024;
|
|
79207
|
+
var Zi = Buffer.from([31, 139]);
|
|
79208
|
+
var Yi = Buffer.from([40, 181, 47, 253]);
|
|
79209
|
+
var Sn = Math.max(Zi.length, Yi.length);
|
|
79209
79210
|
var B = /* @__PURE__ */ Symbol("state");
|
|
79210
79211
|
var Nt = /* @__PURE__ */ Symbol("writeEntry");
|
|
79211
79212
|
var et = /* @__PURE__ */ Symbol("readEntry");
|
|
79212
|
-
var
|
|
79213
|
-
var
|
|
79213
|
+
var Ui = /* @__PURE__ */ Symbol("nextEntry");
|
|
79214
|
+
var Us = /* @__PURE__ */ Symbol("processEntry");
|
|
79214
79215
|
var V = /* @__PURE__ */ Symbol("extendedHeader");
|
|
79215
79216
|
var ae = /* @__PURE__ */ Symbol("globalExtendedHeader");
|
|
79216
79217
|
var ft = /* @__PURE__ */ Symbol("meta");
|
|
79217
|
-
var
|
|
79218
|
+
var Hs = /* @__PURE__ */ Symbol("emitMeta");
|
|
79218
79219
|
var p = /* @__PURE__ */ Symbol("buffer");
|
|
79219
79220
|
var it = /* @__PURE__ */ Symbol("queue");
|
|
79220
79221
|
var dt = /* @__PURE__ */ Symbol("ended");
|
|
79221
|
-
var
|
|
79222
|
-
var
|
|
79222
|
+
var Hi = /* @__PURE__ */ Symbol("emittedEnd");
|
|
79223
|
+
var At = /* @__PURE__ */ Symbol("emit");
|
|
79223
79224
|
var y = /* @__PURE__ */ Symbol("unzip");
|
|
79224
|
-
var
|
|
79225
|
-
var
|
|
79226
|
-
var
|
|
79227
|
-
var
|
|
79228
|
-
var
|
|
79225
|
+
var Ve = /* @__PURE__ */ Symbol("consumeChunk");
|
|
79226
|
+
var $e = /* @__PURE__ */ Symbol("consumeChunkSub");
|
|
79227
|
+
var Wi = /* @__PURE__ */ Symbol("consumeBody");
|
|
79228
|
+
var Ws = /* @__PURE__ */ Symbol("consumeMeta");
|
|
79229
|
+
var Gs = /* @__PURE__ */ Symbol("consumeHeader");
|
|
79229
79230
|
var le = /* @__PURE__ */ Symbol("consuming");
|
|
79230
|
-
var
|
|
79231
|
-
var
|
|
79231
|
+
var Gi = /* @__PURE__ */ Symbol("bufferConcat");
|
|
79232
|
+
var Xe = /* @__PURE__ */ Symbol("maybeEnd");
|
|
79232
79233
|
var Kt = /* @__PURE__ */ Symbol("writing");
|
|
79233
79234
|
var ut = /* @__PURE__ */ Symbol("aborted");
|
|
79234
|
-
var
|
|
79235
|
-
var
|
|
79236
|
-
var
|
|
79237
|
-
var
|
|
79238
|
-
var
|
|
79239
|
-
var
|
|
79240
|
-
var st = class extends
|
|
79235
|
+
var qe = /* @__PURE__ */ Symbol("onDone");
|
|
79236
|
+
var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
|
|
79237
|
+
var je = /* @__PURE__ */ Symbol("sawNullBlock");
|
|
79238
|
+
var Qe = /* @__PURE__ */ Symbol("sawEOF");
|
|
79239
|
+
var Zs = /* @__PURE__ */ Symbol("closeStream");
|
|
79240
|
+
var yn = () => true;
|
|
79241
|
+
var st = class extends En {
|
|
79241
79242
|
file;
|
|
79242
79243
|
strict;
|
|
79243
79244
|
maxMetaEntrySize;
|
|
@@ -79257,36 +79258,36 @@ var st = class extends wn {
|
|
|
79257
79258
|
[dt] = false;
|
|
79258
79259
|
[y];
|
|
79259
79260
|
[ut] = false;
|
|
79260
|
-
[
|
|
79261
|
-
[qe] = false;
|
|
79261
|
+
[Dt];
|
|
79262
79262
|
[je] = false;
|
|
79263
|
+
[Qe] = false;
|
|
79263
79264
|
[Kt] = false;
|
|
79264
79265
|
[le] = false;
|
|
79265
|
-
[
|
|
79266
|
+
[Hi] = false;
|
|
79266
79267
|
constructor(t = {}) {
|
|
79267
|
-
super(), this.file = t.file || "", this.on(
|
|
79268
|
-
(this[B] === "begin" || this[
|
|
79269
|
-
}), t.ondone ? this.on(
|
|
79268
|
+
super(), this.file = t.file || "", this.on(qe, () => {
|
|
79269
|
+
(this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
79270
|
+
}), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
|
|
79270
79271
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
79271
|
-
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize ||
|
|
79272
|
+
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
|
|
79272
79273
|
let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
|
|
79273
79274
|
this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
|
|
79274
79275
|
let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
|
|
79275
|
-
this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[
|
|
79276
|
+
this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[Zs]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
|
|
79276
79277
|
}
|
|
79277
79278
|
warn(t, e, i = {}) {
|
|
79278
79279
|
Lt(this, t, e, i);
|
|
79279
79280
|
}
|
|
79280
|
-
[
|
|
79281
|
-
this[
|
|
79281
|
+
[Gs](t, e) {
|
|
79282
|
+
this[Dt] === void 0 && (this[Dt] = false);
|
|
79282
79283
|
let i;
|
|
79283
79284
|
try {
|
|
79284
79285
|
i = new F(t, e, this[V], this[ae]);
|
|
79285
79286
|
} catch (r) {
|
|
79286
79287
|
return this.warn("TAR_ENTRY_INVALID", r);
|
|
79287
79288
|
}
|
|
79288
|
-
if (i.nullBlock) this[
|
|
79289
|
-
else if (this[
|
|
79289
|
+
if (i.nullBlock) this[je] ? (this[Qe] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[je] = true, this[At]("nullBlock"));
|
|
79290
|
+
else if (this[je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
|
|
79290
79291
|
else if (!i.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i });
|
|
79291
79292
|
else {
|
|
79292
79293
|
let r = i.type;
|
|
@@ -79294,52 +79295,52 @@ var st = class extends wn {
|
|
|
79294
79295
|
else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
|
|
79295
79296
|
else {
|
|
79296
79297
|
let n = this[Nt] = new Yt(i, this[V], this[ae]);
|
|
79297
|
-
if (!this[
|
|
79298
|
+
if (!this[Dt]) if (n.remain) {
|
|
79298
79299
|
let o = () => {
|
|
79299
|
-
n.invalid || (this[
|
|
79300
|
+
n.invalid || (this[Dt] = true);
|
|
79300
79301
|
};
|
|
79301
79302
|
n.on("end", o);
|
|
79302
|
-
} else this[
|
|
79303
|
-
n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[
|
|
79303
|
+
} else this[Dt] = true;
|
|
79304
|
+
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] = void 0, 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[Ui]())));
|
|
79304
79305
|
}
|
|
79305
79306
|
}
|
|
79306
79307
|
}
|
|
79307
|
-
[
|
|
79308
|
+
[Zs]() {
|
|
79308
79309
|
queueMicrotask(() => this.emit("close"));
|
|
79309
79310
|
}
|
|
79310
|
-
[
|
|
79311
|
+
[Us](t) {
|
|
79311
79312
|
let e = true;
|
|
79312
79313
|
if (!t) this[et] = void 0, e = false;
|
|
79313
79314
|
else if (Array.isArray(t)) {
|
|
79314
79315
|
let [i, ...r] = t;
|
|
79315
79316
|
this.emit(i, ...r);
|
|
79316
|
-
} else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[
|
|
79317
|
+
} else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Ui]()), e = false);
|
|
79317
79318
|
return e;
|
|
79318
79319
|
}
|
|
79319
|
-
[
|
|
79320
|
+
[Ui]() {
|
|
79320
79321
|
do
|
|
79321
79322
|
;
|
|
79322
|
-
while (this[
|
|
79323
|
-
if (
|
|
79323
|
+
while (this[Us](this[it].shift()));
|
|
79324
|
+
if (this[it].length === 0) {
|
|
79324
79325
|
let t = this[et];
|
|
79325
79326
|
!t || t.flowing || t.size === t.remain ? this[Kt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
|
|
79326
79327
|
}
|
|
79327
79328
|
}
|
|
79328
|
-
[
|
|
79329
|
+
[Wi](t, e) {
|
|
79329
79330
|
let i = this[Nt];
|
|
79330
79331
|
if (!i) throw new Error("attempt to consume body without entry??");
|
|
79331
79332
|
let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
|
|
79332
79333
|
return i.write(n), i.blockRemain || (this[B] = "header", this[Nt] = void 0, i.end()), n.length;
|
|
79333
79334
|
}
|
|
79334
|
-
[
|
|
79335
|
-
let i = this[Nt], r = this[
|
|
79336
|
-
return !this[Nt] && i && this[
|
|
79335
|
+
[Ws](t, e) {
|
|
79336
|
+
let i = this[Nt], r = this[Wi](t, e);
|
|
79337
|
+
return !this[Nt] && i && this[Hs](i), r;
|
|
79337
79338
|
}
|
|
79338
|
-
[
|
|
79339
|
-
|
|
79339
|
+
[At](t, e, i) {
|
|
79340
|
+
this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
|
|
79340
79341
|
}
|
|
79341
|
-
[
|
|
79342
|
-
switch (this[
|
|
79342
|
+
[Hs](t) {
|
|
79343
|
+
switch (this[At]("meta", this[ft]), t.type) {
|
|
79343
79344
|
case "ExtendedHeader":
|
|
79344
79345
|
case "OldExtendedHeader":
|
|
79345
79346
|
this[V] = ct.parse(this[ft], this[V], false);
|
|
@@ -79368,12 +79369,12 @@ var st = class extends wn {
|
|
|
79368
79369
|
write(t, e, i) {
|
|
79369
79370
|
if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
|
|
79370
79371
|
if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
|
|
79371
|
-
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length <
|
|
79372
|
-
for (let a = 0; this[y] === void 0 && a <
|
|
79372
|
+
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
|
|
79373
|
+
for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
|
|
79373
79374
|
let o = false;
|
|
79374
79375
|
if (this[y] === false && this.zstd !== false) {
|
|
79375
79376
|
o = true;
|
|
79376
|
-
for (let a = 0; a <
|
|
79377
|
+
for (let a = 0; a < Yi.length; a++) if (t[a] !== Yi[a]) {
|
|
79377
79378
|
o = false;
|
|
79378
79379
|
break;
|
|
79379
79380
|
}
|
|
@@ -79388,69 +79389,69 @@ var st = class extends wn {
|
|
|
79388
79389
|
}
|
|
79389
79390
|
if (this[y] === void 0 || this[y] === false && (this.brotli || o)) {
|
|
79390
79391
|
let a = this[dt];
|
|
79391
|
-
this[dt] = false, this[y] = this[y] === void 0 ? new
|
|
79392
|
-
this[dt] = true, this[
|
|
79392
|
+
this[dt] = false, this[y] = this[y] === void 0 ? new ze({}) : o ? new Ye({}) : new We({}), this[y].on("data", (c) => this[Ve](c)), this[y].on("error", (c) => this.abort(c)), this[y].on("end", () => {
|
|
79393
|
+
this[dt] = true, this[Ve]();
|
|
79393
79394
|
}), this[Kt] = true;
|
|
79394
79395
|
let l = !!this[y][a ? "end" : "write"](t);
|
|
79395
79396
|
return this[Kt] = false, i?.(), l;
|
|
79396
79397
|
}
|
|
79397
79398
|
}
|
|
79398
|
-
this[Kt] = true, this[y] ? this[y].write(t) : this[
|
|
79399
|
-
let n = this[it].length ? false : this[et] ? this[et].flowing : true;
|
|
79400
|
-
return !n &&
|
|
79399
|
+
this[Kt] = true, this[y] ? this[y].write(t) : this[Ve](t), this[Kt] = false;
|
|
79400
|
+
let n = this[it].length > 0 ? false : this[et] ? this[et].flowing : true;
|
|
79401
|
+
return !n && this[it].length === 0 && this[et]?.once("drain", () => this.emit("drain")), i?.(), n;
|
|
79401
79402
|
}
|
|
79402
|
-
[
|
|
79403
|
+
[Gi](t) {
|
|
79403
79404
|
t && !this[ut] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
|
|
79404
79405
|
}
|
|
79405
|
-
[
|
|
79406
|
-
if (this[dt] && !this[
|
|
79407
|
-
this[
|
|
79406
|
+
[Xe]() {
|
|
79407
|
+
if (this[dt] && !this[Hi] && !this[ut] && !this[le]) {
|
|
79408
|
+
this[Hi] = true;
|
|
79408
79409
|
let t = this[Nt];
|
|
79409
79410
|
if (t && t.blockRemain) {
|
|
79410
79411
|
let e = this[p] ? this[p].length : 0;
|
|
79411
79412
|
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();
|
|
79412
79413
|
}
|
|
79413
|
-
this[
|
|
79414
|
+
this[At](qe);
|
|
79414
79415
|
}
|
|
79415
79416
|
}
|
|
79416
|
-
[
|
|
79417
|
-
if (this[le] && t) this[
|
|
79418
|
-
else if (!t && !this[p]) this[
|
|
79417
|
+
[Ve](t) {
|
|
79418
|
+
if (this[le] && t) this[Gi](t);
|
|
79419
|
+
else if (!t && !this[p]) this[Xe]();
|
|
79419
79420
|
else if (t) {
|
|
79420
79421
|
if (this[le] = true, this[p]) {
|
|
79421
|
-
this[
|
|
79422
|
+
this[Gi](t);
|
|
79422
79423
|
let e = this[p];
|
|
79423
|
-
this[p] = void 0, this[
|
|
79424
|
-
} else this[
|
|
79425
|
-
for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[
|
|
79424
|
+
this[p] = void 0, this[$e](e);
|
|
79425
|
+
} else this[$e](t);
|
|
79426
|
+
for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[Qe]; ) {
|
|
79426
79427
|
let e = this[p];
|
|
79427
|
-
this[p] = void 0, this[
|
|
79428
|
+
this[p] = void 0, this[$e](e);
|
|
79428
79429
|
}
|
|
79429
79430
|
this[le] = false;
|
|
79430
79431
|
}
|
|
79431
|
-
(!this[p] || this[dt]) && this[
|
|
79432
|
+
(!this[p] || this[dt]) && this[Xe]();
|
|
79432
79433
|
}
|
|
79433
|
-
[
|
|
79434
|
+
[$e](t) {
|
|
79434
79435
|
let e = 0, i = t.length;
|
|
79435
|
-
for (; e + 512 <= i && !this[ut] && !this[
|
|
79436
|
+
for (; e + 512 <= i && !this[ut] && !this[Qe]; ) switch (this[B]) {
|
|
79436
79437
|
case "begin":
|
|
79437
79438
|
case "header":
|
|
79438
|
-
this[
|
|
79439
|
+
this[Gs](t, e), e += 512;
|
|
79439
79440
|
break;
|
|
79440
79441
|
case "ignore":
|
|
79441
79442
|
case "body":
|
|
79442
|
-
e += this[
|
|
79443
|
+
e += this[Wi](t, e);
|
|
79443
79444
|
break;
|
|
79444
79445
|
case "meta":
|
|
79445
|
-
e += this[
|
|
79446
|
+
e += this[Ws](t, e);
|
|
79446
79447
|
break;
|
|
79447
79448
|
default:
|
|
79448
79449
|
throw new Error("invalid state: " + this[B]);
|
|
79449
79450
|
}
|
|
79450
|
-
e < i && (this[p]
|
|
79451
|
+
e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
|
|
79451
79452
|
}
|
|
79452
79453
|
end(t, e, i) {
|
|
79453
|
-
return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[ut] || (this[y] ? (t && this[y].write(t), this[y].end()) : (this[dt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[
|
|
79454
|
+
return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[ut] || (this[y] ? (t && this[y].write(t), this[y].end()) : (this[dt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Xe]())), this;
|
|
79454
79455
|
}
|
|
79455
79456
|
};
|
|
79456
79457
|
var mt = (s3) => {
|
|
@@ -79464,19 +79465,19 @@ var _n = (s3) => {
|
|
|
79464
79465
|
t(e), e.resume();
|
|
79465
79466
|
} : (e) => e.resume();
|
|
79466
79467
|
};
|
|
79467
|
-
var
|
|
79468
|
+
var Ki = (s3, t) => {
|
|
79468
79469
|
let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
|
|
79469
|
-
let h = o ||
|
|
79470
|
+
let h = o || bn(n).root || ".", a;
|
|
79470
79471
|
if (n === h) a = false;
|
|
79471
79472
|
else {
|
|
79472
79473
|
let l = e.get(n);
|
|
79473
|
-
l !== void 0 ?
|
|
79474
|
+
a = l !== void 0 ? l : r(Rn(n), h);
|
|
79474
79475
|
}
|
|
79475
79476
|
return e.set(n, a), a;
|
|
79476
79477
|
};
|
|
79477
79478
|
s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
|
|
79478
79479
|
};
|
|
79479
|
-
var
|
|
79480
|
+
var gn = (s3) => {
|
|
79480
79481
|
let t = new st(s3), e = s3.file, i;
|
|
79481
79482
|
try {
|
|
79482
79483
|
i = Vt.openSync(e, "r");
|
|
@@ -79500,58 +79501,58 @@ var On = (s3) => {
|
|
|
79500
79501
|
}
|
|
79501
79502
|
}
|
|
79502
79503
|
};
|
|
79503
|
-
var
|
|
79504
|
+
var On = (s3, t) => {
|
|
79504
79505
|
let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
79505
79506
|
return new Promise((o, h) => {
|
|
79506
79507
|
e.on("error", h), e.on("end", o), Vt.stat(r, (a, l) => {
|
|
79507
79508
|
if (a) h(a);
|
|
79508
79509
|
else {
|
|
79509
|
-
let c = new
|
|
79510
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
79510
79511
|
c.on("error", h), c.pipe(e);
|
|
79511
79512
|
}
|
|
79512
79513
|
});
|
|
79513
79514
|
});
|
|
79514
79515
|
};
|
|
79515
|
-
var It = K(
|
|
79516
|
-
t?.length &&
|
|
79516
|
+
var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
|
|
79517
|
+
t?.length && Ki(s3, t), s3.noResume || _n(s3);
|
|
79517
79518
|
});
|
|
79518
|
-
var
|
|
79519
|
-
var { isAbsolute:
|
|
79519
|
+
var Vi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
|
|
79520
|
+
var { isAbsolute: xn, parse: Ys } = Tn;
|
|
79520
79521
|
var ce = (s3) => {
|
|
79521
|
-
let t = "", e =
|
|
79522
|
-
for (;
|
|
79522
|
+
let t = "", e = Ys(s3);
|
|
79523
|
+
for (; xn(s3) || e.root; ) {
|
|
79523
79524
|
let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
|
|
79524
|
-
s3 = s3.slice(i.length), t += i, e =
|
|
79525
|
+
s3 = s3.slice(i.length), t += i, e = Ys(s3);
|
|
79525
79526
|
}
|
|
79526
79527
|
return [t, s3];
|
|
79527
79528
|
};
|
|
79528
|
-
var
|
|
79529
|
-
var
|
|
79530
|
-
var
|
|
79531
|
-
var
|
|
79532
|
-
var
|
|
79533
|
-
var
|
|
79534
|
-
var
|
|
79529
|
+
var Je = ["|", "<", ">", "?", ":"];
|
|
79530
|
+
var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
|
|
79531
|
+
var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
|
|
79532
|
+
var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
|
|
79533
|
+
var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
|
|
79534
|
+
var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
|
|
79535
|
+
var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
|
|
79535
79536
|
var An = 16 * 1024 * 1024;
|
|
79536
|
-
var
|
|
79537
|
-
var
|
|
79538
|
-
var
|
|
79539
|
-
var
|
|
79540
|
-
var
|
|
79537
|
+
var Xs = /* @__PURE__ */ Symbol("process");
|
|
79538
|
+
var qs = /* @__PURE__ */ Symbol("file");
|
|
79539
|
+
var js = /* @__PURE__ */ Symbol("directory");
|
|
79540
|
+
var ji = /* @__PURE__ */ Symbol("symlink");
|
|
79541
|
+
var Qs = /* @__PURE__ */ Symbol("hardlink");
|
|
79541
79542
|
var fe = /* @__PURE__ */ Symbol("header");
|
|
79542
|
-
var
|
|
79543
|
-
var
|
|
79544
|
-
var
|
|
79545
|
-
var
|
|
79546
|
-
var
|
|
79547
|
-
var
|
|
79548
|
-
var
|
|
79543
|
+
var ti = /* @__PURE__ */ Symbol("read");
|
|
79544
|
+
var Qi = /* @__PURE__ */ Symbol("lstat");
|
|
79545
|
+
var ei = /* @__PURE__ */ Symbol("onlstat");
|
|
79546
|
+
var Ji = /* @__PURE__ */ Symbol("onread");
|
|
79547
|
+
var ts = /* @__PURE__ */ Symbol("onreadlink");
|
|
79548
|
+
var es = /* @__PURE__ */ Symbol("openfile");
|
|
79549
|
+
var is = /* @__PURE__ */ Symbol("onopenfile");
|
|
79549
79550
|
var pt = /* @__PURE__ */ Symbol("close");
|
|
79550
|
-
var
|
|
79551
|
-
var
|
|
79552
|
-
var
|
|
79551
|
+
var ii = /* @__PURE__ */ Symbol("mode");
|
|
79552
|
+
var ss = /* @__PURE__ */ Symbol("awaitDrain");
|
|
79553
|
+
var qi = /* @__PURE__ */ Symbol("ondrain");
|
|
79553
79554
|
var X = /* @__PURE__ */ Symbol("prefix");
|
|
79554
|
-
var de = class extends
|
|
79555
|
+
var de = class extends D {
|
|
79555
79556
|
path;
|
|
79556
79557
|
portable;
|
|
79557
79558
|
myuid = process.getuid && process.getuid() || 0;
|
|
@@ -79590,9 +79591,9 @@ var de = class extends A {
|
|
|
79590
79591
|
let [o, h] = ce(this.path);
|
|
79591
79592
|
o && typeof h == "string" && (this.path = h, r = o);
|
|
79592
79593
|
}
|
|
79593
|
-
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path =
|
|
79594
|
+
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Ks(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || $s.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
|
|
79594
79595
|
let n = this.statCache.get(this.absolute);
|
|
79595
|
-
n ? this[
|
|
79596
|
+
n ? this[ei](n) : this[Qi]();
|
|
79596
79597
|
}
|
|
79597
79598
|
warn(t, e, i = {}) {
|
|
79598
79599
|
return Lt(this, t, e, i);
|
|
@@ -79600,93 +79601,93 @@ var de = class extends A {
|
|
|
79600
79601
|
emit(t, ...e) {
|
|
79601
79602
|
return t === "error" && (this.#t = true), super.emit(t, ...e);
|
|
79602
79603
|
}
|
|
79603
|
-
[
|
|
79604
|
+
[Qi]() {
|
|
79604
79605
|
$.lstat(this.absolute, (t, e) => {
|
|
79605
79606
|
if (t) return this.emit("error", t);
|
|
79606
|
-
this[
|
|
79607
|
+
this[ei](e);
|
|
79607
79608
|
});
|
|
79608
79609
|
}
|
|
79609
|
-
[
|
|
79610
|
-
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type =
|
|
79610
|
+
[ei](t) {
|
|
79611
|
+
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
|
|
79611
79612
|
}
|
|
79612
|
-
[
|
|
79613
|
+
[Xs]() {
|
|
79613
79614
|
switch (this.type) {
|
|
79614
79615
|
case "File":
|
|
79615
|
-
return this[
|
|
79616
|
+
return this[qs]();
|
|
79616
79617
|
case "Directory":
|
|
79617
|
-
return this[
|
|
79618
|
+
return this[js]();
|
|
79618
79619
|
case "SymbolicLink":
|
|
79619
|
-
return this[
|
|
79620
|
+
return this[ji]();
|
|
79620
79621
|
default:
|
|
79621
79622
|
return this.end();
|
|
79622
79623
|
}
|
|
79623
79624
|
}
|
|
79624
|
-
[
|
|
79625
|
-
return
|
|
79625
|
+
[ii](t) {
|
|
79626
|
+
return Vi(t, this.type === "Directory", this.portable);
|
|
79626
79627
|
}
|
|
79627
79628
|
[X](t) {
|
|
79628
|
-
return
|
|
79629
|
+
return Js(t, this.prefix);
|
|
79629
79630
|
}
|
|
79630
79631
|
[fe]() {
|
|
79631
79632
|
if (!this.stat) throw new Error("cannot write header before stat");
|
|
79632
|
-
this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new F({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[
|
|
79633
|
+
this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new F({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[ii](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
|
|
79633
79634
|
let t = this.header?.block;
|
|
79634
79635
|
if (!t) throw new Error("failed to encode header");
|
|
79635
79636
|
super.write(t);
|
|
79636
79637
|
}
|
|
79637
|
-
[
|
|
79638
|
+
[js]() {
|
|
79638
79639
|
if (!this.stat) throw new Error("cannot create directory entry without stat");
|
|
79639
79640
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
|
|
79640
79641
|
}
|
|
79641
|
-
[
|
|
79642
|
+
[ji]() {
|
|
79642
79643
|
$.readlink(this.absolute, (t, e) => {
|
|
79643
79644
|
if (t) return this.emit("error", t);
|
|
79644
|
-
this[
|
|
79645
|
+
this[ts](e);
|
|
79645
79646
|
});
|
|
79646
79647
|
}
|
|
79647
|
-
[
|
|
79648
|
+
[ts](t) {
|
|
79648
79649
|
this.linkpath = f(t), this[fe](), this.end();
|
|
79649
79650
|
}
|
|
79650
|
-
[
|
|
79651
|
+
[Qs](t) {
|
|
79651
79652
|
if (!this.stat) throw new Error("cannot create link entry without stat");
|
|
79652
|
-
this.type = "Link", this.linkpath = f(
|
|
79653
|
+
this.type = "Link", this.linkpath = f($s.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
|
|
79653
79654
|
}
|
|
79654
|
-
[
|
|
79655
|
+
[qs]() {
|
|
79655
79656
|
if (!this.stat) throw new Error("cannot create file entry without stat");
|
|
79656
79657
|
if (this.stat.nlink > 1) {
|
|
79657
79658
|
let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
|
|
79658
|
-
if (e?.indexOf(this.cwd) === 0) return this[
|
|
79659
|
+
if (e?.indexOf(this.cwd) === 0) return this[Qs](e);
|
|
79659
79660
|
this.linkCache.set(t, this.absolute);
|
|
79660
79661
|
}
|
|
79661
79662
|
if (this[fe](), this.stat.size === 0) return this.end();
|
|
79662
|
-
this[
|
|
79663
|
+
this[es]();
|
|
79663
79664
|
}
|
|
79664
|
-
[
|
|
79665
|
+
[es]() {
|
|
79665
79666
|
$.open(this.absolute, "r", (t, e) => {
|
|
79666
79667
|
if (t) return this.emit("error", t);
|
|
79667
|
-
this[
|
|
79668
|
+
this[is](e);
|
|
79668
79669
|
});
|
|
79669
79670
|
}
|
|
79670
|
-
[
|
|
79671
|
+
[is](t) {
|
|
79671
79672
|
if (this.fd = t, this.#t) return this[pt]();
|
|
79672
79673
|
if (!this.stat) throw new Error("should stat before calling onopenfile");
|
|
79673
79674
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
|
|
79674
79675
|
let e = Math.min(this.blockLen, this.maxReadSize);
|
|
79675
|
-
this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[
|
|
79676
|
+
this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ti]();
|
|
79676
79677
|
}
|
|
79677
|
-
[
|
|
79678
|
+
[ti]() {
|
|
79678
79679
|
let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
|
|
79679
79680
|
if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
|
|
79680
79681
|
$.read(t, e, i, r, n, (o, h) => {
|
|
79681
79682
|
if (o) return this[pt](() => this.emit("error", o));
|
|
79682
|
-
this[
|
|
79683
|
+
this[Ji](h);
|
|
79683
79684
|
});
|
|
79684
79685
|
}
|
|
79685
79686
|
[pt](t = () => {
|
|
79686
79687
|
}) {
|
|
79687
79688
|
this.fd !== void 0 && $.close(this.fd, t);
|
|
79688
79689
|
}
|
|
79689
|
-
[
|
|
79690
|
+
[Ji](t) {
|
|
79690
79691
|
if (t <= 0 && this.remain > 0) {
|
|
79691
79692
|
let r = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
|
|
79692
79693
|
return this[pt](() => this.emit("error", r));
|
|
@@ -79698,9 +79699,9 @@ var de = class extends A {
|
|
|
79698
79699
|
if (!this.buf) throw new Error("should have created buffer prior to reading");
|
|
79699
79700
|
if (t === this.remain) for (let r = t; r < this.length && t < this.blockRemain; r++) this.buf[r + this.offset] = 0, t++, this.remain++;
|
|
79700
79701
|
let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
|
|
79701
|
-
this.write(e) ? this[
|
|
79702
|
+
this.write(e) ? this[qi]() : this[ss](() => this[qi]());
|
|
79702
79703
|
}
|
|
79703
|
-
[
|
|
79704
|
+
[ss](t) {
|
|
79704
79705
|
this.once("drain", t);
|
|
79705
79706
|
}
|
|
79706
79707
|
write(t, e, i) {
|
|
@@ -79710,30 +79711,30 @@ var de = class extends A {
|
|
|
79710
79711
|
}
|
|
79711
79712
|
return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
|
|
79712
79713
|
}
|
|
79713
|
-
[
|
|
79714
|
+
[qi]() {
|
|
79714
79715
|
if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
|
|
79715
79716
|
if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
|
|
79716
|
-
this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[
|
|
79717
|
+
this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ti]();
|
|
79717
79718
|
}
|
|
79718
79719
|
};
|
|
79719
|
-
var
|
|
79720
|
+
var si = class extends de {
|
|
79720
79721
|
sync = true;
|
|
79721
|
-
[
|
|
79722
|
-
this[
|
|
79722
|
+
[Qi]() {
|
|
79723
|
+
this[ei]($.lstatSync(this.absolute));
|
|
79723
79724
|
}
|
|
79724
|
-
[
|
|
79725
|
-
this[
|
|
79725
|
+
[ji]() {
|
|
79726
|
+
this[ts]($.readlinkSync(this.absolute));
|
|
79726
79727
|
}
|
|
79727
|
-
[
|
|
79728
|
-
this[
|
|
79728
|
+
[es]() {
|
|
79729
|
+
this[is]($.openSync(this.absolute, "r"));
|
|
79729
79730
|
}
|
|
79730
|
-
[
|
|
79731
|
+
[ti]() {
|
|
79731
79732
|
let t = true;
|
|
79732
79733
|
try {
|
|
79733
79734
|
let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
|
|
79734
79735
|
if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
|
|
79735
79736
|
let h = $.readSync(e, i, r, n, o);
|
|
79736
|
-
this[
|
|
79737
|
+
this[Ji](h), t = false;
|
|
79737
79738
|
} finally {
|
|
79738
79739
|
if (t) try {
|
|
79739
79740
|
this[pt](() => {
|
|
@@ -79742,7 +79743,7 @@ var ii = class extends de {
|
|
|
79742
79743
|
}
|
|
79743
79744
|
}
|
|
79744
79745
|
}
|
|
79745
|
-
[
|
|
79746
|
+
[ss](t) {
|
|
79746
79747
|
t();
|
|
79747
79748
|
}
|
|
79748
79749
|
[pt](t = () => {
|
|
@@ -79750,7 +79751,7 @@ var ii = class extends de {
|
|
|
79750
79751
|
this.fd !== void 0 && $.closeSync(this.fd), t();
|
|
79751
79752
|
}
|
|
79752
79753
|
};
|
|
79753
|
-
var
|
|
79754
|
+
var ri = class extends D {
|
|
79754
79755
|
blockLen = 0;
|
|
79755
79756
|
blockRemain = 0;
|
|
79756
79757
|
buf = 0;
|
|
@@ -79786,7 +79787,7 @@ var si = class extends A {
|
|
|
79786
79787
|
super(), this.preservePaths = !!i.preservePaths, this.portable = !!i.portable, this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.onWriteEntry = i.onWriteEntry, this.readEntry = t;
|
|
79787
79788
|
let { type: r } = t;
|
|
79788
79789
|
if (r === "Unsupported") throw new Error("writing entry that should be ignored");
|
|
79789
|
-
this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[
|
|
79790
|
+
this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[ii](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
|
|
79790
79791
|
let n = false;
|
|
79791
79792
|
if (!this.preservePaths) {
|
|
79792
79793
|
let [h, a] = ce(this.path);
|
|
@@ -79798,10 +79799,10 @@ var si = class extends A {
|
|
|
79798
79799
|
super.write(o), t.pipe(this);
|
|
79799
79800
|
}
|
|
79800
79801
|
[X](t) {
|
|
79801
|
-
return
|
|
79802
|
+
return Js(t, this.prefix);
|
|
79802
79803
|
}
|
|
79803
|
-
[
|
|
79804
|
-
return
|
|
79804
|
+
[ii](t) {
|
|
79805
|
+
return Vi(t, this.type === "Directory", this.portable);
|
|
79805
79806
|
}
|
|
79806
79807
|
write(t, e, i) {
|
|
79807
79808
|
typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8"));
|
|
@@ -79813,8 +79814,8 @@ var si = class extends A {
|
|
|
79813
79814
|
return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
|
|
79814
79815
|
}
|
|
79815
79816
|
};
|
|
79816
|
-
var
|
|
79817
|
-
var
|
|
79817
|
+
var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
|
|
79818
|
+
var ni = class s2 {
|
|
79818
79819
|
tail;
|
|
79819
79820
|
head;
|
|
79820
79821
|
length = 0;
|
|
@@ -79845,11 +79846,11 @@ var ri = class s2 {
|
|
|
79845
79846
|
t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
|
|
79846
79847
|
}
|
|
79847
79848
|
push(...t) {
|
|
79848
|
-
for (let e = 0, i = t.length; e < i; e++)
|
|
79849
|
+
for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
|
|
79849
79850
|
return this.length;
|
|
79850
79851
|
}
|
|
79851
79852
|
unshift(...t) {
|
|
79852
|
-
for (var e = 0, i = t.length; e < i; e++)
|
|
79853
|
+
for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
|
|
79853
79854
|
return this.length;
|
|
79854
79855
|
}
|
|
79855
79856
|
pop() {
|
|
@@ -79945,7 +79946,7 @@ var ri = class s2 {
|
|
|
79945
79946
|
let n = [];
|
|
79946
79947
|
for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
|
|
79947
79948
|
r ? r !== this.tail && (r = r.prev) : r = this.tail;
|
|
79948
|
-
for (let o of i) r =
|
|
79949
|
+
for (let o of i) r = In(this, r, o);
|
|
79949
79950
|
return n;
|
|
79950
79951
|
}
|
|
79951
79952
|
reverse() {
|
|
@@ -79957,14 +79958,14 @@ var ri = class s2 {
|
|
|
79957
79958
|
return this.head = e, this.tail = t, this;
|
|
79958
79959
|
}
|
|
79959
79960
|
};
|
|
79960
|
-
function
|
|
79961
|
+
function In(s3, t, e) {
|
|
79961
79962
|
let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
|
|
79962
79963
|
return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
|
|
79963
79964
|
}
|
|
79964
|
-
function
|
|
79965
|
+
function Cn(s3, t) {
|
|
79965
79966
|
s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
|
|
79966
79967
|
}
|
|
79967
|
-
function
|
|
79968
|
+
function Fn(s3, t) {
|
|
79968
79969
|
s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
|
|
79969
79970
|
}
|
|
79970
79971
|
var ue = class {
|
|
@@ -79976,7 +79977,7 @@ var ue = class {
|
|
|
79976
79977
|
this.list = r, this.value = t, e ? (e.next = this, this.prev = e) : this.prev = void 0, i ? (i.prev = this, this.next = i) : this.next = void 0;
|
|
79977
79978
|
}
|
|
79978
79979
|
};
|
|
79979
|
-
var
|
|
79980
|
+
var di = class {
|
|
79980
79981
|
path;
|
|
79981
79982
|
absolute;
|
|
79982
79983
|
entry;
|
|
@@ -79989,28 +79990,28 @@ var fi = class {
|
|
|
79989
79990
|
this.path = t || "./", this.absolute = e;
|
|
79990
79991
|
}
|
|
79991
79992
|
};
|
|
79992
|
-
var
|
|
79993
|
-
var
|
|
79993
|
+
var tr = Buffer.alloc(1024);
|
|
79994
|
+
var oi = /* @__PURE__ */ Symbol("onStat");
|
|
79994
79995
|
var me = /* @__PURE__ */ Symbol("ended");
|
|
79995
79996
|
var W = /* @__PURE__ */ Symbol("queue");
|
|
79996
79997
|
var Ct = /* @__PURE__ */ Symbol("current");
|
|
79997
79998
|
var Ft = /* @__PURE__ */ Symbol("process");
|
|
79998
79999
|
var pe = /* @__PURE__ */ Symbol("processing");
|
|
79999
|
-
var
|
|
80000
|
+
var rs = /* @__PURE__ */ Symbol("processJob");
|
|
80000
80001
|
var G = /* @__PURE__ */ Symbol("jobs");
|
|
80001
|
-
var
|
|
80002
|
-
var
|
|
80003
|
-
var
|
|
80004
|
-
var
|
|
80005
|
-
var
|
|
80006
|
-
var
|
|
80007
|
-
var
|
|
80008
|
-
var
|
|
80009
|
-
var
|
|
80010
|
-
var
|
|
80011
|
-
var
|
|
80012
|
-
var
|
|
80013
|
-
var Et = class extends
|
|
80002
|
+
var ns = /* @__PURE__ */ Symbol("jobDone");
|
|
80003
|
+
var hi = /* @__PURE__ */ Symbol("addFSEntry");
|
|
80004
|
+
var er = /* @__PURE__ */ Symbol("addTarEntry");
|
|
80005
|
+
var as = /* @__PURE__ */ Symbol("stat");
|
|
80006
|
+
var ls = /* @__PURE__ */ Symbol("readdir");
|
|
80007
|
+
var ai = /* @__PURE__ */ Symbol("onreaddir");
|
|
80008
|
+
var li = /* @__PURE__ */ Symbol("pipe");
|
|
80009
|
+
var ir = /* @__PURE__ */ Symbol("entry");
|
|
80010
|
+
var os2 = /* @__PURE__ */ Symbol("entryOpt");
|
|
80011
|
+
var ci = /* @__PURE__ */ Symbol("writeEntryClass");
|
|
80012
|
+
var rr = /* @__PURE__ */ Symbol("write");
|
|
80013
|
+
var hs = /* @__PURE__ */ Symbol("ondrain");
|
|
80014
|
+
var Et = class extends D {
|
|
80014
80015
|
sync = false;
|
|
80015
80016
|
opt;
|
|
80016
80017
|
cwd;
|
|
@@ -80031,22 +80032,22 @@ var Et = class extends A {
|
|
|
80031
80032
|
mtime;
|
|
80032
80033
|
filter;
|
|
80033
80034
|
jobs;
|
|
80034
|
-
[
|
|
80035
|
+
[ci];
|
|
80035
80036
|
onWriteEntry;
|
|
80036
80037
|
[W];
|
|
80037
80038
|
[G] = 0;
|
|
80038
80039
|
[pe] = false;
|
|
80039
80040
|
[me] = false;
|
|
80040
80041
|
constructor(t = {}) {
|
|
80041
|
-
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[
|
|
80042
|
+
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[ci] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
|
|
80042
80043
|
if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
80043
|
-
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new
|
|
80044
|
+
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
|
|
80044
80045
|
let e = this.zip;
|
|
80045
|
-
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[
|
|
80046
|
-
} else this.on("drain", this[
|
|
80047
|
-
this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new
|
|
80046
|
+
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[hs]()), this.on("resume", () => e.resume());
|
|
80047
|
+
} else this.on("drain", this[hs]);
|
|
80048
|
+
this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new ni(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[pe] = false, this[me] = false;
|
|
80048
80049
|
}
|
|
80049
|
-
[
|
|
80050
|
+
[rr](t) {
|
|
80050
80051
|
return super.write(t);
|
|
80051
80052
|
}
|
|
80052
80053
|
add(t) {
|
|
@@ -80057,97 +80058,97 @@ var Et = class extends A {
|
|
|
80057
80058
|
}
|
|
80058
80059
|
write(t) {
|
|
80059
80060
|
if (this[me]) throw new Error("write after end");
|
|
80060
|
-
return t instanceof Yt ? this[
|
|
80061
|
+
return t instanceof Yt ? this[er](t) : this[hi](t), this.flowing;
|
|
80061
80062
|
}
|
|
80062
|
-
[
|
|
80063
|
-
let e = f(
|
|
80063
|
+
[er](t) {
|
|
80064
|
+
let e = f(sr.resolve(this.cwd, t.path));
|
|
80064
80065
|
if (!this.filter(t.path, t)) t.resume();
|
|
80065
80066
|
else {
|
|
80066
|
-
let i = new
|
|
80067
|
-
i.entry = new
|
|
80067
|
+
let i = new di(t.path, e);
|
|
80068
|
+
i.entry = new ri(t, this[os2](i)), i.entry.on("end", () => this[ns](i)), this[G] += 1, this[W].push(i);
|
|
80068
80069
|
}
|
|
80069
80070
|
this[Ft]();
|
|
80070
80071
|
}
|
|
80071
|
-
[
|
|
80072
|
-
let e = f(
|
|
80073
|
-
this[W].push(new
|
|
80072
|
+
[hi](t) {
|
|
80073
|
+
let e = f(sr.resolve(this.cwd, t));
|
|
80074
|
+
this[W].push(new di(t, e)), this[Ft]();
|
|
80074
80075
|
}
|
|
80075
|
-
[
|
|
80076
|
+
[as](t) {
|
|
80076
80077
|
t.pending = true, this[G] += 1;
|
|
80077
80078
|
let e = this.follow ? "stat" : "lstat";
|
|
80078
|
-
|
|
80079
|
-
t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[
|
|
80079
|
+
fi[e](t.absolute, (i, r) => {
|
|
80080
|
+
t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[oi](t, r);
|
|
80080
80081
|
});
|
|
80081
80082
|
}
|
|
80082
|
-
[
|
|
80083
|
-
this.statCache.set(t.absolute, e), t.stat = e, this.filter(t.path, e) ? e.isFile() && e.nlink > 1 && t === this[Ct] && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync && this[
|
|
80083
|
+
[oi](t, e) {
|
|
80084
|
+
this.statCache.set(t.absolute, e), t.stat = e, this.filter(t.path, e) ? e.isFile() && e.nlink > 1 && t === this[Ct] && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync && this[rs](t) : t.ignore = true, this[Ft]();
|
|
80084
80085
|
}
|
|
80085
|
-
[
|
|
80086
|
-
t.pending = true, this[G] += 1,
|
|
80086
|
+
[ls](t) {
|
|
80087
|
+
t.pending = true, this[G] += 1, fi.readdir(t.absolute, (e, i) => {
|
|
80087
80088
|
if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
|
|
80088
|
-
this[
|
|
80089
|
+
this[ai](t, i);
|
|
80089
80090
|
});
|
|
80090
80091
|
}
|
|
80091
|
-
[
|
|
80092
|
+
[ai](t, e) {
|
|
80092
80093
|
this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ft]();
|
|
80093
80094
|
}
|
|
80094
80095
|
[Ft]() {
|
|
80095
80096
|
if (!this[pe]) {
|
|
80096
80097
|
this[pe] = true;
|
|
80097
|
-
for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[
|
|
80098
|
+
for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[rs](t.value), t.value.ignore) {
|
|
80098
80099
|
let e = t.next;
|
|
80099
80100
|
this[W].removeNode(t), t.next = e;
|
|
80100
80101
|
}
|
|
80101
|
-
this[pe] = false, this[me] &&
|
|
80102
|
+
this[pe] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(tr) : (super.write(tr), super.end()));
|
|
80102
80103
|
}
|
|
80103
80104
|
}
|
|
80104
80105
|
get [Ct]() {
|
|
80105
80106
|
return this[W] && this[W].head && this[W].head.value;
|
|
80106
80107
|
}
|
|
80107
|
-
[
|
|
80108
|
+
[ns](t) {
|
|
80108
80109
|
this[W].shift(), this[G] -= 1, this[Ft]();
|
|
80109
80110
|
}
|
|
80110
|
-
[
|
|
80111
|
+
[rs](t) {
|
|
80111
80112
|
if (!t.pending) {
|
|
80112
80113
|
if (t.entry) {
|
|
80113
|
-
t === this[Ct] && !t.piped && this[
|
|
80114
|
+
t === this[Ct] && !t.piped && this[li](t);
|
|
80114
80115
|
return;
|
|
80115
80116
|
}
|
|
80116
80117
|
if (!t.stat) {
|
|
80117
80118
|
let e = this.statCache.get(t.absolute);
|
|
80118
|
-
e ? this[
|
|
80119
|
+
e ? this[oi](t, e) : this[as](t);
|
|
80119
80120
|
}
|
|
80120
80121
|
if (t.stat && !t.ignore) {
|
|
80121
80122
|
if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
|
|
80122
80123
|
let e = this.readdirCache.get(t.absolute);
|
|
80123
|
-
if (e ? this[
|
|
80124
|
+
if (e ? this[ai](t, e) : this[ls](t), !t.readdir) return;
|
|
80124
80125
|
}
|
|
80125
|
-
if (t.entry = this[
|
|
80126
|
+
if (t.entry = this[ir](t), !t.entry) {
|
|
80126
80127
|
t.ignore = true;
|
|
80127
80128
|
return;
|
|
80128
80129
|
}
|
|
80129
|
-
t === this[Ct] && !t.piped && this[
|
|
80130
|
+
t === this[Ct] && !t.piped && this[li](t);
|
|
80130
80131
|
}
|
|
80131
80132
|
}
|
|
80132
80133
|
}
|
|
80133
|
-
[
|
|
80134
|
+
[os2](t) {
|
|
80134
80135
|
return { onwarn: (e, i, r) => this.warn(e, i, r), noPax: this.noPax, cwd: this.cwd, absolute: t.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
|
|
80135
80136
|
}
|
|
80136
|
-
[
|
|
80137
|
+
[ir](t) {
|
|
80137
80138
|
this[G] += 1;
|
|
80138
80139
|
try {
|
|
80139
|
-
return new this[
|
|
80140
|
+
return new this[ci](t.path, this[os2](t)).on("end", () => this[ns](t)).on("error", (i) => this.emit("error", i));
|
|
80140
80141
|
} catch (e) {
|
|
80141
80142
|
this.emit("error", e);
|
|
80142
80143
|
}
|
|
80143
80144
|
}
|
|
80144
|
-
[
|
|
80145
|
+
[hs]() {
|
|
80145
80146
|
this[Ct] && this[Ct].entry && this[Ct].entry.resume();
|
|
80146
80147
|
}
|
|
80147
|
-
[
|
|
80148
|
+
[li](t) {
|
|
80148
80149
|
t.piped = true, t.readdir && t.readdir.forEach((r) => {
|
|
80149
80150
|
let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
|
|
80150
|
-
this[
|
|
80151
|
+
this[hi](o + r);
|
|
80151
80152
|
});
|
|
80152
80153
|
let e = t.entry, i = this.zip;
|
|
80153
80154
|
if (!e) throw new Error("cannot pipe without source");
|
|
@@ -80167,131 +80168,128 @@ var Et = class extends A {
|
|
|
80167
80168
|
var kt = class extends Et {
|
|
80168
80169
|
sync = true;
|
|
80169
80170
|
constructor(t) {
|
|
80170
|
-
super(t), this[
|
|
80171
|
+
super(t), this[ci] = si;
|
|
80171
80172
|
}
|
|
80172
80173
|
pause() {
|
|
80173
80174
|
}
|
|
80174
80175
|
resume() {
|
|
80175
80176
|
}
|
|
80176
|
-
[
|
|
80177
|
+
[as](t) {
|
|
80177
80178
|
let e = this.follow ? "statSync" : "lstatSync";
|
|
80178
|
-
this[
|
|
80179
|
+
this[oi](t, fi[e](t.absolute));
|
|
80179
80180
|
}
|
|
80180
|
-
[
|
|
80181
|
-
this[
|
|
80181
|
+
[ls](t) {
|
|
80182
|
+
this[ai](t, fi.readdirSync(t.absolute));
|
|
80182
80183
|
}
|
|
80183
|
-
[
|
|
80184
|
+
[li](t) {
|
|
80184
80185
|
let e = t.entry, i = this.zip;
|
|
80185
80186
|
if (t.readdir && t.readdir.forEach((r) => {
|
|
80186
80187
|
let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
|
|
80187
|
-
this[
|
|
80188
|
+
this[hi](o + r);
|
|
80188
80189
|
}), !e) throw new Error("Cannot pipe without source");
|
|
80189
80190
|
i ? e.on("data", (r) => {
|
|
80190
80191
|
i.write(r);
|
|
80191
80192
|
}) : e.on("data", (r) => {
|
|
80192
|
-
super[
|
|
80193
|
+
super[rr](r);
|
|
80193
80194
|
});
|
|
80194
80195
|
}
|
|
80195
80196
|
};
|
|
80196
|
-
var
|
|
80197
|
+
var kn = (s3, t) => {
|
|
80197
80198
|
let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
|
|
80198
|
-
e.pipe(i),
|
|
80199
|
+
e.pipe(i), or(e, t);
|
|
80199
80200
|
};
|
|
80200
|
-
var
|
|
80201
|
+
var vn = (s3, t) => {
|
|
80201
80202
|
let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
|
|
80202
80203
|
e.pipe(i);
|
|
80203
80204
|
let r = new Promise((n, o) => {
|
|
80204
80205
|
i.on("error", o), i.on("close", n), e.on("error", o);
|
|
80205
80206
|
});
|
|
80206
|
-
return
|
|
80207
|
+
return hr(e, t).catch((n) => e.emit("error", n)), r;
|
|
80207
80208
|
};
|
|
80208
|
-
var
|
|
80209
|
+
var or = (s3, t) => {
|
|
80209
80210
|
t.forEach((e) => {
|
|
80210
|
-
e.charAt(0) === "@" ? It({ file:
|
|
80211
|
+
e.charAt(0) === "@" ? It({ file: nr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
80211
80212
|
}), s3.end();
|
|
80212
80213
|
};
|
|
80213
|
-
var
|
|
80214
|
-
for (let e
|
|
80215
|
-
|
|
80216
|
-
|
|
80217
|
-
s3.add(r);
|
|
80218
|
-
} }) : s3.add(i);
|
|
80219
|
-
}
|
|
80214
|
+
var hr = async (s3, t) => {
|
|
80215
|
+
for (let e of t) e.charAt(0) === "@" ? await It({ file: nr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
|
|
80216
|
+
s3.add(i);
|
|
80217
|
+
} }) : s3.add(e);
|
|
80220
80218
|
s3.end();
|
|
80221
80219
|
};
|
|
80222
|
-
var
|
|
80220
|
+
var Mn = (s3, t) => {
|
|
80223
80221
|
let e = new kt(s3);
|
|
80224
|
-
return
|
|
80222
|
+
return or(e, t), e;
|
|
80225
80223
|
};
|
|
80226
|
-
var
|
|
80224
|
+
var Bn = (s3, t) => {
|
|
80227
80225
|
let e = new Et(s3);
|
|
80228
|
-
return
|
|
80226
|
+
return hr(e, t).catch((i) => e.emit("error", i)), e;
|
|
80229
80227
|
};
|
|
80230
|
-
var
|
|
80228
|
+
var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
|
|
80231
80229
|
if (!t?.length) throw new TypeError("no paths specified to add to archive");
|
|
80232
80230
|
});
|
|
80233
|
-
var
|
|
80234
|
-
var
|
|
80235
|
-
var { O_CREAT:
|
|
80236
|
-
var
|
|
80237
|
-
var
|
|
80238
|
-
var
|
|
80239
|
-
var
|
|
80240
|
-
var
|
|
80241
|
-
var
|
|
80231
|
+
var zn = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
80232
|
+
var Un = zn === "win32";
|
|
80233
|
+
var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = ar.constants;
|
|
80234
|
+
var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || ar.constants.UV_FS_O_FILEMAP || 0;
|
|
80235
|
+
var Zn = Un && !!lr;
|
|
80236
|
+
var Yn = 512 * 1024;
|
|
80237
|
+
var Kn = lr | Wn | Hn | Gn;
|
|
80238
|
+
var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
|
|
80239
|
+
var fs2 = (s3, t, e) => {
|
|
80242
80240
|
try {
|
|
80243
|
-
return
|
|
80241
|
+
return mi.lchownSync(s3, t, e);
|
|
80244
80242
|
} catch (i) {
|
|
80245
80243
|
if (i?.code !== "ENOENT") throw i;
|
|
80246
80244
|
}
|
|
80247
80245
|
};
|
|
80248
|
-
var
|
|
80249
|
-
|
|
80246
|
+
var ui = (s3, t, e, i) => {
|
|
80247
|
+
mi.lchown(s3, t, e, (r) => {
|
|
80250
80248
|
i(r && r?.code !== "ENOENT" ? r : null);
|
|
80251
80249
|
});
|
|
80252
80250
|
};
|
|
80253
|
-
var
|
|
80254
|
-
if (t.isDirectory())
|
|
80251
|
+
var Vn = (s3, t, e, i, r) => {
|
|
80252
|
+
if (t.isDirectory()) ds(Ee.resolve(s3, t.name), e, i, (n) => {
|
|
80255
80253
|
if (n) return r(n);
|
|
80256
80254
|
let o = Ee.resolve(s3, t.name);
|
|
80257
|
-
|
|
80255
|
+
ui(o, e, i, r);
|
|
80258
80256
|
});
|
|
80259
80257
|
else {
|
|
80260
80258
|
let n = Ee.resolve(s3, t.name);
|
|
80261
|
-
|
|
80259
|
+
ui(n, e, i, r);
|
|
80262
80260
|
}
|
|
80263
80261
|
};
|
|
80264
|
-
var
|
|
80265
|
-
|
|
80262
|
+
var ds = (s3, t, e, i) => {
|
|
80263
|
+
mi.readdir(s3, { withFileTypes: true }, (r, n) => {
|
|
80266
80264
|
if (r) {
|
|
80267
80265
|
if (r.code === "ENOENT") return i();
|
|
80268
80266
|
if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
|
|
80269
80267
|
}
|
|
80270
|
-
if (r || !n.length) return
|
|
80268
|
+
if (r || !n.length) return ui(s3, t, e, i);
|
|
80271
80269
|
let o = n.length, h = null, a = (l) => {
|
|
80272
80270
|
if (!h) {
|
|
80273
80271
|
if (l) return i(h = l);
|
|
80274
|
-
if (--o === 0) return
|
|
80272
|
+
if (--o === 0) return ui(s3, t, e, i);
|
|
80275
80273
|
}
|
|
80276
80274
|
};
|
|
80277
|
-
for (let l of n)
|
|
80275
|
+
for (let l of n) Vn(s3, l, t, e, a);
|
|
80278
80276
|
});
|
|
80279
80277
|
};
|
|
80280
|
-
var
|
|
80281
|
-
t.isDirectory() &&
|
|
80278
|
+
var $n = (s3, t, e, i) => {
|
|
80279
|
+
t.isDirectory() && us(Ee.resolve(s3, t.name), e, i), fs2(Ee.resolve(s3, t.name), e, i);
|
|
80282
80280
|
};
|
|
80283
|
-
var
|
|
80281
|
+
var us = (s3, t, e) => {
|
|
80284
80282
|
let i;
|
|
80285
80283
|
try {
|
|
80286
|
-
i =
|
|
80284
|
+
i = mi.readdirSync(s3, { withFileTypes: true });
|
|
80287
80285
|
} catch (r) {
|
|
80288
80286
|
let n = r;
|
|
80289
80287
|
if (n?.code === "ENOENT") return;
|
|
80290
|
-
if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return
|
|
80288
|
+
if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs2(s3, t, e);
|
|
80291
80289
|
throw n;
|
|
80292
80290
|
}
|
|
80293
|
-
for (let r of i)
|
|
80294
|
-
return
|
|
80291
|
+
for (let r of i) $n(s3, r, t, e);
|
|
80292
|
+
return fs2(s3, t, e);
|
|
80295
80293
|
};
|
|
80296
80294
|
var we = class extends Error {
|
|
80297
80295
|
path;
|
|
@@ -80316,41 +80314,41 @@ var wt = class extends Error {
|
|
|
80316
80314
|
return "SymlinkError";
|
|
80317
80315
|
}
|
|
80318
80316
|
};
|
|
80319
|
-
var
|
|
80317
|
+
var qn = (s3, t) => {
|
|
80320
80318
|
k.stat(s3, (e, i) => {
|
|
80321
80319
|
(e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
|
|
80322
80320
|
});
|
|
80323
80321
|
};
|
|
80324
|
-
var
|
|
80322
|
+
var cr = (s3, t, e) => {
|
|
80325
80323
|
s3 = f(s3);
|
|
80326
80324
|
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) => {
|
|
80327
|
-
E ? e(E) : x && a ?
|
|
80325
|
+
E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? k.chmod(s3, r, e) : e();
|
|
80328
80326
|
};
|
|
80329
|
-
if (s3 === d) return
|
|
80330
|
-
if (l) return
|
|
80331
|
-
let N = f(
|
|
80332
|
-
|
|
80327
|
+
if (s3 === d) return qn(s3, S);
|
|
80328
|
+
if (l) return Xn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
|
|
80329
|
+
let N = f(pi.relative(d, s3)).split("/");
|
|
80330
|
+
ms(d, N, r, c, d, void 0, S);
|
|
80333
80331
|
};
|
|
80334
|
-
var
|
|
80335
|
-
if (
|
|
80336
|
-
let h = t.shift(), a = f(
|
|
80337
|
-
k.mkdir(a, e,
|
|
80332
|
+
var ms = (s3, t, e, i, r, n, o) => {
|
|
80333
|
+
if (t.length === 0) return o(null, n);
|
|
80334
|
+
let h = t.shift(), a = f(pi.resolve(s3 + "/" + h));
|
|
80335
|
+
k.mkdir(a, e, fr(a, t, e, i, r, n, o));
|
|
80338
80336
|
};
|
|
80339
|
-
var
|
|
80337
|
+
var fr = (s3, t, e, i, r, n, o) => (h) => {
|
|
80340
80338
|
h ? k.lstat(s3, (a, l) => {
|
|
80341
80339
|
if (a) a.path = a.path && f(a.path), o(a);
|
|
80342
|
-
else if (l.isDirectory())
|
|
80340
|
+
else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
|
|
80343
80341
|
else if (i) k.unlink(s3, (c) => {
|
|
80344
80342
|
if (c) return o(c);
|
|
80345
|
-
k.mkdir(s3, e,
|
|
80343
|
+
k.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
|
|
80346
80344
|
});
|
|
80347
80345
|
else {
|
|
80348
80346
|
if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
|
|
80349
80347
|
o(h);
|
|
80350
80348
|
}
|
|
80351
|
-
}) : (n = n || s3,
|
|
80349
|
+
}) : (n = n || s3, ms(s3, t, e, i, r, n, o));
|
|
80352
80350
|
};
|
|
80353
|
-
var
|
|
80351
|
+
var jn = (s3) => {
|
|
80354
80352
|
let t = false, e;
|
|
80355
80353
|
try {
|
|
80356
80354
|
t = k.statSync(s3).isDirectory();
|
|
@@ -80360,53 +80358,53 @@ var Qn = (s3) => {
|
|
|
80360
80358
|
if (!t) throw new we(s3, e ?? "ENOTDIR");
|
|
80361
80359
|
}
|
|
80362
80360
|
};
|
|
80363
|
-
var
|
|
80361
|
+
var dr = (s3, t) => {
|
|
80364
80362
|
s3 = f(s3);
|
|
80365
80363
|
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) => {
|
|
80366
|
-
E && h &&
|
|
80364
|
+
E && h && us(E, n, o), r && k.chmodSync(s3, i);
|
|
80367
80365
|
};
|
|
80368
|
-
if (s3 === c) return
|
|
80366
|
+
if (s3 === c) return jn(c), d();
|
|
80369
80367
|
if (a) return d(k.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
|
|
80370
|
-
let T = f(
|
|
80368
|
+
let T = f(pi.relative(c, s3)).split("/"), N;
|
|
80371
80369
|
for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
|
|
80372
|
-
x = f(
|
|
80370
|
+
x = f(pi.resolve(x));
|
|
80373
80371
|
try {
|
|
80374
80372
|
k.mkdirSync(x, i), N = N || x;
|
|
80375
80373
|
} catch {
|
|
80376
|
-
let
|
|
80377
|
-
if (
|
|
80374
|
+
let xe = k.lstatSync(x);
|
|
80375
|
+
if (xe.isDirectory()) continue;
|
|
80378
80376
|
if (l) {
|
|
80379
80377
|
k.unlinkSync(x), k.mkdirSync(x, i), N = N || x;
|
|
80380
80378
|
continue;
|
|
80381
|
-
} else if (
|
|
80379
|
+
} else if (xe.isSymbolicLink()) return new wt(x, x + "/" + T.join("/"));
|
|
80382
80380
|
}
|
|
80383
80381
|
}
|
|
80384
80382
|
return d(N);
|
|
80385
80383
|
};
|
|
80386
|
-
var
|
|
80387
|
-
var
|
|
80384
|
+
var ps = /* @__PURE__ */ Object.create(null);
|
|
80385
|
+
var ur = 1e4;
|
|
80388
80386
|
var $t = /* @__PURE__ */ new Set();
|
|
80389
|
-
var
|
|
80390
|
-
$t.has(s3) ? $t.delete(s3) :
|
|
80391
|
-
let t =
|
|
80392
|
-
if (e >
|
|
80393
|
-
for (let i of $t) if ($t.delete(i), delete
|
|
80387
|
+
var mr = (s3) => {
|
|
80388
|
+
$t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
|
|
80389
|
+
let t = ps[s3], e = $t.size - ur;
|
|
80390
|
+
if (e > ur / 10) {
|
|
80391
|
+
for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
|
|
80394
80392
|
}
|
|
80395
80393
|
return t;
|
|
80396
80394
|
};
|
|
80397
|
-
var
|
|
80398
|
-
var
|
|
80399
|
-
var
|
|
80400
|
-
let r = e
|
|
80401
|
-
return r !== void 0 && (i =
|
|
80395
|
+
var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
80396
|
+
var Jn = Qn === "win32";
|
|
80397
|
+
var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
|
|
80398
|
+
let r = e.at(-1);
|
|
80399
|
+
return r !== void 0 && (i = pr(r, i)), e.push(i || "/"), e;
|
|
80402
80400
|
}, []);
|
|
80403
|
-
var
|
|
80401
|
+
var Ei = class {
|
|
80404
80402
|
#t = /* @__PURE__ */ new Map();
|
|
80405
80403
|
#i = /* @__PURE__ */ new Map();
|
|
80406
80404
|
#s = /* @__PURE__ */ new Set();
|
|
80407
80405
|
reserve(t, e) {
|
|
80408
|
-
t =
|
|
80409
|
-
let i = new Set(t.map((r) =>
|
|
80406
|
+
t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt(pr(mr(r))));
|
|
80407
|
+
let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
|
|
80410
80408
|
this.#i.set(e, { dirs: i, paths: t });
|
|
80411
80409
|
for (let r of t) {
|
|
80412
80410
|
let n = this.#t.get(r);
|
|
@@ -80416,7 +80414,7 @@ var pi = class {
|
|
|
80416
80414
|
let n = this.#t.get(r);
|
|
80417
80415
|
if (!n) this.#t.set(r, [/* @__PURE__ */ new Set([e])]);
|
|
80418
80416
|
else {
|
|
80419
|
-
let o = n
|
|
80417
|
+
let o = n.at(-1);
|
|
80420
80418
|
o instanceof Set ? o.add(e) : n.push(/* @__PURE__ */ new Set([e]));
|
|
80421
80419
|
}
|
|
80422
80420
|
}
|
|
@@ -80464,55 +80462,55 @@ var pi = class {
|
|
|
80464
80462
|
return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
|
|
80465
80463
|
}
|
|
80466
80464
|
};
|
|
80467
|
-
var
|
|
80468
|
-
var
|
|
80469
|
-
var
|
|
80470
|
-
var
|
|
80471
|
-
var
|
|
80465
|
+
var Er = () => process.umask();
|
|
80466
|
+
var wr = /* @__PURE__ */ Symbol("onEntry");
|
|
80467
|
+
var ys = /* @__PURE__ */ Symbol("checkFs");
|
|
80468
|
+
var Sr = /* @__PURE__ */ Symbol("checkFs2");
|
|
80469
|
+
var Rs = /* @__PURE__ */ Symbol("isReusable");
|
|
80472
80470
|
var P = /* @__PURE__ */ Symbol("makeFs");
|
|
80473
|
-
var
|
|
80474
|
-
var
|
|
80475
|
-
var
|
|
80476
|
-
var
|
|
80477
|
-
var
|
|
80471
|
+
var bs = /* @__PURE__ */ Symbol("file");
|
|
80472
|
+
var _s = /* @__PURE__ */ Symbol("directory");
|
|
80473
|
+
var Si = /* @__PURE__ */ Symbol("link");
|
|
80474
|
+
var yr = /* @__PURE__ */ Symbol("symlink");
|
|
80475
|
+
var Rr = /* @__PURE__ */ Symbol("hardlink");
|
|
80478
80476
|
var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
|
|
80479
|
-
var
|
|
80477
|
+
var br = /* @__PURE__ */ Symbol("unsupported");
|
|
80480
80478
|
var _r = /* @__PURE__ */ Symbol("checkPath");
|
|
80481
|
-
var
|
|
80479
|
+
var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
|
|
80482
80480
|
var St = /* @__PURE__ */ Symbol("mkdir");
|
|
80483
80481
|
var O = /* @__PURE__ */ Symbol("onError");
|
|
80484
|
-
var
|
|
80485
|
-
var
|
|
80482
|
+
var wi = /* @__PURE__ */ Symbol("pending");
|
|
80483
|
+
var gr = /* @__PURE__ */ Symbol("pend");
|
|
80486
80484
|
var Xt = /* @__PURE__ */ Symbol("unpend");
|
|
80487
|
-
var
|
|
80488
|
-
var
|
|
80485
|
+
var ws = /* @__PURE__ */ Symbol("ended");
|
|
80486
|
+
var Ss = /* @__PURE__ */ Symbol("maybeClose");
|
|
80489
80487
|
var gs = /* @__PURE__ */ Symbol("skip");
|
|
80490
80488
|
var Re = /* @__PURE__ */ Symbol("doChown");
|
|
80491
80489
|
var be = /* @__PURE__ */ Symbol("uid");
|
|
80492
|
-
var
|
|
80493
|
-
var
|
|
80494
|
-
var
|
|
80495
|
-
var Oe =
|
|
80496
|
-
var
|
|
80497
|
-
var
|
|
80490
|
+
var _e = /* @__PURE__ */ Symbol("gid");
|
|
80491
|
+
var ge = /* @__PURE__ */ Symbol("checkedCwd");
|
|
80492
|
+
var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
80493
|
+
var Oe = io === "win32";
|
|
80494
|
+
var so = 1024;
|
|
80495
|
+
var ro = (s3, t) => {
|
|
80498
80496
|
if (!Oe) return u.unlink(s3, t);
|
|
80499
|
-
let e = s3 + ".DELETE." +
|
|
80497
|
+
let e = s3 + ".DELETE." + Tr(16).toString("hex");
|
|
80500
80498
|
u.rename(s3, e, (i) => {
|
|
80501
80499
|
if (i) return t(i);
|
|
80502
80500
|
u.unlink(e, t);
|
|
80503
80501
|
});
|
|
80504
80502
|
};
|
|
80505
|
-
var
|
|
80503
|
+
var no = (s3) => {
|
|
80506
80504
|
if (!Oe) return u.unlinkSync(s3);
|
|
80507
|
-
let t = s3 + ".DELETE." +
|
|
80505
|
+
let t = s3 + ".DELETE." + Tr(16).toString("hex");
|
|
80508
80506
|
u.renameSync(s3, t), u.unlinkSync(t);
|
|
80509
80507
|
};
|
|
80510
|
-
var
|
|
80508
|
+
var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
|
|
80511
80509
|
var qt = class extends st {
|
|
80512
|
-
[
|
|
80513
|
-
[
|
|
80514
|
-
[
|
|
80515
|
-
reservations = new
|
|
80510
|
+
[ws] = false;
|
|
80511
|
+
[ge] = false;
|
|
80512
|
+
[wi] = 0;
|
|
80513
|
+
reservations = new Ei();
|
|
80516
80514
|
transform;
|
|
80517
80515
|
writable = true;
|
|
80518
80516
|
readable = false;
|
|
@@ -80539,30 +80537,28 @@ var qt = class extends st {
|
|
|
80539
80537
|
chmod;
|
|
80540
80538
|
constructor(t = {}) {
|
|
80541
80539
|
if (t.ondone = () => {
|
|
80542
|
-
this[
|
|
80540
|
+
this[ws] = true, this[Ss]();
|
|
80543
80541
|
}, super(t), this.transform = t.transform, this.chmod = !!t.chmod, typeof t.uid == "number" || typeof t.gid == "number") {
|
|
80544
80542
|
if (typeof t.uid != "number" || typeof t.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
|
|
80545
80543
|
if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
80546
80544
|
this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
|
|
80547
80545
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
80548
|
-
t.preserveOwner === void 0 && typeof t.uid != "number" ?
|
|
80546
|
+
this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : so, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Er() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[wr](e));
|
|
80549
80547
|
}
|
|
80550
80548
|
warn(t, e, i = {}) {
|
|
80551
80549
|
return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
|
|
80552
80550
|
}
|
|
80553
|
-
[
|
|
80554
|
-
this[
|
|
80551
|
+
[Ss]() {
|
|
80552
|
+
this[ws] && this[wi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
|
80555
80553
|
}
|
|
80556
|
-
[
|
|
80554
|
+
[Es](t, e) {
|
|
80557
80555
|
let i = t[e], { type: r } = t;
|
|
80558
80556
|
if (!i || this.preservePaths) return true;
|
|
80559
|
-
let [n, o] = ce(i), h = o.
|
|
80557
|
+
let [n, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
|
|
80560
80558
|
if (h.includes("..") || Oe && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
|
|
80561
80559
|
if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
|
|
80562
|
-
|
|
80563
|
-
|
|
80564
|
-
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
80565
|
-
}
|
|
80560
|
+
let a = R.posix.dirname(t.path), l = R.posix.normalize(R.posix.join(a, h.join("/")));
|
|
80561
|
+
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
80566
80562
|
}
|
|
80567
80563
|
return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
|
|
80568
80564
|
}
|
|
@@ -80578,20 +80574,20 @@ var qt = class extends st {
|
|
|
80578
80574
|
i.splice(0, this.strip), t.path = i.join("/");
|
|
80579
80575
|
}
|
|
80580
80576
|
if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t, path: e, depth: i.length, maxDepth: this.maxDepth }), false;
|
|
80581
|
-
if (!this[
|
|
80582
|
-
if (R.isAbsolute(t.path) ?
|
|
80577
|
+
if (!this[Es](t, "path") || !this[Es](t, "linkpath")) return false;
|
|
80578
|
+
if (t.absolute = R.isAbsolute(t.path) ? f(R.resolve(t.path)) : f(R.resolve(this.cwd, t.path)), !this.preservePaths && typeof t.absolute == "string" && t.absolute.indexOf(this.cwd + "/") !== 0 && t.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t, path: f(t.path), resolvedPath: t.absolute, cwd: this.cwd }), false;
|
|
80583
80579
|
if (t.absolute === this.cwd && t.type !== "Directory" && t.type !== "GNUDumpDir") return false;
|
|
80584
80580
|
if (this.win32) {
|
|
80585
80581
|
let { root: r } = R.win32.parse(String(t.absolute));
|
|
80586
|
-
t.absolute = r +
|
|
80582
|
+
t.absolute = r + Xi(String(t.absolute).slice(r.length));
|
|
80587
80583
|
let { root: n } = R.win32.parse(t.path);
|
|
80588
|
-
t.path = n +
|
|
80584
|
+
t.path = n + Xi(t.path.slice(n.length));
|
|
80589
80585
|
}
|
|
80590
80586
|
return true;
|
|
80591
80587
|
}
|
|
80592
|
-
[
|
|
80588
|
+
[wr](t) {
|
|
80593
80589
|
if (!this[_r](t)) return t.resume();
|
|
80594
|
-
switch (
|
|
80590
|
+
switch (eo.equal(typeof t.absolute, "string"), t.type) {
|
|
80595
80591
|
case "Directory":
|
|
80596
80592
|
case "GNUDumpDir":
|
|
80597
80593
|
t.mode && (t.mode = t.mode | 448);
|
|
@@ -80600,28 +80596,28 @@ var qt = class extends st {
|
|
|
80600
80596
|
case "ContiguousFile":
|
|
80601
80597
|
case "Link":
|
|
80602
80598
|
case "SymbolicLink":
|
|
80603
|
-
return this[
|
|
80599
|
+
return this[ys](t);
|
|
80604
80600
|
default:
|
|
80605
|
-
return this[
|
|
80601
|
+
return this[br](t);
|
|
80606
80602
|
}
|
|
80607
80603
|
}
|
|
80608
80604
|
[O](t, e) {
|
|
80609
80605
|
t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
|
|
80610
80606
|
}
|
|
80611
80607
|
[St](t, e, i) {
|
|
80612
|
-
|
|
80608
|
+
cr(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);
|
|
80613
80609
|
}
|
|
80614
80610
|
[Re](t) {
|
|
80615
80611
|
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;
|
|
80616
80612
|
}
|
|
80617
80613
|
[be](t) {
|
|
80618
|
-
return
|
|
80614
|
+
return Or(this.uid, t.uid, this.processUid);
|
|
80619
80615
|
}
|
|
80620
|
-
[
|
|
80621
|
-
return
|
|
80616
|
+
[_e](t) {
|
|
80617
|
+
return Or(this.gid, t.gid, this.processGid);
|
|
80622
80618
|
}
|
|
80623
|
-
[
|
|
80624
|
-
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags:
|
|
80619
|
+
[bs](t, e) {
|
|
80620
|
+
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: cs(t.size), mode: i, autoClose: false });
|
|
80625
80621
|
r.on("error", (a) => {
|
|
80626
80622
|
r.fd && u.close(r.fd, () => {
|
|
80627
80623
|
}), r.write = () => true, this[O](a, t), e();
|
|
@@ -80645,7 +80641,7 @@ var qt = class extends st {
|
|
|
80645
80641
|
}
|
|
80646
80642
|
if (typeof l == "number" && this[Re](t)) {
|
|
80647
80643
|
n++;
|
|
80648
|
-
let c = this[be](t), d = this[
|
|
80644
|
+
let c = this[be](t), d = this[_e](t);
|
|
80649
80645
|
typeof c == "number" && typeof d == "number" && u.fchown(l, c, d, (S) => S ? u.chown(a, c, d, (T) => o(T && S)) : o());
|
|
80650
80646
|
}
|
|
80651
80647
|
o();
|
|
@@ -80655,7 +80651,7 @@ var qt = class extends st {
|
|
|
80655
80651
|
this[O](a, t), e();
|
|
80656
80652
|
}), t.pipe(h)), h.pipe(r);
|
|
80657
80653
|
}
|
|
80658
|
-
[
|
|
80654
|
+
[_s](t, e) {
|
|
80659
80655
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
|
|
80660
80656
|
this[St](String(t.absolute), i, (r) => {
|
|
80661
80657
|
if (r) {
|
|
@@ -80665,21 +80661,21 @@ var qt = class extends st {
|
|
|
80665
80661
|
let n = 1, o = () => {
|
|
80666
80662
|
--n === 0 && (e(), this[Xt](), t.resume());
|
|
80667
80663
|
};
|
|
80668
|
-
t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, u.chown(String(t.absolute), Number(this[be](t)), Number(this[
|
|
80664
|
+
t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, u.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
|
|
80669
80665
|
});
|
|
80670
80666
|
}
|
|
80671
|
-
[
|
|
80667
|
+
[br](t) {
|
|
80672
80668
|
t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
|
|
80673
80669
|
}
|
|
80674
|
-
[
|
|
80670
|
+
[yr](t, e) {
|
|
80675
80671
|
let i = f(R.relative(this.cwd, R.resolve(R.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
|
|
80676
|
-
this[ye](t, this.cwd, i, () => this[
|
|
80672
|
+
this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
|
|
80677
80673
|
this[O](r, t), e();
|
|
80678
80674
|
});
|
|
80679
80675
|
}
|
|
80680
|
-
[
|
|
80676
|
+
[Rr](t, e) {
|
|
80681
80677
|
let i = f(R.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
|
|
80682
|
-
this[ye](t, this.cwd, r, () => this[
|
|
80678
|
+
this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
|
|
80683
80679
|
this[O](n, t), e();
|
|
80684
80680
|
});
|
|
80685
80681
|
}
|
|
@@ -80693,24 +80689,24 @@ var qt = class extends st {
|
|
|
80693
80689
|
this[ye](t, h, i, r, n);
|
|
80694
80690
|
});
|
|
80695
80691
|
}
|
|
80696
|
-
[
|
|
80697
|
-
this[
|
|
80692
|
+
[gr]() {
|
|
80693
|
+
this[wi]++;
|
|
80698
80694
|
}
|
|
80699
80695
|
[Xt]() {
|
|
80700
|
-
this[
|
|
80696
|
+
this[wi]--, this[Ss]();
|
|
80701
80697
|
}
|
|
80702
80698
|
[gs](t) {
|
|
80703
80699
|
this[Xt](), t.resume();
|
|
80704
80700
|
}
|
|
80705
|
-
[
|
|
80701
|
+
[Rs](t, e) {
|
|
80706
80702
|
return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
|
|
80707
80703
|
}
|
|
80708
|
-
[
|
|
80709
|
-
this[
|
|
80704
|
+
[ys](t) {
|
|
80705
|
+
this[gr]();
|
|
80710
80706
|
let e = [t.path];
|
|
80711
|
-
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[
|
|
80707
|
+
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
|
|
80712
80708
|
}
|
|
80713
|
-
[
|
|
80709
|
+
[Sr](t, e) {
|
|
80714
80710
|
let i = (h) => {
|
|
80715
80711
|
e(h);
|
|
80716
80712
|
}, r = () => {
|
|
@@ -80719,7 +80715,7 @@ var qt = class extends st {
|
|
|
80719
80715
|
this[O](h, t), i();
|
|
80720
80716
|
return;
|
|
80721
80717
|
}
|
|
80722
|
-
this[
|
|
80718
|
+
this[ge] = true, n();
|
|
80723
80719
|
});
|
|
80724
80720
|
}, n = () => {
|
|
80725
80721
|
if (t.absolute !== this.cwd) {
|
|
@@ -80739,7 +80735,7 @@ var qt = class extends st {
|
|
|
80739
80735
|
this[gs](t), i();
|
|
80740
80736
|
return;
|
|
80741
80737
|
}
|
|
80742
|
-
if (h || this[
|
|
80738
|
+
if (h || this[Rs](t, a)) return this[P](null, t, i);
|
|
80743
80739
|
if (a.isDirectory()) {
|
|
80744
80740
|
if (t.type === "Directory") {
|
|
80745
80741
|
let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
|
|
@@ -80748,10 +80744,10 @@ var qt = class extends st {
|
|
|
80748
80744
|
if (t.absolute !== this.cwd) return u.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
80749
80745
|
}
|
|
80750
80746
|
if (t.absolute === this.cwd) return this[P](null, t, i);
|
|
80751
|
-
|
|
80747
|
+
ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
80752
80748
|
});
|
|
80753
80749
|
};
|
|
80754
|
-
this[
|
|
80750
|
+
this[ge] ? n() : r();
|
|
80755
80751
|
}
|
|
80756
80752
|
[P](t, e, i) {
|
|
80757
80753
|
if (t) {
|
|
@@ -80762,17 +80758,17 @@ var qt = class extends st {
|
|
|
80762
80758
|
case "File":
|
|
80763
80759
|
case "OldFile":
|
|
80764
80760
|
case "ContiguousFile":
|
|
80765
|
-
return this[
|
|
80761
|
+
return this[bs](e, i);
|
|
80766
80762
|
case "Link":
|
|
80767
|
-
return this[br](e, i);
|
|
80768
|
-
case "SymbolicLink":
|
|
80769
80763
|
return this[Rr](e, i);
|
|
80764
|
+
case "SymbolicLink":
|
|
80765
|
+
return this[yr](e, i);
|
|
80770
80766
|
case "Directory":
|
|
80771
80767
|
case "GNUDumpDir":
|
|
80772
|
-
return this[
|
|
80768
|
+
return this[_s](e, i);
|
|
80773
80769
|
}
|
|
80774
80770
|
}
|
|
80775
|
-
[
|
|
80771
|
+
[Si](t, e, i, r) {
|
|
80776
80772
|
u[i](e, String(t.absolute), (n) => {
|
|
80777
80773
|
n ? this[O](n, t) : (this[Xt](), t.resume()), r();
|
|
80778
80774
|
});
|
|
@@ -80791,11 +80787,11 @@ var Te = class extends qt {
|
|
|
80791
80787
|
return super[P](t, e, () => {
|
|
80792
80788
|
});
|
|
80793
80789
|
}
|
|
80794
|
-
[
|
|
80795
|
-
if (!this[
|
|
80790
|
+
[ys](t) {
|
|
80791
|
+
if (!this[ge]) {
|
|
80796
80792
|
let n = this[St](this.cwd, this.dmode);
|
|
80797
80793
|
if (n) return this[O](n, t);
|
|
80798
|
-
this[
|
|
80794
|
+
this[ge] = true;
|
|
80799
80795
|
}
|
|
80800
80796
|
if (t.absolute !== this.cwd) {
|
|
80801
80797
|
let n = f(R.dirname(String(t.absolute)));
|
|
@@ -80806,7 +80802,7 @@ var Te = class extends qt {
|
|
|
80806
80802
|
}
|
|
80807
80803
|
let [e, i] = Se(() => u.lstatSync(String(t.absolute)));
|
|
80808
80804
|
if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[gs](t);
|
|
80809
|
-
if (e || this[
|
|
80805
|
+
if (e || this[Rs](t, i)) return this[P](null, t);
|
|
80810
80806
|
if (i.isDirectory()) {
|
|
80811
80807
|
if (t.type === "Directory") {
|
|
80812
80808
|
let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? Se(() => {
|
|
@@ -80817,10 +80813,10 @@ var Te = class extends qt {
|
|
|
80817
80813
|
let [n] = Se(() => u.rmdirSync(String(t.absolute)));
|
|
80818
80814
|
this[P](n, t);
|
|
80819
80815
|
}
|
|
80820
|
-
let [r] = t.absolute === this.cwd ? [] : Se(() =>
|
|
80816
|
+
let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
|
|
80821
80817
|
this[P](r, t);
|
|
80822
80818
|
}
|
|
80823
|
-
[
|
|
80819
|
+
[bs](t, e) {
|
|
80824
80820
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
|
|
80825
80821
|
let a;
|
|
80826
80822
|
try {
|
|
@@ -80831,7 +80827,7 @@ var Te = class extends qt {
|
|
|
80831
80827
|
(h || a) && this[O](h || a, t), e();
|
|
80832
80828
|
}, n;
|
|
80833
80829
|
try {
|
|
80834
|
-
n = u.openSync(String(t.absolute),
|
|
80830
|
+
n = u.openSync(String(t.absolute), cs(t.size), i);
|
|
80835
80831
|
} catch (h) {
|
|
80836
80832
|
return r(h);
|
|
80837
80833
|
}
|
|
@@ -80857,7 +80853,7 @@ var Te = class extends qt {
|
|
|
80857
80853
|
}
|
|
80858
80854
|
}
|
|
80859
80855
|
if (this[Re](t)) {
|
|
80860
|
-
let a = this[be](t), l = this[
|
|
80856
|
+
let a = this[be](t), l = this[_e](t);
|
|
80861
80857
|
try {
|
|
80862
80858
|
u.fchownSync(n, Number(a), Number(l));
|
|
80863
80859
|
} catch (c) {
|
|
@@ -80871,7 +80867,7 @@ var Te = class extends qt {
|
|
|
80871
80867
|
r(h);
|
|
80872
80868
|
});
|
|
80873
80869
|
}
|
|
80874
|
-
[
|
|
80870
|
+
[_s](t, e) {
|
|
80875
80871
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[St](String(t.absolute), i);
|
|
80876
80872
|
if (r) {
|
|
80877
80873
|
this[O](r, t), e();
|
|
@@ -80882,20 +80878,20 @@ var Te = class extends qt {
|
|
|
80882
80878
|
} catch {
|
|
80883
80879
|
}
|
|
80884
80880
|
if (this[Re](t)) try {
|
|
80885
|
-
u.chownSync(String(t.absolute), Number(this[be](t)), Number(this[
|
|
80881
|
+
u.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
|
|
80886
80882
|
} catch {
|
|
80887
80883
|
}
|
|
80888
80884
|
e(), t.resume();
|
|
80889
80885
|
}
|
|
80890
80886
|
[St](t, e) {
|
|
80891
80887
|
try {
|
|
80892
|
-
return
|
|
80888
|
+
return dr(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 });
|
|
80893
80889
|
} catch (i) {
|
|
80894
80890
|
return i;
|
|
80895
80891
|
}
|
|
80896
80892
|
}
|
|
80897
80893
|
[ye](t, e, i, r, n) {
|
|
80898
|
-
if (this.preservePaths ||
|
|
80894
|
+
if (this.preservePaths || i.length === 0) return r();
|
|
80899
80895
|
let o = e;
|
|
80900
80896
|
for (let h of i) {
|
|
80901
80897
|
o = R.resolve(o, h);
|
|
@@ -80905,7 +80901,7 @@ var Te = class extends qt {
|
|
|
80905
80901
|
}
|
|
80906
80902
|
r();
|
|
80907
80903
|
}
|
|
80908
|
-
[
|
|
80904
|
+
[Si](t, e, i, r) {
|
|
80909
80905
|
let n = `${i}Sync`;
|
|
80910
80906
|
try {
|
|
80911
80907
|
u[n](e, String(t.absolute)), r(), t.resume();
|
|
@@ -80914,26 +80910,26 @@ var Te = class extends qt {
|
|
|
80914
80910
|
}
|
|
80915
80911
|
}
|
|
80916
80912
|
};
|
|
80917
|
-
var
|
|
80918
|
-
let t = new Te(s3), e = s3.file, i =
|
|
80919
|
-
new
|
|
80913
|
+
var oo = (s3) => {
|
|
80914
|
+
let t = new Te(s3), e = s3.file, i = xr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
|
|
80915
|
+
new Me(e, { readSize: r, size: i.size }).pipe(t);
|
|
80920
80916
|
};
|
|
80921
|
-
var
|
|
80917
|
+
var ho = (s3, t) => {
|
|
80922
80918
|
let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
80923
80919
|
return new Promise((o, h) => {
|
|
80924
|
-
e.on("error", h), e.on("close", o),
|
|
80920
|
+
e.on("error", h), e.on("close", o), xr.stat(r, (a, l) => {
|
|
80925
80921
|
if (a) h(a);
|
|
80926
80922
|
else {
|
|
80927
|
-
let c = new
|
|
80923
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
80928
80924
|
c.on("error", h), c.pipe(e);
|
|
80929
80925
|
}
|
|
80930
80926
|
});
|
|
80931
80927
|
});
|
|
80932
80928
|
};
|
|
80933
|
-
var
|
|
80934
|
-
t?.length &&
|
|
80929
|
+
var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
|
|
80930
|
+
t?.length && Ki(s3, t);
|
|
80935
80931
|
});
|
|
80936
|
-
var
|
|
80932
|
+
var lo = (s3, t) => {
|
|
80937
80933
|
let e = new kt(s3), i = true, r, n;
|
|
80938
80934
|
try {
|
|
80939
80935
|
try {
|
|
@@ -80954,7 +80950,7 @@ var co = (s3, t) => {
|
|
|
80954
80950
|
if (n + l + 512 > o.size) break;
|
|
80955
80951
|
n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
|
|
80956
80952
|
}
|
|
80957
|
-
i = false,
|
|
80953
|
+
i = false, co(s3, e, n, r, t);
|
|
80958
80954
|
} finally {
|
|
80959
80955
|
if (i) try {
|
|
80960
80956
|
v.closeSync(r);
|
|
@@ -80962,11 +80958,11 @@ var co = (s3, t) => {
|
|
|
80962
80958
|
}
|
|
80963
80959
|
}
|
|
80964
80960
|
};
|
|
80965
|
-
var
|
|
80961
|
+
var co = (s3, t, e, i, r) => {
|
|
80966
80962
|
let n = new Wt(s3.file, { fd: i, start: e });
|
|
80967
|
-
t.pipe(n),
|
|
80963
|
+
t.pipe(n), uo(t, r);
|
|
80968
80964
|
};
|
|
80969
|
-
var
|
|
80965
|
+
var fo = (s3, t) => {
|
|
80970
80966
|
t = Array.from(t);
|
|
80971
80967
|
let e = new Et(s3), i = (n, o, h) => {
|
|
80972
80968
|
let a = (T, N) => {
|
|
@@ -80974,7 +80970,7 @@ var uo = (s3, t) => {
|
|
|
80974
80970
|
}, l = 0;
|
|
80975
80971
|
if (o === 0) return a(null, 0);
|
|
80976
80972
|
let c = 0, d = Buffer.alloc(512), S = (T, N) => {
|
|
80977
|
-
if (T ||
|
|
80973
|
+
if (T || N === void 0) return a(T);
|
|
80978
80974
|
if (c += N, c < 512 && N) return v.read(n, d, c, d.length - c, l + c, S);
|
|
80979
80975
|
if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
|
|
80980
80976
|
if (c < 512) return a(null, l);
|
|
@@ -80996,38 +80992,35 @@ var uo = (s3, t) => {
|
|
|
80996
80992
|
i(c, S.size, (T, N) => {
|
|
80997
80993
|
if (T) return o(T);
|
|
80998
80994
|
let E = new tt(s3.file, { fd: c, start: N });
|
|
80999
|
-
e.pipe(E), E.on("error", o), E.on("close", n),
|
|
80995
|
+
e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
|
|
81000
80996
|
});
|
|
81001
80997
|
});
|
|
81002
80998
|
};
|
|
81003
80999
|
v.open(s3.file, h, a);
|
|
81004
81000
|
});
|
|
81005
81001
|
};
|
|
81006
|
-
var
|
|
81002
|
+
var uo = (s3, t) => {
|
|
81007
81003
|
t.forEach((e) => {
|
|
81008
|
-
e.charAt(0) === "@" ? It({ file:
|
|
81004
|
+
e.charAt(0) === "@" ? It({ file: Lr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
81009
81005
|
}), s3.end();
|
|
81010
81006
|
};
|
|
81011
|
-
var
|
|
81012
|
-
for (let e
|
|
81013
|
-
let i = String(t[e]);
|
|
81014
|
-
i.charAt(0) === "@" ? await It({ file: Nr.resolve(String(s3.cwd), i.slice(1)), noResume: true, onReadEntry: (r) => s3.add(r) }) : s3.add(i);
|
|
81015
|
-
}
|
|
81007
|
+
var mo = async (s3, t) => {
|
|
81008
|
+
for (let e of t) e.charAt(0) === "@" ? await It({ file: Lr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
81016
81009
|
s3.end();
|
|
81017
81010
|
};
|
|
81018
|
-
var vt = K(
|
|
81011
|
+
var vt = K(lo, fo, () => {
|
|
81019
81012
|
throw new TypeError("file is required");
|
|
81020
81013
|
}, () => {
|
|
81021
81014
|
throw new TypeError("file is required");
|
|
81022
81015
|
}, (s3, t) => {
|
|
81023
|
-
if (!
|
|
81016
|
+
if (!Fs(s3)) throw new TypeError("file is required");
|
|
81024
81017
|
if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
|
|
81025
81018
|
if (!t?.length) throw new TypeError("no paths specified to add/replace");
|
|
81026
81019
|
});
|
|
81027
|
-
var
|
|
81028
|
-
vt.validate?.(s3, t),
|
|
81020
|
+
var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
|
|
81021
|
+
vt.validate?.(s3, t), Eo(s3);
|
|
81029
81022
|
});
|
|
81030
|
-
var
|
|
81023
|
+
var Eo = (s3) => {
|
|
81031
81024
|
let t = s3.filter;
|
|
81032
81025
|
s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
|
|
81033
81026
|
};
|
|
@@ -81218,7 +81211,7 @@ var Client = class _Client {
|
|
|
81218
81211
|
"x-sdk-name": "Console",
|
|
81219
81212
|
"x-sdk-platform": "console",
|
|
81220
81213
|
"x-sdk-language": "web",
|
|
81221
|
-
"x-sdk-version": "
|
|
81214
|
+
"x-sdk-version": "6.0.0",
|
|
81222
81215
|
"X-Appwrite-Response-Format": "1.8.0"
|
|
81223
81216
|
};
|
|
81224
81217
|
this.realtime = {
|
|
@@ -92617,247 +92610,6 @@ var Projects = class {
|
|
|
92617
92610
|
};
|
|
92618
92611
|
return this.client.call("delete", uri, apiHeaders, payload);
|
|
92619
92612
|
}
|
|
92620
|
-
listWebhooks(paramsOrFirst, ...rest) {
|
|
92621
|
-
let params;
|
|
92622
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92623
|
-
params = paramsOrFirst || {};
|
|
92624
|
-
} else {
|
|
92625
|
-
params = {
|
|
92626
|
-
projectId: paramsOrFirst,
|
|
92627
|
-
total: rest[0]
|
|
92628
|
-
};
|
|
92629
|
-
}
|
|
92630
|
-
const projectId = params.projectId;
|
|
92631
|
-
const total = params.total;
|
|
92632
|
-
if (typeof projectId === "undefined") {
|
|
92633
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92634
|
-
}
|
|
92635
|
-
const apiPath = "/projects/{projectId}/webhooks".replace("{projectId}", projectId);
|
|
92636
|
-
const payload = {};
|
|
92637
|
-
if (typeof total !== "undefined") {
|
|
92638
|
-
payload["total"] = total;
|
|
92639
|
-
}
|
|
92640
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92641
|
-
const apiHeaders = {};
|
|
92642
|
-
return this.client.call("get", uri, apiHeaders, payload);
|
|
92643
|
-
}
|
|
92644
|
-
createWebhook(paramsOrFirst, ...rest) {
|
|
92645
|
-
let params;
|
|
92646
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92647
|
-
params = paramsOrFirst || {};
|
|
92648
|
-
} else {
|
|
92649
|
-
params = {
|
|
92650
|
-
projectId: paramsOrFirst,
|
|
92651
|
-
name: rest[0],
|
|
92652
|
-
events: rest[1],
|
|
92653
|
-
url: rest[2],
|
|
92654
|
-
security: rest[3],
|
|
92655
|
-
enabled: rest[4],
|
|
92656
|
-
httpUser: rest[5],
|
|
92657
|
-
httpPass: rest[6]
|
|
92658
|
-
};
|
|
92659
|
-
}
|
|
92660
|
-
const projectId = params.projectId;
|
|
92661
|
-
const name = params.name;
|
|
92662
|
-
const events = params.events;
|
|
92663
|
-
const url2 = params.url;
|
|
92664
|
-
const security = params.security;
|
|
92665
|
-
const enabled = params.enabled;
|
|
92666
|
-
const httpUser = params.httpUser;
|
|
92667
|
-
const httpPass = params.httpPass;
|
|
92668
|
-
if (typeof projectId === "undefined") {
|
|
92669
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92670
|
-
}
|
|
92671
|
-
if (typeof name === "undefined") {
|
|
92672
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
92673
|
-
}
|
|
92674
|
-
if (typeof events === "undefined") {
|
|
92675
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
92676
|
-
}
|
|
92677
|
-
if (typeof url2 === "undefined") {
|
|
92678
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
92679
|
-
}
|
|
92680
|
-
if (typeof security === "undefined") {
|
|
92681
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
92682
|
-
}
|
|
92683
|
-
const apiPath = "/projects/{projectId}/webhooks".replace("{projectId}", projectId);
|
|
92684
|
-
const payload = {};
|
|
92685
|
-
if (typeof name !== "undefined") {
|
|
92686
|
-
payload["name"] = name;
|
|
92687
|
-
}
|
|
92688
|
-
if (typeof enabled !== "undefined") {
|
|
92689
|
-
payload["enabled"] = enabled;
|
|
92690
|
-
}
|
|
92691
|
-
if (typeof events !== "undefined") {
|
|
92692
|
-
payload["events"] = events;
|
|
92693
|
-
}
|
|
92694
|
-
if (typeof url2 !== "undefined") {
|
|
92695
|
-
payload["url"] = url2;
|
|
92696
|
-
}
|
|
92697
|
-
if (typeof security !== "undefined") {
|
|
92698
|
-
payload["security"] = security;
|
|
92699
|
-
}
|
|
92700
|
-
if (typeof httpUser !== "undefined") {
|
|
92701
|
-
payload["httpUser"] = httpUser;
|
|
92702
|
-
}
|
|
92703
|
-
if (typeof httpPass !== "undefined") {
|
|
92704
|
-
payload["httpPass"] = httpPass;
|
|
92705
|
-
}
|
|
92706
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92707
|
-
const apiHeaders = {
|
|
92708
|
-
"content-type": "application/json"
|
|
92709
|
-
};
|
|
92710
|
-
return this.client.call("post", uri, apiHeaders, payload);
|
|
92711
|
-
}
|
|
92712
|
-
getWebhook(paramsOrFirst, ...rest) {
|
|
92713
|
-
let params;
|
|
92714
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92715
|
-
params = paramsOrFirst || {};
|
|
92716
|
-
} else {
|
|
92717
|
-
params = {
|
|
92718
|
-
projectId: paramsOrFirst,
|
|
92719
|
-
webhookId: rest[0]
|
|
92720
|
-
};
|
|
92721
|
-
}
|
|
92722
|
-
const projectId = params.projectId;
|
|
92723
|
-
const webhookId = params.webhookId;
|
|
92724
|
-
if (typeof projectId === "undefined") {
|
|
92725
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92726
|
-
}
|
|
92727
|
-
if (typeof webhookId === "undefined") {
|
|
92728
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
92729
|
-
}
|
|
92730
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
92731
|
-
const payload = {};
|
|
92732
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92733
|
-
const apiHeaders = {};
|
|
92734
|
-
return this.client.call("get", uri, apiHeaders, payload);
|
|
92735
|
-
}
|
|
92736
|
-
updateWebhook(paramsOrFirst, ...rest) {
|
|
92737
|
-
let params;
|
|
92738
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92739
|
-
params = paramsOrFirst || {};
|
|
92740
|
-
} else {
|
|
92741
|
-
params = {
|
|
92742
|
-
projectId: paramsOrFirst,
|
|
92743
|
-
webhookId: rest[0],
|
|
92744
|
-
name: rest[1],
|
|
92745
|
-
events: rest[2],
|
|
92746
|
-
url: rest[3],
|
|
92747
|
-
security: rest[4],
|
|
92748
|
-
enabled: rest[5],
|
|
92749
|
-
httpUser: rest[6],
|
|
92750
|
-
httpPass: rest[7]
|
|
92751
|
-
};
|
|
92752
|
-
}
|
|
92753
|
-
const projectId = params.projectId;
|
|
92754
|
-
const webhookId = params.webhookId;
|
|
92755
|
-
const name = params.name;
|
|
92756
|
-
const events = params.events;
|
|
92757
|
-
const url2 = params.url;
|
|
92758
|
-
const security = params.security;
|
|
92759
|
-
const enabled = params.enabled;
|
|
92760
|
-
const httpUser = params.httpUser;
|
|
92761
|
-
const httpPass = params.httpPass;
|
|
92762
|
-
if (typeof projectId === "undefined") {
|
|
92763
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92764
|
-
}
|
|
92765
|
-
if (typeof webhookId === "undefined") {
|
|
92766
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
92767
|
-
}
|
|
92768
|
-
if (typeof name === "undefined") {
|
|
92769
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
92770
|
-
}
|
|
92771
|
-
if (typeof events === "undefined") {
|
|
92772
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
92773
|
-
}
|
|
92774
|
-
if (typeof url2 === "undefined") {
|
|
92775
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
92776
|
-
}
|
|
92777
|
-
if (typeof security === "undefined") {
|
|
92778
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
92779
|
-
}
|
|
92780
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
92781
|
-
const payload = {};
|
|
92782
|
-
if (typeof name !== "undefined") {
|
|
92783
|
-
payload["name"] = name;
|
|
92784
|
-
}
|
|
92785
|
-
if (typeof enabled !== "undefined") {
|
|
92786
|
-
payload["enabled"] = enabled;
|
|
92787
|
-
}
|
|
92788
|
-
if (typeof events !== "undefined") {
|
|
92789
|
-
payload["events"] = events;
|
|
92790
|
-
}
|
|
92791
|
-
if (typeof url2 !== "undefined") {
|
|
92792
|
-
payload["url"] = url2;
|
|
92793
|
-
}
|
|
92794
|
-
if (typeof security !== "undefined") {
|
|
92795
|
-
payload["security"] = security;
|
|
92796
|
-
}
|
|
92797
|
-
if (typeof httpUser !== "undefined") {
|
|
92798
|
-
payload["httpUser"] = httpUser;
|
|
92799
|
-
}
|
|
92800
|
-
if (typeof httpPass !== "undefined") {
|
|
92801
|
-
payload["httpPass"] = httpPass;
|
|
92802
|
-
}
|
|
92803
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92804
|
-
const apiHeaders = {
|
|
92805
|
-
"content-type": "application/json"
|
|
92806
|
-
};
|
|
92807
|
-
return this.client.call("put", uri, apiHeaders, payload);
|
|
92808
|
-
}
|
|
92809
|
-
deleteWebhook(paramsOrFirst, ...rest) {
|
|
92810
|
-
let params;
|
|
92811
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92812
|
-
params = paramsOrFirst || {};
|
|
92813
|
-
} else {
|
|
92814
|
-
params = {
|
|
92815
|
-
projectId: paramsOrFirst,
|
|
92816
|
-
webhookId: rest[0]
|
|
92817
|
-
};
|
|
92818
|
-
}
|
|
92819
|
-
const projectId = params.projectId;
|
|
92820
|
-
const webhookId = params.webhookId;
|
|
92821
|
-
if (typeof projectId === "undefined") {
|
|
92822
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92823
|
-
}
|
|
92824
|
-
if (typeof webhookId === "undefined") {
|
|
92825
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
92826
|
-
}
|
|
92827
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
92828
|
-
const payload = {};
|
|
92829
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92830
|
-
const apiHeaders = {
|
|
92831
|
-
"content-type": "application/json"
|
|
92832
|
-
};
|
|
92833
|
-
return this.client.call("delete", uri, apiHeaders, payload);
|
|
92834
|
-
}
|
|
92835
|
-
updateWebhookSignature(paramsOrFirst, ...rest) {
|
|
92836
|
-
let params;
|
|
92837
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
92838
|
-
params = paramsOrFirst || {};
|
|
92839
|
-
} else {
|
|
92840
|
-
params = {
|
|
92841
|
-
projectId: paramsOrFirst,
|
|
92842
|
-
webhookId: rest[0]
|
|
92843
|
-
};
|
|
92844
|
-
}
|
|
92845
|
-
const projectId = params.projectId;
|
|
92846
|
-
const webhookId = params.webhookId;
|
|
92847
|
-
if (typeof projectId === "undefined") {
|
|
92848
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
92849
|
-
}
|
|
92850
|
-
if (typeof webhookId === "undefined") {
|
|
92851
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
92852
|
-
}
|
|
92853
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}/signature".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
92854
|
-
const payload = {};
|
|
92855
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
92856
|
-
const apiHeaders = {
|
|
92857
|
-
"content-type": "application/json"
|
|
92858
|
-
};
|
|
92859
|
-
return this.client.call("patch", uri, apiHeaders, payload);
|
|
92860
|
-
}
|
|
92861
92613
|
};
|
|
92862
92614
|
var Proxy2 = class {
|
|
92863
92615
|
constructor(client) {
|
|
@@ -98649,6 +98401,8 @@ var Scopes;
|
|
|
98649
98401
|
Scopes2["AssistantRead"] = "assistant.read";
|
|
98650
98402
|
Scopes2["TokensRead"] = "tokens.read";
|
|
98651
98403
|
Scopes2["TokensWrite"] = "tokens.write";
|
|
98404
|
+
Scopes2["WebhooksRead"] = "webhooks.read";
|
|
98405
|
+
Scopes2["WebhooksWrite"] = "webhooks.write";
|
|
98652
98406
|
Scopes2["PoliciesWrite"] = "policies.write";
|
|
98653
98407
|
Scopes2["PoliciesRead"] = "policies.read";
|
|
98654
98408
|
Scopes2["ArchivesRead"] = "archives.read";
|
|
@@ -99498,9 +99252,6 @@ var Runtime;
|
|
|
99498
99252
|
Runtime2["Pythonml311"] = "python-ml-3.11";
|
|
99499
99253
|
Runtime2["Pythonml312"] = "python-ml-3.12";
|
|
99500
99254
|
Runtime2["Pythonml313"] = "python-ml-3.13";
|
|
99501
|
-
Runtime2["Deno121"] = "deno-1.21";
|
|
99502
|
-
Runtime2["Deno124"] = "deno-1.24";
|
|
99503
|
-
Runtime2["Deno135"] = "deno-1.35";
|
|
99504
99255
|
Runtime2["Deno140"] = "deno-1.40";
|
|
99505
99256
|
Runtime2["Deno146"] = "deno-1.46";
|
|
99506
99257
|
Runtime2["Deno20"] = "deno-2.0";
|
|
@@ -99556,6 +99307,92 @@ var Runtime;
|
|
|
99556
99307
|
Runtime2["Flutter332"] = "flutter-3.32";
|
|
99557
99308
|
Runtime2["Flutter335"] = "flutter-3.35";
|
|
99558
99309
|
Runtime2["Flutter338"] = "flutter-3.38";
|
|
99310
|
+
Runtime2["Node145rc"] = "node-14.5-rc";
|
|
99311
|
+
Runtime2["Node160rc"] = "node-16.0-rc";
|
|
99312
|
+
Runtime2["Node180rc"] = "node-18.0-rc";
|
|
99313
|
+
Runtime2["Node190rc"] = "node-19.0-rc";
|
|
99314
|
+
Runtime2["Node200rc"] = "node-20.0-rc";
|
|
99315
|
+
Runtime2["Node210rc"] = "node-21.0-rc";
|
|
99316
|
+
Runtime2["Node22rc"] = "node-22-rc";
|
|
99317
|
+
Runtime2["Node23rc"] = "node-23-rc";
|
|
99318
|
+
Runtime2["Node24rc"] = "node-24-rc";
|
|
99319
|
+
Runtime2["Node25rc"] = "node-25-rc";
|
|
99320
|
+
Runtime2["Php80rc"] = "php-8.0-rc";
|
|
99321
|
+
Runtime2["Php81rc"] = "php-8.1-rc";
|
|
99322
|
+
Runtime2["Php82rc"] = "php-8.2-rc";
|
|
99323
|
+
Runtime2["Php83rc"] = "php-8.3-rc";
|
|
99324
|
+
Runtime2["Php84rc"] = "php-8.4-rc";
|
|
99325
|
+
Runtime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
99326
|
+
Runtime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
99327
|
+
Runtime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
99328
|
+
Runtime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
99329
|
+
Runtime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
99330
|
+
Runtime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
99331
|
+
Runtime2["Python38rc"] = "python-3.8-rc";
|
|
99332
|
+
Runtime2["Python39rc"] = "python-3.9-rc";
|
|
99333
|
+
Runtime2["Python310rc"] = "python-3.10-rc";
|
|
99334
|
+
Runtime2["Python311rc"] = "python-3.11-rc";
|
|
99335
|
+
Runtime2["Python312rc"] = "python-3.12-rc";
|
|
99336
|
+
Runtime2["Python313rc"] = "python-3.13-rc";
|
|
99337
|
+
Runtime2["Python314rc"] = "python-3.14-rc";
|
|
99338
|
+
Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
99339
|
+
Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
99340
|
+
Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
99341
|
+
Runtime2["Deno140rc"] = "deno-1.40-rc";
|
|
99342
|
+
Runtime2["Deno146rc"] = "deno-1.46-rc";
|
|
99343
|
+
Runtime2["Deno20rc"] = "deno-2.0-rc";
|
|
99344
|
+
Runtime2["Deno25rc"] = "deno-2.5-rc";
|
|
99345
|
+
Runtime2["Deno26rc"] = "deno-2.6-rc";
|
|
99346
|
+
Runtime2["Dart215rc"] = "dart-2.15-rc";
|
|
99347
|
+
Runtime2["Dart216rc"] = "dart-2.16-rc";
|
|
99348
|
+
Runtime2["Dart217rc"] = "dart-2.17-rc";
|
|
99349
|
+
Runtime2["Dart218rc"] = "dart-2.18-rc";
|
|
99350
|
+
Runtime2["Dart219rc"] = "dart-2.19-rc";
|
|
99351
|
+
Runtime2["Dart30rc"] = "dart-3.0-rc";
|
|
99352
|
+
Runtime2["Dart31rc"] = "dart-3.1-rc";
|
|
99353
|
+
Runtime2["Dart33rc"] = "dart-3.3-rc";
|
|
99354
|
+
Runtime2["Dart35rc"] = "dart-3.5-rc";
|
|
99355
|
+
Runtime2["Dart38rc"] = "dart-3.8-rc";
|
|
99356
|
+
Runtime2["Dart39rc"] = "dart-3.9-rc";
|
|
99357
|
+
Runtime2["Dart310rc"] = "dart-3.10-rc";
|
|
99358
|
+
Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
99359
|
+
Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
99360
|
+
Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
99361
|
+
Runtime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
99362
|
+
Runtime2["Java80rc"] = "java-8.0-rc";
|
|
99363
|
+
Runtime2["Java110rc"] = "java-11.0-rc";
|
|
99364
|
+
Runtime2["Java170rc"] = "java-17.0-rc";
|
|
99365
|
+
Runtime2["Java180rc"] = "java-18.0-rc";
|
|
99366
|
+
Runtime2["Java210rc"] = "java-21.0-rc";
|
|
99367
|
+
Runtime2["Java22rc"] = "java-22-rc";
|
|
99368
|
+
Runtime2["Java25rc"] = "java-25-rc";
|
|
99369
|
+
Runtime2["Swift55rc"] = "swift-5.5-rc";
|
|
99370
|
+
Runtime2["Swift58rc"] = "swift-5.8-rc";
|
|
99371
|
+
Runtime2["Swift59rc"] = "swift-5.9-rc";
|
|
99372
|
+
Runtime2["Swift510rc"] = "swift-5.10-rc";
|
|
99373
|
+
Runtime2["Swift62rc"] = "swift-6.2-rc";
|
|
99374
|
+
Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
99375
|
+
Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
99376
|
+
Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
99377
|
+
Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
99378
|
+
Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
99379
|
+
Runtime2["Cpp17rc"] = "cpp-17-rc";
|
|
99380
|
+
Runtime2["Cpp20rc"] = "cpp-20-rc";
|
|
99381
|
+
Runtime2["Bun10rc"] = "bun-1.0-rc";
|
|
99382
|
+
Runtime2["Bun11rc"] = "bun-1.1-rc";
|
|
99383
|
+
Runtime2["Bun12rc"] = "bun-1.2-rc";
|
|
99384
|
+
Runtime2["Bun13rc"] = "bun-1.3-rc";
|
|
99385
|
+
Runtime2["Go123rc"] = "go-1.23-rc";
|
|
99386
|
+
Runtime2["Go124rc"] = "go-1.24-rc";
|
|
99387
|
+
Runtime2["Go125rc"] = "go-1.25-rc";
|
|
99388
|
+
Runtime2["Go126rc"] = "go-1.26-rc";
|
|
99389
|
+
Runtime2["Static1rc"] = "static-1-rc";
|
|
99390
|
+
Runtime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
99391
|
+
Runtime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
99392
|
+
Runtime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
99393
|
+
Runtime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
99394
|
+
Runtime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
99395
|
+
Runtime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
99559
99396
|
})(Runtime || (Runtime = {}));
|
|
99560
99397
|
var Runtimes;
|
|
99561
99398
|
(function(Runtimes2) {
|
|
@@ -99590,9 +99427,6 @@ var Runtimes;
|
|
|
99590
99427
|
Runtimes2["Pythonml311"] = "python-ml-3.11";
|
|
99591
99428
|
Runtimes2["Pythonml312"] = "python-ml-3.12";
|
|
99592
99429
|
Runtimes2["Pythonml313"] = "python-ml-3.13";
|
|
99593
|
-
Runtimes2["Deno121"] = "deno-1.21";
|
|
99594
|
-
Runtimes2["Deno124"] = "deno-1.24";
|
|
99595
|
-
Runtimes2["Deno135"] = "deno-1.35";
|
|
99596
99430
|
Runtimes2["Deno140"] = "deno-1.40";
|
|
99597
99431
|
Runtimes2["Deno146"] = "deno-1.46";
|
|
99598
99432
|
Runtimes2["Deno20"] = "deno-2.0";
|
|
@@ -99648,6 +99482,92 @@ var Runtimes;
|
|
|
99648
99482
|
Runtimes2["Flutter332"] = "flutter-3.32";
|
|
99649
99483
|
Runtimes2["Flutter335"] = "flutter-3.35";
|
|
99650
99484
|
Runtimes2["Flutter338"] = "flutter-3.38";
|
|
99485
|
+
Runtimes2["Node145rc"] = "node-14.5-rc";
|
|
99486
|
+
Runtimes2["Node160rc"] = "node-16.0-rc";
|
|
99487
|
+
Runtimes2["Node180rc"] = "node-18.0-rc";
|
|
99488
|
+
Runtimes2["Node190rc"] = "node-19.0-rc";
|
|
99489
|
+
Runtimes2["Node200rc"] = "node-20.0-rc";
|
|
99490
|
+
Runtimes2["Node210rc"] = "node-21.0-rc";
|
|
99491
|
+
Runtimes2["Node22rc"] = "node-22-rc";
|
|
99492
|
+
Runtimes2["Node23rc"] = "node-23-rc";
|
|
99493
|
+
Runtimes2["Node24rc"] = "node-24-rc";
|
|
99494
|
+
Runtimes2["Node25rc"] = "node-25-rc";
|
|
99495
|
+
Runtimes2["Php80rc"] = "php-8.0-rc";
|
|
99496
|
+
Runtimes2["Php81rc"] = "php-8.1-rc";
|
|
99497
|
+
Runtimes2["Php82rc"] = "php-8.2-rc";
|
|
99498
|
+
Runtimes2["Php83rc"] = "php-8.3-rc";
|
|
99499
|
+
Runtimes2["Php84rc"] = "php-8.4-rc";
|
|
99500
|
+
Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
|
|
99501
|
+
Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
|
|
99502
|
+
Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
|
|
99503
|
+
Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
|
|
99504
|
+
Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
|
|
99505
|
+
Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
|
|
99506
|
+
Runtimes2["Python38rc"] = "python-3.8-rc";
|
|
99507
|
+
Runtimes2["Python39rc"] = "python-3.9-rc";
|
|
99508
|
+
Runtimes2["Python310rc"] = "python-3.10-rc";
|
|
99509
|
+
Runtimes2["Python311rc"] = "python-3.11-rc";
|
|
99510
|
+
Runtimes2["Python312rc"] = "python-3.12-rc";
|
|
99511
|
+
Runtimes2["Python313rc"] = "python-3.13-rc";
|
|
99512
|
+
Runtimes2["Python314rc"] = "python-3.14-rc";
|
|
99513
|
+
Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
99514
|
+
Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
99515
|
+
Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
99516
|
+
Runtimes2["Deno140rc"] = "deno-1.40-rc";
|
|
99517
|
+
Runtimes2["Deno146rc"] = "deno-1.46-rc";
|
|
99518
|
+
Runtimes2["Deno20rc"] = "deno-2.0-rc";
|
|
99519
|
+
Runtimes2["Deno25rc"] = "deno-2.5-rc";
|
|
99520
|
+
Runtimes2["Deno26rc"] = "deno-2.6-rc";
|
|
99521
|
+
Runtimes2["Dart215rc"] = "dart-2.15-rc";
|
|
99522
|
+
Runtimes2["Dart216rc"] = "dart-2.16-rc";
|
|
99523
|
+
Runtimes2["Dart217rc"] = "dart-2.17-rc";
|
|
99524
|
+
Runtimes2["Dart218rc"] = "dart-2.18-rc";
|
|
99525
|
+
Runtimes2["Dart219rc"] = "dart-2.19-rc";
|
|
99526
|
+
Runtimes2["Dart30rc"] = "dart-3.0-rc";
|
|
99527
|
+
Runtimes2["Dart31rc"] = "dart-3.1-rc";
|
|
99528
|
+
Runtimes2["Dart33rc"] = "dart-3.3-rc";
|
|
99529
|
+
Runtimes2["Dart35rc"] = "dart-3.5-rc";
|
|
99530
|
+
Runtimes2["Dart38rc"] = "dart-3.8-rc";
|
|
99531
|
+
Runtimes2["Dart39rc"] = "dart-3.9-rc";
|
|
99532
|
+
Runtimes2["Dart310rc"] = "dart-3.10-rc";
|
|
99533
|
+
Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
99534
|
+
Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
99535
|
+
Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
99536
|
+
Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
|
|
99537
|
+
Runtimes2["Java80rc"] = "java-8.0-rc";
|
|
99538
|
+
Runtimes2["Java110rc"] = "java-11.0-rc";
|
|
99539
|
+
Runtimes2["Java170rc"] = "java-17.0-rc";
|
|
99540
|
+
Runtimes2["Java180rc"] = "java-18.0-rc";
|
|
99541
|
+
Runtimes2["Java210rc"] = "java-21.0-rc";
|
|
99542
|
+
Runtimes2["Java22rc"] = "java-22-rc";
|
|
99543
|
+
Runtimes2["Java25rc"] = "java-25-rc";
|
|
99544
|
+
Runtimes2["Swift55rc"] = "swift-5.5-rc";
|
|
99545
|
+
Runtimes2["Swift58rc"] = "swift-5.8-rc";
|
|
99546
|
+
Runtimes2["Swift59rc"] = "swift-5.9-rc";
|
|
99547
|
+
Runtimes2["Swift510rc"] = "swift-5.10-rc";
|
|
99548
|
+
Runtimes2["Swift62rc"] = "swift-6.2-rc";
|
|
99549
|
+
Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
99550
|
+
Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
99551
|
+
Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
99552
|
+
Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
99553
|
+
Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
99554
|
+
Runtimes2["Cpp17rc"] = "cpp-17-rc";
|
|
99555
|
+
Runtimes2["Cpp20rc"] = "cpp-20-rc";
|
|
99556
|
+
Runtimes2["Bun10rc"] = "bun-1.0-rc";
|
|
99557
|
+
Runtimes2["Bun11rc"] = "bun-1.1-rc";
|
|
99558
|
+
Runtimes2["Bun12rc"] = "bun-1.2-rc";
|
|
99559
|
+
Runtimes2["Bun13rc"] = "bun-1.3-rc";
|
|
99560
|
+
Runtimes2["Go123rc"] = "go-1.23-rc";
|
|
99561
|
+
Runtimes2["Go124rc"] = "go-1.24-rc";
|
|
99562
|
+
Runtimes2["Go125rc"] = "go-1.25-rc";
|
|
99563
|
+
Runtimes2["Go126rc"] = "go-1.26-rc";
|
|
99564
|
+
Runtimes2["Static1rc"] = "static-1-rc";
|
|
99565
|
+
Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
|
|
99566
|
+
Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
|
|
99567
|
+
Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
|
|
99568
|
+
Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
|
|
99569
|
+
Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
|
|
99570
|
+
Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
|
|
99651
99571
|
})(Runtimes || (Runtimes = {}));
|
|
99652
99572
|
var UseCases;
|
|
99653
99573
|
(function(UseCases2) {
|
|
@@ -100210,9 +100130,6 @@ var BuildRuntime;
|
|
|
100210
100130
|
BuildRuntime2["Pythonml311"] = "python-ml-3.11";
|
|
100211
100131
|
BuildRuntime2["Pythonml312"] = "python-ml-3.12";
|
|
100212
100132
|
BuildRuntime2["Pythonml313"] = "python-ml-3.13";
|
|
100213
|
-
BuildRuntime2["Deno121"] = "deno-1.21";
|
|
100214
|
-
BuildRuntime2["Deno124"] = "deno-1.24";
|
|
100215
|
-
BuildRuntime2["Deno135"] = "deno-1.35";
|
|
100216
100133
|
BuildRuntime2["Deno140"] = "deno-1.40";
|
|
100217
100134
|
BuildRuntime2["Deno146"] = "deno-1.46";
|
|
100218
100135
|
BuildRuntime2["Deno20"] = "deno-2.0";
|
|
@@ -100268,6 +100185,92 @@ var BuildRuntime;
|
|
|
100268
100185
|
BuildRuntime2["Flutter332"] = "flutter-3.32";
|
|
100269
100186
|
BuildRuntime2["Flutter335"] = "flutter-3.35";
|
|
100270
100187
|
BuildRuntime2["Flutter338"] = "flutter-3.38";
|
|
100188
|
+
BuildRuntime2["Node145rc"] = "node-14.5-rc";
|
|
100189
|
+
BuildRuntime2["Node160rc"] = "node-16.0-rc";
|
|
100190
|
+
BuildRuntime2["Node180rc"] = "node-18.0-rc";
|
|
100191
|
+
BuildRuntime2["Node190rc"] = "node-19.0-rc";
|
|
100192
|
+
BuildRuntime2["Node200rc"] = "node-20.0-rc";
|
|
100193
|
+
BuildRuntime2["Node210rc"] = "node-21.0-rc";
|
|
100194
|
+
BuildRuntime2["Node22rc"] = "node-22-rc";
|
|
100195
|
+
BuildRuntime2["Node23rc"] = "node-23-rc";
|
|
100196
|
+
BuildRuntime2["Node24rc"] = "node-24-rc";
|
|
100197
|
+
BuildRuntime2["Node25rc"] = "node-25-rc";
|
|
100198
|
+
BuildRuntime2["Php80rc"] = "php-8.0-rc";
|
|
100199
|
+
BuildRuntime2["Php81rc"] = "php-8.1-rc";
|
|
100200
|
+
BuildRuntime2["Php82rc"] = "php-8.2-rc";
|
|
100201
|
+
BuildRuntime2["Php83rc"] = "php-8.3-rc";
|
|
100202
|
+
BuildRuntime2["Php84rc"] = "php-8.4-rc";
|
|
100203
|
+
BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
100204
|
+
BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
100205
|
+
BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
100206
|
+
BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
100207
|
+
BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
100208
|
+
BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
100209
|
+
BuildRuntime2["Python38rc"] = "python-3.8-rc";
|
|
100210
|
+
BuildRuntime2["Python39rc"] = "python-3.9-rc";
|
|
100211
|
+
BuildRuntime2["Python310rc"] = "python-3.10-rc";
|
|
100212
|
+
BuildRuntime2["Python311rc"] = "python-3.11-rc";
|
|
100213
|
+
BuildRuntime2["Python312rc"] = "python-3.12-rc";
|
|
100214
|
+
BuildRuntime2["Python313rc"] = "python-3.13-rc";
|
|
100215
|
+
BuildRuntime2["Python314rc"] = "python-3.14-rc";
|
|
100216
|
+
BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
100217
|
+
BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
100218
|
+
BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
100219
|
+
BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
|
|
100220
|
+
BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
|
|
100221
|
+
BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
|
|
100222
|
+
BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
|
|
100223
|
+
BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
|
|
100224
|
+
BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
|
|
100225
|
+
BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
|
|
100226
|
+
BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
|
|
100227
|
+
BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
|
|
100228
|
+
BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
|
|
100229
|
+
BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
|
|
100230
|
+
BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
|
|
100231
|
+
BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
|
|
100232
|
+
BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
|
|
100233
|
+
BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
|
|
100234
|
+
BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
|
|
100235
|
+
BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
|
|
100236
|
+
BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
100237
|
+
BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
100238
|
+
BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
100239
|
+
BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
100240
|
+
BuildRuntime2["Java80rc"] = "java-8.0-rc";
|
|
100241
|
+
BuildRuntime2["Java110rc"] = "java-11.0-rc";
|
|
100242
|
+
BuildRuntime2["Java170rc"] = "java-17.0-rc";
|
|
100243
|
+
BuildRuntime2["Java180rc"] = "java-18.0-rc";
|
|
100244
|
+
BuildRuntime2["Java210rc"] = "java-21.0-rc";
|
|
100245
|
+
BuildRuntime2["Java22rc"] = "java-22-rc";
|
|
100246
|
+
BuildRuntime2["Java25rc"] = "java-25-rc";
|
|
100247
|
+
BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
|
|
100248
|
+
BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
|
|
100249
|
+
BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
|
|
100250
|
+
BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
|
|
100251
|
+
BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
|
|
100252
|
+
BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
100253
|
+
BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
100254
|
+
BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
100255
|
+
BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
100256
|
+
BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
100257
|
+
BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
|
|
100258
|
+
BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
|
|
100259
|
+
BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
|
|
100260
|
+
BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
|
|
100261
|
+
BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
|
|
100262
|
+
BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
|
|
100263
|
+
BuildRuntime2["Go123rc"] = "go-1.23-rc";
|
|
100264
|
+
BuildRuntime2["Go124rc"] = "go-1.24-rc";
|
|
100265
|
+
BuildRuntime2["Go125rc"] = "go-1.25-rc";
|
|
100266
|
+
BuildRuntime2["Go126rc"] = "go-1.26-rc";
|
|
100267
|
+
BuildRuntime2["Static1rc"] = "static-1-rc";
|
|
100268
|
+
BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
100269
|
+
BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
100270
|
+
BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
100271
|
+
BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
100272
|
+
BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
100273
|
+
BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
100271
100274
|
})(BuildRuntime || (BuildRuntime = {}));
|
|
100272
100275
|
var Adapter;
|
|
100273
100276
|
(function(Adapter2) {
|
|
@@ -100424,28 +100427,24 @@ var BillingPlanGroup;
|
|
|
100424
100427
|
BillingPlanGroup2["Pro"] = "pro";
|
|
100425
100428
|
BillingPlanGroup2["Scale"] = "scale";
|
|
100426
100429
|
})(BillingPlanGroup || (BillingPlanGroup = {}));
|
|
100427
|
-
var
|
|
100428
|
-
(function(
|
|
100429
|
-
|
|
100430
|
-
|
|
100431
|
-
|
|
100432
|
-
|
|
100433
|
-
|
|
100434
|
-
|
|
100435
|
-
|
|
100436
|
-
|
|
100437
|
-
})(
|
|
100438
|
-
var
|
|
100439
|
-
(function(
|
|
100440
|
-
|
|
100441
|
-
|
|
100442
|
-
|
|
100443
|
-
|
|
100444
|
-
|
|
100445
|
-
DomainTransferStatusStatus2["Completed"] = "completed";
|
|
100446
|
-
DomainTransferStatusStatus2["Cancelled"] = "cancelled";
|
|
100447
|
-
DomainTransferStatusStatus2["ServiceUnavailable"] = "service_unavailable";
|
|
100448
|
-
})(DomainTransferStatusStatus || (DomainTransferStatusStatus = {}));
|
|
100430
|
+
var DomainTransferStatusEnum;
|
|
100431
|
+
(function(DomainTransferStatusEnum2) {
|
|
100432
|
+
DomainTransferStatusEnum2["Transferrable"] = "transferrable";
|
|
100433
|
+
DomainTransferStatusEnum2["NotTransferrable"] = "not_transferrable";
|
|
100434
|
+
DomainTransferStatusEnum2["PendingOwner"] = "pending_owner";
|
|
100435
|
+
DomainTransferStatusEnum2["PendingAdmin"] = "pending_admin";
|
|
100436
|
+
DomainTransferStatusEnum2["PendingRegistry"] = "pending_registry";
|
|
100437
|
+
DomainTransferStatusEnum2["Completed"] = "completed";
|
|
100438
|
+
DomainTransferStatusEnum2["Cancelled"] = "cancelled";
|
|
100439
|
+
DomainTransferStatusEnum2["ServiceUnavailable"] = "service_unavailable";
|
|
100440
|
+
})(DomainTransferStatusEnum || (DomainTransferStatusEnum = {}));
|
|
100441
|
+
var DomainPurchaseStatus;
|
|
100442
|
+
(function(DomainPurchaseStatus2) {
|
|
100443
|
+
DomainPurchaseStatus2["Pending"] = "pending";
|
|
100444
|
+
DomainPurchaseStatus2["Succeeded"] = "succeeded";
|
|
100445
|
+
DomainPurchaseStatus2["Failed"] = "failed";
|
|
100446
|
+
DomainPurchaseStatus2["Cancelled"] = "cancelled";
|
|
100447
|
+
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
100449
100448
|
|
|
100450
100449
|
// lib/parser.ts
|
|
100451
100450
|
var import_chalk2 = __toESM(require_source(), 1);
|
|
@@ -100457,7 +100456,7 @@ var package_default = {
|
|
|
100457
100456
|
type: "module",
|
|
100458
100457
|
homepage: "https://appwrite.io/support",
|
|
100459
100458
|
description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
100460
|
-
version: "
|
|
100459
|
+
version: "16.0.0",
|
|
100461
100460
|
license: "BSD-3-Clause",
|
|
100462
100461
|
main: "dist/index.cjs",
|
|
100463
100462
|
module: "dist/index.js",
|
|
@@ -100501,7 +100500,7 @@ var package_default = {
|
|
|
100501
100500
|
"windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
|
|
100502
100501
|
},
|
|
100503
100502
|
dependencies: {
|
|
100504
|
-
"@appwrite.io/console": "
|
|
100503
|
+
"@appwrite.io/console": "*",
|
|
100505
100504
|
chalk: "4.1.2",
|
|
100506
100505
|
chokidar: "^3.6.0",
|
|
100507
100506
|
"cli-progress": "^3.12.0",
|
|
@@ -100752,14 +100751,18 @@ var commandDescriptions = {
|
|
|
100752
100751
|
messaging: `The messaging command allows you to manage topics and targets and send messages.`,
|
|
100753
100752
|
migrations: `The migrations command allows you to migrate data between services.`,
|
|
100754
100753
|
vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
|
|
100754
|
+
webhooks: `The webhooks command allows you to manage your project webhooks.`,
|
|
100755
100755
|
main: import_chalk2.default.redBright(`${logo}${description}`)
|
|
100756
100756
|
};
|
|
100757
100757
|
|
|
100758
100758
|
// lib/commands/utils/deployment.ts
|
|
100759
100759
|
var POLL_DEBOUNCE = 2e3;
|
|
100760
100760
|
async function packageDirectory(dirPath) {
|
|
100761
|
-
const tempFile = path.join(
|
|
100762
|
-
|
|
100761
|
+
const tempFile = path.join(
|
|
100762
|
+
os4.tmpdir(),
|
|
100763
|
+
`appwrite-deploy-${Date.now()}.tar.gz`
|
|
100764
|
+
);
|
|
100765
|
+
await Pn(
|
|
100763
100766
|
{
|
|
100764
100767
|
gzip: true,
|
|
100765
100768
|
file: tempFile,
|
|
@@ -100828,7 +100831,7 @@ async function downloadDeploymentCode(params) {
|
|
|
100828
100831
|
`Failed to write deployment archive to "${compressedFileName}": ${message}`
|
|
100829
100832
|
);
|
|
100830
100833
|
}
|
|
100831
|
-
|
|
100834
|
+
ao({
|
|
100832
100835
|
sync: true,
|
|
100833
100836
|
cwd: resourcePath,
|
|
100834
100837
|
file: compressedFileName,
|
|
@@ -104836,7 +104839,7 @@ var Pull = class {
|
|
|
104836
104839
|
return [];
|
|
104837
104840
|
}
|
|
104838
104841
|
const { functions: allFunctions } = await paginate(
|
|
104839
|
-
async () => new Functions(this.projectClient).list(),
|
|
104842
|
+
async (args) => new Functions(this.projectClient).list(args.queries),
|
|
104840
104843
|
{},
|
|
104841
104844
|
100,
|
|
104842
104845
|
"functions"
|
|
@@ -104920,7 +104923,7 @@ var Pull = class {
|
|
|
104920
104923
|
return [];
|
|
104921
104924
|
}
|
|
104922
104925
|
const { sites: fetchedSites } = await paginate(
|
|
104923
|
-
async () => new Sites(this.projectClient).list(),
|
|
104926
|
+
async (args) => new Sites(this.projectClient).list(args.queries),
|
|
104924
104927
|
{},
|
|
104925
104928
|
100,
|
|
104926
104929
|
"sites"
|
|
@@ -104998,7 +105001,7 @@ var Pull = class {
|
|
|
104998
105001
|
return { databases: [], collections: [] };
|
|
104999
105002
|
}
|
|
105000
105003
|
const { databases } = await paginate(
|
|
105001
|
-
async () => new Databases(this.projectClient).list(),
|
|
105004
|
+
async (args) => new Databases(this.projectClient).list(args.queries),
|
|
105002
105005
|
{},
|
|
105003
105006
|
100,
|
|
105004
105007
|
"databases"
|
|
@@ -105011,7 +105014,10 @@ var Pull = class {
|
|
|
105011
105014
|
);
|
|
105012
105015
|
allDatabases.push(database);
|
|
105013
105016
|
const { collections } = await paginate(
|
|
105014
|
-
async () => new Databases(this.projectClient).listCollections(
|
|
105017
|
+
async (args) => new Databases(this.projectClient).listCollections(
|
|
105018
|
+
database.$id,
|
|
105019
|
+
args.queries
|
|
105020
|
+
),
|
|
105015
105021
|
{},
|
|
105016
105022
|
100,
|
|
105017
105023
|
"collections"
|
|
@@ -105049,7 +105055,9 @@ var Pull = class {
|
|
|
105049
105055
|
return { databases: [], tables: [] };
|
|
105050
105056
|
}
|
|
105051
105057
|
const { databases } = await paginate(
|
|
105052
|
-
async () => new TablesDB(this.projectClient).list(
|
|
105058
|
+
async (args) => new TablesDB(this.projectClient).list({
|
|
105059
|
+
queries: args.queries
|
|
105060
|
+
}),
|
|
105053
105061
|
{},
|
|
105054
105062
|
100,
|
|
105055
105063
|
"databases"
|
|
@@ -105062,7 +105070,10 @@ var Pull = class {
|
|
|
105062
105070
|
);
|
|
105063
105071
|
allDatabases.push(filterBySchema(database, DatabaseSchema));
|
|
105064
105072
|
const { tables } = await paginate(
|
|
105065
|
-
async () => new TablesDB(this.projectClient).listTables(
|
|
105073
|
+
async (args) => new TablesDB(this.projectClient).listTables({
|
|
105074
|
+
databaseId: database.$id,
|
|
105075
|
+
queries: args.queries
|
|
105076
|
+
}),
|
|
105066
105077
|
{},
|
|
105067
105078
|
100,
|
|
105068
105079
|
"tables"
|
|
@@ -105104,7 +105115,7 @@ var Pull = class {
|
|
|
105104
105115
|
return [];
|
|
105105
105116
|
}
|
|
105106
105117
|
const { buckets } = await paginate(
|
|
105107
|
-
async () => new Storage(this.projectClient).listBuckets(),
|
|
105118
|
+
async (args) => new Storage(this.projectClient).listBuckets(args.queries),
|
|
105108
105119
|
{},
|
|
105109
105120
|
100,
|
|
105110
105121
|
"buckets"
|
|
@@ -105134,7 +105145,7 @@ var Pull = class {
|
|
|
105134
105145
|
return [];
|
|
105135
105146
|
}
|
|
105136
105147
|
const { teams } = await paginate(
|
|
105137
|
-
async () => new Teams(this.projectClient).list(),
|
|
105148
|
+
async (args) => new Teams(this.projectClient).list(args.queries),
|
|
105138
105149
|
{},
|
|
105139
105150
|
100,
|
|
105140
105151
|
"teams"
|
|
@@ -105160,7 +105171,7 @@ var Pull = class {
|
|
|
105160
105171
|
return [];
|
|
105161
105172
|
}
|
|
105162
105173
|
const { topics } = await paginate(
|
|
105163
|
-
async () => new Messaging(this.projectClient).listTopics(),
|
|
105174
|
+
async (args) => new Messaging(this.projectClient).listTopics(args.queries),
|
|
105164
105175
|
{},
|
|
105165
105176
|
100,
|
|
105166
105177
|
"topics"
|
|
@@ -105232,7 +105243,7 @@ var pullFunctions = async ({
|
|
|
105232
105243
|
return;
|
|
105233
105244
|
}
|
|
105234
105245
|
const functionsToCheck = cliConfig.all ? (await paginate(
|
|
105235
|
-
async () => (await getFunctionsService()).list(),
|
|
105246
|
+
async (args) => (await getFunctionsService()).list(args.queries),
|
|
105236
105247
|
{},
|
|
105237
105248
|
100,
|
|
105238
105249
|
"functions"
|
|
@@ -105270,7 +105281,7 @@ var pullSites = async ({
|
|
|
105270
105281
|
return;
|
|
105271
105282
|
}
|
|
105272
105283
|
const sitesToCheck = cliConfig.all ? (await paginate(
|
|
105273
|
-
async () => (await getSitesService()).list(),
|
|
105284
|
+
async (args) => (await getSitesService()).list(args.queries),
|
|
105274
105285
|
{},
|
|
105275
105286
|
100,
|
|
105276
105287
|
"sites"
|
|
@@ -106029,13 +106040,33 @@ ${supportsServerSide ? ` create: (databaseId: string, name: string, options?: {
|
|
|
106029
106040
|
requiresApiKey: supportsServerSide
|
|
106030
106041
|
});
|
|
106031
106042
|
}
|
|
106043
|
+
/**
|
|
106044
|
+
* Deduplicate entities by composite key ($id + databaseId).
|
|
106045
|
+
* Keeps the last occurrence to match addTable/addCollection semantics.
|
|
106046
|
+
*/
|
|
106047
|
+
dedupeEntities(entities) {
|
|
106048
|
+
const seen = /* @__PURE__ */ new Map();
|
|
106049
|
+
for (const entity of entities) {
|
|
106050
|
+
seen.set(`${entity.databaseId}:${entity.$id}`, entity);
|
|
106051
|
+
}
|
|
106052
|
+
return Array.from(seen.values());
|
|
106053
|
+
}
|
|
106032
106054
|
async generate(config2, options) {
|
|
106033
106055
|
if (!config2.projectId) {
|
|
106034
106056
|
throw new Error("Project ID is required in configuration");
|
|
106035
106057
|
}
|
|
106036
106058
|
const appwriteDep = options?.appwriteImportSource ?? getAppwriteDependency();
|
|
106037
106059
|
const importExt = options?.importExtension ?? detectImportExtension();
|
|
106038
|
-
const
|
|
106060
|
+
const dedupedConfig = { ...config2 };
|
|
106061
|
+
if (dedupedConfig.tables && dedupedConfig.tables.length > 0) {
|
|
106062
|
+
dedupedConfig.tables = this.dedupeEntities(dedupedConfig.tables);
|
|
106063
|
+
}
|
|
106064
|
+
if (dedupedConfig.collections && dedupedConfig.collections.length > 0) {
|
|
106065
|
+
dedupedConfig.collections = this.dedupeEntities(
|
|
106066
|
+
dedupedConfig.collections
|
|
106067
|
+
);
|
|
106068
|
+
}
|
|
106069
|
+
const hasEntities = dedupedConfig.tables && dedupedConfig.tables.length > 0 || dedupedConfig.collections && dedupedConfig.collections.length > 0;
|
|
106039
106070
|
if (!hasEntities) {
|
|
106040
106071
|
console.log(
|
|
106041
106072
|
"No tables or collections found in configuration. Skipping database generation."
|
|
@@ -106044,14 +106075,21 @@ ${supportsServerSide ? ` create: (databaseId: string, name: string, options?: {
|
|
|
106044
106075
|
dbContent: "// No tables or collections found in configuration\n",
|
|
106045
106076
|
typesContent: "// No tables or collections found in configuration\n",
|
|
106046
106077
|
indexContent: this.generateIndexFile(importExt),
|
|
106047
|
-
constantsContent: this.generateConstantsFile(
|
|
106078
|
+
constantsContent: this.generateConstantsFile(
|
|
106079
|
+
dedupedConfig,
|
|
106080
|
+
appwriteDep
|
|
106081
|
+
)
|
|
106048
106082
|
};
|
|
106049
106083
|
}
|
|
106050
106084
|
return {
|
|
106051
|
-
dbContent: this.generateDatabasesFile(
|
|
106052
|
-
|
|
106085
|
+
dbContent: this.generateDatabasesFile(
|
|
106086
|
+
dedupedConfig,
|
|
106087
|
+
importExt,
|
|
106088
|
+
appwriteDep
|
|
106089
|
+
),
|
|
106090
|
+
typesContent: this.generateTypesFile(dedupedConfig, appwriteDep),
|
|
106053
106091
|
indexContent: this.generateIndexFile(importExt),
|
|
106054
|
-
constantsContent: this.generateConstantsFile(
|
|
106092
|
+
constantsContent: this.generateConstantsFile(dedupedConfig, appwriteDep)
|
|
106055
106093
|
};
|
|
106056
106094
|
}
|
|
106057
106095
|
};
|