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
|
@@ -21962,9 +21962,9 @@ var require_stream_duplex = __commonJS({
|
|
|
21962
21962
|
}
|
|
21963
21963
|
});
|
|
21964
21964
|
|
|
21965
|
-
// node_modules/safe-buffer/index.js
|
|
21965
|
+
// node_modules/string_decoder/node_modules/safe-buffer/index.js
|
|
21966
21966
|
var require_safe_buffer = __commonJS({
|
|
21967
|
-
"node_modules/safe-buffer/index.js"(exports, module) {
|
|
21967
|
+
"node_modules/string_decoder/node_modules/safe-buffer/index.js"(exports, module) {
|
|
21968
21968
|
var buffer = __require("buffer");
|
|
21969
21969
|
var Buffer2 = buffer.Buffer;
|
|
21970
21970
|
function copyProps(src, dst) {
|
|
@@ -24524,16 +24524,16 @@ var require_base = __commonJS({
|
|
|
24524
24524
|
}),
|
|
24525
24525
|
share()
|
|
24526
24526
|
);
|
|
24527
|
-
const
|
|
24527
|
+
const success21 = validation.pipe(
|
|
24528
24528
|
filter((state) => state.isValid === true),
|
|
24529
24529
|
take(1)
|
|
24530
24530
|
);
|
|
24531
24531
|
const error49 = validation.pipe(
|
|
24532
24532
|
filter((state) => state.isValid !== true),
|
|
24533
|
-
takeUntil(
|
|
24533
|
+
takeUntil(success21)
|
|
24534
24534
|
);
|
|
24535
24535
|
return {
|
|
24536
|
-
success:
|
|
24536
|
+
success: success21,
|
|
24537
24537
|
error: error49
|
|
24538
24538
|
};
|
|
24539
24539
|
}
|
|
@@ -54838,8 +54838,8 @@ var require_bignumber = __commonJS({
|
|
|
54838
54838
|
y2.s = -b2;
|
|
54839
54839
|
return x.plus(y2);
|
|
54840
54840
|
}
|
|
54841
|
-
var
|
|
54842
|
-
if (!
|
|
54841
|
+
var xe = x.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x.c, yc = y2.c;
|
|
54842
|
+
if (!xe || !ye2) {
|
|
54843
54843
|
if (!xc || !yc) return xc ? (y2.s = -b2, y2) : new BigNumber2(yc ? x : NaN);
|
|
54844
54844
|
if (!xc[0] || !yc[0]) {
|
|
54845
54845
|
return yc[0] ? (y2.s = -b2, y2) : new BigNumber2(xc[0] ? x : (
|
|
@@ -54848,15 +54848,15 @@ var require_bignumber = __commonJS({
|
|
|
54848
54848
|
));
|
|
54849
54849
|
}
|
|
54850
54850
|
}
|
|
54851
|
-
|
|
54851
|
+
xe = bitFloor(xe);
|
|
54852
54852
|
ye2 = bitFloor(ye2);
|
|
54853
54853
|
xc = xc.slice();
|
|
54854
|
-
if (a =
|
|
54854
|
+
if (a = xe - ye2) {
|
|
54855
54855
|
if (xLTy = a < 0) {
|
|
54856
54856
|
a = -a;
|
|
54857
54857
|
t = xc;
|
|
54858
54858
|
} else {
|
|
54859
|
-
ye2 =
|
|
54859
|
+
ye2 = xe;
|
|
54860
54860
|
t = yc;
|
|
54861
54861
|
}
|
|
54862
54862
|
t.reverse();
|
|
@@ -54983,17 +54983,17 @@ var require_bignumber = __commonJS({
|
|
|
54983
54983
|
y2.s = -b2;
|
|
54984
54984
|
return x.minus(y2);
|
|
54985
54985
|
}
|
|
54986
|
-
var
|
|
54987
|
-
if (!
|
|
54986
|
+
var xe = x.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x.c, yc = y2.c;
|
|
54987
|
+
if (!xe || !ye2) {
|
|
54988
54988
|
if (!xc || !yc) return new BigNumber2(a / 0);
|
|
54989
54989
|
if (!xc[0] || !yc[0]) return yc[0] ? y2 : new BigNumber2(xc[0] ? x : a * 0);
|
|
54990
54990
|
}
|
|
54991
|
-
|
|
54991
|
+
xe = bitFloor(xe);
|
|
54992
54992
|
ye2 = bitFloor(ye2);
|
|
54993
54993
|
xc = xc.slice();
|
|
54994
|
-
if (a =
|
|
54994
|
+
if (a = xe - ye2) {
|
|
54995
54995
|
if (a > 0) {
|
|
54996
|
-
ye2 =
|
|
54996
|
+
ye2 = xe;
|
|
54997
54997
|
t = yc;
|
|
54998
54998
|
} else {
|
|
54999
54999
|
a = -a;
|
|
@@ -63459,14 +63459,14 @@ var require_base2 = __commonJS({
|
|
|
63459
63459
|
return { isValid: err };
|
|
63460
63460
|
});
|
|
63461
63461
|
}).share();
|
|
63462
|
-
var
|
|
63462
|
+
var success21 = validation.filter(function(state) {
|
|
63463
63463
|
return state.isValid === true;
|
|
63464
63464
|
}).take(1);
|
|
63465
63465
|
var error49 = validation.filter(function(state) {
|
|
63466
63466
|
return state.isValid !== true;
|
|
63467
|
-
}).takeUntil(
|
|
63467
|
+
}).takeUntil(success21);
|
|
63468
63468
|
return {
|
|
63469
|
-
success:
|
|
63469
|
+
success: success21,
|
|
63470
63470
|
error: error49
|
|
63471
63471
|
};
|
|
63472
63472
|
};
|
|
@@ -85465,7 +85465,7 @@ var package_default = {
|
|
|
85465
85465
|
type: "module",
|
|
85466
85466
|
homepage: "https://appwrite.io/support",
|
|
85467
85467
|
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",
|
|
85468
|
-
version: "
|
|
85468
|
+
version: "16.0.0",
|
|
85469
85469
|
license: "BSD-3-Clause",
|
|
85470
85470
|
main: "dist/index.cjs",
|
|
85471
85471
|
module: "dist/index.js",
|
|
@@ -85509,7 +85509,7 @@ var package_default = {
|
|
|
85509
85509
|
"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"
|
|
85510
85510
|
},
|
|
85511
85511
|
dependencies: {
|
|
85512
|
-
"@appwrite.io/console": "
|
|
85512
|
+
"@appwrite.io/console": "*",
|
|
85513
85513
|
chalk: "4.1.2",
|
|
85514
85514
|
chokidar: "^3.6.0",
|
|
85515
85515
|
"cli-progress": "^3.12.0",
|
|
@@ -99753,7 +99753,7 @@ import childProcess from "child_process";
|
|
|
99753
99753
|
// lib/constants.ts
|
|
99754
99754
|
var SDK_TITLE = "Appwrite";
|
|
99755
99755
|
var SDK_TITLE_LOWER = "appwrite";
|
|
99756
|
-
var SDK_VERSION = "
|
|
99756
|
+
var SDK_VERSION = "16.0.0";
|
|
99757
99757
|
var SDK_NAME = "Command Line";
|
|
99758
99758
|
var SDK_PLATFORM = "console";
|
|
99759
99759
|
var SDK_LANGUAGE = "cli";
|
|
@@ -100792,7 +100792,7 @@ var Client = class _Client {
|
|
|
100792
100792
|
"x-sdk-name": "Console",
|
|
100793
100793
|
"x-sdk-platform": "console",
|
|
100794
100794
|
"x-sdk-language": "web",
|
|
100795
|
-
"x-sdk-version": "
|
|
100795
|
+
"x-sdk-version": "6.0.0",
|
|
100796
100796
|
"X-Appwrite-Response-Format": "1.8.0"
|
|
100797
100797
|
};
|
|
100798
100798
|
this.realtime = {
|
|
@@ -102791,7 +102791,7 @@ var Account = class {
|
|
|
102791
102791
|
};
|
|
102792
102792
|
}
|
|
102793
102793
|
const provider = params.provider;
|
|
102794
|
-
const
|
|
102794
|
+
const success21 = params.success;
|
|
102795
102795
|
const failure = params.failure;
|
|
102796
102796
|
const scopes = params.scopes;
|
|
102797
102797
|
if (typeof provider === "undefined") {
|
|
@@ -102799,8 +102799,8 @@ var Account = class {
|
|
|
102799
102799
|
}
|
|
102800
102800
|
const apiPath = "/account/sessions/oauth2/{provider}".replace("{provider}", provider);
|
|
102801
102801
|
const payload = {};
|
|
102802
|
-
if (typeof
|
|
102803
|
-
payload["success"] =
|
|
102802
|
+
if (typeof success21 !== "undefined") {
|
|
102803
|
+
payload["success"] = success21;
|
|
102804
102804
|
}
|
|
102805
102805
|
if (typeof failure !== "undefined") {
|
|
102806
102806
|
payload["failure"] = failure;
|
|
@@ -103139,7 +103139,7 @@ var Account = class {
|
|
|
103139
103139
|
};
|
|
103140
103140
|
}
|
|
103141
103141
|
const provider = params.provider;
|
|
103142
|
-
const
|
|
103142
|
+
const success21 = params.success;
|
|
103143
103143
|
const failure = params.failure;
|
|
103144
103144
|
const scopes = params.scopes;
|
|
103145
103145
|
if (typeof provider === "undefined") {
|
|
@@ -103147,8 +103147,8 @@ var Account = class {
|
|
|
103147
103147
|
}
|
|
103148
103148
|
const apiPath = "/account/tokens/oauth2/{provider}".replace("{provider}", provider);
|
|
103149
103149
|
const payload = {};
|
|
103150
|
-
if (typeof
|
|
103151
|
-
payload["success"] =
|
|
103150
|
+
if (typeof success21 !== "undefined") {
|
|
103151
|
+
payload["success"] = success21;
|
|
103152
103152
|
}
|
|
103153
103153
|
if (typeof failure !== "undefined") {
|
|
103154
103154
|
payload["failure"] = failure;
|
|
@@ -116084,247 +116084,6 @@ var Projects = class {
|
|
|
116084
116084
|
};
|
|
116085
116085
|
return this.client.call("delete", uri, apiHeaders, payload);
|
|
116086
116086
|
}
|
|
116087
|
-
listWebhooks(paramsOrFirst, ...rest) {
|
|
116088
|
-
let params;
|
|
116089
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116090
|
-
params = paramsOrFirst || {};
|
|
116091
|
-
} else {
|
|
116092
|
-
params = {
|
|
116093
|
-
projectId: paramsOrFirst,
|
|
116094
|
-
total: rest[0]
|
|
116095
|
-
};
|
|
116096
|
-
}
|
|
116097
|
-
const projectId = params.projectId;
|
|
116098
|
-
const total = params.total;
|
|
116099
|
-
if (typeof projectId === "undefined") {
|
|
116100
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116101
|
-
}
|
|
116102
|
-
const apiPath = "/projects/{projectId}/webhooks".replace("{projectId}", projectId);
|
|
116103
|
-
const payload = {};
|
|
116104
|
-
if (typeof total !== "undefined") {
|
|
116105
|
-
payload["total"] = total;
|
|
116106
|
-
}
|
|
116107
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116108
|
-
const apiHeaders = {};
|
|
116109
|
-
return this.client.call("get", uri, apiHeaders, payload);
|
|
116110
|
-
}
|
|
116111
|
-
createWebhook(paramsOrFirst, ...rest) {
|
|
116112
|
-
let params;
|
|
116113
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116114
|
-
params = paramsOrFirst || {};
|
|
116115
|
-
} else {
|
|
116116
|
-
params = {
|
|
116117
|
-
projectId: paramsOrFirst,
|
|
116118
|
-
name: rest[0],
|
|
116119
|
-
events: rest[1],
|
|
116120
|
-
url: rest[2],
|
|
116121
|
-
security: rest[3],
|
|
116122
|
-
enabled: rest[4],
|
|
116123
|
-
httpUser: rest[5],
|
|
116124
|
-
httpPass: rest[6]
|
|
116125
|
-
};
|
|
116126
|
-
}
|
|
116127
|
-
const projectId = params.projectId;
|
|
116128
|
-
const name = params.name;
|
|
116129
|
-
const events = params.events;
|
|
116130
|
-
const url2 = params.url;
|
|
116131
|
-
const security = params.security;
|
|
116132
|
-
const enabled = params.enabled;
|
|
116133
|
-
const httpUser = params.httpUser;
|
|
116134
|
-
const httpPass = params.httpPass;
|
|
116135
|
-
if (typeof projectId === "undefined") {
|
|
116136
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116137
|
-
}
|
|
116138
|
-
if (typeof name === "undefined") {
|
|
116139
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
116140
|
-
}
|
|
116141
|
-
if (typeof events === "undefined") {
|
|
116142
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
116143
|
-
}
|
|
116144
|
-
if (typeof url2 === "undefined") {
|
|
116145
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
116146
|
-
}
|
|
116147
|
-
if (typeof security === "undefined") {
|
|
116148
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
116149
|
-
}
|
|
116150
|
-
const apiPath = "/projects/{projectId}/webhooks".replace("{projectId}", projectId);
|
|
116151
|
-
const payload = {};
|
|
116152
|
-
if (typeof name !== "undefined") {
|
|
116153
|
-
payload["name"] = name;
|
|
116154
|
-
}
|
|
116155
|
-
if (typeof enabled !== "undefined") {
|
|
116156
|
-
payload["enabled"] = enabled;
|
|
116157
|
-
}
|
|
116158
|
-
if (typeof events !== "undefined") {
|
|
116159
|
-
payload["events"] = events;
|
|
116160
|
-
}
|
|
116161
|
-
if (typeof url2 !== "undefined") {
|
|
116162
|
-
payload["url"] = url2;
|
|
116163
|
-
}
|
|
116164
|
-
if (typeof security !== "undefined") {
|
|
116165
|
-
payload["security"] = security;
|
|
116166
|
-
}
|
|
116167
|
-
if (typeof httpUser !== "undefined") {
|
|
116168
|
-
payload["httpUser"] = httpUser;
|
|
116169
|
-
}
|
|
116170
|
-
if (typeof httpPass !== "undefined") {
|
|
116171
|
-
payload["httpPass"] = httpPass;
|
|
116172
|
-
}
|
|
116173
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116174
|
-
const apiHeaders = {
|
|
116175
|
-
"content-type": "application/json"
|
|
116176
|
-
};
|
|
116177
|
-
return this.client.call("post", uri, apiHeaders, payload);
|
|
116178
|
-
}
|
|
116179
|
-
getWebhook(paramsOrFirst, ...rest) {
|
|
116180
|
-
let params;
|
|
116181
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116182
|
-
params = paramsOrFirst || {};
|
|
116183
|
-
} else {
|
|
116184
|
-
params = {
|
|
116185
|
-
projectId: paramsOrFirst,
|
|
116186
|
-
webhookId: rest[0]
|
|
116187
|
-
};
|
|
116188
|
-
}
|
|
116189
|
-
const projectId = params.projectId;
|
|
116190
|
-
const webhookId = params.webhookId;
|
|
116191
|
-
if (typeof projectId === "undefined") {
|
|
116192
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116193
|
-
}
|
|
116194
|
-
if (typeof webhookId === "undefined") {
|
|
116195
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
116196
|
-
}
|
|
116197
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
116198
|
-
const payload = {};
|
|
116199
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116200
|
-
const apiHeaders = {};
|
|
116201
|
-
return this.client.call("get", uri, apiHeaders, payload);
|
|
116202
|
-
}
|
|
116203
|
-
updateWebhook(paramsOrFirst, ...rest) {
|
|
116204
|
-
let params;
|
|
116205
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116206
|
-
params = paramsOrFirst || {};
|
|
116207
|
-
} else {
|
|
116208
|
-
params = {
|
|
116209
|
-
projectId: paramsOrFirst,
|
|
116210
|
-
webhookId: rest[0],
|
|
116211
|
-
name: rest[1],
|
|
116212
|
-
events: rest[2],
|
|
116213
|
-
url: rest[3],
|
|
116214
|
-
security: rest[4],
|
|
116215
|
-
enabled: rest[5],
|
|
116216
|
-
httpUser: rest[6],
|
|
116217
|
-
httpPass: rest[7]
|
|
116218
|
-
};
|
|
116219
|
-
}
|
|
116220
|
-
const projectId = params.projectId;
|
|
116221
|
-
const webhookId = params.webhookId;
|
|
116222
|
-
const name = params.name;
|
|
116223
|
-
const events = params.events;
|
|
116224
|
-
const url2 = params.url;
|
|
116225
|
-
const security = params.security;
|
|
116226
|
-
const enabled = params.enabled;
|
|
116227
|
-
const httpUser = params.httpUser;
|
|
116228
|
-
const httpPass = params.httpPass;
|
|
116229
|
-
if (typeof projectId === "undefined") {
|
|
116230
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116231
|
-
}
|
|
116232
|
-
if (typeof webhookId === "undefined") {
|
|
116233
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
116234
|
-
}
|
|
116235
|
-
if (typeof name === "undefined") {
|
|
116236
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
116237
|
-
}
|
|
116238
|
-
if (typeof events === "undefined") {
|
|
116239
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
116240
|
-
}
|
|
116241
|
-
if (typeof url2 === "undefined") {
|
|
116242
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
116243
|
-
}
|
|
116244
|
-
if (typeof security === "undefined") {
|
|
116245
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
116246
|
-
}
|
|
116247
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
116248
|
-
const payload = {};
|
|
116249
|
-
if (typeof name !== "undefined") {
|
|
116250
|
-
payload["name"] = name;
|
|
116251
|
-
}
|
|
116252
|
-
if (typeof enabled !== "undefined") {
|
|
116253
|
-
payload["enabled"] = enabled;
|
|
116254
|
-
}
|
|
116255
|
-
if (typeof events !== "undefined") {
|
|
116256
|
-
payload["events"] = events;
|
|
116257
|
-
}
|
|
116258
|
-
if (typeof url2 !== "undefined") {
|
|
116259
|
-
payload["url"] = url2;
|
|
116260
|
-
}
|
|
116261
|
-
if (typeof security !== "undefined") {
|
|
116262
|
-
payload["security"] = security;
|
|
116263
|
-
}
|
|
116264
|
-
if (typeof httpUser !== "undefined") {
|
|
116265
|
-
payload["httpUser"] = httpUser;
|
|
116266
|
-
}
|
|
116267
|
-
if (typeof httpPass !== "undefined") {
|
|
116268
|
-
payload["httpPass"] = httpPass;
|
|
116269
|
-
}
|
|
116270
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116271
|
-
const apiHeaders = {
|
|
116272
|
-
"content-type": "application/json"
|
|
116273
|
-
};
|
|
116274
|
-
return this.client.call("put", uri, apiHeaders, payload);
|
|
116275
|
-
}
|
|
116276
|
-
deleteWebhook(paramsOrFirst, ...rest) {
|
|
116277
|
-
let params;
|
|
116278
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116279
|
-
params = paramsOrFirst || {};
|
|
116280
|
-
} else {
|
|
116281
|
-
params = {
|
|
116282
|
-
projectId: paramsOrFirst,
|
|
116283
|
-
webhookId: rest[0]
|
|
116284
|
-
};
|
|
116285
|
-
}
|
|
116286
|
-
const projectId = params.projectId;
|
|
116287
|
-
const webhookId = params.webhookId;
|
|
116288
|
-
if (typeof projectId === "undefined") {
|
|
116289
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116290
|
-
}
|
|
116291
|
-
if (typeof webhookId === "undefined") {
|
|
116292
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
116293
|
-
}
|
|
116294
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
116295
|
-
const payload = {};
|
|
116296
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116297
|
-
const apiHeaders = {
|
|
116298
|
-
"content-type": "application/json"
|
|
116299
|
-
};
|
|
116300
|
-
return this.client.call("delete", uri, apiHeaders, payload);
|
|
116301
|
-
}
|
|
116302
|
-
updateWebhookSignature(paramsOrFirst, ...rest) {
|
|
116303
|
-
let params;
|
|
116304
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
116305
|
-
params = paramsOrFirst || {};
|
|
116306
|
-
} else {
|
|
116307
|
-
params = {
|
|
116308
|
-
projectId: paramsOrFirst,
|
|
116309
|
-
webhookId: rest[0]
|
|
116310
|
-
};
|
|
116311
|
-
}
|
|
116312
|
-
const projectId = params.projectId;
|
|
116313
|
-
const webhookId = params.webhookId;
|
|
116314
|
-
if (typeof projectId === "undefined") {
|
|
116315
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
116316
|
-
}
|
|
116317
|
-
if (typeof webhookId === "undefined") {
|
|
116318
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
116319
|
-
}
|
|
116320
|
-
const apiPath = "/projects/{projectId}/webhooks/{webhookId}/signature".replace("{projectId}", projectId).replace("{webhookId}", webhookId);
|
|
116321
|
-
const payload = {};
|
|
116322
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
116323
|
-
const apiHeaders = {
|
|
116324
|
-
"content-type": "application/json"
|
|
116325
|
-
};
|
|
116326
|
-
return this.client.call("patch", uri, apiHeaders, payload);
|
|
116327
|
-
}
|
|
116328
116087
|
};
|
|
116329
116088
|
var Proxy2 = class {
|
|
116330
116089
|
constructor(client2) {
|
|
@@ -123819,6 +123578,229 @@ var Vcs = class {
|
|
|
123819
123578
|
return this.client.call("delete", uri, apiHeaders, payload);
|
|
123820
123579
|
}
|
|
123821
123580
|
};
|
|
123581
|
+
var Webhooks = class {
|
|
123582
|
+
constructor(client2) {
|
|
123583
|
+
this.client = client2;
|
|
123584
|
+
}
|
|
123585
|
+
list(paramsOrFirst, ...rest) {
|
|
123586
|
+
let params;
|
|
123587
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123588
|
+
params = paramsOrFirst || {};
|
|
123589
|
+
} else {
|
|
123590
|
+
params = {
|
|
123591
|
+
queries: paramsOrFirst,
|
|
123592
|
+
total: rest[0]
|
|
123593
|
+
};
|
|
123594
|
+
}
|
|
123595
|
+
const queries = params.queries;
|
|
123596
|
+
const total = params.total;
|
|
123597
|
+
const apiPath = "/webhooks";
|
|
123598
|
+
const payload = {};
|
|
123599
|
+
if (typeof queries !== "undefined") {
|
|
123600
|
+
payload["queries"] = queries;
|
|
123601
|
+
}
|
|
123602
|
+
if (typeof total !== "undefined") {
|
|
123603
|
+
payload["total"] = total;
|
|
123604
|
+
}
|
|
123605
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123606
|
+
const apiHeaders = {};
|
|
123607
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
123608
|
+
}
|
|
123609
|
+
create(paramsOrFirst, ...rest) {
|
|
123610
|
+
let params;
|
|
123611
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123612
|
+
params = paramsOrFirst || {};
|
|
123613
|
+
} else {
|
|
123614
|
+
params = {
|
|
123615
|
+
webhookId: paramsOrFirst,
|
|
123616
|
+
url: rest[0],
|
|
123617
|
+
name: rest[1],
|
|
123618
|
+
events: rest[2],
|
|
123619
|
+
enabled: rest[3],
|
|
123620
|
+
security: rest[4],
|
|
123621
|
+
httpUser: rest[5],
|
|
123622
|
+
httpPass: rest[6]
|
|
123623
|
+
};
|
|
123624
|
+
}
|
|
123625
|
+
const webhookId = params.webhookId;
|
|
123626
|
+
const url2 = params.url;
|
|
123627
|
+
const name = params.name;
|
|
123628
|
+
const events = params.events;
|
|
123629
|
+
const enabled = params.enabled;
|
|
123630
|
+
const security = params.security;
|
|
123631
|
+
const httpUser = params.httpUser;
|
|
123632
|
+
const httpPass = params.httpPass;
|
|
123633
|
+
if (typeof webhookId === "undefined") {
|
|
123634
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
123635
|
+
}
|
|
123636
|
+
if (typeof url2 === "undefined") {
|
|
123637
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
123638
|
+
}
|
|
123639
|
+
if (typeof name === "undefined") {
|
|
123640
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
123641
|
+
}
|
|
123642
|
+
if (typeof events === "undefined") {
|
|
123643
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
123644
|
+
}
|
|
123645
|
+
const apiPath = "/webhooks";
|
|
123646
|
+
const payload = {};
|
|
123647
|
+
if (typeof webhookId !== "undefined") {
|
|
123648
|
+
payload["webhookId"] = webhookId;
|
|
123649
|
+
}
|
|
123650
|
+
if (typeof url2 !== "undefined") {
|
|
123651
|
+
payload["url"] = url2;
|
|
123652
|
+
}
|
|
123653
|
+
if (typeof name !== "undefined") {
|
|
123654
|
+
payload["name"] = name;
|
|
123655
|
+
}
|
|
123656
|
+
if (typeof events !== "undefined") {
|
|
123657
|
+
payload["events"] = events;
|
|
123658
|
+
}
|
|
123659
|
+
if (typeof enabled !== "undefined") {
|
|
123660
|
+
payload["enabled"] = enabled;
|
|
123661
|
+
}
|
|
123662
|
+
if (typeof security !== "undefined") {
|
|
123663
|
+
payload["security"] = security;
|
|
123664
|
+
}
|
|
123665
|
+
if (typeof httpUser !== "undefined") {
|
|
123666
|
+
payload["httpUser"] = httpUser;
|
|
123667
|
+
}
|
|
123668
|
+
if (typeof httpPass !== "undefined") {
|
|
123669
|
+
payload["httpPass"] = httpPass;
|
|
123670
|
+
}
|
|
123671
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123672
|
+
const apiHeaders = {
|
|
123673
|
+
"content-type": "application/json"
|
|
123674
|
+
};
|
|
123675
|
+
return this.client.call("post", uri, apiHeaders, payload);
|
|
123676
|
+
}
|
|
123677
|
+
get(paramsOrFirst) {
|
|
123678
|
+
let params;
|
|
123679
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123680
|
+
params = paramsOrFirst || {};
|
|
123681
|
+
} else {
|
|
123682
|
+
params = {
|
|
123683
|
+
webhookId: paramsOrFirst
|
|
123684
|
+
};
|
|
123685
|
+
}
|
|
123686
|
+
const webhookId = params.webhookId;
|
|
123687
|
+
if (typeof webhookId === "undefined") {
|
|
123688
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
123689
|
+
}
|
|
123690
|
+
const apiPath = "/webhooks/{webhookId}".replace("{webhookId}", webhookId);
|
|
123691
|
+
const payload = {};
|
|
123692
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123693
|
+
const apiHeaders = {};
|
|
123694
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
123695
|
+
}
|
|
123696
|
+
update(paramsOrFirst, ...rest) {
|
|
123697
|
+
let params;
|
|
123698
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123699
|
+
params = paramsOrFirst || {};
|
|
123700
|
+
} else {
|
|
123701
|
+
params = {
|
|
123702
|
+
webhookId: paramsOrFirst,
|
|
123703
|
+
name: rest[0],
|
|
123704
|
+
url: rest[1],
|
|
123705
|
+
events: rest[2],
|
|
123706
|
+
enabled: rest[3],
|
|
123707
|
+
security: rest[4],
|
|
123708
|
+
httpUser: rest[5],
|
|
123709
|
+
httpPass: rest[6]
|
|
123710
|
+
};
|
|
123711
|
+
}
|
|
123712
|
+
const webhookId = params.webhookId;
|
|
123713
|
+
const name = params.name;
|
|
123714
|
+
const url2 = params.url;
|
|
123715
|
+
const events = params.events;
|
|
123716
|
+
const enabled = params.enabled;
|
|
123717
|
+
const security = params.security;
|
|
123718
|
+
const httpUser = params.httpUser;
|
|
123719
|
+
const httpPass = params.httpPass;
|
|
123720
|
+
if (typeof webhookId === "undefined") {
|
|
123721
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
123722
|
+
}
|
|
123723
|
+
if (typeof name === "undefined") {
|
|
123724
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
123725
|
+
}
|
|
123726
|
+
if (typeof url2 === "undefined") {
|
|
123727
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
123728
|
+
}
|
|
123729
|
+
if (typeof events === "undefined") {
|
|
123730
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
123731
|
+
}
|
|
123732
|
+
const apiPath = "/webhooks/{webhookId}".replace("{webhookId}", webhookId);
|
|
123733
|
+
const payload = {};
|
|
123734
|
+
if (typeof name !== "undefined") {
|
|
123735
|
+
payload["name"] = name;
|
|
123736
|
+
}
|
|
123737
|
+
if (typeof url2 !== "undefined") {
|
|
123738
|
+
payload["url"] = url2;
|
|
123739
|
+
}
|
|
123740
|
+
if (typeof events !== "undefined") {
|
|
123741
|
+
payload["events"] = events;
|
|
123742
|
+
}
|
|
123743
|
+
if (typeof enabled !== "undefined") {
|
|
123744
|
+
payload["enabled"] = enabled;
|
|
123745
|
+
}
|
|
123746
|
+
if (typeof security !== "undefined") {
|
|
123747
|
+
payload["security"] = security;
|
|
123748
|
+
}
|
|
123749
|
+
if (typeof httpUser !== "undefined") {
|
|
123750
|
+
payload["httpUser"] = httpUser;
|
|
123751
|
+
}
|
|
123752
|
+
if (typeof httpPass !== "undefined") {
|
|
123753
|
+
payload["httpPass"] = httpPass;
|
|
123754
|
+
}
|
|
123755
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123756
|
+
const apiHeaders = {
|
|
123757
|
+
"content-type": "application/json"
|
|
123758
|
+
};
|
|
123759
|
+
return this.client.call("put", uri, apiHeaders, payload);
|
|
123760
|
+
}
|
|
123761
|
+
delete(paramsOrFirst) {
|
|
123762
|
+
let params;
|
|
123763
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123764
|
+
params = paramsOrFirst || {};
|
|
123765
|
+
} else {
|
|
123766
|
+
params = {
|
|
123767
|
+
webhookId: paramsOrFirst
|
|
123768
|
+
};
|
|
123769
|
+
}
|
|
123770
|
+
const webhookId = params.webhookId;
|
|
123771
|
+
if (typeof webhookId === "undefined") {
|
|
123772
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
123773
|
+
}
|
|
123774
|
+
const apiPath = "/webhooks/{webhookId}".replace("{webhookId}", webhookId);
|
|
123775
|
+
const payload = {};
|
|
123776
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123777
|
+
const apiHeaders = {
|
|
123778
|
+
"content-type": "application/json"
|
|
123779
|
+
};
|
|
123780
|
+
return this.client.call("delete", uri, apiHeaders, payload);
|
|
123781
|
+
}
|
|
123782
|
+
updateSignature(paramsOrFirst) {
|
|
123783
|
+
let params;
|
|
123784
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
123785
|
+
params = paramsOrFirst || {};
|
|
123786
|
+
} else {
|
|
123787
|
+
params = {
|
|
123788
|
+
webhookId: paramsOrFirst
|
|
123789
|
+
};
|
|
123790
|
+
}
|
|
123791
|
+
const webhookId = params.webhookId;
|
|
123792
|
+
if (typeof webhookId === "undefined") {
|
|
123793
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
123794
|
+
}
|
|
123795
|
+
const apiPath = "/webhooks/{webhookId}/signature".replace("{webhookId}", webhookId);
|
|
123796
|
+
const payload = {};
|
|
123797
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123798
|
+
const apiHeaders = {
|
|
123799
|
+
"content-type": "application/json"
|
|
123800
|
+
};
|
|
123801
|
+
return this.client.call("patch", uri, apiHeaders, payload);
|
|
123802
|
+
}
|
|
123803
|
+
};
|
|
123822
123804
|
var RealtimeCode;
|
|
123823
123805
|
(function(RealtimeCode2) {
|
|
123824
123806
|
RealtimeCode2[RealtimeCode2["NORMAL_CLOSURE"] = 1e3] = "NORMAL_CLOSURE";
|
|
@@ -124071,6 +124053,8 @@ var Scopes;
|
|
|
124071
124053
|
Scopes3["AssistantRead"] = "assistant.read";
|
|
124072
124054
|
Scopes3["TokensRead"] = "tokens.read";
|
|
124073
124055
|
Scopes3["TokensWrite"] = "tokens.write";
|
|
124056
|
+
Scopes3["WebhooksRead"] = "webhooks.read";
|
|
124057
|
+
Scopes3["WebhooksWrite"] = "webhooks.write";
|
|
124074
124058
|
Scopes3["PoliciesWrite"] = "policies.write";
|
|
124075
124059
|
Scopes3["PoliciesRead"] = "policies.read";
|
|
124076
124060
|
Scopes3["ArchivesRead"] = "archives.read";
|
|
@@ -124920,9 +124904,6 @@ var Runtime;
|
|
|
124920
124904
|
Runtime2["Pythonml311"] = "python-ml-3.11";
|
|
124921
124905
|
Runtime2["Pythonml312"] = "python-ml-3.12";
|
|
124922
124906
|
Runtime2["Pythonml313"] = "python-ml-3.13";
|
|
124923
|
-
Runtime2["Deno121"] = "deno-1.21";
|
|
124924
|
-
Runtime2["Deno124"] = "deno-1.24";
|
|
124925
|
-
Runtime2["Deno135"] = "deno-1.35";
|
|
124926
124907
|
Runtime2["Deno140"] = "deno-1.40";
|
|
124927
124908
|
Runtime2["Deno146"] = "deno-1.46";
|
|
124928
124909
|
Runtime2["Deno20"] = "deno-2.0";
|
|
@@ -124978,6 +124959,92 @@ var Runtime;
|
|
|
124978
124959
|
Runtime2["Flutter332"] = "flutter-3.32";
|
|
124979
124960
|
Runtime2["Flutter335"] = "flutter-3.35";
|
|
124980
124961
|
Runtime2["Flutter338"] = "flutter-3.38";
|
|
124962
|
+
Runtime2["Node145rc"] = "node-14.5-rc";
|
|
124963
|
+
Runtime2["Node160rc"] = "node-16.0-rc";
|
|
124964
|
+
Runtime2["Node180rc"] = "node-18.0-rc";
|
|
124965
|
+
Runtime2["Node190rc"] = "node-19.0-rc";
|
|
124966
|
+
Runtime2["Node200rc"] = "node-20.0-rc";
|
|
124967
|
+
Runtime2["Node210rc"] = "node-21.0-rc";
|
|
124968
|
+
Runtime2["Node22rc"] = "node-22-rc";
|
|
124969
|
+
Runtime2["Node23rc"] = "node-23-rc";
|
|
124970
|
+
Runtime2["Node24rc"] = "node-24-rc";
|
|
124971
|
+
Runtime2["Node25rc"] = "node-25-rc";
|
|
124972
|
+
Runtime2["Php80rc"] = "php-8.0-rc";
|
|
124973
|
+
Runtime2["Php81rc"] = "php-8.1-rc";
|
|
124974
|
+
Runtime2["Php82rc"] = "php-8.2-rc";
|
|
124975
|
+
Runtime2["Php83rc"] = "php-8.3-rc";
|
|
124976
|
+
Runtime2["Php84rc"] = "php-8.4-rc";
|
|
124977
|
+
Runtime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
124978
|
+
Runtime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
124979
|
+
Runtime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
124980
|
+
Runtime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
124981
|
+
Runtime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
124982
|
+
Runtime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
124983
|
+
Runtime2["Python38rc"] = "python-3.8-rc";
|
|
124984
|
+
Runtime2["Python39rc"] = "python-3.9-rc";
|
|
124985
|
+
Runtime2["Python310rc"] = "python-3.10-rc";
|
|
124986
|
+
Runtime2["Python311rc"] = "python-3.11-rc";
|
|
124987
|
+
Runtime2["Python312rc"] = "python-3.12-rc";
|
|
124988
|
+
Runtime2["Python313rc"] = "python-3.13-rc";
|
|
124989
|
+
Runtime2["Python314rc"] = "python-3.14-rc";
|
|
124990
|
+
Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
124991
|
+
Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
124992
|
+
Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
124993
|
+
Runtime2["Deno140rc"] = "deno-1.40-rc";
|
|
124994
|
+
Runtime2["Deno146rc"] = "deno-1.46-rc";
|
|
124995
|
+
Runtime2["Deno20rc"] = "deno-2.0-rc";
|
|
124996
|
+
Runtime2["Deno25rc"] = "deno-2.5-rc";
|
|
124997
|
+
Runtime2["Deno26rc"] = "deno-2.6-rc";
|
|
124998
|
+
Runtime2["Dart215rc"] = "dart-2.15-rc";
|
|
124999
|
+
Runtime2["Dart216rc"] = "dart-2.16-rc";
|
|
125000
|
+
Runtime2["Dart217rc"] = "dart-2.17-rc";
|
|
125001
|
+
Runtime2["Dart218rc"] = "dart-2.18-rc";
|
|
125002
|
+
Runtime2["Dart219rc"] = "dart-2.19-rc";
|
|
125003
|
+
Runtime2["Dart30rc"] = "dart-3.0-rc";
|
|
125004
|
+
Runtime2["Dart31rc"] = "dart-3.1-rc";
|
|
125005
|
+
Runtime2["Dart33rc"] = "dart-3.3-rc";
|
|
125006
|
+
Runtime2["Dart35rc"] = "dart-3.5-rc";
|
|
125007
|
+
Runtime2["Dart38rc"] = "dart-3.8-rc";
|
|
125008
|
+
Runtime2["Dart39rc"] = "dart-3.9-rc";
|
|
125009
|
+
Runtime2["Dart310rc"] = "dart-3.10-rc";
|
|
125010
|
+
Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
125011
|
+
Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
125012
|
+
Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
125013
|
+
Runtime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
125014
|
+
Runtime2["Java80rc"] = "java-8.0-rc";
|
|
125015
|
+
Runtime2["Java110rc"] = "java-11.0-rc";
|
|
125016
|
+
Runtime2["Java170rc"] = "java-17.0-rc";
|
|
125017
|
+
Runtime2["Java180rc"] = "java-18.0-rc";
|
|
125018
|
+
Runtime2["Java210rc"] = "java-21.0-rc";
|
|
125019
|
+
Runtime2["Java22rc"] = "java-22-rc";
|
|
125020
|
+
Runtime2["Java25rc"] = "java-25-rc";
|
|
125021
|
+
Runtime2["Swift55rc"] = "swift-5.5-rc";
|
|
125022
|
+
Runtime2["Swift58rc"] = "swift-5.8-rc";
|
|
125023
|
+
Runtime2["Swift59rc"] = "swift-5.9-rc";
|
|
125024
|
+
Runtime2["Swift510rc"] = "swift-5.10-rc";
|
|
125025
|
+
Runtime2["Swift62rc"] = "swift-6.2-rc";
|
|
125026
|
+
Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
125027
|
+
Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
125028
|
+
Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
125029
|
+
Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
125030
|
+
Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
125031
|
+
Runtime2["Cpp17rc"] = "cpp-17-rc";
|
|
125032
|
+
Runtime2["Cpp20rc"] = "cpp-20-rc";
|
|
125033
|
+
Runtime2["Bun10rc"] = "bun-1.0-rc";
|
|
125034
|
+
Runtime2["Bun11rc"] = "bun-1.1-rc";
|
|
125035
|
+
Runtime2["Bun12rc"] = "bun-1.2-rc";
|
|
125036
|
+
Runtime2["Bun13rc"] = "bun-1.3-rc";
|
|
125037
|
+
Runtime2["Go123rc"] = "go-1.23-rc";
|
|
125038
|
+
Runtime2["Go124rc"] = "go-1.24-rc";
|
|
125039
|
+
Runtime2["Go125rc"] = "go-1.25-rc";
|
|
125040
|
+
Runtime2["Go126rc"] = "go-1.26-rc";
|
|
125041
|
+
Runtime2["Static1rc"] = "static-1-rc";
|
|
125042
|
+
Runtime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
125043
|
+
Runtime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
125044
|
+
Runtime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
125045
|
+
Runtime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
125046
|
+
Runtime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
125047
|
+
Runtime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
124981
125048
|
})(Runtime || (Runtime = {}));
|
|
124982
125049
|
var Runtimes;
|
|
124983
125050
|
(function(Runtimes2) {
|
|
@@ -125012,9 +125079,6 @@ var Runtimes;
|
|
|
125012
125079
|
Runtimes2["Pythonml311"] = "python-ml-3.11";
|
|
125013
125080
|
Runtimes2["Pythonml312"] = "python-ml-3.12";
|
|
125014
125081
|
Runtimes2["Pythonml313"] = "python-ml-3.13";
|
|
125015
|
-
Runtimes2["Deno121"] = "deno-1.21";
|
|
125016
|
-
Runtimes2["Deno124"] = "deno-1.24";
|
|
125017
|
-
Runtimes2["Deno135"] = "deno-1.35";
|
|
125018
125082
|
Runtimes2["Deno140"] = "deno-1.40";
|
|
125019
125083
|
Runtimes2["Deno146"] = "deno-1.46";
|
|
125020
125084
|
Runtimes2["Deno20"] = "deno-2.0";
|
|
@@ -125070,6 +125134,92 @@ var Runtimes;
|
|
|
125070
125134
|
Runtimes2["Flutter332"] = "flutter-3.32";
|
|
125071
125135
|
Runtimes2["Flutter335"] = "flutter-3.35";
|
|
125072
125136
|
Runtimes2["Flutter338"] = "flutter-3.38";
|
|
125137
|
+
Runtimes2["Node145rc"] = "node-14.5-rc";
|
|
125138
|
+
Runtimes2["Node160rc"] = "node-16.0-rc";
|
|
125139
|
+
Runtimes2["Node180rc"] = "node-18.0-rc";
|
|
125140
|
+
Runtimes2["Node190rc"] = "node-19.0-rc";
|
|
125141
|
+
Runtimes2["Node200rc"] = "node-20.0-rc";
|
|
125142
|
+
Runtimes2["Node210rc"] = "node-21.0-rc";
|
|
125143
|
+
Runtimes2["Node22rc"] = "node-22-rc";
|
|
125144
|
+
Runtimes2["Node23rc"] = "node-23-rc";
|
|
125145
|
+
Runtimes2["Node24rc"] = "node-24-rc";
|
|
125146
|
+
Runtimes2["Node25rc"] = "node-25-rc";
|
|
125147
|
+
Runtimes2["Php80rc"] = "php-8.0-rc";
|
|
125148
|
+
Runtimes2["Php81rc"] = "php-8.1-rc";
|
|
125149
|
+
Runtimes2["Php82rc"] = "php-8.2-rc";
|
|
125150
|
+
Runtimes2["Php83rc"] = "php-8.3-rc";
|
|
125151
|
+
Runtimes2["Php84rc"] = "php-8.4-rc";
|
|
125152
|
+
Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
|
|
125153
|
+
Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
|
|
125154
|
+
Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
|
|
125155
|
+
Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
|
|
125156
|
+
Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
|
|
125157
|
+
Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
|
|
125158
|
+
Runtimes2["Python38rc"] = "python-3.8-rc";
|
|
125159
|
+
Runtimes2["Python39rc"] = "python-3.9-rc";
|
|
125160
|
+
Runtimes2["Python310rc"] = "python-3.10-rc";
|
|
125161
|
+
Runtimes2["Python311rc"] = "python-3.11-rc";
|
|
125162
|
+
Runtimes2["Python312rc"] = "python-3.12-rc";
|
|
125163
|
+
Runtimes2["Python313rc"] = "python-3.13-rc";
|
|
125164
|
+
Runtimes2["Python314rc"] = "python-3.14-rc";
|
|
125165
|
+
Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
125166
|
+
Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
125167
|
+
Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
125168
|
+
Runtimes2["Deno140rc"] = "deno-1.40-rc";
|
|
125169
|
+
Runtimes2["Deno146rc"] = "deno-1.46-rc";
|
|
125170
|
+
Runtimes2["Deno20rc"] = "deno-2.0-rc";
|
|
125171
|
+
Runtimes2["Deno25rc"] = "deno-2.5-rc";
|
|
125172
|
+
Runtimes2["Deno26rc"] = "deno-2.6-rc";
|
|
125173
|
+
Runtimes2["Dart215rc"] = "dart-2.15-rc";
|
|
125174
|
+
Runtimes2["Dart216rc"] = "dart-2.16-rc";
|
|
125175
|
+
Runtimes2["Dart217rc"] = "dart-2.17-rc";
|
|
125176
|
+
Runtimes2["Dart218rc"] = "dart-2.18-rc";
|
|
125177
|
+
Runtimes2["Dart219rc"] = "dart-2.19-rc";
|
|
125178
|
+
Runtimes2["Dart30rc"] = "dart-3.0-rc";
|
|
125179
|
+
Runtimes2["Dart31rc"] = "dart-3.1-rc";
|
|
125180
|
+
Runtimes2["Dart33rc"] = "dart-3.3-rc";
|
|
125181
|
+
Runtimes2["Dart35rc"] = "dart-3.5-rc";
|
|
125182
|
+
Runtimes2["Dart38rc"] = "dart-3.8-rc";
|
|
125183
|
+
Runtimes2["Dart39rc"] = "dart-3.9-rc";
|
|
125184
|
+
Runtimes2["Dart310rc"] = "dart-3.10-rc";
|
|
125185
|
+
Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
125186
|
+
Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
125187
|
+
Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
125188
|
+
Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
|
|
125189
|
+
Runtimes2["Java80rc"] = "java-8.0-rc";
|
|
125190
|
+
Runtimes2["Java110rc"] = "java-11.0-rc";
|
|
125191
|
+
Runtimes2["Java170rc"] = "java-17.0-rc";
|
|
125192
|
+
Runtimes2["Java180rc"] = "java-18.0-rc";
|
|
125193
|
+
Runtimes2["Java210rc"] = "java-21.0-rc";
|
|
125194
|
+
Runtimes2["Java22rc"] = "java-22-rc";
|
|
125195
|
+
Runtimes2["Java25rc"] = "java-25-rc";
|
|
125196
|
+
Runtimes2["Swift55rc"] = "swift-5.5-rc";
|
|
125197
|
+
Runtimes2["Swift58rc"] = "swift-5.8-rc";
|
|
125198
|
+
Runtimes2["Swift59rc"] = "swift-5.9-rc";
|
|
125199
|
+
Runtimes2["Swift510rc"] = "swift-5.10-rc";
|
|
125200
|
+
Runtimes2["Swift62rc"] = "swift-6.2-rc";
|
|
125201
|
+
Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
125202
|
+
Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
125203
|
+
Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
125204
|
+
Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
125205
|
+
Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
125206
|
+
Runtimes2["Cpp17rc"] = "cpp-17-rc";
|
|
125207
|
+
Runtimes2["Cpp20rc"] = "cpp-20-rc";
|
|
125208
|
+
Runtimes2["Bun10rc"] = "bun-1.0-rc";
|
|
125209
|
+
Runtimes2["Bun11rc"] = "bun-1.1-rc";
|
|
125210
|
+
Runtimes2["Bun12rc"] = "bun-1.2-rc";
|
|
125211
|
+
Runtimes2["Bun13rc"] = "bun-1.3-rc";
|
|
125212
|
+
Runtimes2["Go123rc"] = "go-1.23-rc";
|
|
125213
|
+
Runtimes2["Go124rc"] = "go-1.24-rc";
|
|
125214
|
+
Runtimes2["Go125rc"] = "go-1.25-rc";
|
|
125215
|
+
Runtimes2["Go126rc"] = "go-1.26-rc";
|
|
125216
|
+
Runtimes2["Static1rc"] = "static-1-rc";
|
|
125217
|
+
Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
|
|
125218
|
+
Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
|
|
125219
|
+
Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
|
|
125220
|
+
Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
|
|
125221
|
+
Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
|
|
125222
|
+
Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
|
|
125073
125223
|
})(Runtimes || (Runtimes = {}));
|
|
125074
125224
|
var UseCases;
|
|
125075
125225
|
(function(UseCases2) {
|
|
@@ -125632,9 +125782,6 @@ var BuildRuntime;
|
|
|
125632
125782
|
BuildRuntime2["Pythonml311"] = "python-ml-3.11";
|
|
125633
125783
|
BuildRuntime2["Pythonml312"] = "python-ml-3.12";
|
|
125634
125784
|
BuildRuntime2["Pythonml313"] = "python-ml-3.13";
|
|
125635
|
-
BuildRuntime2["Deno121"] = "deno-1.21";
|
|
125636
|
-
BuildRuntime2["Deno124"] = "deno-1.24";
|
|
125637
|
-
BuildRuntime2["Deno135"] = "deno-1.35";
|
|
125638
125785
|
BuildRuntime2["Deno140"] = "deno-1.40";
|
|
125639
125786
|
BuildRuntime2["Deno146"] = "deno-1.46";
|
|
125640
125787
|
BuildRuntime2["Deno20"] = "deno-2.0";
|
|
@@ -125690,6 +125837,92 @@ var BuildRuntime;
|
|
|
125690
125837
|
BuildRuntime2["Flutter332"] = "flutter-3.32";
|
|
125691
125838
|
BuildRuntime2["Flutter335"] = "flutter-3.35";
|
|
125692
125839
|
BuildRuntime2["Flutter338"] = "flutter-3.38";
|
|
125840
|
+
BuildRuntime2["Node145rc"] = "node-14.5-rc";
|
|
125841
|
+
BuildRuntime2["Node160rc"] = "node-16.0-rc";
|
|
125842
|
+
BuildRuntime2["Node180rc"] = "node-18.0-rc";
|
|
125843
|
+
BuildRuntime2["Node190rc"] = "node-19.0-rc";
|
|
125844
|
+
BuildRuntime2["Node200rc"] = "node-20.0-rc";
|
|
125845
|
+
BuildRuntime2["Node210rc"] = "node-21.0-rc";
|
|
125846
|
+
BuildRuntime2["Node22rc"] = "node-22-rc";
|
|
125847
|
+
BuildRuntime2["Node23rc"] = "node-23-rc";
|
|
125848
|
+
BuildRuntime2["Node24rc"] = "node-24-rc";
|
|
125849
|
+
BuildRuntime2["Node25rc"] = "node-25-rc";
|
|
125850
|
+
BuildRuntime2["Php80rc"] = "php-8.0-rc";
|
|
125851
|
+
BuildRuntime2["Php81rc"] = "php-8.1-rc";
|
|
125852
|
+
BuildRuntime2["Php82rc"] = "php-8.2-rc";
|
|
125853
|
+
BuildRuntime2["Php83rc"] = "php-8.3-rc";
|
|
125854
|
+
BuildRuntime2["Php84rc"] = "php-8.4-rc";
|
|
125855
|
+
BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
125856
|
+
BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
125857
|
+
BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
125858
|
+
BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
125859
|
+
BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
125860
|
+
BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
125861
|
+
BuildRuntime2["Python38rc"] = "python-3.8-rc";
|
|
125862
|
+
BuildRuntime2["Python39rc"] = "python-3.9-rc";
|
|
125863
|
+
BuildRuntime2["Python310rc"] = "python-3.10-rc";
|
|
125864
|
+
BuildRuntime2["Python311rc"] = "python-3.11-rc";
|
|
125865
|
+
BuildRuntime2["Python312rc"] = "python-3.12-rc";
|
|
125866
|
+
BuildRuntime2["Python313rc"] = "python-3.13-rc";
|
|
125867
|
+
BuildRuntime2["Python314rc"] = "python-3.14-rc";
|
|
125868
|
+
BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
125869
|
+
BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
125870
|
+
BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
125871
|
+
BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
|
|
125872
|
+
BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
|
|
125873
|
+
BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
|
|
125874
|
+
BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
|
|
125875
|
+
BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
|
|
125876
|
+
BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
|
|
125877
|
+
BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
|
|
125878
|
+
BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
|
|
125879
|
+
BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
|
|
125880
|
+
BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
|
|
125881
|
+
BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
|
|
125882
|
+
BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
|
|
125883
|
+
BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
|
|
125884
|
+
BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
|
|
125885
|
+
BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
|
|
125886
|
+
BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
|
|
125887
|
+
BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
|
|
125888
|
+
BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
125889
|
+
BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
125890
|
+
BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
125891
|
+
BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
125892
|
+
BuildRuntime2["Java80rc"] = "java-8.0-rc";
|
|
125893
|
+
BuildRuntime2["Java110rc"] = "java-11.0-rc";
|
|
125894
|
+
BuildRuntime2["Java170rc"] = "java-17.0-rc";
|
|
125895
|
+
BuildRuntime2["Java180rc"] = "java-18.0-rc";
|
|
125896
|
+
BuildRuntime2["Java210rc"] = "java-21.0-rc";
|
|
125897
|
+
BuildRuntime2["Java22rc"] = "java-22-rc";
|
|
125898
|
+
BuildRuntime2["Java25rc"] = "java-25-rc";
|
|
125899
|
+
BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
|
|
125900
|
+
BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
|
|
125901
|
+
BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
|
|
125902
|
+
BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
|
|
125903
|
+
BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
|
|
125904
|
+
BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
125905
|
+
BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
125906
|
+
BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
125907
|
+
BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
125908
|
+
BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
125909
|
+
BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
|
|
125910
|
+
BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
|
|
125911
|
+
BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
|
|
125912
|
+
BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
|
|
125913
|
+
BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
|
|
125914
|
+
BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
|
|
125915
|
+
BuildRuntime2["Go123rc"] = "go-1.23-rc";
|
|
125916
|
+
BuildRuntime2["Go124rc"] = "go-1.24-rc";
|
|
125917
|
+
BuildRuntime2["Go125rc"] = "go-1.25-rc";
|
|
125918
|
+
BuildRuntime2["Go126rc"] = "go-1.26-rc";
|
|
125919
|
+
BuildRuntime2["Static1rc"] = "static-1-rc";
|
|
125920
|
+
BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
125921
|
+
BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
125922
|
+
BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
125923
|
+
BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
125924
|
+
BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
125925
|
+
BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
125693
125926
|
})(BuildRuntime || (BuildRuntime = {}));
|
|
125694
125927
|
var Adapter;
|
|
125695
125928
|
(function(Adapter2) {
|
|
@@ -125846,28 +126079,24 @@ var BillingPlanGroup;
|
|
|
125846
126079
|
BillingPlanGroup2["Pro"] = "pro";
|
|
125847
126080
|
BillingPlanGroup2["Scale"] = "scale";
|
|
125848
126081
|
})(BillingPlanGroup || (BillingPlanGroup = {}));
|
|
125849
|
-
var
|
|
125850
|
-
(function(
|
|
125851
|
-
|
|
125852
|
-
|
|
125853
|
-
|
|
125854
|
-
|
|
125855
|
-
|
|
125856
|
-
|
|
125857
|
-
|
|
125858
|
-
|
|
125859
|
-
})(
|
|
125860
|
-
var
|
|
125861
|
-
(function(
|
|
125862
|
-
|
|
125863
|
-
|
|
125864
|
-
|
|
125865
|
-
|
|
125866
|
-
|
|
125867
|
-
DomainTransferStatusStatus2["Completed"] = "completed";
|
|
125868
|
-
DomainTransferStatusStatus2["Cancelled"] = "cancelled";
|
|
125869
|
-
DomainTransferStatusStatus2["ServiceUnavailable"] = "service_unavailable";
|
|
125870
|
-
})(DomainTransferStatusStatus || (DomainTransferStatusStatus = {}));
|
|
126082
|
+
var DomainTransferStatusEnum;
|
|
126083
|
+
(function(DomainTransferStatusEnum2) {
|
|
126084
|
+
DomainTransferStatusEnum2["Transferrable"] = "transferrable";
|
|
126085
|
+
DomainTransferStatusEnum2["NotTransferrable"] = "not_transferrable";
|
|
126086
|
+
DomainTransferStatusEnum2["PendingOwner"] = "pending_owner";
|
|
126087
|
+
DomainTransferStatusEnum2["PendingAdmin"] = "pending_admin";
|
|
126088
|
+
DomainTransferStatusEnum2["PendingRegistry"] = "pending_registry";
|
|
126089
|
+
DomainTransferStatusEnum2["Completed"] = "completed";
|
|
126090
|
+
DomainTransferStatusEnum2["Cancelled"] = "cancelled";
|
|
126091
|
+
DomainTransferStatusEnum2["ServiceUnavailable"] = "service_unavailable";
|
|
126092
|
+
})(DomainTransferStatusEnum || (DomainTransferStatusEnum = {}));
|
|
126093
|
+
var DomainPurchaseStatus;
|
|
126094
|
+
(function(DomainPurchaseStatus2) {
|
|
126095
|
+
DomainPurchaseStatus2["Pending"] = "pending";
|
|
126096
|
+
DomainPurchaseStatus2["Succeeded"] = "succeeded";
|
|
126097
|
+
DomainPurchaseStatus2["Failed"] = "failed";
|
|
126098
|
+
DomainPurchaseStatus2["Cancelled"] = "cancelled";
|
|
126099
|
+
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
125871
126100
|
|
|
125872
126101
|
// lib/parser.ts
|
|
125873
126102
|
var { description } = package_default;
|
|
@@ -126115,6 +126344,7 @@ var commandDescriptions = {
|
|
|
126115
126344
|
messaging: `The messaging command allows you to manage topics and targets and send messages.`,
|
|
126116
126345
|
migrations: `The migrations command allows you to migrate data between services.`,
|
|
126117
126346
|
vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
|
|
126347
|
+
webhooks: `The webhooks command allows you to manage your project webhooks.`,
|
|
126118
126348
|
main: import_chalk.default.redBright(`${logo}${description}`)
|
|
126119
126349
|
};
|
|
126120
126350
|
|
|
@@ -128029,85 +128259,85 @@ import os6 from "os";
|
|
|
128029
128259
|
import path2 from "path";
|
|
128030
128260
|
|
|
128031
128261
|
// node_modules/tar/dist/esm/index.min.js
|
|
128032
|
-
import
|
|
128262
|
+
import Ur from "events";
|
|
128033
128263
|
import I from "fs";
|
|
128034
|
-
import { EventEmitter as
|
|
128035
|
-
import
|
|
128036
|
-
import { StringDecoder as
|
|
128037
|
-
import
|
|
128264
|
+
import { EventEmitter as Ti } from "node:events";
|
|
128265
|
+
import Ns from "node:stream";
|
|
128266
|
+
import { StringDecoder as Dr } from "node:string_decoder";
|
|
128267
|
+
import nr from "node:path";
|
|
128038
128268
|
import Vt from "node:fs";
|
|
128039
|
-
import { dirname as
|
|
128040
|
-
import { EventEmitter as
|
|
128041
|
-
import
|
|
128042
|
-
import { Buffer as
|
|
128043
|
-
import * as
|
|
128044
|
-
import
|
|
128269
|
+
import { dirname as Rn, parse as bn } from "path";
|
|
128270
|
+
import { EventEmitter as En } from "events";
|
|
128271
|
+
import Mi from "assert";
|
|
128272
|
+
import { Buffer as gt } from "buffer";
|
|
128273
|
+
import * as ks from "zlib";
|
|
128274
|
+
import Zr from "zlib";
|
|
128045
128275
|
import { posix as Zt } from "node:path";
|
|
128046
|
-
import { basename as
|
|
128047
|
-
import
|
|
128276
|
+
import { basename as fn } from "node:path";
|
|
128277
|
+
import fi from "fs";
|
|
128048
128278
|
import $ from "fs";
|
|
128049
|
-
import
|
|
128050
|
-
import { win32 as
|
|
128051
|
-
import
|
|
128052
|
-
import
|
|
128053
|
-
import
|
|
128054
|
-
import { randomBytes as
|
|
128279
|
+
import $s from "path";
|
|
128280
|
+
import { win32 as Tn } from "node:path";
|
|
128281
|
+
import sr from "path";
|
|
128282
|
+
import xr from "node:fs";
|
|
128283
|
+
import eo from "node:assert";
|
|
128284
|
+
import { randomBytes as Tr } from "node:crypto";
|
|
128055
128285
|
import u from "node:fs";
|
|
128056
128286
|
import R from "node:path";
|
|
128057
|
-
import
|
|
128058
|
-
import
|
|
128287
|
+
import ar from "fs";
|
|
128288
|
+
import mi from "node:fs";
|
|
128059
128289
|
import Ee from "node:path";
|
|
128060
128290
|
import k from "node:fs";
|
|
128061
|
-
import
|
|
128062
|
-
import
|
|
128063
|
-
import { join as
|
|
128291
|
+
import Xn from "node:fs/promises";
|
|
128292
|
+
import pi from "node:path";
|
|
128293
|
+
import { join as pr } from "node:path";
|
|
128064
128294
|
import v from "node:fs";
|
|
128065
|
-
import
|
|
128066
|
-
var
|
|
128295
|
+
import Lr from "node:path";
|
|
128296
|
+
var Nr = Object.defineProperty;
|
|
128067
128297
|
var Ar = (s3, t) => {
|
|
128068
|
-
for (var e in t)
|
|
128298
|
+
for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
|
|
128069
128299
|
};
|
|
128070
|
-
var
|
|
128071
|
-
var
|
|
128072
|
-
var
|
|
128073
|
-
var
|
|
128300
|
+
var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
|
|
128301
|
+
var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Cr(s3) || Fr(s3));
|
|
128302
|
+
var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
|
|
128303
|
+
var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
|
|
128074
128304
|
var q = /* @__PURE__ */ Symbol("EOF");
|
|
128075
128305
|
var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
|
|
128076
128306
|
var rt = /* @__PURE__ */ Symbol("emittedEnd");
|
|
128077
|
-
var
|
|
128307
|
+
var Le = /* @__PURE__ */ Symbol("emittingEnd");
|
|
128078
128308
|
var jt = /* @__PURE__ */ Symbol("emittedError");
|
|
128079
|
-
var
|
|
128080
|
-
var
|
|
128081
|
-
var
|
|
128082
|
-
var
|
|
128309
|
+
var Ne = /* @__PURE__ */ Symbol("closed");
|
|
128310
|
+
var Ts = /* @__PURE__ */ Symbol("read");
|
|
128311
|
+
var Ae = /* @__PURE__ */ Symbol("flush");
|
|
128312
|
+
var xs = /* @__PURE__ */ Symbol("flushChunk");
|
|
128083
128313
|
var z2 = /* @__PURE__ */ Symbol("encoding");
|
|
128084
128314
|
var Mt = /* @__PURE__ */ Symbol("decoder");
|
|
128085
128315
|
var b = /* @__PURE__ */ Symbol("flowing");
|
|
128086
128316
|
var Qt = /* @__PURE__ */ Symbol("paused");
|
|
128087
128317
|
var Bt = /* @__PURE__ */ Symbol("resume");
|
|
128088
|
-
var
|
|
128089
|
-
var
|
|
128090
|
-
var
|
|
128091
|
-
var
|
|
128318
|
+
var _ = /* @__PURE__ */ Symbol("buffer");
|
|
128319
|
+
var A = /* @__PURE__ */ Symbol("pipes");
|
|
128320
|
+
var g = /* @__PURE__ */ Symbol("bufferLength");
|
|
128321
|
+
var yi = /* @__PURE__ */ Symbol("bufferPush");
|
|
128092
128322
|
var De = /* @__PURE__ */ Symbol("bufferShift");
|
|
128093
128323
|
var L = /* @__PURE__ */ Symbol("objectMode");
|
|
128094
128324
|
var w = /* @__PURE__ */ Symbol("destroyed");
|
|
128095
|
-
var
|
|
128096
|
-
var
|
|
128097
|
-
var
|
|
128098
|
-
var
|
|
128325
|
+
var Ri = /* @__PURE__ */ Symbol("error");
|
|
128326
|
+
var bi = /* @__PURE__ */ Symbol("emitData");
|
|
128327
|
+
var Ls = /* @__PURE__ */ Symbol("emitEnd");
|
|
128328
|
+
var _i = /* @__PURE__ */ Symbol("emitEnd2");
|
|
128099
128329
|
var Z = /* @__PURE__ */ Symbol("async");
|
|
128100
128330
|
var gi = /* @__PURE__ */ Symbol("abort");
|
|
128101
|
-
var
|
|
128331
|
+
var Ie = /* @__PURE__ */ Symbol("aborted");
|
|
128102
128332
|
var Jt = /* @__PURE__ */ Symbol("signal");
|
|
128103
128333
|
var yt = /* @__PURE__ */ Symbol("dataListeners");
|
|
128104
128334
|
var C = /* @__PURE__ */ Symbol("discarded");
|
|
128105
128335
|
var te = (s3) => Promise.resolve().then(s3);
|
|
128106
|
-
var
|
|
128107
|
-
var
|
|
128108
|
-
var
|
|
128109
|
-
var
|
|
128110
|
-
var
|
|
128336
|
+
var kr = (s3) => s3();
|
|
128337
|
+
var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
|
|
128338
|
+
var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
|
|
128339
|
+
var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
|
|
128340
|
+
var Ce = class {
|
|
128111
128341
|
src;
|
|
128112
128342
|
dest;
|
|
128113
128343
|
opts;
|
|
@@ -128124,7 +128354,7 @@ var Ie = class {
|
|
|
128124
128354
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
128125
128355
|
}
|
|
128126
128356
|
};
|
|
128127
|
-
var
|
|
128357
|
+
var Oi = class extends Ce {
|
|
128128
128358
|
unpipe() {
|
|
128129
128359
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
128130
128360
|
}
|
|
@@ -128132,26 +128362,26 @@ var _i = class extends Ie {
|
|
|
128132
128362
|
super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
|
|
128133
128363
|
}
|
|
128134
128364
|
};
|
|
128135
|
-
var
|
|
128136
|
-
var
|
|
128137
|
-
var
|
|
128365
|
+
var Pr = (s3) => !!s3.objectMode;
|
|
128366
|
+
var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
|
|
128367
|
+
var D = class extends Ti {
|
|
128138
128368
|
[b] = false;
|
|
128139
128369
|
[Qt] = false;
|
|
128140
|
-
[
|
|
128141
|
-
[
|
|
128370
|
+
[A] = [];
|
|
128371
|
+
[_] = [];
|
|
128142
128372
|
[L];
|
|
128143
128373
|
[z2];
|
|
128144
128374
|
[Z];
|
|
128145
128375
|
[Mt];
|
|
128146
128376
|
[q] = false;
|
|
128147
128377
|
[rt] = false;
|
|
128148
|
-
[xe] = false;
|
|
128149
128378
|
[Le] = false;
|
|
128379
|
+
[Ne] = false;
|
|
128150
128380
|
[jt] = null;
|
|
128151
|
-
[
|
|
128381
|
+
[g] = 0;
|
|
128152
128382
|
[w] = false;
|
|
128153
128383
|
[Jt];
|
|
128154
|
-
[
|
|
128384
|
+
[Ie] = false;
|
|
128155
128385
|
[yt] = 0;
|
|
128156
128386
|
[C] = false;
|
|
128157
128387
|
writable = true;
|
|
@@ -128159,12 +128389,12 @@ var A = class extends Oi {
|
|
|
128159
128389
|
constructor(...t) {
|
|
128160
128390
|
let e = t[0] || {};
|
|
128161
128391
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
128162
|
-
|
|
128392
|
+
Pr(e) ? (this[L] = true, this[z2] = null) : zr(e) ? (this[z2] = e.encoding, this[L] = false) : (this[L] = false, this[z2] = null), this[Z] = !!e.async, this[Mt] = this[z2] ? new Dr(this[z2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
|
|
128163
128393
|
let { signal: i } = e;
|
|
128164
128394
|
i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
|
|
128165
128395
|
}
|
|
128166
128396
|
get bufferLength() {
|
|
128167
|
-
return this[
|
|
128397
|
+
return this[g];
|
|
128168
128398
|
}
|
|
128169
128399
|
get encoding() {
|
|
128170
128400
|
return this[z2];
|
|
@@ -128188,46 +128418,46 @@ var A = class extends Oi {
|
|
|
128188
128418
|
this[Z] = this[Z] || !!t;
|
|
128189
128419
|
}
|
|
128190
128420
|
[gi]() {
|
|
128191
|
-
this[
|
|
128421
|
+
this[Ie] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
|
|
128192
128422
|
}
|
|
128193
128423
|
get aborted() {
|
|
128194
|
-
return this[
|
|
128424
|
+
return this[Ie];
|
|
128195
128425
|
}
|
|
128196
128426
|
set aborted(t) {
|
|
128197
128427
|
}
|
|
128198
128428
|
write(t, e, i) {
|
|
128199
|
-
if (this[
|
|
128429
|
+
if (this[Ie]) return false;
|
|
128200
128430
|
if (this[q]) throw new Error("write after end");
|
|
128201
128431
|
if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
128202
128432
|
typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
|
|
128203
|
-
let r = this[Z] ? te :
|
|
128433
|
+
let r = this[Z] ? te : kr;
|
|
128204
128434
|
if (!this[L] && !Buffer.isBuffer(t)) {
|
|
128205
|
-
if (
|
|
128206
|
-
else if (
|
|
128435
|
+
if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
128436
|
+
else if (Mr(t)) t = Buffer.from(t);
|
|
128207
128437
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
128208
128438
|
}
|
|
128209
|
-
return this[L] ? (this[b] && this[
|
|
128439
|
+
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[z2] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z2] && (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]);
|
|
128210
128440
|
}
|
|
128211
128441
|
read(t) {
|
|
128212
128442
|
if (this[w]) return null;
|
|
128213
|
-
if (this[C] = false, this[
|
|
128214
|
-
this[L] && (t = null), this[
|
|
128215
|
-
let e = this[
|
|
128443
|
+
if (this[C] = false, this[g] === 0 || t === 0 || t && t > this[g]) return this[j](), null;
|
|
128444
|
+
this[L] && (t = null), this[_].length > 1 && !this[L] && (this[_] = [this[z2] ? this[_].join("") : Buffer.concat(this[_], this[g])]);
|
|
128445
|
+
let e = this[Ts](t || null, this[_][0]);
|
|
128216
128446
|
return this[j](), e;
|
|
128217
128447
|
}
|
|
128218
|
-
[
|
|
128448
|
+
[Ts](t, e) {
|
|
128219
128449
|
if (this[L]) this[De]();
|
|
128220
128450
|
else {
|
|
128221
128451
|
let i = e;
|
|
128222
|
-
t === i.length || t === null ? this[De]() : typeof i == "string" ? (this[
|
|
128452
|
+
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);
|
|
128223
128453
|
}
|
|
128224
|
-
return this.emit("data", e), !this[
|
|
128454
|
+
return this.emit("data", e), !this[_].length && !this[q] && this.emit("drain"), e;
|
|
128225
128455
|
}
|
|
128226
128456
|
end(t, e, i) {
|
|
128227
128457
|
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;
|
|
128228
128458
|
}
|
|
128229
128459
|
[Bt]() {
|
|
128230
|
-
this[w] || (!this[yt] && !this[
|
|
128460
|
+
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"));
|
|
128231
128461
|
}
|
|
128232
128462
|
resume() {
|
|
128233
128463
|
return this[Bt]();
|
|
@@ -128244,39 +128474,39 @@ var A = class extends Oi {
|
|
|
128244
128474
|
get paused() {
|
|
128245
128475
|
return this[Qt];
|
|
128246
128476
|
}
|
|
128247
|
-
[
|
|
128248
|
-
this[L] ? this[
|
|
128477
|
+
[yi](t) {
|
|
128478
|
+
this[L] ? this[g] += 1 : this[g] += t.length, this[_].push(t);
|
|
128249
128479
|
}
|
|
128250
128480
|
[De]() {
|
|
128251
|
-
return this[L] ? this[
|
|
128481
|
+
return this[L] ? this[g] -= 1 : this[g] -= this[_][0].length, this[_].shift();
|
|
128252
128482
|
}
|
|
128253
|
-
[
|
|
128483
|
+
[Ae](t = false) {
|
|
128254
128484
|
do
|
|
128255
128485
|
;
|
|
128256
|
-
while (this[
|
|
128257
|
-
!t && !this[
|
|
128486
|
+
while (this[xs](this[De]()) && this[_].length);
|
|
128487
|
+
!t && !this[_].length && !this[q] && this.emit("drain");
|
|
128258
128488
|
}
|
|
128259
|
-
[
|
|
128489
|
+
[xs](t) {
|
|
128260
128490
|
return this.emit("data", t), this[b];
|
|
128261
128491
|
}
|
|
128262
128492
|
pipe(t, e) {
|
|
128263
128493
|
if (this[w]) return t;
|
|
128264
128494
|
this[C] = false;
|
|
128265
128495
|
let i = this[rt];
|
|
128266
|
-
return e = e || {}, t ===
|
|
128496
|
+
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;
|
|
128267
128497
|
}
|
|
128268
128498
|
unpipe(t) {
|
|
128269
|
-
let e = this[
|
|
128270
|
-
e && (this[
|
|
128499
|
+
let e = this[A].find((i) => i.dest === t);
|
|
128500
|
+
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());
|
|
128271
128501
|
}
|
|
128272
128502
|
addListener(t, e) {
|
|
128273
128503
|
return this.on(t, e);
|
|
128274
128504
|
}
|
|
128275
128505
|
on(t, e) {
|
|
128276
128506
|
let i = super.on(t, e);
|
|
128277
|
-
if (t === "data") this[C] = false, this[yt]++, !this[
|
|
128278
|
-
else if (t === "readable" && this[
|
|
128279
|
-
else if (
|
|
128507
|
+
if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
|
|
128508
|
+
else if (t === "readable" && this[g] !== 0) super.emit("readable");
|
|
128509
|
+
else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
|
|
128280
128510
|
else if (t === "error" && this[jt]) {
|
|
128281
128511
|
let r = e;
|
|
128282
128512
|
this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
|
|
@@ -128288,29 +128518,29 @@ var A = class extends Oi {
|
|
|
128288
128518
|
}
|
|
128289
128519
|
off(t, e) {
|
|
128290
128520
|
let i = super.off(t, e);
|
|
128291
|
-
return t === "data" && (this[yt] = this.listeners("data").length, this[yt] === 0 && !this[C] && !this[
|
|
128521
|
+
return t === "data" && (this[yt] = this.listeners("data").length, this[yt] === 0 && !this[C] && !this[A].length && (this[b] = false)), i;
|
|
128292
128522
|
}
|
|
128293
128523
|
removeAllListeners(t) {
|
|
128294
128524
|
let e = super.removeAllListeners(t);
|
|
128295
|
-
return (t === "data" || t === void 0) && (this[yt] = 0, !this[C] && !this[
|
|
128525
|
+
return (t === "data" || t === void 0) && (this[yt] = 0, !this[C] && !this[A].length && (this[b] = false)), e;
|
|
128296
128526
|
}
|
|
128297
128527
|
get emittedEnd() {
|
|
128298
128528
|
return this[rt];
|
|
128299
128529
|
}
|
|
128300
128530
|
[j]() {
|
|
128301
|
-
!this[
|
|
128531
|
+
!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);
|
|
128302
128532
|
}
|
|
128303
128533
|
emit(t, ...e) {
|
|
128304
128534
|
let i = e[0];
|
|
128305
128535
|
if (t !== "error" && t !== "close" && t !== w && this[w]) return false;
|
|
128306
|
-
if (t === "data") return !this[L] && !i ? false : this[Z] ? (te(() => this[
|
|
128307
|
-
if (t === "end") return this[
|
|
128536
|
+
if (t === "data") return !this[L] && !i ? false : this[Z] ? (te(() => this[bi](i)), true) : this[bi](i);
|
|
128537
|
+
if (t === "end") return this[Ls]();
|
|
128308
128538
|
if (t === "close") {
|
|
128309
|
-
if (this[
|
|
128539
|
+
if (this[Ne] = true, !this[rt] && !this[w]) return false;
|
|
128310
128540
|
let n = super.emit("close");
|
|
128311
128541
|
return this.removeAllListeners("close"), n;
|
|
128312
128542
|
} else if (t === "error") {
|
|
128313
|
-
this[jt] = i, super.emit(
|
|
128543
|
+
this[jt] = i, super.emit(Ri, i);
|
|
128314
128544
|
let n = !this[Jt] || this.listeners("error").length ? super.emit("error", i) : false;
|
|
128315
128545
|
return this[j](), n;
|
|
128316
128546
|
} else if (t === "resume") {
|
|
@@ -128323,23 +128553,23 @@ var A = class extends Oi {
|
|
|
128323
128553
|
let r = super.emit(t, ...e);
|
|
128324
128554
|
return this[j](), r;
|
|
128325
128555
|
}
|
|
128326
|
-
[
|
|
128327
|
-
for (let i of this[
|
|
128556
|
+
[bi](t) {
|
|
128557
|
+
for (let i of this[A]) i.dest.write(t) === false && this.pause();
|
|
128328
128558
|
let e = this[C] ? false : super.emit("data", t);
|
|
128329
128559
|
return this[j](), e;
|
|
128330
128560
|
}
|
|
128331
|
-
[
|
|
128332
|
-
return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[
|
|
128561
|
+
[Ls]() {
|
|
128562
|
+
return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[_i]()), true) : this[_i]());
|
|
128333
128563
|
}
|
|
128334
|
-
[
|
|
128564
|
+
[_i]() {
|
|
128335
128565
|
if (this[Mt]) {
|
|
128336
128566
|
let e = this[Mt].end();
|
|
128337
128567
|
if (e) {
|
|
128338
|
-
for (let i of this[
|
|
128568
|
+
for (let i of this[A]) i.dest.write(e);
|
|
128339
128569
|
this[C] || super.emit("data", e);
|
|
128340
128570
|
}
|
|
128341
128571
|
}
|
|
128342
|
-
for (let e of this[
|
|
128572
|
+
for (let e of this[A]) e.end();
|
|
128343
128573
|
let t = super.emit("end");
|
|
128344
128574
|
return this.removeAllListeners("end"), t;
|
|
128345
128575
|
}
|
|
@@ -128386,67 +128616,67 @@ var A = class extends Oi {
|
|
|
128386
128616
|
}
|
|
128387
128617
|
[Symbol.iterator]() {
|
|
128388
128618
|
this[C] = false;
|
|
128389
|
-
let t = false, e = () => (this.pause(), this.off(
|
|
128619
|
+
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 = () => {
|
|
128390
128620
|
if (t) return e();
|
|
128391
128621
|
let r = this.read();
|
|
128392
128622
|
return r === null ? e() : { done: false, value: r };
|
|
128393
128623
|
};
|
|
128394
|
-
return this.once("end", e), this.once(
|
|
128624
|
+
return this.once("end", e), this.once(Ri, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
|
|
128395
128625
|
return this;
|
|
128396
128626
|
}, [Symbol.dispose]: () => {
|
|
128397
128627
|
} };
|
|
128398
128628
|
}
|
|
128399
128629
|
destroy(t) {
|
|
128400
128630
|
if (this[w]) return t ? this.emit("error", t) : this.emit(w), this;
|
|
128401
|
-
this[w] = true, this[C] = true, this[
|
|
128631
|
+
this[w] = true, this[C] = true, this[_].length = 0, this[g] = 0;
|
|
128402
128632
|
let e = this;
|
|
128403
|
-
return typeof e.close == "function" && !this[
|
|
128633
|
+
return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
|
|
128404
128634
|
}
|
|
128405
128635
|
static get isStream() {
|
|
128406
|
-
return
|
|
128636
|
+
return Ir;
|
|
128407
128637
|
}
|
|
128408
128638
|
};
|
|
128409
|
-
var
|
|
128639
|
+
var Hr = I.writev;
|
|
128410
128640
|
var ot = /* @__PURE__ */ Symbol("_autoClose");
|
|
128411
128641
|
var H = /* @__PURE__ */ Symbol("_close");
|
|
128412
128642
|
var ee = /* @__PURE__ */ Symbol("_ended");
|
|
128413
128643
|
var m = /* @__PURE__ */ Symbol("_fd");
|
|
128414
|
-
var
|
|
128644
|
+
var xi = /* @__PURE__ */ Symbol("_finished");
|
|
128415
128645
|
var J = /* @__PURE__ */ Symbol("_flags");
|
|
128416
|
-
var
|
|
128417
|
-
var
|
|
128418
|
-
var
|
|
128646
|
+
var Li = /* @__PURE__ */ Symbol("_flush");
|
|
128647
|
+
var Ii = /* @__PURE__ */ Symbol("_handleChunk");
|
|
128648
|
+
var Ci = /* @__PURE__ */ Symbol("_makeBuf");
|
|
128419
128649
|
var se = /* @__PURE__ */ Symbol("_mode");
|
|
128420
|
-
var
|
|
128650
|
+
var Fe = /* @__PURE__ */ Symbol("_needDrain");
|
|
128421
128651
|
var Ut = /* @__PURE__ */ Symbol("_onerror");
|
|
128422
128652
|
var Ht = /* @__PURE__ */ Symbol("_onopen");
|
|
128423
|
-
var
|
|
128653
|
+
var Ni = /* @__PURE__ */ Symbol("_onread");
|
|
128424
128654
|
var Pt = /* @__PURE__ */ Symbol("_onwrite");
|
|
128425
128655
|
var ht = /* @__PURE__ */ Symbol("_open");
|
|
128426
128656
|
var U = /* @__PURE__ */ Symbol("_path");
|
|
128427
128657
|
var nt = /* @__PURE__ */ Symbol("_pos");
|
|
128428
128658
|
var Y = /* @__PURE__ */ Symbol("_queue");
|
|
128429
128659
|
var zt = /* @__PURE__ */ Symbol("_read");
|
|
128430
|
-
var
|
|
128660
|
+
var Ai = /* @__PURE__ */ Symbol("_readSize");
|
|
128431
128661
|
var Q = /* @__PURE__ */ Symbol("_reading");
|
|
128432
128662
|
var ie = /* @__PURE__ */ Symbol("_remain");
|
|
128433
128663
|
var Di = /* @__PURE__ */ Symbol("_size");
|
|
128434
|
-
var
|
|
128664
|
+
var ke = /* @__PURE__ */ Symbol("_write");
|
|
128435
128665
|
var Rt = /* @__PURE__ */ Symbol("_writing");
|
|
128436
|
-
var
|
|
128666
|
+
var ve = /* @__PURE__ */ Symbol("_defaultFlag");
|
|
128437
128667
|
var bt = /* @__PURE__ */ Symbol("_errored");
|
|
128438
|
-
var
|
|
128668
|
+
var _t = class extends D {
|
|
128439
128669
|
[bt] = false;
|
|
128440
128670
|
[m];
|
|
128441
128671
|
[U];
|
|
128442
|
-
[
|
|
128672
|
+
[Ai];
|
|
128443
128673
|
[Q] = false;
|
|
128444
128674
|
[Di];
|
|
128445
128675
|
[ie];
|
|
128446
128676
|
[ot];
|
|
128447
128677
|
constructor(t, e) {
|
|
128448
128678
|
if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
|
|
128449
|
-
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[
|
|
128679
|
+
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]();
|
|
128450
128680
|
}
|
|
128451
128681
|
get fd() {
|
|
128452
128682
|
return this[m];
|
|
@@ -128466,19 +128696,19 @@ var gt = class extends A {
|
|
|
128466
128696
|
[Ht](t, e) {
|
|
128467
128697
|
t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
|
|
128468
128698
|
}
|
|
128469
|
-
[
|
|
128470
|
-
return Buffer.allocUnsafe(Math.min(this[
|
|
128699
|
+
[Ci]() {
|
|
128700
|
+
return Buffer.allocUnsafe(Math.min(this[Ai], this[ie]));
|
|
128471
128701
|
}
|
|
128472
128702
|
[zt]() {
|
|
128473
128703
|
if (!this[Q]) {
|
|
128474
128704
|
this[Q] = true;
|
|
128475
|
-
let t = this[
|
|
128476
|
-
if (t.length === 0) return process.nextTick(() => this[
|
|
128477
|
-
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[
|
|
128705
|
+
let t = this[Ci]();
|
|
128706
|
+
if (t.length === 0) return process.nextTick(() => this[Ni](null, 0, t));
|
|
128707
|
+
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ni](e, i, r));
|
|
128478
128708
|
}
|
|
128479
128709
|
}
|
|
128480
|
-
[
|
|
128481
|
-
this[Q] = false, t ? this[Ut](t) : this[
|
|
128710
|
+
[Ni](t, e, i) {
|
|
128711
|
+
this[Q] = false, t ? this[Ut](t) : this[Ii](e, i) && this[zt]();
|
|
128482
128712
|
}
|
|
128483
128713
|
[H]() {
|
|
128484
128714
|
if (this[ot] && typeof this[m] == "number") {
|
|
@@ -128489,7 +128719,7 @@ var gt = class extends A {
|
|
|
128489
128719
|
[Ut](t) {
|
|
128490
128720
|
this[Q] = true, this[H](), this.emit("error", t);
|
|
128491
128721
|
}
|
|
128492
|
-
[
|
|
128722
|
+
[Ii](t, e) {
|
|
128493
128723
|
let i = false;
|
|
128494
128724
|
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;
|
|
128495
128725
|
}
|
|
@@ -128507,7 +128737,7 @@ var gt = class extends A {
|
|
|
128507
128737
|
}
|
|
128508
128738
|
}
|
|
128509
128739
|
};
|
|
128510
|
-
var
|
|
128740
|
+
var Me = class extends _t {
|
|
128511
128741
|
[ht]() {
|
|
128512
128742
|
let t = true;
|
|
128513
128743
|
try {
|
|
@@ -128522,8 +128752,8 @@ var ve = class extends gt {
|
|
|
128522
128752
|
if (!this[Q]) {
|
|
128523
128753
|
this[Q] = true;
|
|
128524
128754
|
do {
|
|
128525
|
-
let e = this[
|
|
128526
|
-
if (!this[
|
|
128755
|
+
let e = this[Ci](), i = e.length === 0 ? 0 : I.readSync(this[m], e, 0, e.length, null);
|
|
128756
|
+
if (!this[Ii](i, e)) break;
|
|
128527
128757
|
} while (true);
|
|
128528
128758
|
this[Q] = false;
|
|
128529
128759
|
}
|
|
@@ -128539,26 +128769,26 @@ var ve = class extends gt {
|
|
|
128539
128769
|
}
|
|
128540
128770
|
}
|
|
128541
128771
|
};
|
|
128542
|
-
var tt = class extends
|
|
128772
|
+
var tt = class extends Ur {
|
|
128543
128773
|
readable = false;
|
|
128544
128774
|
writable = true;
|
|
128545
128775
|
[bt] = false;
|
|
128546
128776
|
[Rt] = false;
|
|
128547
128777
|
[ee] = false;
|
|
128548
128778
|
[Y] = [];
|
|
128549
|
-
[
|
|
128779
|
+
[Fe] = false;
|
|
128550
128780
|
[U];
|
|
128551
128781
|
[se];
|
|
128552
128782
|
[ot];
|
|
128553
128783
|
[m];
|
|
128554
|
-
[
|
|
128784
|
+
[ve];
|
|
128555
128785
|
[J];
|
|
128556
|
-
[
|
|
128786
|
+
[xi] = false;
|
|
128557
128787
|
[nt];
|
|
128558
128788
|
constructor(t, e) {
|
|
128559
128789
|
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;
|
|
128560
128790
|
let i = this[nt] !== void 0 ? "r+" : "w";
|
|
128561
|
-
this[
|
|
128791
|
+
this[ve] = e.flags === void 0, this[J] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
|
|
128562
128792
|
}
|
|
128563
128793
|
emit(t, ...e) {
|
|
128564
128794
|
if (t === "error") {
|
|
@@ -128580,26 +128810,26 @@ var tt = class extends Hr {
|
|
|
128580
128810
|
I.open(this[U], this[J], this[se], (t, e) => this[Ht](t, e));
|
|
128581
128811
|
}
|
|
128582
128812
|
[Ht](t, e) {
|
|
128583
|
-
this[
|
|
128813
|
+
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]());
|
|
128584
128814
|
}
|
|
128585
128815
|
end(t, e) {
|
|
128586
128816
|
return t && this.write(t, e), this[ee] = true, !this[Rt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
|
|
128587
128817
|
}
|
|
128588
128818
|
write(t, e) {
|
|
128589
|
-
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[
|
|
128819
|
+
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);
|
|
128590
128820
|
}
|
|
128591
|
-
[
|
|
128821
|
+
[ke](t) {
|
|
128592
128822
|
I.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
|
|
128593
128823
|
}
|
|
128594
128824
|
[Pt](t, e) {
|
|
128595
|
-
t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[
|
|
128825
|
+
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"))));
|
|
128596
128826
|
}
|
|
128597
|
-
[
|
|
128827
|
+
[Li]() {
|
|
128598
128828
|
if (this[Y].length === 0) this[ee] && this[Pt](null, 0);
|
|
128599
|
-
else if (this[Y].length === 1) this[
|
|
128829
|
+
else if (this[Y].length === 1) this[ke](this[Y].pop());
|
|
128600
128830
|
else {
|
|
128601
128831
|
let t = this[Y];
|
|
128602
|
-
this[Y] = [],
|
|
128832
|
+
this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
|
|
128603
128833
|
}
|
|
128604
128834
|
}
|
|
128605
128835
|
[H]() {
|
|
@@ -128612,7 +128842,7 @@ var tt = class extends Hr {
|
|
|
128612
128842
|
var Wt = class extends tt {
|
|
128613
128843
|
[ht]() {
|
|
128614
128844
|
let t;
|
|
128615
|
-
if (this[
|
|
128845
|
+
if (this[ve] && this[J] === "r+") try {
|
|
128616
128846
|
t = I.openSync(this[U], this[J], this[se]);
|
|
128617
128847
|
} catch (e) {
|
|
128618
128848
|
if (e?.code === "ENOENT") return this[J] = "w", this[ht]();
|
|
@@ -128627,7 +128857,7 @@ var Wt = class extends tt {
|
|
|
128627
128857
|
this[m] = void 0, I.closeSync(t), this.emit("close");
|
|
128628
128858
|
}
|
|
128629
128859
|
}
|
|
128630
|
-
[
|
|
128860
|
+
[ke](t) {
|
|
128631
128861
|
let e = true;
|
|
128632
128862
|
try {
|
|
128633
128863
|
this[Pt](null, I.writeSync(this[m], t, 0, t.length, this[nt])), e = false;
|
|
@@ -128639,49 +128869,50 @@ var Wt = class extends tt {
|
|
|
128639
128869
|
}
|
|
128640
128870
|
}
|
|
128641
128871
|
};
|
|
128642
|
-
var
|
|
128872
|
+
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"]]);
|
|
128643
128873
|
var As = (s3) => !!s3.sync && !!s3.file;
|
|
128644
|
-
var
|
|
128645
|
-
var
|
|
128646
|
-
var
|
|
128647
|
-
var
|
|
128648
|
-
var
|
|
128649
|
-
let t =
|
|
128874
|
+
var Ds = (s3) => !s3.sync && !!s3.file;
|
|
128875
|
+
var Is = (s3) => !!s3.sync && !s3.file;
|
|
128876
|
+
var Cs = (s3) => !s3.sync && !s3.file;
|
|
128877
|
+
var Fs = (s3) => !!s3.file;
|
|
128878
|
+
var Gr = (s3) => {
|
|
128879
|
+
let t = Wr.get(s3);
|
|
128650
128880
|
return t || s3;
|
|
128651
128881
|
};
|
|
128652
128882
|
var re = (s3 = {}) => {
|
|
128653
128883
|
if (!s3) return {};
|
|
128654
128884
|
let t = {};
|
|
128655
128885
|
for (let [e, i] of Object.entries(s3)) {
|
|
128656
|
-
let r =
|
|
128886
|
+
let r = Gr(e);
|
|
128657
128887
|
t[r] = i;
|
|
128658
128888
|
}
|
|
128659
128889
|
return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
|
|
128660
128890
|
};
|
|
128661
128891
|
var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
|
|
128662
|
-
Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o
|
|
128892
|
+
Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
|
|
128663
128893
|
let a = re(n);
|
|
128664
128894
|
if (r?.(a, o), As(a)) {
|
|
128665
128895
|
if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
128666
128896
|
return s3(a, o);
|
|
128897
|
+
} else if (Ds(a)) {
|
|
128898
|
+
let l = t(a, o);
|
|
128899
|
+
return h ? l.then(() => h(), h) : l;
|
|
128667
128900
|
} else if (Is(a)) {
|
|
128668
|
-
let l = t(a, o), c = h || void 0;
|
|
128669
|
-
return c ? l.then(() => c(), c) : l;
|
|
128670
|
-
} else if (Cs(a)) {
|
|
128671
128901
|
if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
128672
128902
|
return e(a, o);
|
|
128673
|
-
} else if (
|
|
128903
|
+
} else if (Cs(a)) {
|
|
128674
128904
|
if (typeof h == "function") throw new TypeError("callback only supported with file option");
|
|
128675
128905
|
return i(a, o);
|
|
128676
|
-
}
|
|
128906
|
+
}
|
|
128907
|
+
throw new Error("impossible options??");
|
|
128677
128908
|
}, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
|
|
128678
|
-
var
|
|
128679
|
-
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 },
|
|
128680
|
-
var
|
|
128681
|
-
var
|
|
128682
|
-
var
|
|
128683
|
-
var
|
|
128684
|
-
|
|
128909
|
+
var Yr = Zr.constants || { ZLIB_VERNUM: 4736 };
|
|
128910
|
+
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));
|
|
128911
|
+
var Kr = gt.concat;
|
|
128912
|
+
var vs = Object.getOwnPropertyDescriptor(gt, "concat");
|
|
128913
|
+
var Vr = (s3) => s3;
|
|
128914
|
+
var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
|
|
128915
|
+
gt.concat = s3 ? Vr : Kr;
|
|
128685
128916
|
} : (s3) => {
|
|
128686
128917
|
};
|
|
128687
128918
|
var Ot = /* @__PURE__ */ Symbol("_superWrite");
|
|
@@ -128695,8 +128926,8 @@ var Gt = class extends Error {
|
|
|
128695
128926
|
return "ZlibError";
|
|
128696
128927
|
}
|
|
128697
128928
|
};
|
|
128698
|
-
var
|
|
128699
|
-
var ne = class extends
|
|
128929
|
+
var vi = /* @__PURE__ */ Symbol("flushFlag");
|
|
128930
|
+
var ne = class extends D {
|
|
128700
128931
|
#t = false;
|
|
128701
128932
|
#i = false;
|
|
128702
128933
|
#s;
|
|
@@ -128715,9 +128946,9 @@ var ne = class extends A {
|
|
|
128715
128946
|
}
|
|
128716
128947
|
constructor(t, e) {
|
|
128717
128948
|
if (!t || typeof t != "object") throw new TypeError("invalid options for ZlibBase constructor");
|
|
128718
|
-
if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof
|
|
128949
|
+
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);
|
|
128719
128950
|
try {
|
|
128720
|
-
this.#e = new
|
|
128951
|
+
this.#e = new ks[e](t);
|
|
128721
128952
|
} catch (i) {
|
|
128722
128953
|
throw new Gt(i, this.constructor);
|
|
128723
128954
|
}
|
|
@@ -128729,10 +128960,10 @@ var ne = class extends A {
|
|
|
128729
128960
|
this.#e && (this.#e.close(), this.#e = void 0, this.emit("close"));
|
|
128730
128961
|
}
|
|
128731
128962
|
reset() {
|
|
128732
|
-
if (!this.#t) return
|
|
128963
|
+
if (!this.#t) return Mi(this.#e, "zlib binding closed"), this.#e.reset?.();
|
|
128733
128964
|
}
|
|
128734
128965
|
flush(t) {
|
|
128735
|
-
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(
|
|
128966
|
+
this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(gt.alloc(0), { [vi]: t })));
|
|
128736
128967
|
}
|
|
128737
128968
|
end(t, e, i) {
|
|
128738
128969
|
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);
|
|
@@ -128744,20 +128975,20 @@ var ne = class extends A {
|
|
|
128744
128975
|
return super.write(t);
|
|
128745
128976
|
}
|
|
128746
128977
|
write(t, e, i) {
|
|
128747
|
-
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t =
|
|
128748
|
-
|
|
128978
|
+
if (typeof e == "function" && (i = e, e = "utf8"), typeof t == "string" && (t = gt.from(t, e)), this.#t) return;
|
|
128979
|
+
Mi(this.#e, "zlib binding closed");
|
|
128749
128980
|
let r = this.#e._handle, n = r.close;
|
|
128750
128981
|
r.close = () => {
|
|
128751
128982
|
};
|
|
128752
128983
|
let o = this.#e.close;
|
|
128753
128984
|
this.#e.close = () => {
|
|
128754
|
-
},
|
|
128985
|
+
}, ki(true);
|
|
128755
128986
|
let h;
|
|
128756
128987
|
try {
|
|
128757
|
-
let l = typeof t[
|
|
128758
|
-
h = this.#e._processChunk(t, l),
|
|
128988
|
+
let l = typeof t[vi] == "number" ? t[vi] : this.#s;
|
|
128989
|
+
h = this.#e._processChunk(t, l), ki(false);
|
|
128759
128990
|
} catch (l) {
|
|
128760
|
-
|
|
128991
|
+
ki(false), this.#o(new Gt(l, this.write));
|
|
128761
128992
|
} finally {
|
|
128762
128993
|
this.#e && (this.#e._handle = r, r.close = n, this.#e.close = o, this.#e.removeAllListeners("error"));
|
|
128763
128994
|
}
|
|
@@ -128765,13 +128996,13 @@ var ne = class extends A {
|
|
|
128765
128996
|
let a;
|
|
128766
128997
|
if (h) if (Array.isArray(h) && h.length > 0) {
|
|
128767
128998
|
let l = h[0];
|
|
128768
|
-
a = this[Ot](
|
|
128999
|
+
a = this[Ot](gt.from(l));
|
|
128769
129000
|
for (let c = 1; c < h.length; c++) a = this[Ot](h[c]);
|
|
128770
|
-
} else a = this[Ot](
|
|
129001
|
+
} else a = this[Ot](gt.from(h));
|
|
128771
129002
|
return i && i(), a;
|
|
128772
129003
|
}
|
|
128773
129004
|
};
|
|
128774
|
-
var
|
|
129005
|
+
var Be = class extends ne {
|
|
128775
129006
|
#t;
|
|
128776
129007
|
#i;
|
|
128777
129008
|
constructor(t, e) {
|
|
@@ -128782,7 +129013,7 @@ var Me = class extends ne {
|
|
|
128782
129013
|
if (!this.handle) throw new Error("cannot switch params when binding is closed");
|
|
128783
129014
|
if (!this.handle.params) throw new Error("not supported in this implementation");
|
|
128784
129015
|
if (this.#t !== t || this.#i !== e) {
|
|
128785
|
-
this.flush(M.Z_SYNC_FLUSH),
|
|
129016
|
+
this.flush(M.Z_SYNC_FLUSH), Mi(this.handle, "zlib binding closed");
|
|
128786
129017
|
let i = this.handle.flush;
|
|
128787
129018
|
this.handle.flush = (r, n) => {
|
|
128788
129019
|
typeof r == "function" && (n = r, r = this.flushFlag), this.flush(r), n?.();
|
|
@@ -128797,7 +129028,7 @@ var Me = class extends ne {
|
|
|
128797
129028
|
}
|
|
128798
129029
|
}
|
|
128799
129030
|
};
|
|
128800
|
-
var
|
|
129031
|
+
var Pe = class extends Be {
|
|
128801
129032
|
#t;
|
|
128802
129033
|
constructor(t) {
|
|
128803
129034
|
super(t, "Gzip"), this.#t = t && !!t.portable;
|
|
@@ -128806,87 +129037,87 @@ var Be = class extends Me {
|
|
|
128806
129037
|
return this.#t ? (this.#t = false, t[9] = 255, super[Ot](t)) : super[Ot](t);
|
|
128807
129038
|
}
|
|
128808
129039
|
};
|
|
128809
|
-
var
|
|
129040
|
+
var ze = class extends Be {
|
|
128810
129041
|
constructor(t) {
|
|
128811
129042
|
super(t, "Unzip");
|
|
128812
129043
|
}
|
|
128813
129044
|
};
|
|
128814
|
-
var
|
|
129045
|
+
var Ue = class extends ne {
|
|
128815
129046
|
constructor(t, e) {
|
|
128816
129047
|
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);
|
|
128817
129048
|
}
|
|
128818
129049
|
};
|
|
128819
|
-
var
|
|
129050
|
+
var He = class extends Ue {
|
|
128820
129051
|
constructor(t) {
|
|
128821
129052
|
super(t, "BrotliCompress");
|
|
128822
129053
|
}
|
|
128823
129054
|
};
|
|
128824
|
-
var
|
|
129055
|
+
var We = class extends Ue {
|
|
128825
129056
|
constructor(t) {
|
|
128826
129057
|
super(t, "BrotliDecompress");
|
|
128827
129058
|
}
|
|
128828
129059
|
};
|
|
128829
|
-
var
|
|
129060
|
+
var Ge = class extends ne {
|
|
128830
129061
|
constructor(t, e) {
|
|
128831
129062
|
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);
|
|
128832
129063
|
}
|
|
128833
129064
|
};
|
|
128834
|
-
var
|
|
129065
|
+
var Ze = class extends Ge {
|
|
128835
129066
|
constructor(t) {
|
|
128836
129067
|
super(t, "ZstdCompress");
|
|
128837
129068
|
}
|
|
128838
129069
|
};
|
|
128839
|
-
var
|
|
129070
|
+
var Ye = class extends Ge {
|
|
128840
129071
|
constructor(t) {
|
|
128841
129072
|
super(t, "ZstdDecompress");
|
|
128842
129073
|
}
|
|
128843
129074
|
};
|
|
128844
|
-
var
|
|
128845
|
-
if (Number.isSafeInteger(s3)) s3 < 0 ?
|
|
129075
|
+
var Ms = (s3, t) => {
|
|
129076
|
+
if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
|
|
128846
129077
|
else throw Error("cannot encode number outside of javascript safe integer range");
|
|
128847
129078
|
return t;
|
|
128848
129079
|
};
|
|
128849
|
-
var
|
|
129080
|
+
var Xr = (s3, t) => {
|
|
128850
129081
|
t[0] = 128;
|
|
128851
129082
|
for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
|
|
128852
129083
|
};
|
|
128853
|
-
var
|
|
129084
|
+
var qr = (s3, t) => {
|
|
128854
129085
|
t[0] = 255;
|
|
128855
129086
|
var e = false;
|
|
128856
129087
|
s3 = s3 * -1;
|
|
128857
129088
|
for (var i = t.length; i > 1; i--) {
|
|
128858
129089
|
var r = s3 & 255;
|
|
128859
|
-
s3 = Math.floor(s3 / 256), e ? t[i - 1] =
|
|
129090
|
+
s3 = Math.floor(s3 / 256), e ? t[i - 1] = Ps(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = zs(r));
|
|
128860
129091
|
}
|
|
128861
129092
|
};
|
|
128862
|
-
var
|
|
128863
|
-
let t = s3[0], e = t === 128 ?
|
|
129093
|
+
var Bs = (s3) => {
|
|
129094
|
+
let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
|
|
128864
129095
|
if (e === null) throw Error("invalid base256 encoding");
|
|
128865
129096
|
if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
|
|
128866
129097
|
return e;
|
|
128867
129098
|
};
|
|
128868
|
-
var
|
|
129099
|
+
var jr = (s3) => {
|
|
128869
129100
|
for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
|
|
128870
129101
|
var n = Number(s3[r]), o;
|
|
128871
|
-
i ? o =
|
|
129102
|
+
i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
|
|
128872
129103
|
}
|
|
128873
129104
|
return e;
|
|
128874
129105
|
};
|
|
128875
|
-
var
|
|
129106
|
+
var Qr = (s3) => {
|
|
128876
129107
|
for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
|
|
128877
129108
|
var r = Number(s3[i]);
|
|
128878
129109
|
r !== 0 && (e += r * Math.pow(256, t - i - 1));
|
|
128879
129110
|
}
|
|
128880
129111
|
return e;
|
|
128881
129112
|
};
|
|
128882
|
-
var
|
|
128883
|
-
var
|
|
128884
|
-
var
|
|
128885
|
-
Ar(
|
|
129113
|
+
var Ps = (s3) => (255 ^ s3) & 255;
|
|
129114
|
+
var zs = (s3) => (255 ^ s3) + 1 & 255;
|
|
129115
|
+
var Bi = {};
|
|
129116
|
+
Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
|
|
128886
129117
|
var oe = (s3) => he.has(s3);
|
|
128887
|
-
var
|
|
129118
|
+
var tn = (s3) => Ke.has(s3);
|
|
128888
129119
|
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"]]);
|
|
128889
|
-
var
|
|
129120
|
+
var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
|
|
128890
129121
|
var F = class {
|
|
128891
129122
|
cksumValid = false;
|
|
128892
129123
|
needPax = false;
|
|
@@ -128914,14 +129145,14 @@ var F = class {
|
|
|
128914
129145
|
}
|
|
128915
129146
|
decode(t, e, i, r) {
|
|
128916
129147
|
if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
|
|
128917
|
-
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 ??
|
|
129148
|
+
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);
|
|
128918
129149
|
let n = Tt(t, e + 156, 1);
|
|
128919
129150
|
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) {
|
|
128920
129151
|
let h = Tt(t, e + 345, 155);
|
|
128921
129152
|
this.path = h + "/" + this.path;
|
|
128922
129153
|
} else {
|
|
128923
129154
|
let h = Tt(t, e + 345, 130);
|
|
128924
|
-
h && (this.path = h + "/" + this.path), this.atime = i?.atime ?? r?.atime ??
|
|
129155
|
+
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);
|
|
128925
129156
|
}
|
|
128926
129157
|
let o = 256;
|
|
128927
129158
|
for (let h = e; h < e + 148; h++) o += t[h];
|
|
@@ -128933,8 +129164,8 @@ var F = class {
|
|
|
128933
129164
|
}
|
|
128934
129165
|
encode(t, e = 0) {
|
|
128935
129166
|
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");
|
|
128936
|
-
let i = this.ctime || this.atime ? 130 : 155, r =
|
|
128937
|
-
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 =
|
|
129167
|
+
let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
|
|
129168
|
+
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);
|
|
128938
129169
|
let h = 256;
|
|
128939
129170
|
for (let a = e; a < e + 148; a++) h += t[a];
|
|
128940
129171
|
for (let a = e + 156; a < e + 512; a++) h += t[a];
|
|
@@ -128947,13 +129178,13 @@ var F = class {
|
|
|
128947
129178
|
return this.#t;
|
|
128948
129179
|
}
|
|
128949
129180
|
set type(t) {
|
|
128950
|
-
let e = String(
|
|
129181
|
+
let e = String(Ke.get(t));
|
|
128951
129182
|
if (oe(e) || e === "Unsupported") this.#t = e;
|
|
128952
129183
|
else if (oe(t)) this.#t = t;
|
|
128953
129184
|
else throw new TypeError("invalid entry type: " + t);
|
|
128954
129185
|
}
|
|
128955
129186
|
};
|
|
128956
|
-
var
|
|
129187
|
+
var en = (s3, t) => {
|
|
128957
129188
|
let i = s3, r = "", n, o = Zt.parse(s3).root || ".";
|
|
128958
129189
|
if (Buffer.byteLength(i) < 100) n = [i, r, false];
|
|
128959
129190
|
else {
|
|
@@ -128966,19 +129197,19 @@ var sn = (s3, t) => {
|
|
|
128966
129197
|
return n;
|
|
128967
129198
|
};
|
|
128968
129199
|
var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
|
|
128969
|
-
var
|
|
128970
|
-
var
|
|
128971
|
-
var at = (s3, t, e) => Number(s3[t]) & 128 ?
|
|
128972
|
-
var
|
|
128973
|
-
var
|
|
128974
|
-
var
|
|
128975
|
-
var lt = (s3, t, e, i) => i === void 0 ? false : i >
|
|
128976
|
-
var
|
|
128977
|
-
var
|
|
128978
|
-
var
|
|
128979
|
-
var
|
|
128980
|
-
var
|
|
128981
|
-
var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i +
|
|
129200
|
+
var Pi = (s3, t, e) => sn(at(s3, t, e));
|
|
129201
|
+
var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
|
|
129202
|
+
var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
|
|
129203
|
+
var rn = (s3) => isNaN(s3) ? void 0 : s3;
|
|
129204
|
+
var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
|
|
129205
|
+
var on = { 12: 8589934591, 8: 2097151 };
|
|
129206
|
+
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);
|
|
129207
|
+
var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
|
|
129208
|
+
var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
|
|
129209
|
+
var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
|
|
129210
|
+
var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
|
|
129211
|
+
var cn = new Array(156).join("\0");
|
|
129212
|
+
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);
|
|
128982
129213
|
var ct = class s {
|
|
128983
129214
|
atime;
|
|
128984
129215
|
mtime;
|
|
@@ -129005,7 +129236,7 @@ var ct = class s {
|
|
|
129005
129236
|
if (t === "") return Buffer.allocUnsafe(0);
|
|
129006
129237
|
let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
|
|
129007
129238
|
for (let n = 0; n < 512; n++) r[n] = 0;
|
|
129008
|
-
new F({ path: ("PaxHeader/" +
|
|
129239
|
+
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");
|
|
129009
129240
|
for (let n = e + 512; n < r.length; n++) r[n] = 0;
|
|
129010
129241
|
return r;
|
|
129011
129242
|
}
|
|
@@ -129019,13 +129250,13 @@ var ct = class s {
|
|
|
129019
129250
|
return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
|
|
129020
129251
|
}
|
|
129021
129252
|
static parse(t, e, i = false) {
|
|
129022
|
-
return new s(un(
|
|
129253
|
+
return new s(dn(un(t), e), i);
|
|
129023
129254
|
}
|
|
129024
129255
|
};
|
|
129025
|
-
var
|
|
129026
|
-
var
|
|
129027
|
-
`).reduce(
|
|
129028
|
-
var
|
|
129256
|
+
var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
|
|
129257
|
+
var un = (s3) => s3.replace(/\n$/, "").split(`
|
|
129258
|
+
`).reduce(mn, /* @__PURE__ */ Object.create(null));
|
|
129259
|
+
var mn = (s3, t) => {
|
|
129029
129260
|
let e = parseInt(t, 10);
|
|
129030
129261
|
if (e !== Buffer.byteLength(t) + 1) return s3;
|
|
129031
129262
|
t = t.slice((e + " ").length);
|
|
@@ -129034,9 +129265,9 @@ var pn = (s3, t) => {
|
|
|
129034
129265
|
let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
|
|
129035
129266
|
return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
|
|
129036
129267
|
};
|
|
129037
|
-
var
|
|
129038
|
-
var f =
|
|
129039
|
-
var Yt = class extends
|
|
129268
|
+
var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
129269
|
+
var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
|
|
129270
|
+
var Yt = class extends D {
|
|
129040
129271
|
extended;
|
|
129041
129272
|
globalExtended;
|
|
129042
129273
|
header;
|
|
@@ -129103,42 +129334,42 @@ var Yt = class extends A {
|
|
|
129103
129334
|
var Lt = (s3, t, e, i = {}) => {
|
|
129104
129335
|
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));
|
|
129105
129336
|
};
|
|
129106
|
-
var
|
|
129107
|
-
var
|
|
129108
|
-
var
|
|
129109
|
-
var
|
|
129337
|
+
var wn = 1024 * 1024;
|
|
129338
|
+
var Zi = Buffer.from([31, 139]);
|
|
129339
|
+
var Yi = Buffer.from([40, 181, 47, 253]);
|
|
129340
|
+
var Sn = Math.max(Zi.length, Yi.length);
|
|
129110
129341
|
var B = /* @__PURE__ */ Symbol("state");
|
|
129111
129342
|
var Nt = /* @__PURE__ */ Symbol("writeEntry");
|
|
129112
129343
|
var et = /* @__PURE__ */ Symbol("readEntry");
|
|
129113
|
-
var
|
|
129114
|
-
var
|
|
129344
|
+
var Ui = /* @__PURE__ */ Symbol("nextEntry");
|
|
129345
|
+
var Us = /* @__PURE__ */ Symbol("processEntry");
|
|
129115
129346
|
var V = /* @__PURE__ */ Symbol("extendedHeader");
|
|
129116
129347
|
var ae = /* @__PURE__ */ Symbol("globalExtendedHeader");
|
|
129117
129348
|
var ft = /* @__PURE__ */ Symbol("meta");
|
|
129118
|
-
var
|
|
129349
|
+
var Hs = /* @__PURE__ */ Symbol("emitMeta");
|
|
129119
129350
|
var p = /* @__PURE__ */ Symbol("buffer");
|
|
129120
129351
|
var it = /* @__PURE__ */ Symbol("queue");
|
|
129121
129352
|
var dt = /* @__PURE__ */ Symbol("ended");
|
|
129122
|
-
var
|
|
129123
|
-
var
|
|
129353
|
+
var Hi = /* @__PURE__ */ Symbol("emittedEnd");
|
|
129354
|
+
var At = /* @__PURE__ */ Symbol("emit");
|
|
129124
129355
|
var y = /* @__PURE__ */ Symbol("unzip");
|
|
129125
|
-
var
|
|
129126
|
-
var
|
|
129127
|
-
var
|
|
129128
|
-
var
|
|
129129
|
-
var
|
|
129356
|
+
var Ve = /* @__PURE__ */ Symbol("consumeChunk");
|
|
129357
|
+
var $e = /* @__PURE__ */ Symbol("consumeChunkSub");
|
|
129358
|
+
var Wi = /* @__PURE__ */ Symbol("consumeBody");
|
|
129359
|
+
var Ws = /* @__PURE__ */ Symbol("consumeMeta");
|
|
129360
|
+
var Gs = /* @__PURE__ */ Symbol("consumeHeader");
|
|
129130
129361
|
var le = /* @__PURE__ */ Symbol("consuming");
|
|
129131
|
-
var
|
|
129132
|
-
var
|
|
129362
|
+
var Gi = /* @__PURE__ */ Symbol("bufferConcat");
|
|
129363
|
+
var Xe = /* @__PURE__ */ Symbol("maybeEnd");
|
|
129133
129364
|
var Kt = /* @__PURE__ */ Symbol("writing");
|
|
129134
129365
|
var ut = /* @__PURE__ */ Symbol("aborted");
|
|
129135
|
-
var
|
|
129136
|
-
var
|
|
129137
|
-
var
|
|
129138
|
-
var
|
|
129139
|
-
var
|
|
129140
|
-
var
|
|
129141
|
-
var st = class extends
|
|
129366
|
+
var qe = /* @__PURE__ */ Symbol("onDone");
|
|
129367
|
+
var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
|
|
129368
|
+
var je = /* @__PURE__ */ Symbol("sawNullBlock");
|
|
129369
|
+
var Qe = /* @__PURE__ */ Symbol("sawEOF");
|
|
129370
|
+
var Zs = /* @__PURE__ */ Symbol("closeStream");
|
|
129371
|
+
var yn = () => true;
|
|
129372
|
+
var st = class extends En {
|
|
129142
129373
|
file;
|
|
129143
129374
|
strict;
|
|
129144
129375
|
maxMetaEntrySize;
|
|
@@ -129158,36 +129389,36 @@ var st = class extends wn {
|
|
|
129158
129389
|
[dt] = false;
|
|
129159
129390
|
[y];
|
|
129160
129391
|
[ut] = false;
|
|
129161
|
-
[
|
|
129162
|
-
[qe] = false;
|
|
129392
|
+
[Dt];
|
|
129163
129393
|
[je] = false;
|
|
129394
|
+
[Qe] = false;
|
|
129164
129395
|
[Kt] = false;
|
|
129165
129396
|
[le] = false;
|
|
129166
|
-
[
|
|
129397
|
+
[Hi] = false;
|
|
129167
129398
|
constructor(t = {}) {
|
|
129168
|
-
super(), this.file = t.file || "", this.on(
|
|
129169
|
-
(this[B] === "begin" || this[
|
|
129170
|
-
}), t.ondone ? this.on(
|
|
129399
|
+
super(), this.file = t.file || "", this.on(qe, () => {
|
|
129400
|
+
(this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
129401
|
+
}), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
|
|
129171
129402
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
129172
|
-
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize ||
|
|
129403
|
+
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
|
|
129173
129404
|
let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
|
|
129174
129405
|
this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
|
|
129175
129406
|
let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
|
|
129176
|
-
this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[
|
|
129407
|
+
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);
|
|
129177
129408
|
}
|
|
129178
129409
|
warn(t, e, i = {}) {
|
|
129179
129410
|
Lt(this, t, e, i);
|
|
129180
129411
|
}
|
|
129181
|
-
[
|
|
129182
|
-
this[
|
|
129412
|
+
[Gs](t, e) {
|
|
129413
|
+
this[Dt] === void 0 && (this[Dt] = false);
|
|
129183
129414
|
let i;
|
|
129184
129415
|
try {
|
|
129185
129416
|
i = new F(t, e, this[V], this[ae]);
|
|
129186
129417
|
} catch (r) {
|
|
129187
129418
|
return this.warn("TAR_ENTRY_INVALID", r);
|
|
129188
129419
|
}
|
|
129189
|
-
if (i.nullBlock) this[
|
|
129190
|
-
else if (this[
|
|
129420
|
+
if (i.nullBlock) this[je] ? (this[Qe] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[je] = true, this[At]("nullBlock"));
|
|
129421
|
+
else if (this[je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
|
|
129191
129422
|
else if (!i.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i });
|
|
129192
129423
|
else {
|
|
129193
129424
|
let r = i.type;
|
|
@@ -129195,52 +129426,52 @@ var st = class extends wn {
|
|
|
129195
129426
|
else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
|
|
129196
129427
|
else {
|
|
129197
129428
|
let n = this[Nt] = new Yt(i, this[V], this[ae]);
|
|
129198
|
-
if (!this[
|
|
129429
|
+
if (!this[Dt]) if (n.remain) {
|
|
129199
129430
|
let o = () => {
|
|
129200
|
-
n.invalid || (this[
|
|
129431
|
+
n.invalid || (this[Dt] = true);
|
|
129201
129432
|
};
|
|
129202
129433
|
n.on("end", o);
|
|
129203
|
-
} else this[
|
|
129204
|
-
n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[
|
|
129434
|
+
} else this[Dt] = true;
|
|
129435
|
+
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]())));
|
|
129205
129436
|
}
|
|
129206
129437
|
}
|
|
129207
129438
|
}
|
|
129208
|
-
[
|
|
129439
|
+
[Zs]() {
|
|
129209
129440
|
queueMicrotask(() => this.emit("close"));
|
|
129210
129441
|
}
|
|
129211
|
-
[
|
|
129442
|
+
[Us](t) {
|
|
129212
129443
|
let e = true;
|
|
129213
129444
|
if (!t) this[et] = void 0, e = false;
|
|
129214
129445
|
else if (Array.isArray(t)) {
|
|
129215
129446
|
let [i, ...r] = t;
|
|
129216
129447
|
this.emit(i, ...r);
|
|
129217
|
-
} else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[
|
|
129448
|
+
} else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Ui]()), e = false);
|
|
129218
129449
|
return e;
|
|
129219
129450
|
}
|
|
129220
|
-
[
|
|
129451
|
+
[Ui]() {
|
|
129221
129452
|
do
|
|
129222
129453
|
;
|
|
129223
|
-
while (this[
|
|
129224
|
-
if (
|
|
129454
|
+
while (this[Us](this[it].shift()));
|
|
129455
|
+
if (this[it].length === 0) {
|
|
129225
129456
|
let t = this[et];
|
|
129226
129457
|
!t || t.flowing || t.size === t.remain ? this[Kt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
|
|
129227
129458
|
}
|
|
129228
129459
|
}
|
|
129229
|
-
[
|
|
129460
|
+
[Wi](t, e) {
|
|
129230
129461
|
let i = this[Nt];
|
|
129231
129462
|
if (!i) throw new Error("attempt to consume body without entry??");
|
|
129232
129463
|
let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
|
|
129233
129464
|
return i.write(n), i.blockRemain || (this[B] = "header", this[Nt] = void 0, i.end()), n.length;
|
|
129234
129465
|
}
|
|
129235
|
-
[
|
|
129236
|
-
let i = this[Nt], r = this[
|
|
129237
|
-
return !this[Nt] && i && this[
|
|
129466
|
+
[Ws](t, e) {
|
|
129467
|
+
let i = this[Nt], r = this[Wi](t, e);
|
|
129468
|
+
return !this[Nt] && i && this[Hs](i), r;
|
|
129238
129469
|
}
|
|
129239
|
-
[
|
|
129240
|
-
|
|
129470
|
+
[At](t, e, i) {
|
|
129471
|
+
this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
|
|
129241
129472
|
}
|
|
129242
|
-
[
|
|
129243
|
-
switch (this[
|
|
129473
|
+
[Hs](t) {
|
|
129474
|
+
switch (this[At]("meta", this[ft]), t.type) {
|
|
129244
129475
|
case "ExtendedHeader":
|
|
129245
129476
|
case "OldExtendedHeader":
|
|
129246
129477
|
this[V] = ct.parse(this[ft], this[V], false);
|
|
@@ -129269,12 +129500,12 @@ var st = class extends wn {
|
|
|
129269
129500
|
write(t, e, i) {
|
|
129270
129501
|
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;
|
|
129271
129502
|
if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
|
|
129272
|
-
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length <
|
|
129273
|
-
for (let a = 0; this[y] === void 0 && a <
|
|
129503
|
+
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
|
|
129504
|
+
for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
|
|
129274
129505
|
let o = false;
|
|
129275
129506
|
if (this[y] === false && this.zstd !== false) {
|
|
129276
129507
|
o = true;
|
|
129277
|
-
for (let a = 0; a <
|
|
129508
|
+
for (let a = 0; a < Yi.length; a++) if (t[a] !== Yi[a]) {
|
|
129278
129509
|
o = false;
|
|
129279
129510
|
break;
|
|
129280
129511
|
}
|
|
@@ -129289,69 +129520,69 @@ var st = class extends wn {
|
|
|
129289
129520
|
}
|
|
129290
129521
|
if (this[y] === void 0 || this[y] === false && (this.brotli || o)) {
|
|
129291
129522
|
let a = this[dt];
|
|
129292
|
-
this[dt] = false, this[y] = this[y] === void 0 ? new
|
|
129293
|
-
this[dt] = true, this[
|
|
129523
|
+
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", () => {
|
|
129524
|
+
this[dt] = true, this[Ve]();
|
|
129294
129525
|
}), this[Kt] = true;
|
|
129295
129526
|
let l = !!this[y][a ? "end" : "write"](t);
|
|
129296
129527
|
return this[Kt] = false, i?.(), l;
|
|
129297
129528
|
}
|
|
129298
129529
|
}
|
|
129299
|
-
this[Kt] = true, this[y] ? this[y].write(t) : this[
|
|
129300
|
-
let n = this[it].length ? false : this[et] ? this[et].flowing : true;
|
|
129301
|
-
return !n &&
|
|
129530
|
+
this[Kt] = true, this[y] ? this[y].write(t) : this[Ve](t), this[Kt] = false;
|
|
129531
|
+
let n = this[it].length > 0 ? false : this[et] ? this[et].flowing : true;
|
|
129532
|
+
return !n && this[it].length === 0 && this[et]?.once("drain", () => this.emit("drain")), i?.(), n;
|
|
129302
129533
|
}
|
|
129303
|
-
[
|
|
129534
|
+
[Gi](t) {
|
|
129304
129535
|
t && !this[ut] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
|
|
129305
129536
|
}
|
|
129306
|
-
[
|
|
129307
|
-
if (this[dt] && !this[
|
|
129308
|
-
this[
|
|
129537
|
+
[Xe]() {
|
|
129538
|
+
if (this[dt] && !this[Hi] && !this[ut] && !this[le]) {
|
|
129539
|
+
this[Hi] = true;
|
|
129309
129540
|
let t = this[Nt];
|
|
129310
129541
|
if (t && t.blockRemain) {
|
|
129311
129542
|
let e = this[p] ? this[p].length : 0;
|
|
129312
129543
|
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();
|
|
129313
129544
|
}
|
|
129314
|
-
this[
|
|
129545
|
+
this[At](qe);
|
|
129315
129546
|
}
|
|
129316
129547
|
}
|
|
129317
|
-
[
|
|
129318
|
-
if (this[le] && t) this[
|
|
129319
|
-
else if (!t && !this[p]) this[
|
|
129548
|
+
[Ve](t) {
|
|
129549
|
+
if (this[le] && t) this[Gi](t);
|
|
129550
|
+
else if (!t && !this[p]) this[Xe]();
|
|
129320
129551
|
else if (t) {
|
|
129321
129552
|
if (this[le] = true, this[p]) {
|
|
129322
|
-
this[
|
|
129553
|
+
this[Gi](t);
|
|
129323
129554
|
let e = this[p];
|
|
129324
|
-
this[p] = void 0, this[
|
|
129325
|
-
} else this[
|
|
129326
|
-
for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[
|
|
129555
|
+
this[p] = void 0, this[$e](e);
|
|
129556
|
+
} else this[$e](t);
|
|
129557
|
+
for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[Qe]; ) {
|
|
129327
129558
|
let e = this[p];
|
|
129328
|
-
this[p] = void 0, this[
|
|
129559
|
+
this[p] = void 0, this[$e](e);
|
|
129329
129560
|
}
|
|
129330
129561
|
this[le] = false;
|
|
129331
129562
|
}
|
|
129332
|
-
(!this[p] || this[dt]) && this[
|
|
129563
|
+
(!this[p] || this[dt]) && this[Xe]();
|
|
129333
129564
|
}
|
|
129334
|
-
[
|
|
129565
|
+
[$e](t) {
|
|
129335
129566
|
let e = 0, i = t.length;
|
|
129336
|
-
for (; e + 512 <= i && !this[ut] && !this[
|
|
129567
|
+
for (; e + 512 <= i && !this[ut] && !this[Qe]; ) switch (this[B]) {
|
|
129337
129568
|
case "begin":
|
|
129338
129569
|
case "header":
|
|
129339
|
-
this[
|
|
129570
|
+
this[Gs](t, e), e += 512;
|
|
129340
129571
|
break;
|
|
129341
129572
|
case "ignore":
|
|
129342
129573
|
case "body":
|
|
129343
|
-
e += this[
|
|
129574
|
+
e += this[Wi](t, e);
|
|
129344
129575
|
break;
|
|
129345
129576
|
case "meta":
|
|
129346
|
-
e += this[
|
|
129577
|
+
e += this[Ws](t, e);
|
|
129347
129578
|
break;
|
|
129348
129579
|
default:
|
|
129349
129580
|
throw new Error("invalid state: " + this[B]);
|
|
129350
129581
|
}
|
|
129351
|
-
e < i && (this[p]
|
|
129582
|
+
e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
|
|
129352
129583
|
}
|
|
129353
129584
|
end(t, e, i) {
|
|
129354
|
-
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[
|
|
129585
|
+
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;
|
|
129355
129586
|
}
|
|
129356
129587
|
};
|
|
129357
129588
|
var mt = (s3) => {
|
|
@@ -129365,19 +129596,19 @@ var _n = (s3) => {
|
|
|
129365
129596
|
t(e), e.resume();
|
|
129366
129597
|
} : (e) => e.resume();
|
|
129367
129598
|
};
|
|
129368
|
-
var
|
|
129599
|
+
var Ki = (s3, t) => {
|
|
129369
129600
|
let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
|
|
129370
|
-
let h = o ||
|
|
129601
|
+
let h = o || bn(n).root || ".", a;
|
|
129371
129602
|
if (n === h) a = false;
|
|
129372
129603
|
else {
|
|
129373
129604
|
let l = e.get(n);
|
|
129374
|
-
l !== void 0 ?
|
|
129605
|
+
a = l !== void 0 ? l : r(Rn(n), h);
|
|
129375
129606
|
}
|
|
129376
129607
|
return e.set(n, a), a;
|
|
129377
129608
|
};
|
|
129378
129609
|
s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
|
|
129379
129610
|
};
|
|
129380
|
-
var
|
|
129611
|
+
var gn = (s3) => {
|
|
129381
129612
|
let t = new st(s3), e = s3.file, i;
|
|
129382
129613
|
try {
|
|
129383
129614
|
i = Vt.openSync(e, "r");
|
|
@@ -129401,58 +129632,58 @@ var On = (s3) => {
|
|
|
129401
129632
|
}
|
|
129402
129633
|
}
|
|
129403
129634
|
};
|
|
129404
|
-
var
|
|
129635
|
+
var On = (s3, t) => {
|
|
129405
129636
|
let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
129406
129637
|
return new Promise((o, h) => {
|
|
129407
129638
|
e.on("error", h), e.on("end", o), Vt.stat(r, (a, l) => {
|
|
129408
129639
|
if (a) h(a);
|
|
129409
129640
|
else {
|
|
129410
|
-
let c = new
|
|
129641
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
129411
129642
|
c.on("error", h), c.pipe(e);
|
|
129412
129643
|
}
|
|
129413
129644
|
});
|
|
129414
129645
|
});
|
|
129415
129646
|
};
|
|
129416
|
-
var It = K(
|
|
129417
|
-
t?.length &&
|
|
129647
|
+
var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
|
|
129648
|
+
t?.length && Ki(s3, t), s3.noResume || _n(s3);
|
|
129418
129649
|
});
|
|
129419
|
-
var
|
|
129420
|
-
var { isAbsolute:
|
|
129650
|
+
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);
|
|
129651
|
+
var { isAbsolute: xn, parse: Ys } = Tn;
|
|
129421
129652
|
var ce = (s3) => {
|
|
129422
|
-
let t = "", e =
|
|
129423
|
-
for (;
|
|
129653
|
+
let t = "", e = Ys(s3);
|
|
129654
|
+
for (; xn(s3) || e.root; ) {
|
|
129424
129655
|
let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
|
|
129425
|
-
s3 = s3.slice(i.length), t += i, e =
|
|
129656
|
+
s3 = s3.slice(i.length), t += i, e = Ys(s3);
|
|
129426
129657
|
}
|
|
129427
129658
|
return [t, s3];
|
|
129428
129659
|
};
|
|
129429
|
-
var
|
|
129430
|
-
var
|
|
129431
|
-
var
|
|
129432
|
-
var
|
|
129433
|
-
var
|
|
129434
|
-
var
|
|
129435
|
-
var
|
|
129660
|
+
var Je = ["|", "<", ">", "?", ":"];
|
|
129661
|
+
var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
|
|
129662
|
+
var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
|
|
129663
|
+
var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
|
|
129664
|
+
var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
|
|
129665
|
+
var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
|
|
129666
|
+
var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
|
|
129436
129667
|
var An = 16 * 1024 * 1024;
|
|
129437
|
-
var
|
|
129438
|
-
var
|
|
129439
|
-
var
|
|
129440
|
-
var
|
|
129441
|
-
var
|
|
129668
|
+
var Xs = /* @__PURE__ */ Symbol("process");
|
|
129669
|
+
var qs = /* @__PURE__ */ Symbol("file");
|
|
129670
|
+
var js = /* @__PURE__ */ Symbol("directory");
|
|
129671
|
+
var ji = /* @__PURE__ */ Symbol("symlink");
|
|
129672
|
+
var Qs = /* @__PURE__ */ Symbol("hardlink");
|
|
129442
129673
|
var fe = /* @__PURE__ */ Symbol("header");
|
|
129443
|
-
var
|
|
129444
|
-
var
|
|
129445
|
-
var
|
|
129446
|
-
var
|
|
129447
|
-
var
|
|
129448
|
-
var
|
|
129449
|
-
var
|
|
129674
|
+
var ti = /* @__PURE__ */ Symbol("read");
|
|
129675
|
+
var Qi = /* @__PURE__ */ Symbol("lstat");
|
|
129676
|
+
var ei = /* @__PURE__ */ Symbol("onlstat");
|
|
129677
|
+
var Ji = /* @__PURE__ */ Symbol("onread");
|
|
129678
|
+
var ts = /* @__PURE__ */ Symbol("onreadlink");
|
|
129679
|
+
var es = /* @__PURE__ */ Symbol("openfile");
|
|
129680
|
+
var is = /* @__PURE__ */ Symbol("onopenfile");
|
|
129450
129681
|
var pt = /* @__PURE__ */ Symbol("close");
|
|
129451
|
-
var
|
|
129452
|
-
var
|
|
129453
|
-
var
|
|
129682
|
+
var ii = /* @__PURE__ */ Symbol("mode");
|
|
129683
|
+
var ss = /* @__PURE__ */ Symbol("awaitDrain");
|
|
129684
|
+
var qi = /* @__PURE__ */ Symbol("ondrain");
|
|
129454
129685
|
var X = /* @__PURE__ */ Symbol("prefix");
|
|
129455
|
-
var de = class extends
|
|
129686
|
+
var de = class extends D {
|
|
129456
129687
|
path;
|
|
129457
129688
|
portable;
|
|
129458
129689
|
myuid = process.getuid && process.getuid() || 0;
|
|
@@ -129491,9 +129722,9 @@ var de = class extends A {
|
|
|
129491
129722
|
let [o, h] = ce(this.path);
|
|
129492
129723
|
o && typeof h == "string" && (this.path = h, r = o);
|
|
129493
129724
|
}
|
|
129494
|
-
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path =
|
|
129725
|
+
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 });
|
|
129495
129726
|
let n = this.statCache.get(this.absolute);
|
|
129496
|
-
n ? this[
|
|
129727
|
+
n ? this[ei](n) : this[Qi]();
|
|
129497
129728
|
}
|
|
129498
129729
|
warn(t, e, i = {}) {
|
|
129499
129730
|
return Lt(this, t, e, i);
|
|
@@ -129501,93 +129732,93 @@ var de = class extends A {
|
|
|
129501
129732
|
emit(t, ...e) {
|
|
129502
129733
|
return t === "error" && (this.#t = true), super.emit(t, ...e);
|
|
129503
129734
|
}
|
|
129504
|
-
[
|
|
129735
|
+
[Qi]() {
|
|
129505
129736
|
$.lstat(this.absolute, (t, e) => {
|
|
129506
129737
|
if (t) return this.emit("error", t);
|
|
129507
|
-
this[
|
|
129738
|
+
this[ei](e);
|
|
129508
129739
|
});
|
|
129509
129740
|
}
|
|
129510
|
-
[
|
|
129511
|
-
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type =
|
|
129741
|
+
[ei](t) {
|
|
129742
|
+
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
|
|
129512
129743
|
}
|
|
129513
|
-
[
|
|
129744
|
+
[Xs]() {
|
|
129514
129745
|
switch (this.type) {
|
|
129515
129746
|
case "File":
|
|
129516
|
-
return this[
|
|
129747
|
+
return this[qs]();
|
|
129517
129748
|
case "Directory":
|
|
129518
|
-
return this[
|
|
129749
|
+
return this[js]();
|
|
129519
129750
|
case "SymbolicLink":
|
|
129520
|
-
return this[
|
|
129751
|
+
return this[ji]();
|
|
129521
129752
|
default:
|
|
129522
129753
|
return this.end();
|
|
129523
129754
|
}
|
|
129524
129755
|
}
|
|
129525
|
-
[
|
|
129526
|
-
return
|
|
129756
|
+
[ii](t) {
|
|
129757
|
+
return Vi(t, this.type === "Directory", this.portable);
|
|
129527
129758
|
}
|
|
129528
129759
|
[X](t) {
|
|
129529
|
-
return
|
|
129760
|
+
return Js(t, this.prefix);
|
|
129530
129761
|
}
|
|
129531
129762
|
[fe]() {
|
|
129532
129763
|
if (!this.stat) throw new Error("cannot write header before stat");
|
|
129533
|
-
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[
|
|
129764
|
+
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());
|
|
129534
129765
|
let t = this.header?.block;
|
|
129535
129766
|
if (!t) throw new Error("failed to encode header");
|
|
129536
129767
|
super.write(t);
|
|
129537
129768
|
}
|
|
129538
|
-
[
|
|
129769
|
+
[js]() {
|
|
129539
129770
|
if (!this.stat) throw new Error("cannot create directory entry without stat");
|
|
129540
129771
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
|
|
129541
129772
|
}
|
|
129542
|
-
[
|
|
129773
|
+
[ji]() {
|
|
129543
129774
|
$.readlink(this.absolute, (t, e) => {
|
|
129544
129775
|
if (t) return this.emit("error", t);
|
|
129545
|
-
this[
|
|
129776
|
+
this[ts](e);
|
|
129546
129777
|
});
|
|
129547
129778
|
}
|
|
129548
|
-
[
|
|
129779
|
+
[ts](t) {
|
|
129549
129780
|
this.linkpath = f(t), this[fe](), this.end();
|
|
129550
129781
|
}
|
|
129551
|
-
[
|
|
129782
|
+
[Qs](t) {
|
|
129552
129783
|
if (!this.stat) throw new Error("cannot create link entry without stat");
|
|
129553
|
-
this.type = "Link", this.linkpath = f(
|
|
129784
|
+
this.type = "Link", this.linkpath = f($s.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
|
|
129554
129785
|
}
|
|
129555
|
-
[
|
|
129786
|
+
[qs]() {
|
|
129556
129787
|
if (!this.stat) throw new Error("cannot create file entry without stat");
|
|
129557
129788
|
if (this.stat.nlink > 1) {
|
|
129558
129789
|
let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
|
|
129559
|
-
if (e?.indexOf(this.cwd) === 0) return this[
|
|
129790
|
+
if (e?.indexOf(this.cwd) === 0) return this[Qs](e);
|
|
129560
129791
|
this.linkCache.set(t, this.absolute);
|
|
129561
129792
|
}
|
|
129562
129793
|
if (this[fe](), this.stat.size === 0) return this.end();
|
|
129563
|
-
this[
|
|
129794
|
+
this[es]();
|
|
129564
129795
|
}
|
|
129565
|
-
[
|
|
129796
|
+
[es]() {
|
|
129566
129797
|
$.open(this.absolute, "r", (t, e) => {
|
|
129567
129798
|
if (t) return this.emit("error", t);
|
|
129568
|
-
this[
|
|
129799
|
+
this[is](e);
|
|
129569
129800
|
});
|
|
129570
129801
|
}
|
|
129571
|
-
[
|
|
129802
|
+
[is](t) {
|
|
129572
129803
|
if (this.fd = t, this.#t) return this[pt]();
|
|
129573
129804
|
if (!this.stat) throw new Error("should stat before calling onopenfile");
|
|
129574
129805
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
|
|
129575
129806
|
let e = Math.min(this.blockLen, this.maxReadSize);
|
|
129576
|
-
this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[
|
|
129807
|
+
this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ti]();
|
|
129577
129808
|
}
|
|
129578
|
-
[
|
|
129809
|
+
[ti]() {
|
|
129579
129810
|
let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
|
|
129580
129811
|
if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
|
|
129581
129812
|
$.read(t, e, i, r, n, (o, h) => {
|
|
129582
129813
|
if (o) return this[pt](() => this.emit("error", o));
|
|
129583
|
-
this[
|
|
129814
|
+
this[Ji](h);
|
|
129584
129815
|
});
|
|
129585
129816
|
}
|
|
129586
129817
|
[pt](t = () => {
|
|
129587
129818
|
}) {
|
|
129588
129819
|
this.fd !== void 0 && $.close(this.fd, t);
|
|
129589
129820
|
}
|
|
129590
|
-
[
|
|
129821
|
+
[Ji](t) {
|
|
129591
129822
|
if (t <= 0 && this.remain > 0) {
|
|
129592
129823
|
let r = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
|
|
129593
129824
|
return this[pt](() => this.emit("error", r));
|
|
@@ -129599,9 +129830,9 @@ var de = class extends A {
|
|
|
129599
129830
|
if (!this.buf) throw new Error("should have created buffer prior to reading");
|
|
129600
129831
|
if (t === this.remain) for (let r = t; r < this.length && t < this.blockRemain; r++) this.buf[r + this.offset] = 0, t++, this.remain++;
|
|
129601
129832
|
let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
|
|
129602
|
-
this.write(e) ? this[
|
|
129833
|
+
this.write(e) ? this[qi]() : this[ss](() => this[qi]());
|
|
129603
129834
|
}
|
|
129604
|
-
[
|
|
129835
|
+
[ss](t) {
|
|
129605
129836
|
this.once("drain", t);
|
|
129606
129837
|
}
|
|
129607
129838
|
write(t, e, i) {
|
|
@@ -129611,30 +129842,30 @@ var de = class extends A {
|
|
|
129611
129842
|
}
|
|
129612
129843
|
return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
|
|
129613
129844
|
}
|
|
129614
|
-
[
|
|
129845
|
+
[qi]() {
|
|
129615
129846
|
if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
|
|
129616
129847
|
if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
|
|
129617
|
-
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[
|
|
129848
|
+
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]();
|
|
129618
129849
|
}
|
|
129619
129850
|
};
|
|
129620
|
-
var
|
|
129851
|
+
var si = class extends de {
|
|
129621
129852
|
sync = true;
|
|
129622
|
-
[
|
|
129623
|
-
this[
|
|
129853
|
+
[Qi]() {
|
|
129854
|
+
this[ei]($.lstatSync(this.absolute));
|
|
129624
129855
|
}
|
|
129625
|
-
[
|
|
129626
|
-
this[
|
|
129856
|
+
[ji]() {
|
|
129857
|
+
this[ts]($.readlinkSync(this.absolute));
|
|
129627
129858
|
}
|
|
129628
|
-
[
|
|
129629
|
-
this[
|
|
129859
|
+
[es]() {
|
|
129860
|
+
this[is]($.openSync(this.absolute, "r"));
|
|
129630
129861
|
}
|
|
129631
|
-
[
|
|
129862
|
+
[ti]() {
|
|
129632
129863
|
let t = true;
|
|
129633
129864
|
try {
|
|
129634
129865
|
let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
|
|
129635
129866
|
if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
|
|
129636
129867
|
let h = $.readSync(e, i, r, n, o);
|
|
129637
|
-
this[
|
|
129868
|
+
this[Ji](h), t = false;
|
|
129638
129869
|
} finally {
|
|
129639
129870
|
if (t) try {
|
|
129640
129871
|
this[pt](() => {
|
|
@@ -129643,7 +129874,7 @@ var ii = class extends de {
|
|
|
129643
129874
|
}
|
|
129644
129875
|
}
|
|
129645
129876
|
}
|
|
129646
|
-
[
|
|
129877
|
+
[ss](t) {
|
|
129647
129878
|
t();
|
|
129648
129879
|
}
|
|
129649
129880
|
[pt](t = () => {
|
|
@@ -129651,7 +129882,7 @@ var ii = class extends de {
|
|
|
129651
129882
|
this.fd !== void 0 && $.closeSync(this.fd), t();
|
|
129652
129883
|
}
|
|
129653
129884
|
};
|
|
129654
|
-
var
|
|
129885
|
+
var ri = class extends D {
|
|
129655
129886
|
blockLen = 0;
|
|
129656
129887
|
blockRemain = 0;
|
|
129657
129888
|
buf = 0;
|
|
@@ -129687,7 +129918,7 @@ var si = class extends A {
|
|
|
129687
129918
|
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;
|
|
129688
129919
|
let { type: r } = t;
|
|
129689
129920
|
if (r === "Unsupported") throw new Error("writing entry that should be ignored");
|
|
129690
|
-
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[
|
|
129921
|
+
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);
|
|
129691
129922
|
let n = false;
|
|
129692
129923
|
if (!this.preservePaths) {
|
|
129693
129924
|
let [h, a] = ce(this.path);
|
|
@@ -129699,10 +129930,10 @@ var si = class extends A {
|
|
|
129699
129930
|
super.write(o), t.pipe(this);
|
|
129700
129931
|
}
|
|
129701
129932
|
[X](t) {
|
|
129702
|
-
return
|
|
129933
|
+
return Js(t, this.prefix);
|
|
129703
129934
|
}
|
|
129704
|
-
[
|
|
129705
|
-
return
|
|
129935
|
+
[ii](t) {
|
|
129936
|
+
return Vi(t, this.type === "Directory", this.portable);
|
|
129706
129937
|
}
|
|
129707
129938
|
write(t, e, i) {
|
|
129708
129939
|
typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8"));
|
|
@@ -129714,8 +129945,8 @@ var si = class extends A {
|
|
|
129714
129945
|
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;
|
|
129715
129946
|
}
|
|
129716
129947
|
};
|
|
129717
|
-
var
|
|
129718
|
-
var
|
|
129948
|
+
var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
|
|
129949
|
+
var ni = class s2 {
|
|
129719
129950
|
tail;
|
|
129720
129951
|
head;
|
|
129721
129952
|
length = 0;
|
|
@@ -129746,11 +129977,11 @@ var ri = class s2 {
|
|
|
129746
129977
|
t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
|
|
129747
129978
|
}
|
|
129748
129979
|
push(...t) {
|
|
129749
|
-
for (let e = 0, i = t.length; e < i; e++)
|
|
129980
|
+
for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
|
|
129750
129981
|
return this.length;
|
|
129751
129982
|
}
|
|
129752
129983
|
unshift(...t) {
|
|
129753
|
-
for (var e = 0, i = t.length; e < i; e++)
|
|
129984
|
+
for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
|
|
129754
129985
|
return this.length;
|
|
129755
129986
|
}
|
|
129756
129987
|
pop() {
|
|
@@ -129846,7 +130077,7 @@ var ri = class s2 {
|
|
|
129846
130077
|
let n = [];
|
|
129847
130078
|
for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
|
|
129848
130079
|
r ? r !== this.tail && (r = r.prev) : r = this.tail;
|
|
129849
|
-
for (let o of i) r =
|
|
130080
|
+
for (let o of i) r = In(this, r, o);
|
|
129850
130081
|
return n;
|
|
129851
130082
|
}
|
|
129852
130083
|
reverse() {
|
|
@@ -129858,14 +130089,14 @@ var ri = class s2 {
|
|
|
129858
130089
|
return this.head = e, this.tail = t, this;
|
|
129859
130090
|
}
|
|
129860
130091
|
};
|
|
129861
|
-
function
|
|
130092
|
+
function In(s3, t, e) {
|
|
129862
130093
|
let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
|
|
129863
130094
|
return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
|
|
129864
130095
|
}
|
|
129865
|
-
function
|
|
130096
|
+
function Cn(s3, t) {
|
|
129866
130097
|
s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
|
|
129867
130098
|
}
|
|
129868
|
-
function
|
|
130099
|
+
function Fn(s3, t) {
|
|
129869
130100
|
s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
|
|
129870
130101
|
}
|
|
129871
130102
|
var ue = class {
|
|
@@ -129877,7 +130108,7 @@ var ue = class {
|
|
|
129877
130108
|
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;
|
|
129878
130109
|
}
|
|
129879
130110
|
};
|
|
129880
|
-
var
|
|
130111
|
+
var di = class {
|
|
129881
130112
|
path;
|
|
129882
130113
|
absolute;
|
|
129883
130114
|
entry;
|
|
@@ -129890,28 +130121,28 @@ var fi = class {
|
|
|
129890
130121
|
this.path = t || "./", this.absolute = e;
|
|
129891
130122
|
}
|
|
129892
130123
|
};
|
|
129893
|
-
var
|
|
129894
|
-
var
|
|
130124
|
+
var tr = Buffer.alloc(1024);
|
|
130125
|
+
var oi = /* @__PURE__ */ Symbol("onStat");
|
|
129895
130126
|
var me = /* @__PURE__ */ Symbol("ended");
|
|
129896
130127
|
var W = /* @__PURE__ */ Symbol("queue");
|
|
129897
130128
|
var Ct = /* @__PURE__ */ Symbol("current");
|
|
129898
130129
|
var Ft = /* @__PURE__ */ Symbol("process");
|
|
129899
130130
|
var pe = /* @__PURE__ */ Symbol("processing");
|
|
129900
|
-
var
|
|
130131
|
+
var rs = /* @__PURE__ */ Symbol("processJob");
|
|
129901
130132
|
var G = /* @__PURE__ */ Symbol("jobs");
|
|
129902
|
-
var
|
|
129903
|
-
var
|
|
129904
|
-
var
|
|
129905
|
-
var
|
|
129906
|
-
var
|
|
129907
|
-
var
|
|
129908
|
-
var
|
|
129909
|
-
var
|
|
129910
|
-
var
|
|
129911
|
-
var
|
|
129912
|
-
var
|
|
129913
|
-
var
|
|
129914
|
-
var Et = class extends
|
|
130133
|
+
var ns = /* @__PURE__ */ Symbol("jobDone");
|
|
130134
|
+
var hi = /* @__PURE__ */ Symbol("addFSEntry");
|
|
130135
|
+
var er = /* @__PURE__ */ Symbol("addTarEntry");
|
|
130136
|
+
var as = /* @__PURE__ */ Symbol("stat");
|
|
130137
|
+
var ls = /* @__PURE__ */ Symbol("readdir");
|
|
130138
|
+
var ai = /* @__PURE__ */ Symbol("onreaddir");
|
|
130139
|
+
var li = /* @__PURE__ */ Symbol("pipe");
|
|
130140
|
+
var ir = /* @__PURE__ */ Symbol("entry");
|
|
130141
|
+
var os5 = /* @__PURE__ */ Symbol("entryOpt");
|
|
130142
|
+
var ci = /* @__PURE__ */ Symbol("writeEntryClass");
|
|
130143
|
+
var rr = /* @__PURE__ */ Symbol("write");
|
|
130144
|
+
var hs = /* @__PURE__ */ Symbol("ondrain");
|
|
130145
|
+
var Et = class extends D {
|
|
129915
130146
|
sync = false;
|
|
129916
130147
|
opt;
|
|
129917
130148
|
cwd;
|
|
@@ -129932,22 +130163,22 @@ var Et = class extends A {
|
|
|
129932
130163
|
mtime;
|
|
129933
130164
|
filter;
|
|
129934
130165
|
jobs;
|
|
129935
|
-
[
|
|
130166
|
+
[ci];
|
|
129936
130167
|
onWriteEntry;
|
|
129937
130168
|
[W];
|
|
129938
130169
|
[G] = 0;
|
|
129939
130170
|
[pe] = false;
|
|
129940
130171
|
[me] = false;
|
|
129941
130172
|
constructor(t = {}) {
|
|
129942
|
-
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[
|
|
130173
|
+
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) {
|
|
129943
130174
|
if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
129944
|
-
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new
|
|
130175
|
+
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");
|
|
129945
130176
|
let e = this.zip;
|
|
129946
|
-
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[
|
|
129947
|
-
} else this.on("drain", this[
|
|
129948
|
-
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
|
|
130177
|
+
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[hs]()), this.on("resume", () => e.resume());
|
|
130178
|
+
} else this.on("drain", this[hs]);
|
|
130179
|
+
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;
|
|
129949
130180
|
}
|
|
129950
|
-
[
|
|
130181
|
+
[rr](t) {
|
|
129951
130182
|
return super.write(t);
|
|
129952
130183
|
}
|
|
129953
130184
|
add(t) {
|
|
@@ -129958,97 +130189,97 @@ var Et = class extends A {
|
|
|
129958
130189
|
}
|
|
129959
130190
|
write(t) {
|
|
129960
130191
|
if (this[me]) throw new Error("write after end");
|
|
129961
|
-
return t instanceof Yt ? this[
|
|
130192
|
+
return t instanceof Yt ? this[er](t) : this[hi](t), this.flowing;
|
|
129962
130193
|
}
|
|
129963
|
-
[
|
|
129964
|
-
let e = f(
|
|
130194
|
+
[er](t) {
|
|
130195
|
+
let e = f(sr.resolve(this.cwd, t.path));
|
|
129965
130196
|
if (!this.filter(t.path, t)) t.resume();
|
|
129966
130197
|
else {
|
|
129967
|
-
let i = new
|
|
129968
|
-
i.entry = new
|
|
130198
|
+
let i = new di(t.path, e);
|
|
130199
|
+
i.entry = new ri(t, this[os5](i)), i.entry.on("end", () => this[ns](i)), this[G] += 1, this[W].push(i);
|
|
129969
130200
|
}
|
|
129970
130201
|
this[Ft]();
|
|
129971
130202
|
}
|
|
129972
|
-
[
|
|
129973
|
-
let e = f(
|
|
129974
|
-
this[W].push(new
|
|
130203
|
+
[hi](t) {
|
|
130204
|
+
let e = f(sr.resolve(this.cwd, t));
|
|
130205
|
+
this[W].push(new di(t, e)), this[Ft]();
|
|
129975
130206
|
}
|
|
129976
|
-
[
|
|
130207
|
+
[as](t) {
|
|
129977
130208
|
t.pending = true, this[G] += 1;
|
|
129978
130209
|
let e = this.follow ? "stat" : "lstat";
|
|
129979
|
-
|
|
129980
|
-
t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[
|
|
130210
|
+
fi[e](t.absolute, (i, r) => {
|
|
130211
|
+
t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[oi](t, r);
|
|
129981
130212
|
});
|
|
129982
130213
|
}
|
|
129983
|
-
[
|
|
129984
|
-
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[
|
|
130214
|
+
[oi](t, e) {
|
|
130215
|
+
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]();
|
|
129985
130216
|
}
|
|
129986
|
-
[
|
|
129987
|
-
t.pending = true, this[G] += 1,
|
|
130217
|
+
[ls](t) {
|
|
130218
|
+
t.pending = true, this[G] += 1, fi.readdir(t.absolute, (e, i) => {
|
|
129988
130219
|
if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
|
|
129989
|
-
this[
|
|
130220
|
+
this[ai](t, i);
|
|
129990
130221
|
});
|
|
129991
130222
|
}
|
|
129992
|
-
[
|
|
130223
|
+
[ai](t, e) {
|
|
129993
130224
|
this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ft]();
|
|
129994
130225
|
}
|
|
129995
130226
|
[Ft]() {
|
|
129996
130227
|
if (!this[pe]) {
|
|
129997
130228
|
this[pe] = true;
|
|
129998
|
-
for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[
|
|
130229
|
+
for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[rs](t.value), t.value.ignore) {
|
|
129999
130230
|
let e = t.next;
|
|
130000
130231
|
this[W].removeNode(t), t.next = e;
|
|
130001
130232
|
}
|
|
130002
|
-
this[pe] = false, this[me] &&
|
|
130233
|
+
this[pe] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(tr) : (super.write(tr), super.end()));
|
|
130003
130234
|
}
|
|
130004
130235
|
}
|
|
130005
130236
|
get [Ct]() {
|
|
130006
130237
|
return this[W] && this[W].head && this[W].head.value;
|
|
130007
130238
|
}
|
|
130008
|
-
[
|
|
130239
|
+
[ns](t) {
|
|
130009
130240
|
this[W].shift(), this[G] -= 1, this[Ft]();
|
|
130010
130241
|
}
|
|
130011
|
-
[
|
|
130242
|
+
[rs](t) {
|
|
130012
130243
|
if (!t.pending) {
|
|
130013
130244
|
if (t.entry) {
|
|
130014
|
-
t === this[Ct] && !t.piped && this[
|
|
130245
|
+
t === this[Ct] && !t.piped && this[li](t);
|
|
130015
130246
|
return;
|
|
130016
130247
|
}
|
|
130017
130248
|
if (!t.stat) {
|
|
130018
130249
|
let e = this.statCache.get(t.absolute);
|
|
130019
|
-
e ? this[
|
|
130250
|
+
e ? this[oi](t, e) : this[as](t);
|
|
130020
130251
|
}
|
|
130021
130252
|
if (t.stat && !t.ignore) {
|
|
130022
130253
|
if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
|
|
130023
130254
|
let e = this.readdirCache.get(t.absolute);
|
|
130024
|
-
if (e ? this[
|
|
130255
|
+
if (e ? this[ai](t, e) : this[ls](t), !t.readdir) return;
|
|
130025
130256
|
}
|
|
130026
|
-
if (t.entry = this[
|
|
130257
|
+
if (t.entry = this[ir](t), !t.entry) {
|
|
130027
130258
|
t.ignore = true;
|
|
130028
130259
|
return;
|
|
130029
130260
|
}
|
|
130030
|
-
t === this[Ct] && !t.piped && this[
|
|
130261
|
+
t === this[Ct] && !t.piped && this[li](t);
|
|
130031
130262
|
}
|
|
130032
130263
|
}
|
|
130033
130264
|
}
|
|
130034
|
-
[
|
|
130265
|
+
[os5](t) {
|
|
130035
130266
|
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 };
|
|
130036
130267
|
}
|
|
130037
|
-
[
|
|
130268
|
+
[ir](t) {
|
|
130038
130269
|
this[G] += 1;
|
|
130039
130270
|
try {
|
|
130040
|
-
return new this[
|
|
130271
|
+
return new this[ci](t.path, this[os5](t)).on("end", () => this[ns](t)).on("error", (i) => this.emit("error", i));
|
|
130041
130272
|
} catch (e) {
|
|
130042
130273
|
this.emit("error", e);
|
|
130043
130274
|
}
|
|
130044
130275
|
}
|
|
130045
|
-
[
|
|
130276
|
+
[hs]() {
|
|
130046
130277
|
this[Ct] && this[Ct].entry && this[Ct].entry.resume();
|
|
130047
130278
|
}
|
|
130048
|
-
[
|
|
130279
|
+
[li](t) {
|
|
130049
130280
|
t.piped = true, t.readdir && t.readdir.forEach((r) => {
|
|
130050
130281
|
let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
|
|
130051
|
-
this[
|
|
130282
|
+
this[hi](o + r);
|
|
130052
130283
|
});
|
|
130053
130284
|
let e = t.entry, i = this.zip;
|
|
130054
130285
|
if (!e) throw new Error("cannot pipe without source");
|
|
@@ -130068,131 +130299,128 @@ var Et = class extends A {
|
|
|
130068
130299
|
var kt = class extends Et {
|
|
130069
130300
|
sync = true;
|
|
130070
130301
|
constructor(t) {
|
|
130071
|
-
super(t), this[
|
|
130302
|
+
super(t), this[ci] = si;
|
|
130072
130303
|
}
|
|
130073
130304
|
pause() {
|
|
130074
130305
|
}
|
|
130075
130306
|
resume() {
|
|
130076
130307
|
}
|
|
130077
|
-
[
|
|
130308
|
+
[as](t) {
|
|
130078
130309
|
let e = this.follow ? "statSync" : "lstatSync";
|
|
130079
|
-
this[
|
|
130310
|
+
this[oi](t, fi[e](t.absolute));
|
|
130080
130311
|
}
|
|
130081
|
-
[
|
|
130082
|
-
this[
|
|
130312
|
+
[ls](t) {
|
|
130313
|
+
this[ai](t, fi.readdirSync(t.absolute));
|
|
130083
130314
|
}
|
|
130084
|
-
[
|
|
130315
|
+
[li](t) {
|
|
130085
130316
|
let e = t.entry, i = this.zip;
|
|
130086
130317
|
if (t.readdir && t.readdir.forEach((r) => {
|
|
130087
130318
|
let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
|
|
130088
|
-
this[
|
|
130319
|
+
this[hi](o + r);
|
|
130089
130320
|
}), !e) throw new Error("Cannot pipe without source");
|
|
130090
130321
|
i ? e.on("data", (r) => {
|
|
130091
130322
|
i.write(r);
|
|
130092
130323
|
}) : e.on("data", (r) => {
|
|
130093
|
-
super[
|
|
130324
|
+
super[rr](r);
|
|
130094
130325
|
});
|
|
130095
130326
|
}
|
|
130096
130327
|
};
|
|
130097
|
-
var
|
|
130328
|
+
var kn = (s3, t) => {
|
|
130098
130329
|
let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
|
|
130099
|
-
e.pipe(i),
|
|
130330
|
+
e.pipe(i), or(e, t);
|
|
130100
130331
|
};
|
|
130101
|
-
var
|
|
130332
|
+
var vn = (s3, t) => {
|
|
130102
130333
|
let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
|
|
130103
130334
|
e.pipe(i);
|
|
130104
130335
|
let r = new Promise((n, o) => {
|
|
130105
130336
|
i.on("error", o), i.on("close", n), e.on("error", o);
|
|
130106
130337
|
});
|
|
130107
|
-
return
|
|
130338
|
+
return hr(e, t).catch((n) => e.emit("error", n)), r;
|
|
130108
130339
|
};
|
|
130109
|
-
var
|
|
130340
|
+
var or = (s3, t) => {
|
|
130110
130341
|
t.forEach((e) => {
|
|
130111
|
-
e.charAt(0) === "@" ? It({ file:
|
|
130342
|
+
e.charAt(0) === "@" ? It({ file: nr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
130112
130343
|
}), s3.end();
|
|
130113
130344
|
};
|
|
130114
|
-
var
|
|
130115
|
-
for (let e
|
|
130116
|
-
|
|
130117
|
-
|
|
130118
|
-
s3.add(r);
|
|
130119
|
-
} }) : s3.add(i);
|
|
130120
|
-
}
|
|
130345
|
+
var hr = async (s3, t) => {
|
|
130346
|
+
for (let e of t) e.charAt(0) === "@" ? await It({ file: nr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
|
|
130347
|
+
s3.add(i);
|
|
130348
|
+
} }) : s3.add(e);
|
|
130121
130349
|
s3.end();
|
|
130122
130350
|
};
|
|
130123
|
-
var
|
|
130351
|
+
var Mn = (s3, t) => {
|
|
130124
130352
|
let e = new kt(s3);
|
|
130125
|
-
return
|
|
130353
|
+
return or(e, t), e;
|
|
130126
130354
|
};
|
|
130127
|
-
var
|
|
130355
|
+
var Bn = (s3, t) => {
|
|
130128
130356
|
let e = new Et(s3);
|
|
130129
|
-
return
|
|
130357
|
+
return hr(e, t).catch((i) => e.emit("error", i)), e;
|
|
130130
130358
|
};
|
|
130131
|
-
var
|
|
130359
|
+
var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
|
|
130132
130360
|
if (!t?.length) throw new TypeError("no paths specified to add to archive");
|
|
130133
130361
|
});
|
|
130134
|
-
var
|
|
130135
|
-
var
|
|
130136
|
-
var { O_CREAT:
|
|
130137
|
-
var
|
|
130138
|
-
var
|
|
130139
|
-
var
|
|
130140
|
-
var
|
|
130141
|
-
var
|
|
130142
|
-
var
|
|
130362
|
+
var zn = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
130363
|
+
var Un = zn === "win32";
|
|
130364
|
+
var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = ar.constants;
|
|
130365
|
+
var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || ar.constants.UV_FS_O_FILEMAP || 0;
|
|
130366
|
+
var Zn = Un && !!lr;
|
|
130367
|
+
var Yn = 512 * 1024;
|
|
130368
|
+
var Kn = lr | Wn | Hn | Gn;
|
|
130369
|
+
var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
|
|
130370
|
+
var fs3 = (s3, t, e) => {
|
|
130143
130371
|
try {
|
|
130144
|
-
return
|
|
130372
|
+
return mi.lchownSync(s3, t, e);
|
|
130145
130373
|
} catch (i) {
|
|
130146
130374
|
if (i?.code !== "ENOENT") throw i;
|
|
130147
130375
|
}
|
|
130148
130376
|
};
|
|
130149
|
-
var
|
|
130150
|
-
|
|
130377
|
+
var ui = (s3, t, e, i) => {
|
|
130378
|
+
mi.lchown(s3, t, e, (r) => {
|
|
130151
130379
|
i(r && r?.code !== "ENOENT" ? r : null);
|
|
130152
130380
|
});
|
|
130153
130381
|
};
|
|
130154
|
-
var
|
|
130155
|
-
if (t.isDirectory())
|
|
130382
|
+
var Vn = (s3, t, e, i, r) => {
|
|
130383
|
+
if (t.isDirectory()) ds(Ee.resolve(s3, t.name), e, i, (n) => {
|
|
130156
130384
|
if (n) return r(n);
|
|
130157
130385
|
let o = Ee.resolve(s3, t.name);
|
|
130158
|
-
|
|
130386
|
+
ui(o, e, i, r);
|
|
130159
130387
|
});
|
|
130160
130388
|
else {
|
|
130161
130389
|
let n = Ee.resolve(s3, t.name);
|
|
130162
|
-
|
|
130390
|
+
ui(n, e, i, r);
|
|
130163
130391
|
}
|
|
130164
130392
|
};
|
|
130165
|
-
var
|
|
130166
|
-
|
|
130393
|
+
var ds = (s3, t, e, i) => {
|
|
130394
|
+
mi.readdir(s3, { withFileTypes: true }, (r, n) => {
|
|
130167
130395
|
if (r) {
|
|
130168
130396
|
if (r.code === "ENOENT") return i();
|
|
130169
130397
|
if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
|
|
130170
130398
|
}
|
|
130171
|
-
if (r || !n.length) return
|
|
130399
|
+
if (r || !n.length) return ui(s3, t, e, i);
|
|
130172
130400
|
let o = n.length, h = null, a = (l) => {
|
|
130173
130401
|
if (!h) {
|
|
130174
130402
|
if (l) return i(h = l);
|
|
130175
|
-
if (--o === 0) return
|
|
130403
|
+
if (--o === 0) return ui(s3, t, e, i);
|
|
130176
130404
|
}
|
|
130177
130405
|
};
|
|
130178
|
-
for (let l of n)
|
|
130406
|
+
for (let l of n) Vn(s3, l, t, e, a);
|
|
130179
130407
|
});
|
|
130180
130408
|
};
|
|
130181
|
-
var
|
|
130182
|
-
t.isDirectory() &&
|
|
130409
|
+
var $n = (s3, t, e, i) => {
|
|
130410
|
+
t.isDirectory() && us(Ee.resolve(s3, t.name), e, i), fs3(Ee.resolve(s3, t.name), e, i);
|
|
130183
130411
|
};
|
|
130184
|
-
var
|
|
130412
|
+
var us = (s3, t, e) => {
|
|
130185
130413
|
let i;
|
|
130186
130414
|
try {
|
|
130187
|
-
i =
|
|
130415
|
+
i = mi.readdirSync(s3, { withFileTypes: true });
|
|
130188
130416
|
} catch (r) {
|
|
130189
130417
|
let n = r;
|
|
130190
130418
|
if (n?.code === "ENOENT") return;
|
|
130191
|
-
if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return
|
|
130419
|
+
if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs3(s3, t, e);
|
|
130192
130420
|
throw n;
|
|
130193
130421
|
}
|
|
130194
|
-
for (let r of i)
|
|
130195
|
-
return
|
|
130422
|
+
for (let r of i) $n(s3, r, t, e);
|
|
130423
|
+
return fs3(s3, t, e);
|
|
130196
130424
|
};
|
|
130197
130425
|
var we = class extends Error {
|
|
130198
130426
|
path;
|
|
@@ -130217,41 +130445,41 @@ var wt = class extends Error {
|
|
|
130217
130445
|
return "SymlinkError";
|
|
130218
130446
|
}
|
|
130219
130447
|
};
|
|
130220
|
-
var
|
|
130448
|
+
var qn = (s3, t) => {
|
|
130221
130449
|
k.stat(s3, (e, i) => {
|
|
130222
130450
|
(e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
|
|
130223
130451
|
});
|
|
130224
130452
|
};
|
|
130225
|
-
var
|
|
130453
|
+
var cr = (s3, t, e) => {
|
|
130226
130454
|
s3 = f(s3);
|
|
130227
130455
|
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) => {
|
|
130228
|
-
E ? e(E) : x && a ?
|
|
130456
|
+
E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? k.chmod(s3, r, e) : e();
|
|
130229
130457
|
};
|
|
130230
|
-
if (s3 === d) return
|
|
130231
|
-
if (l) return
|
|
130232
|
-
let N = f(
|
|
130233
|
-
|
|
130458
|
+
if (s3 === d) return qn(s3, S);
|
|
130459
|
+
if (l) return Xn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
|
|
130460
|
+
let N = f(pi.relative(d, s3)).split("/");
|
|
130461
|
+
ms(d, N, r, c, d, void 0, S);
|
|
130234
130462
|
};
|
|
130235
|
-
var
|
|
130236
|
-
if (
|
|
130237
|
-
let h = t.shift(), a = f(
|
|
130238
|
-
k.mkdir(a, e,
|
|
130463
|
+
var ms = (s3, t, e, i, r, n, o) => {
|
|
130464
|
+
if (t.length === 0) return o(null, n);
|
|
130465
|
+
let h = t.shift(), a = f(pi.resolve(s3 + "/" + h));
|
|
130466
|
+
k.mkdir(a, e, fr(a, t, e, i, r, n, o));
|
|
130239
130467
|
};
|
|
130240
|
-
var
|
|
130468
|
+
var fr = (s3, t, e, i, r, n, o) => (h) => {
|
|
130241
130469
|
h ? k.lstat(s3, (a, l) => {
|
|
130242
130470
|
if (a) a.path = a.path && f(a.path), o(a);
|
|
130243
|
-
else if (l.isDirectory())
|
|
130471
|
+
else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
|
|
130244
130472
|
else if (i) k.unlink(s3, (c) => {
|
|
130245
130473
|
if (c) return o(c);
|
|
130246
|
-
k.mkdir(s3, e,
|
|
130474
|
+
k.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
|
|
130247
130475
|
});
|
|
130248
130476
|
else {
|
|
130249
130477
|
if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
|
|
130250
130478
|
o(h);
|
|
130251
130479
|
}
|
|
130252
|
-
}) : (n = n || s3,
|
|
130480
|
+
}) : (n = n || s3, ms(s3, t, e, i, r, n, o));
|
|
130253
130481
|
};
|
|
130254
|
-
var
|
|
130482
|
+
var jn = (s3) => {
|
|
130255
130483
|
let t = false, e;
|
|
130256
130484
|
try {
|
|
130257
130485
|
t = k.statSync(s3).isDirectory();
|
|
@@ -130261,53 +130489,53 @@ var Qn = (s3) => {
|
|
|
130261
130489
|
if (!t) throw new we(s3, e ?? "ENOTDIR");
|
|
130262
130490
|
}
|
|
130263
130491
|
};
|
|
130264
|
-
var
|
|
130492
|
+
var dr = (s3, t) => {
|
|
130265
130493
|
s3 = f(s3);
|
|
130266
130494
|
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) => {
|
|
130267
|
-
E && h &&
|
|
130495
|
+
E && h && us(E, n, o), r && k.chmodSync(s3, i);
|
|
130268
130496
|
};
|
|
130269
|
-
if (s3 === c) return
|
|
130497
|
+
if (s3 === c) return jn(c), d();
|
|
130270
130498
|
if (a) return d(k.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
|
|
130271
|
-
let T = f(
|
|
130499
|
+
let T = f(pi.relative(c, s3)).split("/"), N;
|
|
130272
130500
|
for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
|
|
130273
|
-
x = f(
|
|
130501
|
+
x = f(pi.resolve(x));
|
|
130274
130502
|
try {
|
|
130275
130503
|
k.mkdirSync(x, i), N = N || x;
|
|
130276
130504
|
} catch {
|
|
130277
|
-
let
|
|
130278
|
-
if (
|
|
130505
|
+
let xe = k.lstatSync(x);
|
|
130506
|
+
if (xe.isDirectory()) continue;
|
|
130279
130507
|
if (l) {
|
|
130280
130508
|
k.unlinkSync(x), k.mkdirSync(x, i), N = N || x;
|
|
130281
130509
|
continue;
|
|
130282
|
-
} else if (
|
|
130510
|
+
} else if (xe.isSymbolicLink()) return new wt(x, x + "/" + T.join("/"));
|
|
130283
130511
|
}
|
|
130284
130512
|
}
|
|
130285
130513
|
return d(N);
|
|
130286
130514
|
};
|
|
130287
|
-
var
|
|
130288
|
-
var
|
|
130515
|
+
var ps = /* @__PURE__ */ Object.create(null);
|
|
130516
|
+
var ur = 1e4;
|
|
130289
130517
|
var $t = /* @__PURE__ */ new Set();
|
|
130290
|
-
var
|
|
130291
|
-
$t.has(s3) ? $t.delete(s3) :
|
|
130292
|
-
let t =
|
|
130293
|
-
if (e >
|
|
130294
|
-
for (let i of $t) if ($t.delete(i), delete
|
|
130518
|
+
var mr = (s3) => {
|
|
130519
|
+
$t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
|
|
130520
|
+
let t = ps[s3], e = $t.size - ur;
|
|
130521
|
+
if (e > ur / 10) {
|
|
130522
|
+
for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
|
|
130295
130523
|
}
|
|
130296
130524
|
return t;
|
|
130297
130525
|
};
|
|
130298
|
-
var
|
|
130299
|
-
var
|
|
130300
|
-
var
|
|
130301
|
-
let r = e
|
|
130302
|
-
return r !== void 0 && (i =
|
|
130526
|
+
var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
130527
|
+
var Jn = Qn === "win32";
|
|
130528
|
+
var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
|
|
130529
|
+
let r = e.at(-1);
|
|
130530
|
+
return r !== void 0 && (i = pr(r, i)), e.push(i || "/"), e;
|
|
130303
130531
|
}, []);
|
|
130304
|
-
var
|
|
130532
|
+
var Ei = class {
|
|
130305
130533
|
#t = /* @__PURE__ */ new Map();
|
|
130306
130534
|
#i = /* @__PURE__ */ new Map();
|
|
130307
130535
|
#s = /* @__PURE__ */ new Set();
|
|
130308
130536
|
reserve(t, e) {
|
|
130309
|
-
t =
|
|
130310
|
-
let i = new Set(t.map((r) =>
|
|
130537
|
+
t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt(pr(mr(r))));
|
|
130538
|
+
let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
|
|
130311
130539
|
this.#i.set(e, { dirs: i, paths: t });
|
|
130312
130540
|
for (let r of t) {
|
|
130313
130541
|
let n = this.#t.get(r);
|
|
@@ -130317,7 +130545,7 @@ var pi = class {
|
|
|
130317
130545
|
let n = this.#t.get(r);
|
|
130318
130546
|
if (!n) this.#t.set(r, [/* @__PURE__ */ new Set([e])]);
|
|
130319
130547
|
else {
|
|
130320
|
-
let o = n
|
|
130548
|
+
let o = n.at(-1);
|
|
130321
130549
|
o instanceof Set ? o.add(e) : n.push(/* @__PURE__ */ new Set([e]));
|
|
130322
130550
|
}
|
|
130323
130551
|
}
|
|
@@ -130365,55 +130593,55 @@ var pi = class {
|
|
|
130365
130593
|
return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
|
|
130366
130594
|
}
|
|
130367
130595
|
};
|
|
130368
|
-
var
|
|
130369
|
-
var
|
|
130370
|
-
var
|
|
130371
|
-
var
|
|
130372
|
-
var
|
|
130596
|
+
var Er = () => process.umask();
|
|
130597
|
+
var wr = /* @__PURE__ */ Symbol("onEntry");
|
|
130598
|
+
var ys = /* @__PURE__ */ Symbol("checkFs");
|
|
130599
|
+
var Sr = /* @__PURE__ */ Symbol("checkFs2");
|
|
130600
|
+
var Rs = /* @__PURE__ */ Symbol("isReusable");
|
|
130373
130601
|
var P = /* @__PURE__ */ Symbol("makeFs");
|
|
130374
|
-
var
|
|
130375
|
-
var
|
|
130376
|
-
var
|
|
130377
|
-
var
|
|
130378
|
-
var
|
|
130602
|
+
var bs = /* @__PURE__ */ Symbol("file");
|
|
130603
|
+
var _s = /* @__PURE__ */ Symbol("directory");
|
|
130604
|
+
var Si = /* @__PURE__ */ Symbol("link");
|
|
130605
|
+
var yr = /* @__PURE__ */ Symbol("symlink");
|
|
130606
|
+
var Rr = /* @__PURE__ */ Symbol("hardlink");
|
|
130379
130607
|
var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
|
|
130380
|
-
var
|
|
130608
|
+
var br = /* @__PURE__ */ Symbol("unsupported");
|
|
130381
130609
|
var _r = /* @__PURE__ */ Symbol("checkPath");
|
|
130382
|
-
var
|
|
130610
|
+
var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
|
|
130383
130611
|
var St = /* @__PURE__ */ Symbol("mkdir");
|
|
130384
130612
|
var O = /* @__PURE__ */ Symbol("onError");
|
|
130385
|
-
var
|
|
130386
|
-
var
|
|
130613
|
+
var wi = /* @__PURE__ */ Symbol("pending");
|
|
130614
|
+
var gr = /* @__PURE__ */ Symbol("pend");
|
|
130387
130615
|
var Xt = /* @__PURE__ */ Symbol("unpend");
|
|
130388
|
-
var
|
|
130389
|
-
var
|
|
130616
|
+
var ws = /* @__PURE__ */ Symbol("ended");
|
|
130617
|
+
var Ss = /* @__PURE__ */ Symbol("maybeClose");
|
|
130390
130618
|
var gs = /* @__PURE__ */ Symbol("skip");
|
|
130391
130619
|
var Re = /* @__PURE__ */ Symbol("doChown");
|
|
130392
130620
|
var be = /* @__PURE__ */ Symbol("uid");
|
|
130393
|
-
var
|
|
130394
|
-
var
|
|
130395
|
-
var
|
|
130396
|
-
var Oe =
|
|
130397
|
-
var
|
|
130398
|
-
var
|
|
130621
|
+
var _e = /* @__PURE__ */ Symbol("gid");
|
|
130622
|
+
var ge = /* @__PURE__ */ Symbol("checkedCwd");
|
|
130623
|
+
var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
130624
|
+
var Oe = io === "win32";
|
|
130625
|
+
var so = 1024;
|
|
130626
|
+
var ro = (s3, t) => {
|
|
130399
130627
|
if (!Oe) return u.unlink(s3, t);
|
|
130400
|
-
let e = s3 + ".DELETE." +
|
|
130628
|
+
let e = s3 + ".DELETE." + Tr(16).toString("hex");
|
|
130401
130629
|
u.rename(s3, e, (i) => {
|
|
130402
130630
|
if (i) return t(i);
|
|
130403
130631
|
u.unlink(e, t);
|
|
130404
130632
|
});
|
|
130405
130633
|
};
|
|
130406
|
-
var
|
|
130634
|
+
var no = (s3) => {
|
|
130407
130635
|
if (!Oe) return u.unlinkSync(s3);
|
|
130408
|
-
let t = s3 + ".DELETE." +
|
|
130636
|
+
let t = s3 + ".DELETE." + Tr(16).toString("hex");
|
|
130409
130637
|
u.renameSync(s3, t), u.unlinkSync(t);
|
|
130410
130638
|
};
|
|
130411
|
-
var
|
|
130639
|
+
var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
|
|
130412
130640
|
var qt = class extends st {
|
|
130413
|
-
[
|
|
130414
|
-
[
|
|
130415
|
-
[
|
|
130416
|
-
reservations = new
|
|
130641
|
+
[ws] = false;
|
|
130642
|
+
[ge] = false;
|
|
130643
|
+
[wi] = 0;
|
|
130644
|
+
reservations = new Ei();
|
|
130417
130645
|
transform;
|
|
130418
130646
|
writable = true;
|
|
130419
130647
|
readable = false;
|
|
@@ -130440,30 +130668,28 @@ var qt = class extends st {
|
|
|
130440
130668
|
chmod;
|
|
130441
130669
|
constructor(t = {}) {
|
|
130442
130670
|
if (t.ondone = () => {
|
|
130443
|
-
this[
|
|
130671
|
+
this[ws] = true, this[Ss]();
|
|
130444
130672
|
}, super(t), this.transform = t.transform, this.chmod = !!t.chmod, typeof t.uid == "number" || typeof t.gid == "number") {
|
|
130445
130673
|
if (typeof t.uid != "number" || typeof t.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
|
|
130446
130674
|
if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
130447
130675
|
this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
|
|
130448
130676
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
130449
|
-
t.preserveOwner === void 0 && typeof t.uid != "number" ?
|
|
130677
|
+
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));
|
|
130450
130678
|
}
|
|
130451
130679
|
warn(t, e, i = {}) {
|
|
130452
130680
|
return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
|
|
130453
130681
|
}
|
|
130454
|
-
[
|
|
130455
|
-
this[
|
|
130682
|
+
[Ss]() {
|
|
130683
|
+
this[ws] && this[wi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
|
130456
130684
|
}
|
|
130457
|
-
[
|
|
130685
|
+
[Es](t, e) {
|
|
130458
130686
|
let i = t[e], { type: r } = t;
|
|
130459
130687
|
if (!i || this.preservePaths) return true;
|
|
130460
|
-
let [n, o] = ce(i), h = o.
|
|
130688
|
+
let [n, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
|
|
130461
130689
|
if (h.includes("..") || Oe && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
|
|
130462
130690
|
if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
|
|
130463
|
-
|
|
130464
|
-
|
|
130465
|
-
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
130466
|
-
}
|
|
130691
|
+
let a = R.posix.dirname(t.path), l = R.posix.normalize(R.posix.join(a, h.join("/")));
|
|
130692
|
+
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
130467
130693
|
}
|
|
130468
130694
|
return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
|
|
130469
130695
|
}
|
|
@@ -130479,20 +130705,20 @@ var qt = class extends st {
|
|
|
130479
130705
|
i.splice(0, this.strip), t.path = i.join("/");
|
|
130480
130706
|
}
|
|
130481
130707
|
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;
|
|
130482
|
-
if (!this[
|
|
130483
|
-
if (R.isAbsolute(t.path) ?
|
|
130708
|
+
if (!this[Es](t, "path") || !this[Es](t, "linkpath")) return false;
|
|
130709
|
+
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;
|
|
130484
130710
|
if (t.absolute === this.cwd && t.type !== "Directory" && t.type !== "GNUDumpDir") return false;
|
|
130485
130711
|
if (this.win32) {
|
|
130486
130712
|
let { root: r } = R.win32.parse(String(t.absolute));
|
|
130487
|
-
t.absolute = r +
|
|
130713
|
+
t.absolute = r + Xi(String(t.absolute).slice(r.length));
|
|
130488
130714
|
let { root: n } = R.win32.parse(t.path);
|
|
130489
|
-
t.path = n +
|
|
130715
|
+
t.path = n + Xi(t.path.slice(n.length));
|
|
130490
130716
|
}
|
|
130491
130717
|
return true;
|
|
130492
130718
|
}
|
|
130493
|
-
[
|
|
130719
|
+
[wr](t) {
|
|
130494
130720
|
if (!this[_r](t)) return t.resume();
|
|
130495
|
-
switch (
|
|
130721
|
+
switch (eo.equal(typeof t.absolute, "string"), t.type) {
|
|
130496
130722
|
case "Directory":
|
|
130497
130723
|
case "GNUDumpDir":
|
|
130498
130724
|
t.mode && (t.mode = t.mode | 448);
|
|
@@ -130501,28 +130727,28 @@ var qt = class extends st {
|
|
|
130501
130727
|
case "ContiguousFile":
|
|
130502
130728
|
case "Link":
|
|
130503
130729
|
case "SymbolicLink":
|
|
130504
|
-
return this[
|
|
130730
|
+
return this[ys](t);
|
|
130505
130731
|
default:
|
|
130506
|
-
return this[
|
|
130732
|
+
return this[br](t);
|
|
130507
130733
|
}
|
|
130508
130734
|
}
|
|
130509
130735
|
[O](t, e) {
|
|
130510
130736
|
t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
|
|
130511
130737
|
}
|
|
130512
130738
|
[St](t, e, i) {
|
|
130513
|
-
|
|
130739
|
+
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);
|
|
130514
130740
|
}
|
|
130515
130741
|
[Re](t) {
|
|
130516
130742
|
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;
|
|
130517
130743
|
}
|
|
130518
130744
|
[be](t) {
|
|
130519
|
-
return
|
|
130745
|
+
return Or(this.uid, t.uid, this.processUid);
|
|
130520
130746
|
}
|
|
130521
|
-
[
|
|
130522
|
-
return
|
|
130747
|
+
[_e](t) {
|
|
130748
|
+
return Or(this.gid, t.gid, this.processGid);
|
|
130523
130749
|
}
|
|
130524
|
-
[
|
|
130525
|
-
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags:
|
|
130750
|
+
[bs](t, e) {
|
|
130751
|
+
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 });
|
|
130526
130752
|
r.on("error", (a) => {
|
|
130527
130753
|
r.fd && u.close(r.fd, () => {
|
|
130528
130754
|
}), r.write = () => true, this[O](a, t), e();
|
|
@@ -130546,7 +130772,7 @@ var qt = class extends st {
|
|
|
130546
130772
|
}
|
|
130547
130773
|
if (typeof l == "number" && this[Re](t)) {
|
|
130548
130774
|
n++;
|
|
130549
|
-
let c = this[be](t), d = this[
|
|
130775
|
+
let c = this[be](t), d = this[_e](t);
|
|
130550
130776
|
typeof c == "number" && typeof d == "number" && u.fchown(l, c, d, (S) => S ? u.chown(a, c, d, (T) => o(T && S)) : o());
|
|
130551
130777
|
}
|
|
130552
130778
|
o();
|
|
@@ -130556,7 +130782,7 @@ var qt = class extends st {
|
|
|
130556
130782
|
this[O](a, t), e();
|
|
130557
130783
|
}), t.pipe(h)), h.pipe(r);
|
|
130558
130784
|
}
|
|
130559
|
-
[
|
|
130785
|
+
[_s](t, e) {
|
|
130560
130786
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
|
|
130561
130787
|
this[St](String(t.absolute), i, (r) => {
|
|
130562
130788
|
if (r) {
|
|
@@ -130566,21 +130792,21 @@ var qt = class extends st {
|
|
|
130566
130792
|
let n = 1, o = () => {
|
|
130567
130793
|
--n === 0 && (e(), this[Xt](), t.resume());
|
|
130568
130794
|
};
|
|
130569
|
-
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[
|
|
130795
|
+
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();
|
|
130570
130796
|
});
|
|
130571
130797
|
}
|
|
130572
|
-
[
|
|
130798
|
+
[br](t) {
|
|
130573
130799
|
t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
|
|
130574
130800
|
}
|
|
130575
|
-
[
|
|
130801
|
+
[yr](t, e) {
|
|
130576
130802
|
let i = f(R.relative(this.cwd, R.resolve(R.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
|
|
130577
|
-
this[ye](t, this.cwd, i, () => this[
|
|
130803
|
+
this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
|
|
130578
130804
|
this[O](r, t), e();
|
|
130579
130805
|
});
|
|
130580
130806
|
}
|
|
130581
|
-
[
|
|
130807
|
+
[Rr](t, e) {
|
|
130582
130808
|
let i = f(R.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
|
|
130583
|
-
this[ye](t, this.cwd, r, () => this[
|
|
130809
|
+
this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
|
|
130584
130810
|
this[O](n, t), e();
|
|
130585
130811
|
});
|
|
130586
130812
|
}
|
|
@@ -130594,24 +130820,24 @@ var qt = class extends st {
|
|
|
130594
130820
|
this[ye](t, h, i, r, n);
|
|
130595
130821
|
});
|
|
130596
130822
|
}
|
|
130597
|
-
[
|
|
130598
|
-
this[
|
|
130823
|
+
[gr]() {
|
|
130824
|
+
this[wi]++;
|
|
130599
130825
|
}
|
|
130600
130826
|
[Xt]() {
|
|
130601
|
-
this[
|
|
130827
|
+
this[wi]--, this[Ss]();
|
|
130602
130828
|
}
|
|
130603
130829
|
[gs](t) {
|
|
130604
130830
|
this[Xt](), t.resume();
|
|
130605
130831
|
}
|
|
130606
|
-
[
|
|
130832
|
+
[Rs](t, e) {
|
|
130607
130833
|
return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
|
|
130608
130834
|
}
|
|
130609
|
-
[
|
|
130610
|
-
this[
|
|
130835
|
+
[ys](t) {
|
|
130836
|
+
this[gr]();
|
|
130611
130837
|
let e = [t.path];
|
|
130612
|
-
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[
|
|
130838
|
+
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
|
|
130613
130839
|
}
|
|
130614
|
-
[
|
|
130840
|
+
[Sr](t, e) {
|
|
130615
130841
|
let i = (h) => {
|
|
130616
130842
|
e(h);
|
|
130617
130843
|
}, r = () => {
|
|
@@ -130620,7 +130846,7 @@ var qt = class extends st {
|
|
|
130620
130846
|
this[O](h, t), i();
|
|
130621
130847
|
return;
|
|
130622
130848
|
}
|
|
130623
|
-
this[
|
|
130849
|
+
this[ge] = true, n();
|
|
130624
130850
|
});
|
|
130625
130851
|
}, n = () => {
|
|
130626
130852
|
if (t.absolute !== this.cwd) {
|
|
@@ -130640,7 +130866,7 @@ var qt = class extends st {
|
|
|
130640
130866
|
this[gs](t), i();
|
|
130641
130867
|
return;
|
|
130642
130868
|
}
|
|
130643
|
-
if (h || this[
|
|
130869
|
+
if (h || this[Rs](t, a)) return this[P](null, t, i);
|
|
130644
130870
|
if (a.isDirectory()) {
|
|
130645
130871
|
if (t.type === "Directory") {
|
|
130646
130872
|
let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
|
|
@@ -130649,10 +130875,10 @@ var qt = class extends st {
|
|
|
130649
130875
|
if (t.absolute !== this.cwd) return u.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
130650
130876
|
}
|
|
130651
130877
|
if (t.absolute === this.cwd) return this[P](null, t, i);
|
|
130652
|
-
|
|
130878
|
+
ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
130653
130879
|
});
|
|
130654
130880
|
};
|
|
130655
|
-
this[
|
|
130881
|
+
this[ge] ? n() : r();
|
|
130656
130882
|
}
|
|
130657
130883
|
[P](t, e, i) {
|
|
130658
130884
|
if (t) {
|
|
@@ -130663,17 +130889,17 @@ var qt = class extends st {
|
|
|
130663
130889
|
case "File":
|
|
130664
130890
|
case "OldFile":
|
|
130665
130891
|
case "ContiguousFile":
|
|
130666
|
-
return this[
|
|
130892
|
+
return this[bs](e, i);
|
|
130667
130893
|
case "Link":
|
|
130668
|
-
return this[br](e, i);
|
|
130669
|
-
case "SymbolicLink":
|
|
130670
130894
|
return this[Rr](e, i);
|
|
130895
|
+
case "SymbolicLink":
|
|
130896
|
+
return this[yr](e, i);
|
|
130671
130897
|
case "Directory":
|
|
130672
130898
|
case "GNUDumpDir":
|
|
130673
|
-
return this[
|
|
130899
|
+
return this[_s](e, i);
|
|
130674
130900
|
}
|
|
130675
130901
|
}
|
|
130676
|
-
[
|
|
130902
|
+
[Si](t, e, i, r) {
|
|
130677
130903
|
u[i](e, String(t.absolute), (n) => {
|
|
130678
130904
|
n ? this[O](n, t) : (this[Xt](), t.resume()), r();
|
|
130679
130905
|
});
|
|
@@ -130692,11 +130918,11 @@ var Te = class extends qt {
|
|
|
130692
130918
|
return super[P](t, e, () => {
|
|
130693
130919
|
});
|
|
130694
130920
|
}
|
|
130695
|
-
[
|
|
130696
|
-
if (!this[
|
|
130921
|
+
[ys](t) {
|
|
130922
|
+
if (!this[ge]) {
|
|
130697
130923
|
let n = this[St](this.cwd, this.dmode);
|
|
130698
130924
|
if (n) return this[O](n, t);
|
|
130699
|
-
this[
|
|
130925
|
+
this[ge] = true;
|
|
130700
130926
|
}
|
|
130701
130927
|
if (t.absolute !== this.cwd) {
|
|
130702
130928
|
let n = f(R.dirname(String(t.absolute)));
|
|
@@ -130707,7 +130933,7 @@ var Te = class extends qt {
|
|
|
130707
130933
|
}
|
|
130708
130934
|
let [e, i] = Se(() => u.lstatSync(String(t.absolute)));
|
|
130709
130935
|
if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[gs](t);
|
|
130710
|
-
if (e || this[
|
|
130936
|
+
if (e || this[Rs](t, i)) return this[P](null, t);
|
|
130711
130937
|
if (i.isDirectory()) {
|
|
130712
130938
|
if (t.type === "Directory") {
|
|
130713
130939
|
let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? Se(() => {
|
|
@@ -130718,10 +130944,10 @@ var Te = class extends qt {
|
|
|
130718
130944
|
let [n] = Se(() => u.rmdirSync(String(t.absolute)));
|
|
130719
130945
|
this[P](n, t);
|
|
130720
130946
|
}
|
|
130721
|
-
let [r] = t.absolute === this.cwd ? [] : Se(() =>
|
|
130947
|
+
let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
|
|
130722
130948
|
this[P](r, t);
|
|
130723
130949
|
}
|
|
130724
|
-
[
|
|
130950
|
+
[bs](t, e) {
|
|
130725
130951
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
|
|
130726
130952
|
let a;
|
|
130727
130953
|
try {
|
|
@@ -130732,7 +130958,7 @@ var Te = class extends qt {
|
|
|
130732
130958
|
(h || a) && this[O](h || a, t), e();
|
|
130733
130959
|
}, n;
|
|
130734
130960
|
try {
|
|
130735
|
-
n = u.openSync(String(t.absolute),
|
|
130961
|
+
n = u.openSync(String(t.absolute), cs(t.size), i);
|
|
130736
130962
|
} catch (h) {
|
|
130737
130963
|
return r(h);
|
|
130738
130964
|
}
|
|
@@ -130758,7 +130984,7 @@ var Te = class extends qt {
|
|
|
130758
130984
|
}
|
|
130759
130985
|
}
|
|
130760
130986
|
if (this[Re](t)) {
|
|
130761
|
-
let a = this[be](t), l = this[
|
|
130987
|
+
let a = this[be](t), l = this[_e](t);
|
|
130762
130988
|
try {
|
|
130763
130989
|
u.fchownSync(n, Number(a), Number(l));
|
|
130764
130990
|
} catch (c) {
|
|
@@ -130772,7 +130998,7 @@ var Te = class extends qt {
|
|
|
130772
130998
|
r(h);
|
|
130773
130999
|
});
|
|
130774
131000
|
}
|
|
130775
|
-
[
|
|
131001
|
+
[_s](t, e) {
|
|
130776
131002
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[St](String(t.absolute), i);
|
|
130777
131003
|
if (r) {
|
|
130778
131004
|
this[O](r, t), e();
|
|
@@ -130783,20 +131009,20 @@ var Te = class extends qt {
|
|
|
130783
131009
|
} catch {
|
|
130784
131010
|
}
|
|
130785
131011
|
if (this[Re](t)) try {
|
|
130786
|
-
u.chownSync(String(t.absolute), Number(this[be](t)), Number(this[
|
|
131012
|
+
u.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
|
|
130787
131013
|
} catch {
|
|
130788
131014
|
}
|
|
130789
131015
|
e(), t.resume();
|
|
130790
131016
|
}
|
|
130791
131017
|
[St](t, e) {
|
|
130792
131018
|
try {
|
|
130793
|
-
return
|
|
131019
|
+
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 });
|
|
130794
131020
|
} catch (i) {
|
|
130795
131021
|
return i;
|
|
130796
131022
|
}
|
|
130797
131023
|
}
|
|
130798
131024
|
[ye](t, e, i, r, n) {
|
|
130799
|
-
if (this.preservePaths ||
|
|
131025
|
+
if (this.preservePaths || i.length === 0) return r();
|
|
130800
131026
|
let o = e;
|
|
130801
131027
|
for (let h of i) {
|
|
130802
131028
|
o = R.resolve(o, h);
|
|
@@ -130806,7 +131032,7 @@ var Te = class extends qt {
|
|
|
130806
131032
|
}
|
|
130807
131033
|
r();
|
|
130808
131034
|
}
|
|
130809
|
-
[
|
|
131035
|
+
[Si](t, e, i, r) {
|
|
130810
131036
|
let n = `${i}Sync`;
|
|
130811
131037
|
try {
|
|
130812
131038
|
u[n](e, String(t.absolute)), r(), t.resume();
|
|
@@ -130815,26 +131041,26 @@ var Te = class extends qt {
|
|
|
130815
131041
|
}
|
|
130816
131042
|
}
|
|
130817
131043
|
};
|
|
130818
|
-
var
|
|
130819
|
-
let t = new Te(s3), e = s3.file, i =
|
|
130820
|
-
new
|
|
131044
|
+
var oo = (s3) => {
|
|
131045
|
+
let t = new Te(s3), e = s3.file, i = xr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
|
|
131046
|
+
new Me(e, { readSize: r, size: i.size }).pipe(t);
|
|
130821
131047
|
};
|
|
130822
|
-
var
|
|
131048
|
+
var ho = (s3, t) => {
|
|
130823
131049
|
let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
130824
131050
|
return new Promise((o, h) => {
|
|
130825
|
-
e.on("error", h), e.on("close", o),
|
|
131051
|
+
e.on("error", h), e.on("close", o), xr.stat(r, (a, l) => {
|
|
130826
131052
|
if (a) h(a);
|
|
130827
131053
|
else {
|
|
130828
|
-
let c = new
|
|
131054
|
+
let c = new _t(r, { readSize: i, size: l.size });
|
|
130829
131055
|
c.on("error", h), c.pipe(e);
|
|
130830
131056
|
}
|
|
130831
131057
|
});
|
|
130832
131058
|
});
|
|
130833
131059
|
};
|
|
130834
|
-
var
|
|
130835
|
-
t?.length &&
|
|
131060
|
+
var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
|
|
131061
|
+
t?.length && Ki(s3, t);
|
|
130836
131062
|
});
|
|
130837
|
-
var
|
|
131063
|
+
var lo = (s3, t) => {
|
|
130838
131064
|
let e = new kt(s3), i = true, r, n;
|
|
130839
131065
|
try {
|
|
130840
131066
|
try {
|
|
@@ -130855,7 +131081,7 @@ var co = (s3, t) => {
|
|
|
130855
131081
|
if (n + l + 512 > o.size) break;
|
|
130856
131082
|
n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
|
|
130857
131083
|
}
|
|
130858
|
-
i = false,
|
|
131084
|
+
i = false, co(s3, e, n, r, t);
|
|
130859
131085
|
} finally {
|
|
130860
131086
|
if (i) try {
|
|
130861
131087
|
v.closeSync(r);
|
|
@@ -130863,11 +131089,11 @@ var co = (s3, t) => {
|
|
|
130863
131089
|
}
|
|
130864
131090
|
}
|
|
130865
131091
|
};
|
|
130866
|
-
var
|
|
131092
|
+
var co = (s3, t, e, i, r) => {
|
|
130867
131093
|
let n = new Wt(s3.file, { fd: i, start: e });
|
|
130868
|
-
t.pipe(n),
|
|
131094
|
+
t.pipe(n), uo(t, r);
|
|
130869
131095
|
};
|
|
130870
|
-
var
|
|
131096
|
+
var fo = (s3, t) => {
|
|
130871
131097
|
t = Array.from(t);
|
|
130872
131098
|
let e = new Et(s3), i = (n, o, h) => {
|
|
130873
131099
|
let a = (T, N) => {
|
|
@@ -130875,7 +131101,7 @@ var uo = (s3, t) => {
|
|
|
130875
131101
|
}, l = 0;
|
|
130876
131102
|
if (o === 0) return a(null, 0);
|
|
130877
131103
|
let c = 0, d = Buffer.alloc(512), S = (T, N) => {
|
|
130878
|
-
if (T ||
|
|
131104
|
+
if (T || N === void 0) return a(T);
|
|
130879
131105
|
if (c += N, c < 512 && N) return v.read(n, d, c, d.length - c, l + c, S);
|
|
130880
131106
|
if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
|
|
130881
131107
|
if (c < 512) return a(null, l);
|
|
@@ -130897,38 +131123,35 @@ var uo = (s3, t) => {
|
|
|
130897
131123
|
i(c, S.size, (T, N) => {
|
|
130898
131124
|
if (T) return o(T);
|
|
130899
131125
|
let E = new tt(s3.file, { fd: c, start: N });
|
|
130900
|
-
e.pipe(E), E.on("error", o), E.on("close", n),
|
|
131126
|
+
e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
|
|
130901
131127
|
});
|
|
130902
131128
|
});
|
|
130903
131129
|
};
|
|
130904
131130
|
v.open(s3.file, h, a);
|
|
130905
131131
|
});
|
|
130906
131132
|
};
|
|
130907
|
-
var
|
|
131133
|
+
var uo = (s3, t) => {
|
|
130908
131134
|
t.forEach((e) => {
|
|
130909
|
-
e.charAt(0) === "@" ? It({ file:
|
|
131135
|
+
e.charAt(0) === "@" ? It({ file: Lr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
130910
131136
|
}), s3.end();
|
|
130911
131137
|
};
|
|
130912
|
-
var
|
|
130913
|
-
for (let e
|
|
130914
|
-
let i = String(t[e]);
|
|
130915
|
-
i.charAt(0) === "@" ? await It({ file: Nr.resolve(String(s3.cwd), i.slice(1)), noResume: true, onReadEntry: (r) => s3.add(r) }) : s3.add(i);
|
|
130916
|
-
}
|
|
131138
|
+
var mo = async (s3, t) => {
|
|
131139
|
+
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);
|
|
130917
131140
|
s3.end();
|
|
130918
131141
|
};
|
|
130919
|
-
var vt = K(
|
|
131142
|
+
var vt = K(lo, fo, () => {
|
|
130920
131143
|
throw new TypeError("file is required");
|
|
130921
131144
|
}, () => {
|
|
130922
131145
|
throw new TypeError("file is required");
|
|
130923
131146
|
}, (s3, t) => {
|
|
130924
|
-
if (!
|
|
131147
|
+
if (!Fs(s3)) throw new TypeError("file is required");
|
|
130925
131148
|
if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
|
|
130926
131149
|
if (!t?.length) throw new TypeError("no paths specified to add/replace");
|
|
130927
131150
|
});
|
|
130928
|
-
var
|
|
130929
|
-
vt.validate?.(s3, t),
|
|
131151
|
+
var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
|
|
131152
|
+
vt.validate?.(s3, t), Eo(s3);
|
|
130930
131153
|
});
|
|
130931
|
-
var
|
|
131154
|
+
var Eo = (s3) => {
|
|
130932
131155
|
let t = s3.filter;
|
|
130933
131156
|
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));
|
|
130934
131157
|
};
|
|
@@ -130936,8 +131159,11 @@ var wo = (s3) => {
|
|
|
130936
131159
|
// lib/commands/utils/deployment.ts
|
|
130937
131160
|
var POLL_DEBOUNCE = 2e3;
|
|
130938
131161
|
async function packageDirectory(dirPath) {
|
|
130939
|
-
const tempFile = path2.join(
|
|
130940
|
-
|
|
131162
|
+
const tempFile = path2.join(
|
|
131163
|
+
os6.tmpdir(),
|
|
131164
|
+
`appwrite-deploy-${Date.now()}.tar.gz`
|
|
131165
|
+
);
|
|
131166
|
+
await Pn(
|
|
130941
131167
|
{
|
|
130942
131168
|
gzip: true,
|
|
130943
131169
|
file: tempFile,
|
|
@@ -131018,7 +131244,7 @@ async function downloadDeploymentCode(params) {
|
|
|
131018
131244
|
`Failed to write deployment archive to "${compressedFileName}": ${message}`
|
|
131019
131245
|
);
|
|
131020
131246
|
}
|
|
131021
|
-
|
|
131247
|
+
ao({
|
|
131022
131248
|
sync: true,
|
|
131023
131249
|
cwd: resourcePath,
|
|
131024
131250
|
file: compressedFileName,
|
|
@@ -131334,7 +131560,7 @@ var Pull = class {
|
|
|
131334
131560
|
return [];
|
|
131335
131561
|
}
|
|
131336
131562
|
const { functions: allFunctions } = await paginate(
|
|
131337
|
-
async () => new Functions(this.projectClient).list(),
|
|
131563
|
+
async (args) => new Functions(this.projectClient).list(args.queries),
|
|
131338
131564
|
{},
|
|
131339
131565
|
100,
|
|
131340
131566
|
"functions"
|
|
@@ -131418,7 +131644,7 @@ var Pull = class {
|
|
|
131418
131644
|
return [];
|
|
131419
131645
|
}
|
|
131420
131646
|
const { sites: fetchedSites } = await paginate(
|
|
131421
|
-
async () => new Sites(this.projectClient).list(),
|
|
131647
|
+
async (args) => new Sites(this.projectClient).list(args.queries),
|
|
131422
131648
|
{},
|
|
131423
131649
|
100,
|
|
131424
131650
|
"sites"
|
|
@@ -131496,7 +131722,7 @@ var Pull = class {
|
|
|
131496
131722
|
return { databases: [], collections: [] };
|
|
131497
131723
|
}
|
|
131498
131724
|
const { databases: databases2 } = await paginate(
|
|
131499
|
-
async () => new Databases(this.projectClient).list(),
|
|
131725
|
+
async (args) => new Databases(this.projectClient).list(args.queries),
|
|
131500
131726
|
{},
|
|
131501
131727
|
100,
|
|
131502
131728
|
"databases"
|
|
@@ -131509,7 +131735,10 @@ var Pull = class {
|
|
|
131509
131735
|
);
|
|
131510
131736
|
allDatabases.push(database);
|
|
131511
131737
|
const { collections } = await paginate(
|
|
131512
|
-
async () => new Databases(this.projectClient).listCollections(
|
|
131738
|
+
async (args) => new Databases(this.projectClient).listCollections(
|
|
131739
|
+
database.$id,
|
|
131740
|
+
args.queries
|
|
131741
|
+
),
|
|
131513
131742
|
{},
|
|
131514
131743
|
100,
|
|
131515
131744
|
"collections"
|
|
@@ -131547,7 +131776,9 @@ var Pull = class {
|
|
|
131547
131776
|
return { databases: [], tables: [] };
|
|
131548
131777
|
}
|
|
131549
131778
|
const { databases: databases2 } = await paginate(
|
|
131550
|
-
async () => new TablesDB(this.projectClient).list(
|
|
131779
|
+
async (args) => new TablesDB(this.projectClient).list({
|
|
131780
|
+
queries: args.queries
|
|
131781
|
+
}),
|
|
131551
131782
|
{},
|
|
131552
131783
|
100,
|
|
131553
131784
|
"databases"
|
|
@@ -131560,7 +131791,10 @@ var Pull = class {
|
|
|
131560
131791
|
);
|
|
131561
131792
|
allDatabases.push(filterBySchema(database, DatabaseSchema));
|
|
131562
131793
|
const { tables } = await paginate(
|
|
131563
|
-
async () => new TablesDB(this.projectClient).listTables(
|
|
131794
|
+
async (args) => new TablesDB(this.projectClient).listTables({
|
|
131795
|
+
databaseId: database.$id,
|
|
131796
|
+
queries: args.queries
|
|
131797
|
+
}),
|
|
131564
131798
|
{},
|
|
131565
131799
|
100,
|
|
131566
131800
|
"tables"
|
|
@@ -131602,7 +131836,7 @@ var Pull = class {
|
|
|
131602
131836
|
return [];
|
|
131603
131837
|
}
|
|
131604
131838
|
const { buckets } = await paginate(
|
|
131605
|
-
async () => new Storage(this.projectClient).listBuckets(),
|
|
131839
|
+
async (args) => new Storage(this.projectClient).listBuckets(args.queries),
|
|
131606
131840
|
{},
|
|
131607
131841
|
100,
|
|
131608
131842
|
"buckets"
|
|
@@ -131632,7 +131866,7 @@ var Pull = class {
|
|
|
131632
131866
|
return [];
|
|
131633
131867
|
}
|
|
131634
131868
|
const { teams: teams2 } = await paginate(
|
|
131635
|
-
async () => new Teams(this.projectClient).list(),
|
|
131869
|
+
async (args) => new Teams(this.projectClient).list(args.queries),
|
|
131636
131870
|
{},
|
|
131637
131871
|
100,
|
|
131638
131872
|
"teams"
|
|
@@ -131658,7 +131892,7 @@ var Pull = class {
|
|
|
131658
131892
|
return [];
|
|
131659
131893
|
}
|
|
131660
131894
|
const { topics } = await paginate(
|
|
131661
|
-
async () => new Messaging(this.projectClient).listTopics(),
|
|
131895
|
+
async (args) => new Messaging(this.projectClient).listTopics(args.queries),
|
|
131662
131896
|
{},
|
|
131663
131897
|
100,
|
|
131664
131898
|
"topics"
|
|
@@ -131730,7 +131964,7 @@ var pullFunctions = async ({
|
|
|
131730
131964
|
return;
|
|
131731
131965
|
}
|
|
131732
131966
|
const functionsToCheck = cliConfig.all ? (await paginate(
|
|
131733
|
-
async () => (await getFunctionsService()).list(),
|
|
131967
|
+
async (args) => (await getFunctionsService()).list(args.queries),
|
|
131734
131968
|
{},
|
|
131735
131969
|
100,
|
|
131736
131970
|
"functions"
|
|
@@ -131768,7 +132002,7 @@ var pullSites = async ({
|
|
|
131768
132002
|
return;
|
|
131769
132003
|
}
|
|
131770
132004
|
const sitesToCheck = cliConfig.all ? (await paginate(
|
|
131771
|
-
async () => (await getSitesService()).list(),
|
|
132005
|
+
async (args) => (await getSitesService()).list(args.queries),
|
|
131772
132006
|
{},
|
|
131773
132007
|
100,
|
|
131774
132008
|
"sites"
|
|
@@ -134620,7 +134854,7 @@ var runFunction = async ({
|
|
|
134620
134854
|
fs13.rmSync(hotSwapPath, { recursive: true, force: true });
|
|
134621
134855
|
fs13.mkdirSync(hotSwapPath, { recursive: true });
|
|
134622
134856
|
}
|
|
134623
|
-
await
|
|
134857
|
+
await ao({
|
|
134624
134858
|
keep: true,
|
|
134625
134859
|
sync: true,
|
|
134626
134860
|
cwd: hotSwapPath,
|
|
@@ -134648,7 +134882,7 @@ var runFunction = async ({
|
|
|
134648
134882
|
const sourcePath = path11.join(functionPath, f2);
|
|
134649
134883
|
fs13.copyFileSync(sourcePath, filePath);
|
|
134650
134884
|
}
|
|
134651
|
-
await
|
|
134885
|
+
await Pn(
|
|
134652
134886
|
{
|
|
134653
134887
|
gzip: true,
|
|
134654
134888
|
sync: true,
|
|
@@ -138847,13 +139081,33 @@ ${supportsServerSide ? ` create: (databaseId: string, name: string, options?: {
|
|
|
138847
139081
|
requiresApiKey: supportsServerSide
|
|
138848
139082
|
});
|
|
138849
139083
|
}
|
|
139084
|
+
/**
|
|
139085
|
+
* Deduplicate entities by composite key ($id + databaseId).
|
|
139086
|
+
* Keeps the last occurrence to match addTable/addCollection semantics.
|
|
139087
|
+
*/
|
|
139088
|
+
dedupeEntities(entities) {
|
|
139089
|
+
const seen = /* @__PURE__ */ new Map();
|
|
139090
|
+
for (const entity of entities) {
|
|
139091
|
+
seen.set(`${entity.databaseId}:${entity.$id}`, entity);
|
|
139092
|
+
}
|
|
139093
|
+
return Array.from(seen.values());
|
|
139094
|
+
}
|
|
138850
139095
|
async generate(config2, options) {
|
|
138851
139096
|
if (!config2.projectId) {
|
|
138852
139097
|
throw new Error("Project ID is required in configuration");
|
|
138853
139098
|
}
|
|
138854
139099
|
const appwriteDep = options?.appwriteImportSource ?? getAppwriteDependency();
|
|
138855
139100
|
const importExt = options?.importExtension ?? detectImportExtension();
|
|
138856
|
-
const
|
|
139101
|
+
const dedupedConfig = { ...config2 };
|
|
139102
|
+
if (dedupedConfig.tables && dedupedConfig.tables.length > 0) {
|
|
139103
|
+
dedupedConfig.tables = this.dedupeEntities(dedupedConfig.tables);
|
|
139104
|
+
}
|
|
139105
|
+
if (dedupedConfig.collections && dedupedConfig.collections.length > 0) {
|
|
139106
|
+
dedupedConfig.collections = this.dedupeEntities(
|
|
139107
|
+
dedupedConfig.collections
|
|
139108
|
+
);
|
|
139109
|
+
}
|
|
139110
|
+
const hasEntities = dedupedConfig.tables && dedupedConfig.tables.length > 0 || dedupedConfig.collections && dedupedConfig.collections.length > 0;
|
|
138857
139111
|
if (!hasEntities) {
|
|
138858
139112
|
console.log(
|
|
138859
139113
|
"No tables or collections found in configuration. Skipping database generation."
|
|
@@ -138862,14 +139116,21 @@ ${supportsServerSide ? ` create: (databaseId: string, name: string, options?: {
|
|
|
138862
139116
|
dbContent: "// No tables or collections found in configuration\n",
|
|
138863
139117
|
typesContent: "// No tables or collections found in configuration\n",
|
|
138864
139118
|
indexContent: this.generateIndexFile(importExt),
|
|
138865
|
-
constantsContent: this.generateConstantsFile(
|
|
139119
|
+
constantsContent: this.generateConstantsFile(
|
|
139120
|
+
dedupedConfig,
|
|
139121
|
+
appwriteDep
|
|
139122
|
+
)
|
|
138866
139123
|
};
|
|
138867
139124
|
}
|
|
138868
139125
|
return {
|
|
138869
|
-
dbContent: this.generateDatabasesFile(
|
|
138870
|
-
|
|
139126
|
+
dbContent: this.generateDatabasesFile(
|
|
139127
|
+
dedupedConfig,
|
|
139128
|
+
importExt,
|
|
139129
|
+
appwriteDep
|
|
139130
|
+
),
|
|
139131
|
+
typesContent: this.generateTypesFile(dedupedConfig, appwriteDep),
|
|
138871
139132
|
indexContent: this.generateIndexFile(importExt),
|
|
138872
|
-
constantsContent: this.generateConstantsFile(
|
|
139133
|
+
constantsContent: this.generateConstantsFile(dedupedConfig, appwriteDep)
|
|
138873
139134
|
};
|
|
138874
139135
|
}
|
|
138875
139136
|
};
|
|
@@ -139331,8 +139592,8 @@ If there is already an active session, the new session will be attached to the l
|
|
|
139331
139592
|
A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
|
|
139332
139593
|
`).requiredOption(`--provider <provider>`, `OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.`).option(`--success <success>`, `URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`).option(`--failure <failure>`, `URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`).option(`--scopes [scopes...]`, `A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.`).action(
|
|
139333
139594
|
actionRunner(
|
|
139334
|
-
async ({ provider, success:
|
|
139335
|
-
const url2 = (await getAccountClient()).createOAuth2Session(provider,
|
|
139595
|
+
async ({ provider, success: success21, failure, scopes }) => {
|
|
139596
|
+
const url2 = (await getAccountClient()).createOAuth2Session(provider, success21, failure, scopes);
|
|
139336
139597
|
if (url2) console.log(url2);
|
|
139337
139598
|
}
|
|
139338
139599
|
)
|
|
@@ -139412,8 +139673,8 @@ If authentication succeeds, \`userId\` and \`secret\` of a token will be appende
|
|
|
139412
139673
|
|
|
139413
139674
|
A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).`).requiredOption(`--provider <provider>`, `OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.`).option(`--success <success>`, `URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`).option(`--failure <failure>`, `URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`).option(`--scopes [scopes...]`, `A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.`).action(
|
|
139414
139675
|
actionRunner(
|
|
139415
|
-
async ({ provider, success:
|
|
139416
|
-
const url2 = (await getAccountClient()).createOAuth2Token(provider,
|
|
139676
|
+
async ({ provider, success: success21, failure, scopes }) => {
|
|
139677
|
+
const url2 = (await getAccountClient()).createOAuth2Token(provider, success21, failure, scopes);
|
|
139417
139678
|
if (url2) console.log(url2);
|
|
139418
139679
|
}
|
|
139419
139680
|
)
|
|
@@ -141496,48 +141757,6 @@ projects.command(`delete-sms-template`).description(`Reset a custom SMS template
|
|
|
141496
141757
|
async ({ projectId, type, locale: locale2 }) => parse3(await (await getProjectsClient()).deleteSmsTemplate(projectId, type, locale2))
|
|
141497
141758
|
)
|
|
141498
141759
|
);
|
|
141499
|
-
projects.command(`list-webhooks`).description(`Get a list of all webhooks belonging to the project. You can use the query params to filter your results. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(
|
|
141500
|
-
`--total [value]`,
|
|
141501
|
-
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
141502
|
-
(value) => value === void 0 ? true : parseBool(value)
|
|
141503
|
-
).action(
|
|
141504
|
-
actionRunner(
|
|
141505
|
-
async ({ projectId, total }) => parse3(await (await getProjectsClient()).listWebhooks(projectId, total))
|
|
141506
|
-
)
|
|
141507
|
-
);
|
|
141508
|
-
projects.command(`create-webhook`).description(`Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`).requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).requiredOption(`--url <url>`, `Webhook URL.`).requiredOption(`--security <security>`, `Certificate verification, false for disabled or true for enabled.`, parseBool).option(
|
|
141509
|
-
`--enabled [value]`,
|
|
141510
|
-
`Enable or disable a webhook.`,
|
|
141511
|
-
(value) => value === void 0 ? true : parseBool(value)
|
|
141512
|
-
).option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`).option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`).action(
|
|
141513
|
-
actionRunner(
|
|
141514
|
-
async ({ projectId, name, events, url: url2, security, enabled, httpUser, httpPass }) => parse3(await (await getProjectsClient()).createWebhook(projectId, name, events, url2, security, enabled, httpUser, httpPass))
|
|
141515
|
-
)
|
|
141516
|
-
);
|
|
141517
|
-
projects.command(`get-webhook`).description(`Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`).action(
|
|
141518
|
-
actionRunner(
|
|
141519
|
-
async ({ projectId, webhookId }) => parse3(await (await getProjectsClient()).getWebhook(projectId, webhookId))
|
|
141520
|
-
)
|
|
141521
|
-
);
|
|
141522
|
-
projects.command(`update-webhook`).description(`Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`).requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`).requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).requiredOption(`--url <url>`, `Webhook URL.`).requiredOption(`--security <security>`, `Certificate verification, false for disabled or true for enabled.`, parseBool).option(
|
|
141523
|
-
`--enabled [value]`,
|
|
141524
|
-
`Enable or disable a webhook.`,
|
|
141525
|
-
(value) => value === void 0 ? true : parseBool(value)
|
|
141526
|
-
).option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`).option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`).action(
|
|
141527
|
-
actionRunner(
|
|
141528
|
-
async ({ projectId, webhookId, name, events, url: url2, security, enabled, httpUser, httpPass }) => parse3(await (await getProjectsClient()).updateWebhook(projectId, webhookId, name, events, url2, security, enabled, httpUser, httpPass))
|
|
141529
|
-
)
|
|
141530
|
-
);
|
|
141531
|
-
projects.command(`delete-webhook`).description(`Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`).action(
|
|
141532
|
-
actionRunner(
|
|
141533
|
-
async ({ projectId, webhookId }) => parse3(await (await getProjectsClient()).deleteWebhook(projectId, webhookId))
|
|
141534
|
-
)
|
|
141535
|
-
);
|
|
141536
|
-
projects.command(`update-webhook-signature`).description(`Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. `).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`).action(
|
|
141537
|
-
actionRunner(
|
|
141538
|
-
async ({ projectId, webhookId }) => parse3(await (await getProjectsClient()).updateWebhookSignature(projectId, webhookId))
|
|
141539
|
-
)
|
|
141540
|
-
);
|
|
141541
141760
|
|
|
141542
141761
|
// lib/commands/services/proxy.ts
|
|
141543
141762
|
var proxyClient = null;
|
|
@@ -143002,6 +143221,69 @@ vcs.command(`delete-installation`).description(`Delete a VCS installation by its
|
|
|
143002
143221
|
)
|
|
143003
143222
|
);
|
|
143004
143223
|
|
|
143224
|
+
// lib/commands/services/webhooks.ts
|
|
143225
|
+
var webhooksClient = null;
|
|
143226
|
+
var getWebhooksClient = async () => {
|
|
143227
|
+
if (!webhooksClient) {
|
|
143228
|
+
const sdkClient = await sdkForProject();
|
|
143229
|
+
webhooksClient = new Webhooks(sdkClient);
|
|
143230
|
+
}
|
|
143231
|
+
return webhooksClient;
|
|
143232
|
+
};
|
|
143233
|
+
var webhooks = new Command("webhooks").description(commandDescriptions["webhooks"] ?? "").configureHelp({
|
|
143234
|
+
helpWidth: process.stdout.columns || 80
|
|
143235
|
+
});
|
|
143236
|
+
webhooks.command(`list`).description(`Get a list of all webhooks belonging to the project. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, url, httpUser, security, events, enabled, logs, attempts`).option(
|
|
143237
|
+
`--total [value]`,
|
|
143238
|
+
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
143239
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
143240
|
+
).action(
|
|
143241
|
+
actionRunner(
|
|
143242
|
+
async ({ queries, total }) => parse3(await (await getWebhooksClient()).list(queries, total))
|
|
143243
|
+
)
|
|
143244
|
+
);
|
|
143245
|
+
webhooks.command(`create`).description(`Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook ID. Choose a custom ID or generate a random ID with \`ID.unique()\`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`).requiredOption(`--url <url>`, `Webhook URL.`).requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`).requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).option(
|
|
143246
|
+
`--enabled [value]`,
|
|
143247
|
+
`Enable or disable a webhook.`,
|
|
143248
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
143249
|
+
).option(
|
|
143250
|
+
`--security [value]`,
|
|
143251
|
+
`Certificate verification, false for disabled or true for enabled.`,
|
|
143252
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
143253
|
+
).option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`).option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`).action(
|
|
143254
|
+
actionRunner(
|
|
143255
|
+
async ({ webhookId, url: url2, name, events, enabled, security, httpUser, httpPass }) => parse3(await (await getWebhooksClient()).create(webhookId, url2, name, events, enabled, security, httpUser, httpPass))
|
|
143256
|
+
)
|
|
143257
|
+
);
|
|
143258
|
+
webhooks.command(`get`).description(`Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. `).requiredOption(`--webhook-id <webhook-id>`, `Webhook ID.`).action(
|
|
143259
|
+
actionRunner(
|
|
143260
|
+
async ({ webhookId }) => parse3(await (await getWebhooksClient()).get(webhookId))
|
|
143261
|
+
)
|
|
143262
|
+
);
|
|
143263
|
+
webhooks.command(`update`).description(`Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook ID.`).requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`).requiredOption(`--url <url>`, `Webhook URL.`).requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).option(
|
|
143264
|
+
`--enabled [value]`,
|
|
143265
|
+
`Enable or disable a webhook.`,
|
|
143266
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
143267
|
+
).option(
|
|
143268
|
+
`--security [value]`,
|
|
143269
|
+
`Certificate verification, false for disabled or true for enabled.`,
|
|
143270
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
143271
|
+
).option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`).option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`).action(
|
|
143272
|
+
actionRunner(
|
|
143273
|
+
async ({ webhookId, name, url: url2, events, enabled, security, httpUser, httpPass }) => parse3(await (await getWebhooksClient()).update(webhookId, name, url2, events, enabled, security, httpUser, httpPass))
|
|
143274
|
+
)
|
|
143275
|
+
);
|
|
143276
|
+
webhooks.command(`delete`).description(`Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. `).requiredOption(`--webhook-id <webhook-id>`, `Webhook ID.`).action(
|
|
143277
|
+
actionRunner(
|
|
143278
|
+
async ({ webhookId }) => parse3(await (await getWebhooksClient()).delete(webhookId))
|
|
143279
|
+
)
|
|
143280
|
+
);
|
|
143281
|
+
webhooks.command(`update-signature`).description(`Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook ID.`).action(
|
|
143282
|
+
actionRunner(
|
|
143283
|
+
async ({ webhookId }) => parse3(await (await getWebhooksClient()).updateSignature(webhookId))
|
|
143284
|
+
)
|
|
143285
|
+
);
|
|
143286
|
+
|
|
143005
143287
|
// cli.ts
|
|
143006
143288
|
var oldWidth = process.stdout.columns;
|
|
143007
143289
|
process.stdout.columns = 100;
|
|
@@ -143053,7 +143335,7 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
|
|
|
143053
143335
|
cliConfig.all = true;
|
|
143054
143336
|
}).on("option:id", function() {
|
|
143055
143337
|
cliConfig.ids = this.opts().id;
|
|
143056
|
-
}).showSuggestionAfterError().addCommand(whoami).addCommand(register).addCommand(login).addCommand(init).addCommand(pull).addCommand(push).addCommand(types).addCommand(deploy).addCommand(run).addCommand(update).addCommand(generate).addCommand(logout).addCommand(account).addCommand(activities).addCommand(backups).addCommand(databases).addCommand(functions).addCommand(graphql).addCommand(health).addCommand(locale).addCommand(messaging).addCommand(migrations).addCommand(project).addCommand(projects).addCommand(proxy).addCommand(sites).addCommand(storage).addCommand(tablesDB).addCommand(teams).addCommand(tokens).addCommand(users).addCommand(vcs).addCommand(client).parse(process.argv);
|
|
143338
|
+
}).showSuggestionAfterError().addCommand(whoami).addCommand(register).addCommand(login).addCommand(init).addCommand(pull).addCommand(push).addCommand(types).addCommand(deploy).addCommand(run).addCommand(update).addCommand(generate).addCommand(logout).addCommand(account).addCommand(activities).addCommand(backups).addCommand(databases).addCommand(functions).addCommand(graphql).addCommand(health).addCommand(locale).addCommand(messaging).addCommand(migrations).addCommand(project).addCommand(projects).addCommand(proxy).addCommand(sites).addCommand(storage).addCommand(tablesDB).addCommand(teams).addCommand(tokens).addCommand(users).addCommand(vcs).addCommand(webhooks).addCommand(client).parse(process.argv);
|
|
143057
143339
|
process.stdout.columns = oldWidth;
|
|
143058
143340
|
}
|
|
143059
143341
|
/*! Bundled license information:
|