appwrite-cli 16.0.0 → 17.1.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 +19 -0
- package/README.md +4 -4
- package/cli.ts +6 -0
- package/dist/bundle-win-arm64.mjs +1355 -773
- package/dist/cli.cjs +1327 -745
- package/dist/index.cjs +466 -572
- package/dist/index.js +494 -600
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/run.d.ts.map +1 -1
- package/dist/lib/commands/services/organizations.d.ts +3 -0
- package/dist/lib/commands/services/organizations.d.ts.map +1 -0
- package/dist/lib/commands/services/teams.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/emulation/utils.d.ts.map +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/docs/examples/organizations/add-credit.md +5 -0
- package/docs/examples/organizations/cancel-downgrade.md +4 -0
- package/docs/examples/organizations/create-downgrade-feedback.md +8 -0
- package/docs/examples/organizations/create-invoice-payment.md +6 -0
- package/docs/examples/organizations/create-key.md +6 -0
- package/docs/examples/organizations/create.md +6 -0
- package/docs/examples/organizations/delete-backup-payment-method.md +4 -0
- package/docs/examples/organizations/delete-default-payment-method.md +4 -0
- package/docs/examples/organizations/delete-key.md +5 -0
- package/docs/examples/organizations/delete.md +4 -0
- package/docs/examples/organizations/estimation-create-organization.md +4 -0
- package/docs/examples/organizations/estimation-delete-organization.md +4 -0
- package/docs/examples/organizations/estimation-update-plan.md +5 -0
- package/docs/examples/organizations/get-aggregation.md +5 -0
- package/docs/examples/organizations/get-available-credits.md +4 -0
- package/docs/examples/organizations/get-credit.md +5 -0
- package/docs/examples/organizations/get-invoice-download.md +5 -0
- package/docs/examples/organizations/get-invoice-view.md +5 -0
- package/docs/examples/organizations/get-invoice.md +5 -0
- package/docs/examples/organizations/get-key.md +5 -0
- package/docs/examples/organizations/get-plan.md +4 -0
- package/docs/examples/organizations/get-scopes.md +4 -0
- package/docs/examples/organizations/get-usage.md +4 -0
- package/docs/examples/organizations/list-aggregations.md +4 -0
- package/docs/examples/organizations/list-credits.md +4 -0
- package/docs/examples/organizations/list-keys.md +4 -0
- package/docs/examples/organizations/list-regions.md +4 -0
- package/docs/examples/organizations/list.md +3 -0
- package/docs/examples/organizations/set-backup-payment-method.md +5 -0
- package/docs/examples/organizations/set-billing-address.md +5 -0
- package/docs/examples/organizations/set-billing-email.md +5 -0
- package/docs/examples/organizations/set-billing-tax-id.md +5 -0
- package/docs/examples/organizations/set-default-payment-method.md +5 -0
- package/docs/examples/organizations/update-budget.md +5 -0
- package/docs/examples/organizations/update-key.md +7 -0
- package/docs/examples/organizations/update-plan.md +5 -0
- package/docs/examples/organizations/validate-invoice.md +5 -0
- package/docs/examples/organizations/validate-payment.md +4 -0
- package/docs/examples/project/create-variable.md +1 -0
- package/docs/examples/project/update-variable.md +1 -2
- package/docs/examples/users/update-impersonator.md +5 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/commands/push.ts +6 -24
- package/lib/commands/run.ts +5 -7
- package/lib/commands/services/account.ts +0 -169
- package/lib/commands/services/health.ts +0 -68
- package/lib/commands/services/migrations.ts +2 -2
- package/lib/commands/services/organizations.ts +517 -0
- package/lib/commands/services/project.ts +21 -12
- package/lib/commands/services/projects.ts +2 -14
- package/lib/commands/services/proxy.ts +2 -2
- package/lib/commands/services/teams.ts +10 -1
- package/lib/commands/services/users.ts +14 -1
- package/lib/commands/services/vcs.ts +2 -2
- package/lib/constants.ts +1 -1
- package/lib/emulation/utils.ts +3 -2
- package/lib/parser.ts +149 -27
- package/lib/questions.ts +15 -9
- package/lib/sdks.ts +1 -0
- package/lib/types.ts +1 -0
- package/package.json +1 -1
- package/scoop/appwrite.config.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -11200,16 +11200,16 @@ var require_share = __commonJS({
|
|
|
11200
11200
|
};
|
|
11201
11201
|
}
|
|
11202
11202
|
exports2.share = share;
|
|
11203
|
-
function handleReset(reset,
|
|
11203
|
+
function handleReset(reset, on) {
|
|
11204
11204
|
var args = [];
|
|
11205
11205
|
for (var _i2 = 2; _i2 < arguments.length; _i2++) {
|
|
11206
11206
|
args[_i2 - 2] = arguments[_i2];
|
|
11207
11207
|
}
|
|
11208
|
-
if (
|
|
11208
|
+
if (on === true) {
|
|
11209
11209
|
reset();
|
|
11210
11210
|
return;
|
|
11211
11211
|
}
|
|
11212
|
-
if (
|
|
11212
|
+
if (on === false) {
|
|
11213
11213
|
return;
|
|
11214
11214
|
}
|
|
11215
11215
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
@@ -11218,7 +11218,7 @@ var require_share = __commonJS({
|
|
|
11218
11218
|
reset();
|
|
11219
11219
|
}
|
|
11220
11220
|
});
|
|
11221
|
-
return innerFrom_1.innerFrom(
|
|
11221
|
+
return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
|
|
11222
11222
|
}
|
|
11223
11223
|
}
|
|
11224
11224
|
});
|
|
@@ -19600,7 +19600,6 @@ var require_safe_buffer = __commonJS({
|
|
|
19600
19600
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
19601
19601
|
return Buffer2(arg, encodingOrOffset, length);
|
|
19602
19602
|
}
|
|
19603
|
-
SafeBuffer.prototype = Object.create(Buffer2.prototype);
|
|
19604
19603
|
copyProps(Buffer2, SafeBuffer);
|
|
19605
19604
|
SafeBuffer.from = function(arg, encodingOrOffset, length) {
|
|
19606
19605
|
if (typeof arg === "number") {
|
|
@@ -55200,12 +55199,12 @@ var require_utils4 = __commonJS({
|
|
|
55200
55199
|
return str;
|
|
55201
55200
|
}
|
|
55202
55201
|
var codeCache = {};
|
|
55203
|
-
function addToCodeCache(name,
|
|
55204
|
-
|
|
55202
|
+
function addToCodeCache(name, on, off) {
|
|
55203
|
+
on = "\x1B[" + on + "m";
|
|
55205
55204
|
off = "\x1B[" + off + "m";
|
|
55206
|
-
codeCache[
|
|
55205
|
+
codeCache[on] = { set: name, to: true };
|
|
55207
55206
|
codeCache[off] = { set: name, to: false };
|
|
55208
|
-
codeCache[name] = { on
|
|
55207
|
+
codeCache[name] = { on, off };
|
|
55209
55208
|
}
|
|
55210
55209
|
addToCodeCache("bold", 1, 22);
|
|
55211
55210
|
addToCodeCache("italics", 3, 23);
|
|
@@ -57282,7 +57281,7 @@ var require_helpers = __commonJS({
|
|
|
57282
57281
|
if (instance.helpers[helperName]) {
|
|
57283
57282
|
instance.hooks[helperName] = instance.helpers[helperName];
|
|
57284
57283
|
if (!keepHelper) {
|
|
57285
|
-
|
|
57284
|
+
instance.helpers[helperName] = void 0;
|
|
57286
57285
|
}
|
|
57287
57286
|
}
|
|
57288
57287
|
}
|
|
@@ -57374,22 +57373,6 @@ var require_logger = __commonJS({
|
|
|
57374
57373
|
}
|
|
57375
57374
|
});
|
|
57376
57375
|
|
|
57377
|
-
// node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js
|
|
57378
|
-
var require_create_new_lookup_object = __commonJS({
|
|
57379
|
-
"node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"(exports2) {
|
|
57380
|
-
"use strict";
|
|
57381
|
-
exports2.__esModule = true;
|
|
57382
|
-
exports2.createNewLookupObject = createNewLookupObject;
|
|
57383
|
-
var _utils = require_utils5();
|
|
57384
|
-
function createNewLookupObject() {
|
|
57385
|
-
for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
|
|
57386
|
-
sources[_key] = arguments[_key];
|
|
57387
|
-
}
|
|
57388
|
-
return _utils.extend.apply(void 0, [/* @__PURE__ */ Object.create(null)].concat(sources));
|
|
57389
|
-
}
|
|
57390
|
-
}
|
|
57391
|
-
});
|
|
57392
|
-
|
|
57393
57376
|
// node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js
|
|
57394
57377
|
var require_proto_access = __commonJS({
|
|
57395
57378
|
"node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"(exports2) {
|
|
@@ -57401,25 +57384,28 @@ var require_proto_access = __commonJS({
|
|
|
57401
57384
|
function _interopRequireDefault(obj) {
|
|
57402
57385
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
57403
57386
|
}
|
|
57404
|
-
var
|
|
57387
|
+
var _utils = require_utils5();
|
|
57405
57388
|
var _logger = require_logger();
|
|
57406
57389
|
var _logger2 = _interopRequireDefault(_logger);
|
|
57407
57390
|
var loggedProperties = /* @__PURE__ */ Object.create(null);
|
|
57408
57391
|
function createProtoAccessControl(runtimeOptions) {
|
|
57409
|
-
var
|
|
57410
|
-
|
|
57411
|
-
|
|
57412
|
-
|
|
57413
|
-
|
|
57414
|
-
|
|
57415
|
-
|
|
57392
|
+
var propertyWhiteList = /* @__PURE__ */ Object.create(null);
|
|
57393
|
+
propertyWhiteList["__proto__"] = false;
|
|
57394
|
+
_utils.extend(propertyWhiteList, runtimeOptions.allowedProtoProperties);
|
|
57395
|
+
var methodWhiteList = /* @__PURE__ */ Object.create(null);
|
|
57396
|
+
methodWhiteList["constructor"] = false;
|
|
57397
|
+
methodWhiteList["__defineGetter__"] = false;
|
|
57398
|
+
methodWhiteList["__defineSetter__"] = false;
|
|
57399
|
+
methodWhiteList["__lookupGetter__"] = false;
|
|
57400
|
+
methodWhiteList["__lookupSetter__"] = false;
|
|
57401
|
+
_utils.extend(methodWhiteList, runtimeOptions.allowedProtoMethods);
|
|
57416
57402
|
return {
|
|
57417
57403
|
properties: {
|
|
57418
|
-
whitelist:
|
|
57404
|
+
whitelist: propertyWhiteList,
|
|
57419
57405
|
defaultValue: runtimeOptions.allowProtoPropertiesByDefault
|
|
57420
57406
|
},
|
|
57421
57407
|
methods: {
|
|
57422
|
-
whitelist:
|
|
57408
|
+
whitelist: methodWhiteList,
|
|
57423
57409
|
defaultValue: runtimeOptions.allowProtoMethodsByDefault
|
|
57424
57410
|
}
|
|
57425
57411
|
};
|
|
@@ -57472,7 +57458,7 @@ var require_base2 = __commonJS({
|
|
|
57472
57458
|
var _logger = require_logger();
|
|
57473
57459
|
var _logger2 = _interopRequireDefault(_logger);
|
|
57474
57460
|
var _internalProtoAccess = require_proto_access();
|
|
57475
|
-
var VERSION = "4.7.
|
|
57461
|
+
var VERSION = "4.7.9";
|
|
57476
57462
|
exports2.VERSION = VERSION;
|
|
57477
57463
|
var COMPILER_REVISION = 8;
|
|
57478
57464
|
exports2.COMPILER_REVISION = COMPILER_REVISION;
|
|
@@ -57658,14 +57644,12 @@ var require_runtime = __commonJS({
|
|
|
57658
57644
|
}
|
|
57659
57645
|
}
|
|
57660
57646
|
partial2 = env.VM.resolvePartial.call(this, partial2, context, options);
|
|
57661
|
-
|
|
57662
|
-
|
|
57663
|
-
|
|
57664
|
-
});
|
|
57665
|
-
var result = env.VM.invokePartial.call(this, partial2, context, extendedOptions);
|
|
57647
|
+
options.hooks = this.hooks;
|
|
57648
|
+
options.protoAccessControl = this.protoAccessControl;
|
|
57649
|
+
var result = env.VM.invokePartial.call(this, partial2, context, options);
|
|
57666
57650
|
if (result == null && env.compile) {
|
|
57667
57651
|
options.partials[options.name] = env.compile(partial2, templateSpec.compilerOptions, env);
|
|
57668
|
-
result = options.partials[options.name](context,
|
|
57652
|
+
result = options.partials[options.name](context, options);
|
|
57669
57653
|
}
|
|
57670
57654
|
if (result != null) {
|
|
57671
57655
|
if (options.indent) {
|
|
@@ -57710,7 +57694,7 @@ var require_runtime = __commonJS({
|
|
|
57710
57694
|
for (var i = 0; i < len; i++) {
|
|
57711
57695
|
var result = depths[i] && container.lookupProperty(depths[i], name);
|
|
57712
57696
|
if (result != null) {
|
|
57713
|
-
return
|
|
57697
|
+
return result;
|
|
57714
57698
|
}
|
|
57715
57699
|
}
|
|
57716
57700
|
},
|
|
@@ -57776,8 +57760,9 @@ var require_runtime = __commonJS({
|
|
|
57776
57760
|
ret.isTop = true;
|
|
57777
57761
|
ret._setup = function(options) {
|
|
57778
57762
|
if (!options.partial) {
|
|
57779
|
-
var mergedHelpers =
|
|
57780
|
-
|
|
57763
|
+
var mergedHelpers = {};
|
|
57764
|
+
addHelpers(mergedHelpers, env.helpers, container);
|
|
57765
|
+
addHelpers(mergedHelpers, options.helpers, container);
|
|
57781
57766
|
container.helpers = mergedHelpers;
|
|
57782
57767
|
if (templateSpec.usePartial) {
|
|
57783
57768
|
container.partials = container.mergeIfNeeded(options.partials, env.partials);
|
|
@@ -57827,18 +57812,18 @@ var require_runtime = __commonJS({
|
|
|
57827
57812
|
function resolvePartial(partial2, context, options) {
|
|
57828
57813
|
if (!partial2) {
|
|
57829
57814
|
if (options.name === "@partial-block") {
|
|
57830
|
-
partial2 = options.data
|
|
57815
|
+
partial2 = lookupOwnProperty(options.data, "partial-block");
|
|
57831
57816
|
} else {
|
|
57832
|
-
partial2 = options.partials
|
|
57817
|
+
partial2 = lookupOwnProperty(options.partials, options.name);
|
|
57833
57818
|
}
|
|
57834
57819
|
} else if (!partial2.call && !options.name) {
|
|
57835
57820
|
options.name = partial2;
|
|
57836
|
-
partial2 = options.partials
|
|
57821
|
+
partial2 = lookupOwnProperty(options.partials, partial2);
|
|
57837
57822
|
}
|
|
57838
57823
|
return partial2;
|
|
57839
57824
|
}
|
|
57840
57825
|
function invokePartial(partial2, context, options) {
|
|
57841
|
-
var currentPartialBlock = options.data
|
|
57826
|
+
var currentPartialBlock = lookupOwnProperty(options.data, "partial-block");
|
|
57842
57827
|
options.partial = true;
|
|
57843
57828
|
if (options.ids) {
|
|
57844
57829
|
options.data.contextPath = options.ids[0] || options.data.contextPath;
|
|
@@ -57871,6 +57856,11 @@ var require_runtime = __commonJS({
|
|
|
57871
57856
|
function noop() {
|
|
57872
57857
|
return "";
|
|
57873
57858
|
}
|
|
57859
|
+
function lookupOwnProperty(obj, name) {
|
|
57860
|
+
if (obj && Object.prototype.hasOwnProperty.call(obj, name)) {
|
|
57861
|
+
return obj[name];
|
|
57862
|
+
}
|
|
57863
|
+
}
|
|
57874
57864
|
function initData(context, data) {
|
|
57875
57865
|
if (!data || !("root" in data)) {
|
|
57876
57866
|
data = data ? _base.createFrame(data) : {};
|
|
@@ -57886,16 +57876,18 @@ var require_runtime = __commonJS({
|
|
|
57886
57876
|
}
|
|
57887
57877
|
return prog;
|
|
57888
57878
|
}
|
|
57889
|
-
function
|
|
57890
|
-
|
|
57891
|
-
|
|
57879
|
+
function addHelpers(mergedHelpers, helpers, container) {
|
|
57880
|
+
if (!helpers) return;
|
|
57881
|
+
Object.keys(helpers).forEach(function(helperName) {
|
|
57882
|
+
var helper = helpers[helperName];
|
|
57892
57883
|
mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
|
|
57893
57884
|
});
|
|
57894
57885
|
}
|
|
57895
57886
|
function passLookupPropertyOption(helper, container) {
|
|
57896
57887
|
var lookupProperty = container.lookupProperty;
|
|
57897
57888
|
return _internalWrapHelper.wrapHelper(helper, function(options) {
|
|
57898
|
-
|
|
57889
|
+
options.lookupProperty = lookupProperty;
|
|
57890
|
+
return options;
|
|
57899
57891
|
});
|
|
57900
57892
|
}
|
|
57901
57893
|
}
|
|
@@ -58705,7 +58697,7 @@ var require_parser = __commonJS({
|
|
|
58705
58697
|
break;
|
|
58706
58698
|
}
|
|
58707
58699
|
};
|
|
58708
|
-
lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[
|
|
58700
|
+
lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/];
|
|
58709
58701
|
lexer2.conditions = { "mu": { "rules": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "inclusive": false }, "emu": { "rules": [2], "inclusive": false }, "com": { "rules": [6], "inclusive": false }, "raw": { "rules": [3, 4, 5], "inclusive": false }, "INITIAL": { "rules": [0, 1, 44], "inclusive": true } };
|
|
58710
58702
|
return lexer2;
|
|
58711
58703
|
})();
|
|
@@ -59212,12 +59204,15 @@ var require_base3 = __commonJS({
|
|
|
59212
59204
|
var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl);
|
|
59213
59205
|
var _helpers = require_helpers2();
|
|
59214
59206
|
var Helpers = _interopRequireWildcard(_helpers);
|
|
59207
|
+
var _exception = require_exception();
|
|
59208
|
+
var _exception2 = _interopRequireDefault(_exception);
|
|
59215
59209
|
var _utils = require_utils5();
|
|
59216
59210
|
exports2.parser = _parser2["default"];
|
|
59217
59211
|
var yy = {};
|
|
59218
59212
|
_utils.extend(yy, Helpers);
|
|
59219
59213
|
function parseWithoutProcessing(input, options) {
|
|
59220
59214
|
if (input.type === "Program") {
|
|
59215
|
+
validateInputAst(input);
|
|
59221
59216
|
return input;
|
|
59222
59217
|
}
|
|
59223
59218
|
_parser2["default"].yy = yy;
|
|
@@ -59232,6 +59227,51 @@ var require_base3 = __commonJS({
|
|
|
59232
59227
|
var strip = new _whitespaceControl2["default"](options);
|
|
59233
59228
|
return strip.accept(ast);
|
|
59234
59229
|
}
|
|
59230
|
+
function validateInputAst(ast) {
|
|
59231
|
+
validateAstNode(ast);
|
|
59232
|
+
}
|
|
59233
|
+
function validateAstNode(node) {
|
|
59234
|
+
if (node == null) {
|
|
59235
|
+
return;
|
|
59236
|
+
}
|
|
59237
|
+
if (Array.isArray(node)) {
|
|
59238
|
+
node.forEach(validateAstNode);
|
|
59239
|
+
return;
|
|
59240
|
+
}
|
|
59241
|
+
if (typeof node !== "object") {
|
|
59242
|
+
return;
|
|
59243
|
+
}
|
|
59244
|
+
if (node.type === "PathExpression") {
|
|
59245
|
+
if (!isValidDepth(node.depth)) {
|
|
59246
|
+
throw new _exception2["default"]("Invalid AST: PathExpression.depth must be an integer");
|
|
59247
|
+
}
|
|
59248
|
+
if (!Array.isArray(node.parts)) {
|
|
59249
|
+
throw new _exception2["default"]("Invalid AST: PathExpression.parts must be an array");
|
|
59250
|
+
}
|
|
59251
|
+
for (var i = 0; i < node.parts.length; i++) {
|
|
59252
|
+
if (typeof node.parts[i] !== "string") {
|
|
59253
|
+
throw new _exception2["default"]("Invalid AST: PathExpression.parts must only contain strings");
|
|
59254
|
+
}
|
|
59255
|
+
}
|
|
59256
|
+
} else if (node.type === "NumberLiteral") {
|
|
59257
|
+
if (typeof node.value !== "number" || !isFinite(node.value)) {
|
|
59258
|
+
throw new _exception2["default"]("Invalid AST: NumberLiteral.value must be a number");
|
|
59259
|
+
}
|
|
59260
|
+
} else if (node.type === "BooleanLiteral") {
|
|
59261
|
+
if (typeof node.value !== "boolean") {
|
|
59262
|
+
throw new _exception2["default"]("Invalid AST: BooleanLiteral.value must be a boolean");
|
|
59263
|
+
}
|
|
59264
|
+
}
|
|
59265
|
+
Object.keys(node).forEach(function(propertyName) {
|
|
59266
|
+
if (propertyName === "loc") {
|
|
59267
|
+
return;
|
|
59268
|
+
}
|
|
59269
|
+
validateAstNode(node[propertyName]);
|
|
59270
|
+
});
|
|
59271
|
+
}
|
|
59272
|
+
function isValidDepth(depth) {
|
|
59273
|
+
return typeof depth === "number" && isFinite(depth) && Math.floor(depth) === depth && depth >= 0;
|
|
59274
|
+
}
|
|
59235
59275
|
}
|
|
59236
59276
|
});
|
|
59237
59277
|
|
|
@@ -61660,12 +61700,10 @@ var require_javascript_compiler = __commonJS({
|
|
|
61660
61700
|
var programs = _context.programs;
|
|
61661
61701
|
var decorators = _context.decorators;
|
|
61662
61702
|
for (i = 0, l = programs.length; i < l; i++) {
|
|
61663
|
-
|
|
61664
|
-
|
|
61665
|
-
|
|
61666
|
-
|
|
61667
|
-
ret.useDecorators = true;
|
|
61668
|
-
}
|
|
61703
|
+
ret[i] = programs[i];
|
|
61704
|
+
if (decorators[i]) {
|
|
61705
|
+
ret[i + "_d"] = decorators[i];
|
|
61706
|
+
ret.useDecorators = true;
|
|
61669
61707
|
}
|
|
61670
61708
|
}
|
|
61671
61709
|
if (this.environment.usePartial) {
|
|
@@ -61926,22 +61964,25 @@ var require_javascript_compiler = __commonJS({
|
|
|
61926
61964
|
}
|
|
61927
61965
|
this.resolvePath("data", parts, 0, true, strict);
|
|
61928
61966
|
},
|
|
61929
|
-
resolvePath: function resolvePath(type, parts,
|
|
61967
|
+
resolvePath: function resolvePath(type, parts, startPartIndex, falsy, strict) {
|
|
61930
61968
|
var _this2 = this;
|
|
61931
61969
|
if (this.options.strict || this.options.assumeObjects) {
|
|
61932
|
-
this.push(strictLookup(this.options.strict && strict, this, parts,
|
|
61970
|
+
this.push(strictLookup(this.options.strict && strict, this, parts, startPartIndex, type));
|
|
61933
61971
|
return;
|
|
61934
61972
|
}
|
|
61935
61973
|
var len = parts.length;
|
|
61936
|
-
|
|
61937
|
-
|
|
61938
|
-
var lookup = _this2.nameLookup(current, parts[
|
|
61974
|
+
var _loop = function(i2) {
|
|
61975
|
+
_this2.replaceStack(function(current) {
|
|
61976
|
+
var lookup = _this2.nameLookup(current, parts[i2], type);
|
|
61939
61977
|
if (!falsy) {
|
|
61940
61978
|
return [" != null ? ", lookup, " : ", current];
|
|
61941
61979
|
} else {
|
|
61942
61980
|
return [" && ", lookup];
|
|
61943
61981
|
}
|
|
61944
61982
|
});
|
|
61983
|
+
};
|
|
61984
|
+
for (var i = startPartIndex; i < len; i++) {
|
|
61985
|
+
_loop(i);
|
|
61945
61986
|
}
|
|
61946
61987
|
},
|
|
61947
61988
|
// [resolvePossibleLambda]
|
|
@@ -62045,7 +62086,9 @@ var require_javascript_compiler = __commonJS({
|
|
|
62045
62086
|
// and inserts the decorator into the decorators list.
|
|
62046
62087
|
registerDecorator: function registerDecorator(paramSize, name) {
|
|
62047
62088
|
var foundDecorator = this.nameLookup("decorators", name, "decorator"), options = this.setupHelperArgs(name, paramSize);
|
|
62048
|
-
this.decorators.push(["
|
|
62089
|
+
this.decorators.push(["var decorator = ", foundDecorator, ";"]);
|
|
62090
|
+
this.decorators.push(['if (typeof decorator !== "function") { throw new Error(', this.quotedString('Missing decorator: "' + name + '"'), "); }"]);
|
|
62091
|
+
this.decorators.push(["fn = ", this.decorators.functionCall("decorator", "", ["fn", "props", "container", options]), " || fn;"]);
|
|
62049
62092
|
},
|
|
62050
62093
|
// [invokeHelper]
|
|
62051
62094
|
//
|
|
@@ -62192,8 +62235,7 @@ var require_javascript_compiler = __commonJS({
|
|
|
62192
62235
|
compiler = new this.compiler();
|
|
62193
62236
|
var existing = this.matchExistingProgram(child);
|
|
62194
62237
|
if (existing == null) {
|
|
62195
|
-
this.context.programs.push("");
|
|
62196
|
-
var index = this.context.programs.length;
|
|
62238
|
+
var index = this.context.programs.push("") - 1;
|
|
62197
62239
|
child.index = index;
|
|
62198
62240
|
child.name = "program" + index;
|
|
62199
62241
|
this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile);
|
|
@@ -62437,16 +62479,16 @@ var require_javascript_compiler = __commonJS({
|
|
|
62437
62479
|
JavaScriptCompiler.isValidJavaScriptVariableName = function(name) {
|
|
62438
62480
|
return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name);
|
|
62439
62481
|
};
|
|
62440
|
-
function strictLookup(requireTerminal, compiler, parts,
|
|
62482
|
+
function strictLookup(requireTerminal, compiler, parts, startPartIndex, type) {
|
|
62441
62483
|
var stack = compiler.popStack(), len = parts.length;
|
|
62442
62484
|
if (requireTerminal) {
|
|
62443
62485
|
len--;
|
|
62444
62486
|
}
|
|
62445
|
-
for (; i < len; i++) {
|
|
62487
|
+
for (var i = startPartIndex; i < len; i++) {
|
|
62446
62488
|
stack = compiler.nameLookup(stack, parts[i], type);
|
|
62447
62489
|
}
|
|
62448
62490
|
if (requireTerminal) {
|
|
62449
|
-
return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[
|
|
62491
|
+
return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[len]), ", ", JSON.stringify(compiler.source.currentLocation), " )"];
|
|
62450
62492
|
} else {
|
|
62451
62493
|
return stack;
|
|
62452
62494
|
}
|
|
@@ -62747,7 +62789,7 @@ var id_default = ID;
|
|
|
62747
62789
|
// lib/constants.ts
|
|
62748
62790
|
var SDK_TITLE = "Appwrite";
|
|
62749
62791
|
var SDK_TITLE_LOWER = "appwrite";
|
|
62750
|
-
var SDK_VERSION = "
|
|
62792
|
+
var SDK_VERSION = "17.1.0";
|
|
62751
62793
|
var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
|
|
62752
62794
|
var EXECUTABLE_NAME = "appwrite";
|
|
62753
62795
|
var NPM_PACKAGE_NAME = "appwrite-cli";
|
|
@@ -78182,14 +78224,14 @@ var import_node_path7 = __toESM(require("node:path"), 1);
|
|
|
78182
78224
|
var import_node_path8 = require("node:path");
|
|
78183
78225
|
var import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
78184
78226
|
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
78185
|
-
var
|
|
78186
|
-
var
|
|
78187
|
-
for (var e in t)
|
|
78227
|
+
var kr = Object.defineProperty;
|
|
78228
|
+
var vr = (s3, t) => {
|
|
78229
|
+
for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
|
|
78188
78230
|
};
|
|
78189
78231
|
var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
|
|
78190
|
-
var
|
|
78191
|
-
var
|
|
78192
|
-
var
|
|
78232
|
+
var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof import_node_stream.default || Pr(s3) || zr(s3));
|
|
78233
|
+
var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
|
|
78234
|
+
var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
|
|
78193
78235
|
var q = /* @__PURE__ */ Symbol("EOF");
|
|
78194
78236
|
var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
|
|
78195
78237
|
var rt = /* @__PURE__ */ Symbol("emittedEnd");
|
|
@@ -78222,10 +78264,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
|
|
|
78222
78264
|
var yt = /* @__PURE__ */ Symbol("dataListeners");
|
|
78223
78265
|
var C = /* @__PURE__ */ Symbol("discarded");
|
|
78224
78266
|
var te = (s3) => Promise.resolve().then(s3);
|
|
78225
|
-
var
|
|
78226
|
-
var
|
|
78227
|
-
var
|
|
78228
|
-
var
|
|
78267
|
+
var Ur = (s3) => s3();
|
|
78268
|
+
var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
|
|
78269
|
+
var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
|
|
78270
|
+
var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
|
|
78229
78271
|
var Ce = class {
|
|
78230
78272
|
src;
|
|
78231
78273
|
dest;
|
|
@@ -78251,8 +78293,8 @@ var Oi = class extends Ce {
|
|
|
78251
78293
|
super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
|
|
78252
78294
|
}
|
|
78253
78295
|
};
|
|
78254
|
-
var
|
|
78255
|
-
var
|
|
78296
|
+
var Zr = (s3) => !!s3.objectMode;
|
|
78297
|
+
var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
|
|
78256
78298
|
var D = class extends import_node_events.EventEmitter {
|
|
78257
78299
|
[b] = false;
|
|
78258
78300
|
[Qt] = false;
|
|
@@ -78278,7 +78320,7 @@ var D = class extends import_node_events.EventEmitter {
|
|
|
78278
78320
|
constructor(...t) {
|
|
78279
78321
|
let e = t[0] || {};
|
|
78280
78322
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
78281
|
-
|
|
78323
|
+
Zr(e) ? (this[L] = true, this[z3] = null) : Yr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new import_node_string_decoder.StringDecoder(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
|
|
78282
78324
|
let { signal: i } = e;
|
|
78283
78325
|
i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
|
|
78284
78326
|
}
|
|
@@ -78319,10 +78361,10 @@ var D = class extends import_node_events.EventEmitter {
|
|
|
78319
78361
|
if (this[q]) throw new Error("write after end");
|
|
78320
78362
|
if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
78321
78363
|
typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
|
|
78322
|
-
let r = this[Z] ? te :
|
|
78364
|
+
let r = this[Z] ? te : Ur;
|
|
78323
78365
|
if (!this[L] && !Buffer.isBuffer(t)) {
|
|
78324
|
-
if (
|
|
78325
|
-
else if (
|
|
78366
|
+
if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
78367
|
+
else if (Wr(t)) t = Buffer.from(t);
|
|
78326
78368
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
78327
78369
|
}
|
|
78328
78370
|
return this[L] ? (this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : t.length ? (typeof t == "string" && !(e === this[z3] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z3] && (t = this[Mt].write(t)), this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : (this[g] !== 0 && this.emit("readable"), i && r(i), this[b]);
|
|
@@ -78395,7 +78437,7 @@ var D = class extends import_node_events.EventEmitter {
|
|
|
78395
78437
|
let i = super.on(t, e);
|
|
78396
78438
|
if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
|
|
78397
78439
|
else if (t === "readable" && this[g] !== 0) super.emit("readable");
|
|
78398
|
-
else if (
|
|
78440
|
+
else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
|
|
78399
78441
|
else if (t === "error" && this[jt]) {
|
|
78400
78442
|
let r = e;
|
|
78401
78443
|
this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
|
|
@@ -78522,10 +78564,10 @@ var D = class extends import_node_events.EventEmitter {
|
|
|
78522
78564
|
return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
|
|
78523
78565
|
}
|
|
78524
78566
|
static get isStream() {
|
|
78525
|
-
return
|
|
78567
|
+
return Br;
|
|
78526
78568
|
}
|
|
78527
78569
|
};
|
|
78528
|
-
var
|
|
78570
|
+
var Vr = import_fs2.default.writev;
|
|
78529
78571
|
var ot = /* @__PURE__ */ Symbol("_autoClose");
|
|
78530
78572
|
var H = /* @__PURE__ */ Symbol("_close");
|
|
78531
78573
|
var ee = /* @__PURE__ */ Symbol("_ended");
|
|
@@ -78718,7 +78760,7 @@ var tt = class extends import_events.default {
|
|
|
78718
78760
|
else if (this[Y].length === 1) this[ke](this[Y].pop());
|
|
78719
78761
|
else {
|
|
78720
78762
|
let t = this[Y];
|
|
78721
|
-
this[Y] = [],
|
|
78763
|
+
this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
|
|
78722
78764
|
}
|
|
78723
78765
|
}
|
|
78724
78766
|
[H]() {
|
|
@@ -78758,21 +78800,21 @@ var Wt = class extends tt {
|
|
|
78758
78800
|
}
|
|
78759
78801
|
}
|
|
78760
78802
|
};
|
|
78761
|
-
var
|
|
78803
|
+
var $r = /* @__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"]]);
|
|
78762
78804
|
var As = (s3) => !!s3.sync && !!s3.file;
|
|
78763
78805
|
var Ds = (s3) => !s3.sync && !!s3.file;
|
|
78764
78806
|
var Is = (s3) => !!s3.sync && !s3.file;
|
|
78765
78807
|
var Cs = (s3) => !s3.sync && !s3.file;
|
|
78766
78808
|
var Fs = (s3) => !!s3.file;
|
|
78767
|
-
var
|
|
78768
|
-
let t =
|
|
78809
|
+
var Xr = (s3) => {
|
|
78810
|
+
let t = $r.get(s3);
|
|
78769
78811
|
return t || s3;
|
|
78770
78812
|
};
|
|
78771
78813
|
var re = (s3 = {}) => {
|
|
78772
78814
|
if (!s3) return {};
|
|
78773
78815
|
let t = {};
|
|
78774
78816
|
for (let [e, i] of Object.entries(s3)) {
|
|
78775
|
-
let r =
|
|
78817
|
+
let r = Xr(e);
|
|
78776
78818
|
t[r] = i;
|
|
78777
78819
|
}
|
|
78778
78820
|
return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
|
|
@@ -78795,13 +78837,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
|
|
|
78795
78837
|
}
|
|
78796
78838
|
throw new Error("impossible options??");
|
|
78797
78839
|
}, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
|
|
78798
|
-
var
|
|
78799
|
-
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 },
|
|
78800
|
-
var
|
|
78840
|
+
var jr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
|
|
78841
|
+
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 }, jr));
|
|
78842
|
+
var Qr = import_buffer.Buffer.concat;
|
|
78801
78843
|
var vs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
|
|
78802
|
-
var
|
|
78844
|
+
var Jr = (s3) => s3;
|
|
78803
78845
|
var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
|
|
78804
|
-
import_buffer.Buffer.concat = s3 ?
|
|
78846
|
+
import_buffer.Buffer.concat = s3 ? Jr : Qr;
|
|
78805
78847
|
} : (s3) => {
|
|
78806
78848
|
};
|
|
78807
78849
|
var Ot = /* @__PURE__ */ Symbol("_superWrite");
|
|
@@ -78962,15 +79004,15 @@ var Ye = class extends Ge {
|
|
|
78962
79004
|
}
|
|
78963
79005
|
};
|
|
78964
79006
|
var Ms = (s3, t) => {
|
|
78965
|
-
if (Number.isSafeInteger(s3)) s3 < 0 ?
|
|
79007
|
+
if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
|
|
78966
79008
|
else throw Error("cannot encode number outside of javascript safe integer range");
|
|
78967
79009
|
return t;
|
|
78968
79010
|
};
|
|
78969
|
-
var
|
|
79011
|
+
var en = (s3, t) => {
|
|
78970
79012
|
t[0] = 128;
|
|
78971
79013
|
for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
|
|
78972
79014
|
};
|
|
78973
|
-
var
|
|
79015
|
+
var sn = (s3, t) => {
|
|
78974
79016
|
t[0] = 255;
|
|
78975
79017
|
var e = false;
|
|
78976
79018
|
s3 = s3 * -1;
|
|
@@ -78980,19 +79022,19 @@ var qr = (s3, t) => {
|
|
|
78980
79022
|
}
|
|
78981
79023
|
};
|
|
78982
79024
|
var Bs = (s3) => {
|
|
78983
|
-
let t = s3[0], e = t === 128 ?
|
|
79025
|
+
let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
|
|
78984
79026
|
if (e === null) throw Error("invalid base256 encoding");
|
|
78985
79027
|
if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
|
|
78986
79028
|
return e;
|
|
78987
79029
|
};
|
|
78988
|
-
var
|
|
79030
|
+
var rn = (s3) => {
|
|
78989
79031
|
for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
|
|
78990
79032
|
var n = Number(s3[r]), o;
|
|
78991
79033
|
i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
|
|
78992
79034
|
}
|
|
78993
79035
|
return e;
|
|
78994
79036
|
};
|
|
78995
|
-
var
|
|
79037
|
+
var nn = (s3) => {
|
|
78996
79038
|
for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
|
|
78997
79039
|
var r = Number(s3[i]);
|
|
78998
79040
|
r !== 0 && (e += r * Math.pow(256, t - i - 1));
|
|
@@ -79002,9 +79044,9 @@ var Qr = (s3) => {
|
|
|
79002
79044
|
var Ps = (s3) => (255 ^ s3) & 255;
|
|
79003
79045
|
var zs = (s3) => (255 ^ s3) + 1 & 255;
|
|
79004
79046
|
var Bi = {};
|
|
79005
|
-
|
|
79047
|
+
vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
|
|
79006
79048
|
var oe = (s3) => he.has(s3);
|
|
79007
|
-
var
|
|
79049
|
+
var hn = (s3) => Ke.has(s3);
|
|
79008
79050
|
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"]]);
|
|
79009
79051
|
var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
|
|
79010
79052
|
var F = class {
|
|
@@ -79053,7 +79095,7 @@ var F = class {
|
|
|
79053
79095
|
}
|
|
79054
79096
|
encode(t, e = 0) {
|
|
79055
79097
|
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");
|
|
79056
|
-
let i = this.ctime || this.atime ? 130 : 155, r =
|
|
79098
|
+
let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
|
|
79057
79099
|
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);
|
|
79058
79100
|
let h = 256;
|
|
79059
79101
|
for (let a = e; a < e + 148; a++) h += t[a];
|
|
@@ -79073,7 +79115,7 @@ var F = class {
|
|
|
79073
79115
|
else throw new TypeError("invalid entry type: " + t);
|
|
79074
79116
|
}
|
|
79075
79117
|
};
|
|
79076
|
-
var
|
|
79118
|
+
var an = (s3, t) => {
|
|
79077
79119
|
let i = s3, r = "", n, o = import_node_path2.posix.parse(s3).root || ".";
|
|
79078
79120
|
if (Buffer.byteLength(i) < 100) n = [i, r, false];
|
|
79079
79121
|
else {
|
|
@@ -79086,19 +79128,19 @@ var en = (s3, t) => {
|
|
|
79086
79128
|
return n;
|
|
79087
79129
|
};
|
|
79088
79130
|
var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
|
|
79089
|
-
var Pi = (s3, t, e) =>
|
|
79090
|
-
var
|
|
79091
|
-
var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) :
|
|
79092
|
-
var
|
|
79093
|
-
var
|
|
79094
|
-
var
|
|
79095
|
-
var lt = (s3, t, e, i) => i === void 0 ? false : i >
|
|
79096
|
-
var
|
|
79097
|
-
var
|
|
79098
|
-
var
|
|
79131
|
+
var Pi = (s3, t, e) => ln(at(s3, t, e));
|
|
79132
|
+
var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
|
|
79133
|
+
var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
|
|
79134
|
+
var cn = (s3) => isNaN(s3) ? void 0 : s3;
|
|
79135
|
+
var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
|
|
79136
|
+
var dn = { 12: 8589934591, 8: 2097151 };
|
|
79137
|
+
var lt = (s3, t, e, i) => i === void 0 ? false : i > dn[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (un(s3, t, e, i), false);
|
|
79138
|
+
var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
|
|
79139
|
+
var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
|
|
79140
|
+
var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
|
|
79099
79141
|
var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
|
|
79100
|
-
var
|
|
79101
|
-
var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i +
|
|
79142
|
+
var En = new Array(156).join("\0");
|
|
79143
|
+
var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + En, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
|
|
79102
79144
|
var ct = class s {
|
|
79103
79145
|
atime;
|
|
79104
79146
|
mtime;
|
|
@@ -79139,13 +79181,13 @@ var ct = class s {
|
|
|
79139
79181
|
return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
|
|
79140
79182
|
}
|
|
79141
79183
|
static parse(t, e, i = false) {
|
|
79142
|
-
return new s(
|
|
79184
|
+
return new s(Sn(yn(t), e), i);
|
|
79143
79185
|
}
|
|
79144
79186
|
};
|
|
79145
|
-
var
|
|
79146
|
-
var
|
|
79147
|
-
`).reduce(
|
|
79148
|
-
var
|
|
79187
|
+
var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
|
|
79188
|
+
var yn = (s3) => s3.replace(/\n$/, "").split(`
|
|
79189
|
+
`).reduce(Rn, /* @__PURE__ */ Object.create(null));
|
|
79190
|
+
var Rn = (s3, t) => {
|
|
79149
79191
|
let e = parseInt(t, 10);
|
|
79150
79192
|
if (e !== Buffer.byteLength(t) + 1) return s3;
|
|
79151
79193
|
t = t.slice((e + " ").length);
|
|
@@ -79154,8 +79196,8 @@ var mn = (s3, t) => {
|
|
|
79154
79196
|
let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
|
|
79155
79197
|
return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
|
|
79156
79198
|
};
|
|
79157
|
-
var
|
|
79158
|
-
var f =
|
|
79199
|
+
var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
79200
|
+
var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
|
|
79159
79201
|
var Yt = class extends D {
|
|
79160
79202
|
extended;
|
|
79161
79203
|
globalExtended;
|
|
@@ -79223,10 +79265,10 @@ var Yt = class extends D {
|
|
|
79223
79265
|
var Lt = (s3, t, e, i = {}) => {
|
|
79224
79266
|
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));
|
|
79225
79267
|
};
|
|
79226
|
-
var
|
|
79268
|
+
var gn = 1024 * 1024;
|
|
79227
79269
|
var Zi = Buffer.from([31, 139]);
|
|
79228
79270
|
var Yi = Buffer.from([40, 181, 47, 253]);
|
|
79229
|
-
var
|
|
79271
|
+
var On = Math.max(Zi.length, Yi.length);
|
|
79230
79272
|
var B = /* @__PURE__ */ Symbol("state");
|
|
79231
79273
|
var Nt = /* @__PURE__ */ Symbol("writeEntry");
|
|
79232
79274
|
var et = /* @__PURE__ */ Symbol("readEntry");
|
|
@@ -79257,7 +79299,7 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
|
|
|
79257
79299
|
var je = /* @__PURE__ */ Symbol("sawNullBlock");
|
|
79258
79300
|
var Qe = /* @__PURE__ */ Symbol("sawEOF");
|
|
79259
79301
|
var Zs = /* @__PURE__ */ Symbol("closeStream");
|
|
79260
|
-
var
|
|
79302
|
+
var Tn = () => true;
|
|
79261
79303
|
var st = class extends import_events2.EventEmitter {
|
|
79262
79304
|
file;
|
|
79263
79305
|
strict;
|
|
@@ -79289,7 +79331,7 @@ var st = class extends import_events2.EventEmitter {
|
|
|
79289
79331
|
(this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
79290
79332
|
}), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
|
|
79291
79333
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
79292
|
-
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize ||
|
|
79334
|
+
}), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
|
|
79293
79335
|
let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
|
|
79294
79336
|
this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
|
|
79295
79337
|
let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
|
|
@@ -79389,7 +79431,7 @@ var st = class extends import_events2.EventEmitter {
|
|
|
79389
79431
|
write(t, e, i) {
|
|
79390
79432
|
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;
|
|
79391
79433
|
if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
|
|
79392
|
-
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length <
|
|
79434
|
+
if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
|
|
79393
79435
|
for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
|
|
79394
79436
|
let o = false;
|
|
79395
79437
|
if (this[y] === false && this.zstd !== false) {
|
|
@@ -79479,7 +79521,7 @@ var mt = (s3) => {
|
|
|
79479
79521
|
for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
|
|
79480
79522
|
return e === -1 ? s3 : s3.slice(0, e);
|
|
79481
79523
|
};
|
|
79482
|
-
var
|
|
79524
|
+
var Nn = (s3) => {
|
|
79483
79525
|
let t = s3.onReadEntry;
|
|
79484
79526
|
s3.onReadEntry = t ? (e) => {
|
|
79485
79527
|
t(e), e.resume();
|
|
@@ -79497,7 +79539,7 @@ var Ki = (s3, t) => {
|
|
|
79497
79539
|
};
|
|
79498
79540
|
s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
|
|
79499
79541
|
};
|
|
79500
|
-
var
|
|
79542
|
+
var An = (s3) => {
|
|
79501
79543
|
let t = new st(s3), e = s3.file, i;
|
|
79502
79544
|
try {
|
|
79503
79545
|
i = import_node_fs.default.openSync(e, "r");
|
|
@@ -79521,7 +79563,7 @@ var gn = (s3) => {
|
|
|
79521
79563
|
}
|
|
79522
79564
|
}
|
|
79523
79565
|
};
|
|
79524
|
-
var
|
|
79566
|
+
var Dn = (s3, t) => {
|
|
79525
79567
|
let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
79526
79568
|
return new Promise((o, h) => {
|
|
79527
79569
|
e.on("error", h), e.on("end", o), import_node_fs.default.stat(r, (a, l) => {
|
|
@@ -79533,14 +79575,14 @@ var On = (s3, t) => {
|
|
|
79533
79575
|
});
|
|
79534
79576
|
});
|
|
79535
79577
|
};
|
|
79536
|
-
var It = K(
|
|
79537
|
-
t?.length && Ki(s3, t), s3.noResume ||
|
|
79578
|
+
var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
|
|
79579
|
+
t?.length && Ki(s3, t), s3.noResume || Nn(s3);
|
|
79538
79580
|
});
|
|
79539
79581
|
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);
|
|
79540
|
-
var { isAbsolute:
|
|
79582
|
+
var { isAbsolute: Cn, parse: Ys } = import_node_path4.win32;
|
|
79541
79583
|
var ce = (s3) => {
|
|
79542
79584
|
let t = "", e = Ys(s3);
|
|
79543
|
-
for (;
|
|
79585
|
+
for (; Cn(s3) || e.root; ) {
|
|
79544
79586
|
let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
|
|
79545
79587
|
s3 = s3.slice(i.length), t += i, e = Ys(s3);
|
|
79546
79588
|
}
|
|
@@ -79548,12 +79590,12 @@ var ce = (s3) => {
|
|
|
79548
79590
|
};
|
|
79549
79591
|
var Je = ["|", "<", ">", "?", ":"];
|
|
79550
79592
|
var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
|
|
79551
|
-
var
|
|
79552
|
-
var
|
|
79553
|
-
var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(
|
|
79554
|
-
var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(
|
|
79593
|
+
var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
|
|
79594
|
+
var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
|
|
79595
|
+
var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
|
|
79596
|
+
var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
|
|
79555
79597
|
var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
|
|
79556
|
-
var
|
|
79598
|
+
var vn = 16 * 1024 * 1024;
|
|
79557
79599
|
var Xs = /* @__PURE__ */ Symbol("process");
|
|
79558
79600
|
var qs = /* @__PURE__ */ Symbol("file");
|
|
79559
79601
|
var js = /* @__PURE__ */ Symbol("directory");
|
|
@@ -79605,7 +79647,7 @@ var de = class extends D {
|
|
|
79605
79647
|
#t = false;
|
|
79606
79648
|
constructor(t, e = {}) {
|
|
79607
79649
|
let i = re(e);
|
|
79608
|
-
super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize ||
|
|
79650
|
+
super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || vn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
|
|
79609
79651
|
let r = false;
|
|
79610
79652
|
if (!this.preservePaths) {
|
|
79611
79653
|
let [o, h] = ce(this.path);
|
|
@@ -79628,7 +79670,7 @@ var de = class extends D {
|
|
|
79628
79670
|
});
|
|
79629
79671
|
}
|
|
79630
79672
|
[ei](t) {
|
|
79631
|
-
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type =
|
|
79673
|
+
this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
|
|
79632
79674
|
}
|
|
79633
79675
|
[Xs]() {
|
|
79634
79676
|
switch (this.type) {
|
|
@@ -79834,7 +79876,7 @@ var ri = class extends D {
|
|
|
79834
79876
|
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;
|
|
79835
79877
|
}
|
|
79836
79878
|
};
|
|
79837
|
-
var
|
|
79879
|
+
var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
|
|
79838
79880
|
var ni = class s2 {
|
|
79839
79881
|
tail;
|
|
79840
79882
|
head;
|
|
@@ -79866,11 +79908,11 @@ var ni = class s2 {
|
|
|
79866
79908
|
t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
|
|
79867
79909
|
}
|
|
79868
79910
|
push(...t) {
|
|
79869
|
-
for (let e = 0, i = t.length; e < i; e++)
|
|
79911
|
+
for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
|
|
79870
79912
|
return this.length;
|
|
79871
79913
|
}
|
|
79872
79914
|
unshift(...t) {
|
|
79873
|
-
for (var e = 0, i = t.length; e < i; e++)
|
|
79915
|
+
for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
|
|
79874
79916
|
return this.length;
|
|
79875
79917
|
}
|
|
79876
79918
|
pop() {
|
|
@@ -79966,7 +80008,7 @@ var ni = class s2 {
|
|
|
79966
80008
|
let n = [];
|
|
79967
80009
|
for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
|
|
79968
80010
|
r ? r !== this.tail && (r = r.prev) : r = this.tail;
|
|
79969
|
-
for (let o of i) r =
|
|
80011
|
+
for (let o of i) r = Bn(this, r, o);
|
|
79970
80012
|
return n;
|
|
79971
80013
|
}
|
|
79972
80014
|
reverse() {
|
|
@@ -79978,14 +80020,14 @@ var ni = class s2 {
|
|
|
79978
80020
|
return this.head = e, this.tail = t, this;
|
|
79979
80021
|
}
|
|
79980
80022
|
};
|
|
79981
|
-
function
|
|
80023
|
+
function Bn(s3, t, e) {
|
|
79982
80024
|
let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
|
|
79983
80025
|
return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
|
|
79984
80026
|
}
|
|
79985
|
-
function
|
|
80027
|
+
function Pn(s3, t) {
|
|
79986
80028
|
s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
|
|
79987
80029
|
}
|
|
79988
|
-
function
|
|
80030
|
+
function zn(s3, t) {
|
|
79989
80031
|
s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
|
|
79990
80032
|
}
|
|
79991
80033
|
var ue = class {
|
|
@@ -80214,11 +80256,11 @@ var kt = class extends Et {
|
|
|
80214
80256
|
});
|
|
80215
80257
|
}
|
|
80216
80258
|
};
|
|
80217
|
-
var
|
|
80259
|
+
var Un = (s3, t) => {
|
|
80218
80260
|
let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
|
|
80219
80261
|
e.pipe(i), or(e, t);
|
|
80220
80262
|
};
|
|
80221
|
-
var
|
|
80263
|
+
var Hn = (s3, t) => {
|
|
80222
80264
|
let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
|
|
80223
80265
|
e.pipe(i);
|
|
80224
80266
|
let r = new Promise((n, o) => {
|
|
@@ -80237,25 +80279,26 @@ var hr = async (s3, t) => {
|
|
|
80237
80279
|
} }) : s3.add(e);
|
|
80238
80280
|
s3.end();
|
|
80239
80281
|
};
|
|
80240
|
-
var
|
|
80282
|
+
var Wn = (s3, t) => {
|
|
80241
80283
|
let e = new kt(s3);
|
|
80242
80284
|
return or(e, t), e;
|
|
80243
80285
|
};
|
|
80244
|
-
var
|
|
80286
|
+
var Gn = (s3, t) => {
|
|
80245
80287
|
let e = new Et(s3);
|
|
80246
80288
|
return hr(e, t).catch((i) => e.emit("error", i)), e;
|
|
80247
80289
|
};
|
|
80248
|
-
var
|
|
80290
|
+
var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
|
|
80249
80291
|
if (!t?.length) throw new TypeError("no paths specified to add to archive");
|
|
80250
80292
|
});
|
|
80251
|
-
var
|
|
80252
|
-
var
|
|
80253
|
-
var { O_CREAT:
|
|
80254
|
-
var
|
|
80255
|
-
var
|
|
80256
|
-
var
|
|
80257
|
-
var
|
|
80258
|
-
var
|
|
80293
|
+
var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
80294
|
+
var fr = Yn === "win32";
|
|
80295
|
+
var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = import_fs5.default.constants;
|
|
80296
|
+
var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs5.default.constants.UV_FS_O_FILEMAP || 0;
|
|
80297
|
+
var Kn = fr && !!pr;
|
|
80298
|
+
var Vn = 512 * 1024;
|
|
80299
|
+
var $n = pr | ur | dr | mr;
|
|
80300
|
+
var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
|
|
80301
|
+
var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
|
|
80259
80302
|
var fs2 = (s3, t, e) => {
|
|
80260
80303
|
try {
|
|
80261
80304
|
return import_node_fs4.default.lchownSync(s3, t, e);
|
|
@@ -80268,7 +80311,7 @@ var ui = (s3, t, e, i) => {
|
|
|
80268
80311
|
i(r && r?.code !== "ENOENT" ? r : null);
|
|
80269
80312
|
});
|
|
80270
80313
|
};
|
|
80271
|
-
var
|
|
80314
|
+
var Xn = (s3, t, e, i, r) => {
|
|
80272
80315
|
if (t.isDirectory()) ds(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
|
|
80273
80316
|
if (n) return r(n);
|
|
80274
80317
|
let o = import_node_path6.default.resolve(s3, t.name);
|
|
@@ -80292,10 +80335,10 @@ var ds = (s3, t, e, i) => {
|
|
|
80292
80335
|
if (--o === 0) return ui(s3, t, e, i);
|
|
80293
80336
|
}
|
|
80294
80337
|
};
|
|
80295
|
-
for (let l of n)
|
|
80338
|
+
for (let l of n) Xn(s3, l, t, e, a);
|
|
80296
80339
|
});
|
|
80297
80340
|
};
|
|
80298
|
-
var
|
|
80341
|
+
var qn = (s3, t, e, i) => {
|
|
80299
80342
|
t.isDirectory() && us(import_node_path6.default.resolve(s3, t.name), e, i), fs2(import_node_path6.default.resolve(s3, t.name), e, i);
|
|
80300
80343
|
};
|
|
80301
80344
|
var us = (s3, t, e) => {
|
|
@@ -80308,7 +80351,7 @@ var us = (s3, t, e) => {
|
|
|
80308
80351
|
if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs2(s3, t, e);
|
|
80309
80352
|
throw n;
|
|
80310
80353
|
}
|
|
80311
|
-
for (let r of i)
|
|
80354
|
+
for (let r of i) qn(s3, r, t, e);
|
|
80312
80355
|
return fs2(s3, t, e);
|
|
80313
80356
|
};
|
|
80314
80357
|
var we = class extends Error {
|
|
@@ -80334,17 +80377,17 @@ var wt = class extends Error {
|
|
|
80334
80377
|
return "SymlinkError";
|
|
80335
80378
|
}
|
|
80336
80379
|
};
|
|
80337
|
-
var
|
|
80380
|
+
var Qn = (s3, t) => {
|
|
80338
80381
|
import_node_fs5.default.stat(s3, (e, i) => {
|
|
80339
80382
|
(e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
|
|
80340
80383
|
});
|
|
80341
80384
|
};
|
|
80342
|
-
var
|
|
80385
|
+
var Er = (s3, t, e) => {
|
|
80343
80386
|
s3 = f(s3);
|
|
80344
80387
|
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) => {
|
|
80345
80388
|
E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
|
|
80346
80389
|
};
|
|
80347
|
-
if (s3 === d) return
|
|
80390
|
+
if (s3 === d) return Qn(s3, S);
|
|
80348
80391
|
if (l) return import_promises.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
|
|
80349
80392
|
let N = f(import_node_path7.default.relative(d, s3)).split("/");
|
|
80350
80393
|
ms(d, N, r, c, d, void 0, S);
|
|
@@ -80352,15 +80395,15 @@ var cr = (s3, t, e) => {
|
|
|
80352
80395
|
var ms = (s3, t, e, i, r, n, o) => {
|
|
80353
80396
|
if (t.length === 0) return o(null, n);
|
|
80354
80397
|
let h = t.shift(), a = f(import_node_path7.default.resolve(s3 + "/" + h));
|
|
80355
|
-
import_node_fs5.default.mkdir(a, e,
|
|
80398
|
+
import_node_fs5.default.mkdir(a, e, wr(a, t, e, i, r, n, o));
|
|
80356
80399
|
};
|
|
80357
|
-
var
|
|
80400
|
+
var wr = (s3, t, e, i, r, n, o) => (h) => {
|
|
80358
80401
|
h ? import_node_fs5.default.lstat(s3, (a, l) => {
|
|
80359
80402
|
if (a) a.path = a.path && f(a.path), o(a);
|
|
80360
80403
|
else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
|
|
80361
80404
|
else if (i) import_node_fs5.default.unlink(s3, (c) => {
|
|
80362
80405
|
if (c) return o(c);
|
|
80363
|
-
import_node_fs5.default.mkdir(s3, e,
|
|
80406
|
+
import_node_fs5.default.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
|
|
80364
80407
|
});
|
|
80365
80408
|
else {
|
|
80366
80409
|
if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
|
|
@@ -80368,7 +80411,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
|
|
|
80368
80411
|
}
|
|
80369
80412
|
}) : (n = n || s3, ms(s3, t, e, i, r, n, o));
|
|
80370
80413
|
};
|
|
80371
|
-
var
|
|
80414
|
+
var Jn = (s3) => {
|
|
80372
80415
|
let t = false, e;
|
|
80373
80416
|
try {
|
|
80374
80417
|
t = import_node_fs5.default.statSync(s3).isDirectory();
|
|
@@ -80378,12 +80421,12 @@ var jn = (s3) => {
|
|
|
80378
80421
|
if (!t) throw new we(s3, e ?? "ENOTDIR");
|
|
80379
80422
|
}
|
|
80380
80423
|
};
|
|
80381
|
-
var
|
|
80424
|
+
var Sr = (s3, t) => {
|
|
80382
80425
|
s3 = f(s3);
|
|
80383
80426
|
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) => {
|
|
80384
80427
|
E && h && us(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
|
|
80385
80428
|
};
|
|
80386
|
-
if (s3 === c) return
|
|
80429
|
+
if (s3 === c) return Jn(c), d();
|
|
80387
80430
|
if (a) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
|
|
80388
80431
|
let T = f(import_node_path7.default.relative(c, s3)).split("/"), N;
|
|
80389
80432
|
for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
|
|
@@ -80402,19 +80445,19 @@ var dr = (s3, t) => {
|
|
|
80402
80445
|
return d(N);
|
|
80403
80446
|
};
|
|
80404
80447
|
var ps = /* @__PURE__ */ Object.create(null);
|
|
80405
|
-
var
|
|
80448
|
+
var yr = 1e4;
|
|
80406
80449
|
var $t = /* @__PURE__ */ new Set();
|
|
80407
|
-
var
|
|
80450
|
+
var Rr = (s3) => {
|
|
80408
80451
|
$t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
|
|
80409
|
-
let t = ps[s3], e = $t.size -
|
|
80410
|
-
if (e >
|
|
80452
|
+
let t = ps[s3], e = $t.size - yr;
|
|
80453
|
+
if (e > yr / 10) {
|
|
80411
80454
|
for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
|
|
80412
80455
|
}
|
|
80413
80456
|
return t;
|
|
80414
80457
|
};
|
|
80415
|
-
var
|
|
80416
|
-
var
|
|
80417
|
-
var
|
|
80458
|
+
var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
80459
|
+
var eo = to === "win32";
|
|
80460
|
+
var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
|
|
80418
80461
|
let r = e.at(-1);
|
|
80419
80462
|
return r !== void 0 && (i = (0, import_node_path8.join)(r, i)), e.push(i || "/"), e;
|
|
80420
80463
|
}, []);
|
|
@@ -80423,8 +80466,8 @@ var Ei = class {
|
|
|
80423
80466
|
#i = /* @__PURE__ */ new Map();
|
|
80424
80467
|
#s = /* @__PURE__ */ new Set();
|
|
80425
80468
|
reserve(t, e) {
|
|
80426
|
-
t =
|
|
80427
|
-
let i = new Set(t.map((r) =>
|
|
80469
|
+
t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(Rr(r))));
|
|
80470
|
+
let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
|
|
80428
80471
|
this.#i.set(e, { dirs: i, paths: t });
|
|
80429
80472
|
for (let r of t) {
|
|
80430
80473
|
let n = this.#t.get(r);
|
|
@@ -80482,25 +80525,25 @@ var Ei = class {
|
|
|
80482
80525
|
return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
|
|
80483
80526
|
}
|
|
80484
80527
|
};
|
|
80485
|
-
var
|
|
80486
|
-
var
|
|
80528
|
+
var _r = () => process.umask();
|
|
80529
|
+
var gr = /* @__PURE__ */ Symbol("onEntry");
|
|
80487
80530
|
var ys = /* @__PURE__ */ Symbol("checkFs");
|
|
80488
|
-
var
|
|
80531
|
+
var Or = /* @__PURE__ */ Symbol("checkFs2");
|
|
80489
80532
|
var Rs = /* @__PURE__ */ Symbol("isReusable");
|
|
80490
80533
|
var P = /* @__PURE__ */ Symbol("makeFs");
|
|
80491
80534
|
var bs = /* @__PURE__ */ Symbol("file");
|
|
80492
80535
|
var _s = /* @__PURE__ */ Symbol("directory");
|
|
80493
80536
|
var Si = /* @__PURE__ */ Symbol("link");
|
|
80494
|
-
var
|
|
80495
|
-
var
|
|
80537
|
+
var Tr = /* @__PURE__ */ Symbol("symlink");
|
|
80538
|
+
var xr = /* @__PURE__ */ Symbol("hardlink");
|
|
80496
80539
|
var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
|
|
80497
|
-
var
|
|
80498
|
-
var
|
|
80540
|
+
var Lr = /* @__PURE__ */ Symbol("unsupported");
|
|
80541
|
+
var Nr = /* @__PURE__ */ Symbol("checkPath");
|
|
80499
80542
|
var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
|
|
80500
80543
|
var St = /* @__PURE__ */ Symbol("mkdir");
|
|
80501
80544
|
var O = /* @__PURE__ */ Symbol("onError");
|
|
80502
80545
|
var wi = /* @__PURE__ */ Symbol("pending");
|
|
80503
|
-
var
|
|
80546
|
+
var Ar = /* @__PURE__ */ Symbol("pend");
|
|
80504
80547
|
var Xt = /* @__PURE__ */ Symbol("unpend");
|
|
80505
80548
|
var ws = /* @__PURE__ */ Symbol("ended");
|
|
80506
80549
|
var Ss = /* @__PURE__ */ Symbol("maybeClose");
|
|
@@ -80509,10 +80552,10 @@ var Re = /* @__PURE__ */ Symbol("doChown");
|
|
|
80509
80552
|
var be = /* @__PURE__ */ Symbol("uid");
|
|
80510
80553
|
var _e = /* @__PURE__ */ Symbol("gid");
|
|
80511
80554
|
var ge = /* @__PURE__ */ Symbol("checkedCwd");
|
|
80512
|
-
var
|
|
80513
|
-
var Oe =
|
|
80514
|
-
var
|
|
80515
|
-
var
|
|
80555
|
+
var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
80556
|
+
var Oe = ro === "win32";
|
|
80557
|
+
var no = 1024;
|
|
80558
|
+
var oo = (s3, t) => {
|
|
80516
80559
|
if (!Oe) return import_node_fs3.default.unlink(s3, t);
|
|
80517
80560
|
let e = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
|
|
80518
80561
|
import_node_fs3.default.rename(s3, e, (i) => {
|
|
@@ -80520,12 +80563,12 @@ var ro = (s3, t) => {
|
|
|
80520
80563
|
import_node_fs3.default.unlink(e, t);
|
|
80521
80564
|
});
|
|
80522
80565
|
};
|
|
80523
|
-
var
|
|
80566
|
+
var ho = (s3) => {
|
|
80524
80567
|
if (!Oe) return import_node_fs3.default.unlinkSync(s3);
|
|
80525
80568
|
let t = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
|
|
80526
80569
|
import_node_fs3.default.renameSync(s3, t), import_node_fs3.default.unlinkSync(t);
|
|
80527
80570
|
};
|
|
80528
|
-
var
|
|
80571
|
+
var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
|
|
80529
80572
|
var qt = class extends st {
|
|
80530
80573
|
[ws] = false;
|
|
80531
80574
|
[ge] = false;
|
|
@@ -80563,7 +80606,7 @@ var qt = class extends st {
|
|
|
80563
80606
|
if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
80564
80607
|
this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
|
|
80565
80608
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
80566
|
-
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 :
|
|
80609
|
+
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 : no, 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(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : _r() : 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[gr](e));
|
|
80567
80610
|
}
|
|
80568
80611
|
warn(t, e, i = {}) {
|
|
80569
80612
|
return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
|
|
@@ -80582,7 +80625,7 @@ var qt = class extends st {
|
|
|
80582
80625
|
}
|
|
80583
80626
|
return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
|
|
80584
80627
|
}
|
|
80585
|
-
[
|
|
80628
|
+
[Nr](t) {
|
|
80586
80629
|
let e = f(t.path), i = e.split("/");
|
|
80587
80630
|
if (this.strip) {
|
|
80588
80631
|
if (i.length < this.strip) return false;
|
|
@@ -80605,8 +80648,8 @@ var qt = class extends st {
|
|
|
80605
80648
|
}
|
|
80606
80649
|
return true;
|
|
80607
80650
|
}
|
|
80608
|
-
[
|
|
80609
|
-
if (!this[
|
|
80651
|
+
[gr](t) {
|
|
80652
|
+
if (!this[Nr](t)) return t.resume();
|
|
80610
80653
|
switch (import_node_assert.default.equal(typeof t.absolute, "string"), t.type) {
|
|
80611
80654
|
case "Directory":
|
|
80612
80655
|
case "GNUDumpDir":
|
|
@@ -80618,23 +80661,23 @@ var qt = class extends st {
|
|
|
80618
80661
|
case "SymbolicLink":
|
|
80619
80662
|
return this[ys](t);
|
|
80620
80663
|
default:
|
|
80621
|
-
return this[
|
|
80664
|
+
return this[Lr](t);
|
|
80622
80665
|
}
|
|
80623
80666
|
}
|
|
80624
80667
|
[O](t, e) {
|
|
80625
80668
|
t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
|
|
80626
80669
|
}
|
|
80627
80670
|
[St](t, e, i) {
|
|
80628
|
-
|
|
80671
|
+
Er(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);
|
|
80629
80672
|
}
|
|
80630
80673
|
[Re](t) {
|
|
80631
80674
|
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;
|
|
80632
80675
|
}
|
|
80633
80676
|
[be](t) {
|
|
80634
|
-
return
|
|
80677
|
+
return Dr(this.uid, t.uid, this.processUid);
|
|
80635
80678
|
}
|
|
80636
80679
|
[_e](t) {
|
|
80637
|
-
return
|
|
80680
|
+
return Dr(this.gid, t.gid, this.processGid);
|
|
80638
80681
|
}
|
|
80639
80682
|
[bs](t, e) {
|
|
80640
80683
|
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 });
|
|
@@ -80684,16 +80727,16 @@ var qt = class extends st {
|
|
|
80684
80727
|
t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
|
|
80685
80728
|
});
|
|
80686
80729
|
}
|
|
80687
|
-
[
|
|
80730
|
+
[Lr](t) {
|
|
80688
80731
|
t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
|
|
80689
80732
|
}
|
|
80690
|
-
[
|
|
80733
|
+
[Tr](t, e) {
|
|
80691
80734
|
let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
|
|
80692
80735
|
this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
|
|
80693
80736
|
this[O](r, t), e();
|
|
80694
80737
|
});
|
|
80695
80738
|
}
|
|
80696
|
-
[
|
|
80739
|
+
[xr](t, e) {
|
|
80697
80740
|
let i = f(import_node_path5.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
|
|
80698
80741
|
this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
|
|
80699
80742
|
this[O](n, t), e();
|
|
@@ -80709,7 +80752,7 @@ var qt = class extends st {
|
|
|
80709
80752
|
this[ye](t, h, i, r, n);
|
|
80710
80753
|
});
|
|
80711
80754
|
}
|
|
80712
|
-
[
|
|
80755
|
+
[Ar]() {
|
|
80713
80756
|
this[wi]++;
|
|
80714
80757
|
}
|
|
80715
80758
|
[Xt]() {
|
|
@@ -80722,11 +80765,11 @@ var qt = class extends st {
|
|
|
80722
80765
|
return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
|
|
80723
80766
|
}
|
|
80724
80767
|
[ys](t) {
|
|
80725
|
-
this[
|
|
80768
|
+
this[Ar]();
|
|
80726
80769
|
let e = [t.path];
|
|
80727
|
-
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[
|
|
80770
|
+
t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
|
|
80728
80771
|
}
|
|
80729
|
-
[
|
|
80772
|
+
[Or](t, e) {
|
|
80730
80773
|
let i = (h) => {
|
|
80731
80774
|
e(h);
|
|
80732
80775
|
}, r = () => {
|
|
@@ -80764,7 +80807,7 @@ var qt = class extends st {
|
|
|
80764
80807
|
if (t.absolute !== this.cwd) return import_node_fs3.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
80765
80808
|
}
|
|
80766
80809
|
if (t.absolute === this.cwd) return this[P](null, t, i);
|
|
80767
|
-
|
|
80810
|
+
oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
80768
80811
|
});
|
|
80769
80812
|
};
|
|
80770
80813
|
this[ge] ? n() : r();
|
|
@@ -80780,9 +80823,9 @@ var qt = class extends st {
|
|
|
80780
80823
|
case "ContiguousFile":
|
|
80781
80824
|
return this[bs](e, i);
|
|
80782
80825
|
case "Link":
|
|
80783
|
-
return this[
|
|
80826
|
+
return this[xr](e, i);
|
|
80784
80827
|
case "SymbolicLink":
|
|
80785
|
-
return this[
|
|
80828
|
+
return this[Tr](e, i);
|
|
80786
80829
|
case "Directory":
|
|
80787
80830
|
case "GNUDumpDir":
|
|
80788
80831
|
return this[_s](e, i);
|
|
@@ -80833,7 +80876,7 @@ var Te = class extends qt {
|
|
|
80833
80876
|
let [n] = Se(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
|
|
80834
80877
|
this[P](n, t);
|
|
80835
80878
|
}
|
|
80836
|
-
let [r] = t.absolute === this.cwd ? [] : Se(() =>
|
|
80879
|
+
let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
|
|
80837
80880
|
this[P](r, t);
|
|
80838
80881
|
}
|
|
80839
80882
|
[bs](t, e) {
|
|
@@ -80905,7 +80948,7 @@ var Te = class extends qt {
|
|
|
80905
80948
|
}
|
|
80906
80949
|
[St](t, e) {
|
|
80907
80950
|
try {
|
|
80908
|
-
return
|
|
80951
|
+
return Sr(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 });
|
|
80909
80952
|
} catch (i) {
|
|
80910
80953
|
return i;
|
|
80911
80954
|
}
|
|
@@ -80930,11 +80973,11 @@ var Te = class extends qt {
|
|
|
80930
80973
|
}
|
|
80931
80974
|
}
|
|
80932
80975
|
};
|
|
80933
|
-
var
|
|
80976
|
+
var ao = (s3) => {
|
|
80934
80977
|
let t = new Te(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
|
|
80935
80978
|
new Me(e, { readSize: r, size: i.size }).pipe(t);
|
|
80936
80979
|
};
|
|
80937
|
-
var
|
|
80980
|
+
var lo = (s3, t) => {
|
|
80938
80981
|
let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
80939
80982
|
return new Promise((o, h) => {
|
|
80940
80983
|
e.on("error", h), e.on("close", o), import_node_fs2.default.stat(r, (a, l) => {
|
|
@@ -80946,10 +80989,10 @@ var ho = (s3, t) => {
|
|
|
80946
80989
|
});
|
|
80947
80990
|
});
|
|
80948
80991
|
};
|
|
80949
|
-
var
|
|
80992
|
+
var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
|
|
80950
80993
|
t?.length && Ki(s3, t);
|
|
80951
80994
|
});
|
|
80952
|
-
var
|
|
80995
|
+
var fo = (s3, t) => {
|
|
80953
80996
|
let e = new kt(s3), i = true, r, n;
|
|
80954
80997
|
try {
|
|
80955
80998
|
try {
|
|
@@ -80970,7 +81013,7 @@ var lo = (s3, t) => {
|
|
|
80970
81013
|
if (n + l + 512 > o.size) break;
|
|
80971
81014
|
n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
|
|
80972
81015
|
}
|
|
80973
|
-
i = false,
|
|
81016
|
+
i = false, uo(s3, e, n, r, t);
|
|
80974
81017
|
} finally {
|
|
80975
81018
|
if (i) try {
|
|
80976
81019
|
import_node_fs6.default.closeSync(r);
|
|
@@ -80978,11 +81021,11 @@ var lo = (s3, t) => {
|
|
|
80978
81021
|
}
|
|
80979
81022
|
}
|
|
80980
81023
|
};
|
|
80981
|
-
var
|
|
81024
|
+
var uo = (s3, t, e, i, r) => {
|
|
80982
81025
|
let n = new Wt(s3.file, { fd: i, start: e });
|
|
80983
|
-
t.pipe(n),
|
|
81026
|
+
t.pipe(n), po(t, r);
|
|
80984
81027
|
};
|
|
80985
|
-
var
|
|
81028
|
+
var mo = (s3, t) => {
|
|
80986
81029
|
t = Array.from(t);
|
|
80987
81030
|
let e = new Et(s3), i = (n, o, h) => {
|
|
80988
81031
|
let a = (T, N) => {
|
|
@@ -81012,23 +81055,23 @@ var fo = (s3, t) => {
|
|
|
81012
81055
|
i(c, S.size, (T, N) => {
|
|
81013
81056
|
if (T) return o(T);
|
|
81014
81057
|
let E = new tt(s3.file, { fd: c, start: N });
|
|
81015
|
-
e.pipe(E), E.on("error", o), E.on("close", n),
|
|
81058
|
+
e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
|
|
81016
81059
|
});
|
|
81017
81060
|
});
|
|
81018
81061
|
};
|
|
81019
81062
|
import_node_fs6.default.open(s3.file, h, a);
|
|
81020
81063
|
});
|
|
81021
81064
|
};
|
|
81022
|
-
var
|
|
81065
|
+
var po = (s3, t) => {
|
|
81023
81066
|
t.forEach((e) => {
|
|
81024
81067
|
e.charAt(0) === "@" ? It({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
81025
81068
|
}), s3.end();
|
|
81026
81069
|
};
|
|
81027
|
-
var
|
|
81070
|
+
var Eo = async (s3, t) => {
|
|
81028
81071
|
for (let e of t) e.charAt(0) === "@" ? await It({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
|
|
81029
81072
|
s3.end();
|
|
81030
81073
|
};
|
|
81031
|
-
var vt = K(
|
|
81074
|
+
var vt = K(fo, mo, () => {
|
|
81032
81075
|
throw new TypeError("file is required");
|
|
81033
81076
|
}, () => {
|
|
81034
81077
|
throw new TypeError("file is required");
|
|
@@ -81037,10 +81080,10 @@ var vt = K(lo, fo, () => {
|
|
|
81037
81080
|
if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
|
|
81038
81081
|
if (!t?.length) throw new TypeError("no paths specified to add/replace");
|
|
81039
81082
|
});
|
|
81040
|
-
var
|
|
81041
|
-
vt.validate?.(s3, t),
|
|
81083
|
+
var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
|
|
81084
|
+
vt.validate?.(s3, t), So(s3);
|
|
81042
81085
|
});
|
|
81043
|
-
var
|
|
81086
|
+
var So = (s3) => {
|
|
81044
81087
|
let t = s3.filter;
|
|
81045
81088
|
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));
|
|
81046
81089
|
};
|
|
@@ -81223,6 +81266,9 @@ var Client = class _Client {
|
|
|
81223
81266
|
locale: "",
|
|
81224
81267
|
mode: "",
|
|
81225
81268
|
cookie: "",
|
|
81269
|
+
impersonateuserid: "",
|
|
81270
|
+
impersonateuseremail: "",
|
|
81271
|
+
impersonateuserphone: "",
|
|
81226
81272
|
platform: "",
|
|
81227
81273
|
selfSigned: false,
|
|
81228
81274
|
session: void 0
|
|
@@ -81231,8 +81277,8 @@ var Client = class _Client {
|
|
|
81231
81277
|
"x-sdk-name": "Console",
|
|
81232
81278
|
"x-sdk-platform": "console",
|
|
81233
81279
|
"x-sdk-language": "web",
|
|
81234
|
-
"x-sdk-version": "
|
|
81235
|
-
"X-Appwrite-Response-Format": "1.
|
|
81280
|
+
"x-sdk-version": "8.0.0",
|
|
81281
|
+
"X-Appwrite-Response-Format": "1.9.0"
|
|
81236
81282
|
};
|
|
81237
81283
|
this.realtime = {
|
|
81238
81284
|
socket: void 0,
|
|
@@ -81555,6 +81601,48 @@ var Client = class _Client {
|
|
|
81555
81601
|
this.config.cookie = value;
|
|
81556
81602
|
return this;
|
|
81557
81603
|
}
|
|
81604
|
+
/**
|
|
81605
|
+
* Set ImpersonateUserId
|
|
81606
|
+
*
|
|
81607
|
+
* Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
81608
|
+
*
|
|
81609
|
+
* @param value string
|
|
81610
|
+
*
|
|
81611
|
+
* @return {this}
|
|
81612
|
+
*/
|
|
81613
|
+
setImpersonateUserId(value) {
|
|
81614
|
+
this.headers["X-Appwrite-Impersonate-User-Id"] = value;
|
|
81615
|
+
this.config.impersonateuserid = value;
|
|
81616
|
+
return this;
|
|
81617
|
+
}
|
|
81618
|
+
/**
|
|
81619
|
+
* Set ImpersonateUserEmail
|
|
81620
|
+
*
|
|
81621
|
+
* Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
81622
|
+
*
|
|
81623
|
+
* @param value string
|
|
81624
|
+
*
|
|
81625
|
+
* @return {this}
|
|
81626
|
+
*/
|
|
81627
|
+
setImpersonateUserEmail(value) {
|
|
81628
|
+
this.headers["X-Appwrite-Impersonate-User-Email"] = value;
|
|
81629
|
+
this.config.impersonateuseremail = value;
|
|
81630
|
+
return this;
|
|
81631
|
+
}
|
|
81632
|
+
/**
|
|
81633
|
+
* Set ImpersonateUserPhone
|
|
81634
|
+
*
|
|
81635
|
+
* Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
81636
|
+
*
|
|
81637
|
+
* @param value string
|
|
81638
|
+
*
|
|
81639
|
+
* @return {this}
|
|
81640
|
+
*/
|
|
81641
|
+
setImpersonateUserPhone(value) {
|
|
81642
|
+
this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
|
|
81643
|
+
this.config.impersonateuserphone = value;
|
|
81644
|
+
return this;
|
|
81645
|
+
}
|
|
81558
81646
|
/**
|
|
81559
81647
|
* Set Platform
|
|
81560
81648
|
*
|
|
@@ -81676,9 +81764,9 @@ var Client = class _Client {
|
|
|
81676
81764
|
}
|
|
81677
81765
|
return { uri: url2.toString(), options };
|
|
81678
81766
|
}
|
|
81679
|
-
chunkedUpload(
|
|
81680
|
-
|
|
81681
|
-
|
|
81767
|
+
chunkedUpload(method_1, url_1) {
|
|
81768
|
+
return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
|
|
81769
|
+
var _a3;
|
|
81682
81770
|
const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
|
|
81683
81771
|
if (!file2 || !fileParam) {
|
|
81684
81772
|
throw new Error("File not found in payload");
|
|
@@ -81720,9 +81808,9 @@ var Client = class _Client {
|
|
|
81720
81808
|
return this.call("GET", new URL(this.config.endpoint + "/ping"));
|
|
81721
81809
|
});
|
|
81722
81810
|
}
|
|
81723
|
-
call(
|
|
81724
|
-
|
|
81725
|
-
|
|
81811
|
+
call(method_1, url_1) {
|
|
81812
|
+
return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
|
|
81813
|
+
var _a3, _b;
|
|
81726
81814
|
const { uri, options } = this.prepareRequest(method, url2, headers, params);
|
|
81727
81815
|
let data = null;
|
|
81728
81816
|
const response = yield fetch(uri, options);
|
|
@@ -98194,7 +98282,7 @@ Permission.delete = (role) => {
|
|
|
98194
98282
|
};
|
|
98195
98283
|
var _a2;
|
|
98196
98284
|
var _ID_hexTimestamp;
|
|
98197
|
-
var ID2 = class
|
|
98285
|
+
var ID2 = class {
|
|
98198
98286
|
/**
|
|
98199
98287
|
* Uses the provided ID as the ID for the resource.
|
|
98200
98288
|
*
|
|
@@ -98211,7 +98299,7 @@ var ID2 = class _ID {
|
|
|
98211
98299
|
* @returns {string}
|
|
98212
98300
|
*/
|
|
98213
98301
|
static unique(padding = 7) {
|
|
98214
|
-
const baseId = __classPrivateFieldGet(
|
|
98302
|
+
const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
|
|
98215
98303
|
let randomPadding = "";
|
|
98216
98304
|
for (let i = 0; i < padding; i++) {
|
|
98217
98305
|
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
|
@@ -98364,11 +98452,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
|
|
|
98364
98452
|
Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
|
|
98365
98453
|
var Scopes;
|
|
98366
98454
|
(function(Scopes2) {
|
|
98455
|
+
Scopes2["Account"] = "account";
|
|
98456
|
+
Scopes2["TeamsRead"] = "teams.read";
|
|
98457
|
+
Scopes2["TeamsWrite"] = "teams.write";
|
|
98367
98458
|
Scopes2["SessionsWrite"] = "sessions.write";
|
|
98368
98459
|
Scopes2["UsersRead"] = "users.read";
|
|
98369
98460
|
Scopes2["UsersWrite"] = "users.write";
|
|
98370
|
-
Scopes2["TeamsRead"] = "teams.read";
|
|
98371
|
-
Scopes2["TeamsWrite"] = "teams.write";
|
|
98372
98461
|
Scopes2["DatabasesRead"] = "databases.read";
|
|
98373
98462
|
Scopes2["DatabasesWrite"] = "databases.write";
|
|
98374
98463
|
Scopes2["CollectionsRead"] = "collections.read";
|
|
@@ -98423,6 +98512,8 @@ var Scopes;
|
|
|
98423
98512
|
Scopes2["TokensWrite"] = "tokens.write";
|
|
98424
98513
|
Scopes2["WebhooksRead"] = "webhooks.read";
|
|
98425
98514
|
Scopes2["WebhooksWrite"] = "webhooks.write";
|
|
98515
|
+
Scopes2["ProjectRead"] = "project.read";
|
|
98516
|
+
Scopes2["ProjectWrite"] = "project.write";
|
|
98426
98517
|
Scopes2["PoliciesWrite"] = "policies.write";
|
|
98427
98518
|
Scopes2["PoliciesRead"] = "policies.read";
|
|
98428
98519
|
Scopes2["ArchivesRead"] = "archives.read";
|
|
@@ -98432,6 +98523,14 @@ var Scopes;
|
|
|
98432
98523
|
Scopes2["DomainsRead"] = "domains.read";
|
|
98433
98524
|
Scopes2["DomainsWrite"] = "domains.write";
|
|
98434
98525
|
Scopes2["EventsRead"] = "events.read";
|
|
98526
|
+
Scopes2["PlatformsRead"] = "platforms.read";
|
|
98527
|
+
Scopes2["PlatformsWrite"] = "platforms.write";
|
|
98528
|
+
Scopes2["ProjectsRead"] = "projects.read";
|
|
98529
|
+
Scopes2["ProjectsWrite"] = "projects.write";
|
|
98530
|
+
Scopes2["KeysRead"] = "keys.read";
|
|
98531
|
+
Scopes2["KeysWrite"] = "keys.write";
|
|
98532
|
+
Scopes2["DevKeysRead"] = "devKeys.read";
|
|
98533
|
+
Scopes2["DevKeysWrite"] = "devKeys.write";
|
|
98435
98534
|
})(Scopes || (Scopes = {}));
|
|
98436
98535
|
var AuthenticatorType;
|
|
98437
98536
|
(function(AuthenticatorType2) {
|
|
@@ -99184,6 +99283,9 @@ var ImageFormat;
|
|
|
99184
99283
|
var BackupServices;
|
|
99185
99284
|
(function(BackupServices2) {
|
|
99186
99285
|
BackupServices2["Databases"] = "databases";
|
|
99286
|
+
BackupServices2["Tablesdb"] = "tablesdb";
|
|
99287
|
+
BackupServices2["Documentsdb"] = "documentsdb";
|
|
99288
|
+
BackupServices2["Vectorsdb"] = "vectorsdb";
|
|
99187
99289
|
BackupServices2["Functions"] = "functions";
|
|
99188
99290
|
BackupServices2["Storage"] = "storage";
|
|
99189
99291
|
})(BackupServices || (BackupServices = {}));
|
|
@@ -99215,13 +99317,13 @@ var RelationMutate;
|
|
|
99215
99317
|
RelationMutate2["Restrict"] = "restrict";
|
|
99216
99318
|
RelationMutate2["SetNull"] = "setNull";
|
|
99217
99319
|
})(RelationMutate || (RelationMutate = {}));
|
|
99218
|
-
var
|
|
99219
|
-
(function(
|
|
99220
|
-
|
|
99221
|
-
|
|
99222
|
-
|
|
99223
|
-
|
|
99224
|
-
})(
|
|
99320
|
+
var DatabasesIndexType;
|
|
99321
|
+
(function(DatabasesIndexType2) {
|
|
99322
|
+
DatabasesIndexType2["Key"] = "key";
|
|
99323
|
+
DatabasesIndexType2["Fulltext"] = "fulltext";
|
|
99324
|
+
DatabasesIndexType2["Unique"] = "unique";
|
|
99325
|
+
DatabasesIndexType2["Spatial"] = "spatial";
|
|
99326
|
+
})(DatabasesIndexType || (DatabasesIndexType = {}));
|
|
99225
99327
|
var OrderBy;
|
|
99226
99328
|
(function(OrderBy2) {
|
|
99227
99329
|
OrderBy2["Asc"] = "asc";
|
|
@@ -99327,92 +99429,6 @@ var Runtime;
|
|
|
99327
99429
|
Runtime2["Flutter332"] = "flutter-3.32";
|
|
99328
99430
|
Runtime2["Flutter335"] = "flutter-3.35";
|
|
99329
99431
|
Runtime2["Flutter338"] = "flutter-3.38";
|
|
99330
|
-
Runtime2["Node145rc"] = "node-14.5-rc";
|
|
99331
|
-
Runtime2["Node160rc"] = "node-16.0-rc";
|
|
99332
|
-
Runtime2["Node180rc"] = "node-18.0-rc";
|
|
99333
|
-
Runtime2["Node190rc"] = "node-19.0-rc";
|
|
99334
|
-
Runtime2["Node200rc"] = "node-20.0-rc";
|
|
99335
|
-
Runtime2["Node210rc"] = "node-21.0-rc";
|
|
99336
|
-
Runtime2["Node22rc"] = "node-22-rc";
|
|
99337
|
-
Runtime2["Node23rc"] = "node-23-rc";
|
|
99338
|
-
Runtime2["Node24rc"] = "node-24-rc";
|
|
99339
|
-
Runtime2["Node25rc"] = "node-25-rc";
|
|
99340
|
-
Runtime2["Php80rc"] = "php-8.0-rc";
|
|
99341
|
-
Runtime2["Php81rc"] = "php-8.1-rc";
|
|
99342
|
-
Runtime2["Php82rc"] = "php-8.2-rc";
|
|
99343
|
-
Runtime2["Php83rc"] = "php-8.3-rc";
|
|
99344
|
-
Runtime2["Php84rc"] = "php-8.4-rc";
|
|
99345
|
-
Runtime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
99346
|
-
Runtime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
99347
|
-
Runtime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
99348
|
-
Runtime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
99349
|
-
Runtime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
99350
|
-
Runtime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
99351
|
-
Runtime2["Python38rc"] = "python-3.8-rc";
|
|
99352
|
-
Runtime2["Python39rc"] = "python-3.9-rc";
|
|
99353
|
-
Runtime2["Python310rc"] = "python-3.10-rc";
|
|
99354
|
-
Runtime2["Python311rc"] = "python-3.11-rc";
|
|
99355
|
-
Runtime2["Python312rc"] = "python-3.12-rc";
|
|
99356
|
-
Runtime2["Python313rc"] = "python-3.13-rc";
|
|
99357
|
-
Runtime2["Python314rc"] = "python-3.14-rc";
|
|
99358
|
-
Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
99359
|
-
Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
99360
|
-
Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
99361
|
-
Runtime2["Deno140rc"] = "deno-1.40-rc";
|
|
99362
|
-
Runtime2["Deno146rc"] = "deno-1.46-rc";
|
|
99363
|
-
Runtime2["Deno20rc"] = "deno-2.0-rc";
|
|
99364
|
-
Runtime2["Deno25rc"] = "deno-2.5-rc";
|
|
99365
|
-
Runtime2["Deno26rc"] = "deno-2.6-rc";
|
|
99366
|
-
Runtime2["Dart215rc"] = "dart-2.15-rc";
|
|
99367
|
-
Runtime2["Dart216rc"] = "dart-2.16-rc";
|
|
99368
|
-
Runtime2["Dart217rc"] = "dart-2.17-rc";
|
|
99369
|
-
Runtime2["Dart218rc"] = "dart-2.18-rc";
|
|
99370
|
-
Runtime2["Dart219rc"] = "dart-2.19-rc";
|
|
99371
|
-
Runtime2["Dart30rc"] = "dart-3.0-rc";
|
|
99372
|
-
Runtime2["Dart31rc"] = "dart-3.1-rc";
|
|
99373
|
-
Runtime2["Dart33rc"] = "dart-3.3-rc";
|
|
99374
|
-
Runtime2["Dart35rc"] = "dart-3.5-rc";
|
|
99375
|
-
Runtime2["Dart38rc"] = "dart-3.8-rc";
|
|
99376
|
-
Runtime2["Dart39rc"] = "dart-3.9-rc";
|
|
99377
|
-
Runtime2["Dart310rc"] = "dart-3.10-rc";
|
|
99378
|
-
Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
99379
|
-
Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
99380
|
-
Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
99381
|
-
Runtime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
99382
|
-
Runtime2["Java80rc"] = "java-8.0-rc";
|
|
99383
|
-
Runtime2["Java110rc"] = "java-11.0-rc";
|
|
99384
|
-
Runtime2["Java170rc"] = "java-17.0-rc";
|
|
99385
|
-
Runtime2["Java180rc"] = "java-18.0-rc";
|
|
99386
|
-
Runtime2["Java210rc"] = "java-21.0-rc";
|
|
99387
|
-
Runtime2["Java22rc"] = "java-22-rc";
|
|
99388
|
-
Runtime2["Java25rc"] = "java-25-rc";
|
|
99389
|
-
Runtime2["Swift55rc"] = "swift-5.5-rc";
|
|
99390
|
-
Runtime2["Swift58rc"] = "swift-5.8-rc";
|
|
99391
|
-
Runtime2["Swift59rc"] = "swift-5.9-rc";
|
|
99392
|
-
Runtime2["Swift510rc"] = "swift-5.10-rc";
|
|
99393
|
-
Runtime2["Swift62rc"] = "swift-6.2-rc";
|
|
99394
|
-
Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
99395
|
-
Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
99396
|
-
Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
99397
|
-
Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
99398
|
-
Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
99399
|
-
Runtime2["Cpp17rc"] = "cpp-17-rc";
|
|
99400
|
-
Runtime2["Cpp20rc"] = "cpp-20-rc";
|
|
99401
|
-
Runtime2["Bun10rc"] = "bun-1.0-rc";
|
|
99402
|
-
Runtime2["Bun11rc"] = "bun-1.1-rc";
|
|
99403
|
-
Runtime2["Bun12rc"] = "bun-1.2-rc";
|
|
99404
|
-
Runtime2["Bun13rc"] = "bun-1.3-rc";
|
|
99405
|
-
Runtime2["Go123rc"] = "go-1.23-rc";
|
|
99406
|
-
Runtime2["Go124rc"] = "go-1.24-rc";
|
|
99407
|
-
Runtime2["Go125rc"] = "go-1.25-rc";
|
|
99408
|
-
Runtime2["Go126rc"] = "go-1.26-rc";
|
|
99409
|
-
Runtime2["Static1rc"] = "static-1-rc";
|
|
99410
|
-
Runtime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
99411
|
-
Runtime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
99412
|
-
Runtime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
99413
|
-
Runtime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
99414
|
-
Runtime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
99415
|
-
Runtime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
99416
99432
|
})(Runtime || (Runtime = {}));
|
|
99417
99433
|
var Runtimes;
|
|
99418
99434
|
(function(Runtimes2) {
|
|
@@ -99502,109 +99518,28 @@ var Runtimes;
|
|
|
99502
99518
|
Runtimes2["Flutter332"] = "flutter-3.32";
|
|
99503
99519
|
Runtimes2["Flutter335"] = "flutter-3.35";
|
|
99504
99520
|
Runtimes2["Flutter338"] = "flutter-3.38";
|
|
99505
|
-
Runtimes2["Node145rc"] = "node-14.5-rc";
|
|
99506
|
-
Runtimes2["Node160rc"] = "node-16.0-rc";
|
|
99507
|
-
Runtimes2["Node180rc"] = "node-18.0-rc";
|
|
99508
|
-
Runtimes2["Node190rc"] = "node-19.0-rc";
|
|
99509
|
-
Runtimes2["Node200rc"] = "node-20.0-rc";
|
|
99510
|
-
Runtimes2["Node210rc"] = "node-21.0-rc";
|
|
99511
|
-
Runtimes2["Node22rc"] = "node-22-rc";
|
|
99512
|
-
Runtimes2["Node23rc"] = "node-23-rc";
|
|
99513
|
-
Runtimes2["Node24rc"] = "node-24-rc";
|
|
99514
|
-
Runtimes2["Node25rc"] = "node-25-rc";
|
|
99515
|
-
Runtimes2["Php80rc"] = "php-8.0-rc";
|
|
99516
|
-
Runtimes2["Php81rc"] = "php-8.1-rc";
|
|
99517
|
-
Runtimes2["Php82rc"] = "php-8.2-rc";
|
|
99518
|
-
Runtimes2["Php83rc"] = "php-8.3-rc";
|
|
99519
|
-
Runtimes2["Php84rc"] = "php-8.4-rc";
|
|
99520
|
-
Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
|
|
99521
|
-
Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
|
|
99522
|
-
Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
|
|
99523
|
-
Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
|
|
99524
|
-
Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
|
|
99525
|
-
Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
|
|
99526
|
-
Runtimes2["Python38rc"] = "python-3.8-rc";
|
|
99527
|
-
Runtimes2["Python39rc"] = "python-3.9-rc";
|
|
99528
|
-
Runtimes2["Python310rc"] = "python-3.10-rc";
|
|
99529
|
-
Runtimes2["Python311rc"] = "python-3.11-rc";
|
|
99530
|
-
Runtimes2["Python312rc"] = "python-3.12-rc";
|
|
99531
|
-
Runtimes2["Python313rc"] = "python-3.13-rc";
|
|
99532
|
-
Runtimes2["Python314rc"] = "python-3.14-rc";
|
|
99533
|
-
Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
99534
|
-
Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
99535
|
-
Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
99536
|
-
Runtimes2["Deno140rc"] = "deno-1.40-rc";
|
|
99537
|
-
Runtimes2["Deno146rc"] = "deno-1.46-rc";
|
|
99538
|
-
Runtimes2["Deno20rc"] = "deno-2.0-rc";
|
|
99539
|
-
Runtimes2["Deno25rc"] = "deno-2.5-rc";
|
|
99540
|
-
Runtimes2["Deno26rc"] = "deno-2.6-rc";
|
|
99541
|
-
Runtimes2["Dart215rc"] = "dart-2.15-rc";
|
|
99542
|
-
Runtimes2["Dart216rc"] = "dart-2.16-rc";
|
|
99543
|
-
Runtimes2["Dart217rc"] = "dart-2.17-rc";
|
|
99544
|
-
Runtimes2["Dart218rc"] = "dart-2.18-rc";
|
|
99545
|
-
Runtimes2["Dart219rc"] = "dart-2.19-rc";
|
|
99546
|
-
Runtimes2["Dart30rc"] = "dart-3.0-rc";
|
|
99547
|
-
Runtimes2["Dart31rc"] = "dart-3.1-rc";
|
|
99548
|
-
Runtimes2["Dart33rc"] = "dart-3.3-rc";
|
|
99549
|
-
Runtimes2["Dart35rc"] = "dart-3.5-rc";
|
|
99550
|
-
Runtimes2["Dart38rc"] = "dart-3.8-rc";
|
|
99551
|
-
Runtimes2["Dart39rc"] = "dart-3.9-rc";
|
|
99552
|
-
Runtimes2["Dart310rc"] = "dart-3.10-rc";
|
|
99553
|
-
Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
99554
|
-
Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
99555
|
-
Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
99556
|
-
Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
|
|
99557
|
-
Runtimes2["Java80rc"] = "java-8.0-rc";
|
|
99558
|
-
Runtimes2["Java110rc"] = "java-11.0-rc";
|
|
99559
|
-
Runtimes2["Java170rc"] = "java-17.0-rc";
|
|
99560
|
-
Runtimes2["Java180rc"] = "java-18.0-rc";
|
|
99561
|
-
Runtimes2["Java210rc"] = "java-21.0-rc";
|
|
99562
|
-
Runtimes2["Java22rc"] = "java-22-rc";
|
|
99563
|
-
Runtimes2["Java25rc"] = "java-25-rc";
|
|
99564
|
-
Runtimes2["Swift55rc"] = "swift-5.5-rc";
|
|
99565
|
-
Runtimes2["Swift58rc"] = "swift-5.8-rc";
|
|
99566
|
-
Runtimes2["Swift59rc"] = "swift-5.9-rc";
|
|
99567
|
-
Runtimes2["Swift510rc"] = "swift-5.10-rc";
|
|
99568
|
-
Runtimes2["Swift62rc"] = "swift-6.2-rc";
|
|
99569
|
-
Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
99570
|
-
Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
99571
|
-
Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
99572
|
-
Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
99573
|
-
Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
99574
|
-
Runtimes2["Cpp17rc"] = "cpp-17-rc";
|
|
99575
|
-
Runtimes2["Cpp20rc"] = "cpp-20-rc";
|
|
99576
|
-
Runtimes2["Bun10rc"] = "bun-1.0-rc";
|
|
99577
|
-
Runtimes2["Bun11rc"] = "bun-1.1-rc";
|
|
99578
|
-
Runtimes2["Bun12rc"] = "bun-1.2-rc";
|
|
99579
|
-
Runtimes2["Bun13rc"] = "bun-1.3-rc";
|
|
99580
|
-
Runtimes2["Go123rc"] = "go-1.23-rc";
|
|
99581
|
-
Runtimes2["Go124rc"] = "go-1.24-rc";
|
|
99582
|
-
Runtimes2["Go125rc"] = "go-1.25-rc";
|
|
99583
|
-
Runtimes2["Go126rc"] = "go-1.26-rc";
|
|
99584
|
-
Runtimes2["Static1rc"] = "static-1-rc";
|
|
99585
|
-
Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
|
|
99586
|
-
Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
|
|
99587
|
-
Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
|
|
99588
|
-
Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
|
|
99589
|
-
Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
|
|
99590
|
-
Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
|
|
99591
99521
|
})(Runtimes || (Runtimes = {}));
|
|
99592
99522
|
var UseCases;
|
|
99593
99523
|
(function(UseCases2) {
|
|
99594
|
-
UseCases2["Portfolio"] = "portfolio";
|
|
99595
99524
|
UseCases2["Starter"] = "starter";
|
|
99525
|
+
UseCases2["Databases"] = "databases";
|
|
99526
|
+
UseCases2["Ai"] = "ai";
|
|
99527
|
+
UseCases2["Messaging"] = "messaging";
|
|
99528
|
+
UseCases2["Utilities"] = "utilities";
|
|
99529
|
+
UseCases2["Devtools"] = "dev-tools";
|
|
99530
|
+
UseCases2["Auth"] = "auth";
|
|
99531
|
+
UseCases2["Portfolio"] = "portfolio";
|
|
99596
99532
|
UseCases2["Events"] = "events";
|
|
99597
99533
|
UseCases2["Ecommerce"] = "ecommerce";
|
|
99598
99534
|
UseCases2["Documentation"] = "documentation";
|
|
99599
99535
|
UseCases2["Blog"] = "blog";
|
|
99600
|
-
UseCases2["Ai"] = "ai";
|
|
99601
99536
|
UseCases2["Forms"] = "forms";
|
|
99602
99537
|
UseCases2["Dashboard"] = "dashboard";
|
|
99603
99538
|
})(UseCases || (UseCases = {}));
|
|
99604
99539
|
var TemplateReferenceType;
|
|
99605
99540
|
(function(TemplateReferenceType2) {
|
|
99606
|
-
TemplateReferenceType2["Branch"] = "branch";
|
|
99607
99541
|
TemplateReferenceType2["Commit"] = "commit";
|
|
99542
|
+
TemplateReferenceType2["Branch"] = "branch";
|
|
99608
99543
|
TemplateReferenceType2["Tag"] = "tag";
|
|
99609
99544
|
})(TemplateReferenceType || (TemplateReferenceType = {}));
|
|
99610
99545
|
var VCSReferenceType;
|
|
@@ -99668,6 +99603,8 @@ var AppwriteMigrationResource;
|
|
|
99668
99603
|
AppwriteMigrationResource2["Document"] = "document";
|
|
99669
99604
|
AppwriteMigrationResource2["Attribute"] = "attribute";
|
|
99670
99605
|
AppwriteMigrationResource2["Collection"] = "collection";
|
|
99606
|
+
AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
|
|
99607
|
+
AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
|
|
99671
99608
|
AppwriteMigrationResource2["Bucket"] = "bucket";
|
|
99672
99609
|
AppwriteMigrationResource2["File"] = "file";
|
|
99673
99610
|
AppwriteMigrationResource2["Function"] = "function";
|
|
@@ -100205,92 +100142,6 @@ var BuildRuntime;
|
|
|
100205
100142
|
BuildRuntime2["Flutter332"] = "flutter-3.32";
|
|
100206
100143
|
BuildRuntime2["Flutter335"] = "flutter-3.35";
|
|
100207
100144
|
BuildRuntime2["Flutter338"] = "flutter-3.38";
|
|
100208
|
-
BuildRuntime2["Node145rc"] = "node-14.5-rc";
|
|
100209
|
-
BuildRuntime2["Node160rc"] = "node-16.0-rc";
|
|
100210
|
-
BuildRuntime2["Node180rc"] = "node-18.0-rc";
|
|
100211
|
-
BuildRuntime2["Node190rc"] = "node-19.0-rc";
|
|
100212
|
-
BuildRuntime2["Node200rc"] = "node-20.0-rc";
|
|
100213
|
-
BuildRuntime2["Node210rc"] = "node-21.0-rc";
|
|
100214
|
-
BuildRuntime2["Node22rc"] = "node-22-rc";
|
|
100215
|
-
BuildRuntime2["Node23rc"] = "node-23-rc";
|
|
100216
|
-
BuildRuntime2["Node24rc"] = "node-24-rc";
|
|
100217
|
-
BuildRuntime2["Node25rc"] = "node-25-rc";
|
|
100218
|
-
BuildRuntime2["Php80rc"] = "php-8.0-rc";
|
|
100219
|
-
BuildRuntime2["Php81rc"] = "php-8.1-rc";
|
|
100220
|
-
BuildRuntime2["Php82rc"] = "php-8.2-rc";
|
|
100221
|
-
BuildRuntime2["Php83rc"] = "php-8.3-rc";
|
|
100222
|
-
BuildRuntime2["Php84rc"] = "php-8.4-rc";
|
|
100223
|
-
BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
|
|
100224
|
-
BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
|
|
100225
|
-
BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
|
|
100226
|
-
BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
|
|
100227
|
-
BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
|
|
100228
|
-
BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
|
|
100229
|
-
BuildRuntime2["Python38rc"] = "python-3.8-rc";
|
|
100230
|
-
BuildRuntime2["Python39rc"] = "python-3.9-rc";
|
|
100231
|
-
BuildRuntime2["Python310rc"] = "python-3.10-rc";
|
|
100232
|
-
BuildRuntime2["Python311rc"] = "python-3.11-rc";
|
|
100233
|
-
BuildRuntime2["Python312rc"] = "python-3.12-rc";
|
|
100234
|
-
BuildRuntime2["Python313rc"] = "python-3.13-rc";
|
|
100235
|
-
BuildRuntime2["Python314rc"] = "python-3.14-rc";
|
|
100236
|
-
BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
100237
|
-
BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
100238
|
-
BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
100239
|
-
BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
|
|
100240
|
-
BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
|
|
100241
|
-
BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
|
|
100242
|
-
BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
|
|
100243
|
-
BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
|
|
100244
|
-
BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
|
|
100245
|
-
BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
|
|
100246
|
-
BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
|
|
100247
|
-
BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
|
|
100248
|
-
BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
|
|
100249
|
-
BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
|
|
100250
|
-
BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
|
|
100251
|
-
BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
|
|
100252
|
-
BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
|
|
100253
|
-
BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
|
|
100254
|
-
BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
|
|
100255
|
-
BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
|
|
100256
|
-
BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
100257
|
-
BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
100258
|
-
BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
100259
|
-
BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
|
|
100260
|
-
BuildRuntime2["Java80rc"] = "java-8.0-rc";
|
|
100261
|
-
BuildRuntime2["Java110rc"] = "java-11.0-rc";
|
|
100262
|
-
BuildRuntime2["Java170rc"] = "java-17.0-rc";
|
|
100263
|
-
BuildRuntime2["Java180rc"] = "java-18.0-rc";
|
|
100264
|
-
BuildRuntime2["Java210rc"] = "java-21.0-rc";
|
|
100265
|
-
BuildRuntime2["Java22rc"] = "java-22-rc";
|
|
100266
|
-
BuildRuntime2["Java25rc"] = "java-25-rc";
|
|
100267
|
-
BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
|
|
100268
|
-
BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
|
|
100269
|
-
BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
|
|
100270
|
-
BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
|
|
100271
|
-
BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
|
|
100272
|
-
BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
100273
|
-
BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
100274
|
-
BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
100275
|
-
BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
100276
|
-
BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
100277
|
-
BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
|
|
100278
|
-
BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
|
|
100279
|
-
BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
|
|
100280
|
-
BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
|
|
100281
|
-
BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
|
|
100282
|
-
BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
|
|
100283
|
-
BuildRuntime2["Go123rc"] = "go-1.23-rc";
|
|
100284
|
-
BuildRuntime2["Go124rc"] = "go-1.24-rc";
|
|
100285
|
-
BuildRuntime2["Go125rc"] = "go-1.25-rc";
|
|
100286
|
-
BuildRuntime2["Go126rc"] = "go-1.26-rc";
|
|
100287
|
-
BuildRuntime2["Static1rc"] = "static-1-rc";
|
|
100288
|
-
BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
|
|
100289
|
-
BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
|
|
100290
|
-
BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
|
|
100291
|
-
BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
|
|
100292
|
-
BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
|
|
100293
|
-
BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
|
|
100294
100145
|
})(BuildRuntime || (BuildRuntime = {}));
|
|
100295
100146
|
var Adapter;
|
|
100296
100147
|
(function(Adapter2) {
|
|
@@ -100333,6 +100184,13 @@ var ImageGravity;
|
|
|
100333
100184
|
ImageGravity2["Bottom"] = "bottom";
|
|
100334
100185
|
ImageGravity2["Bottomright"] = "bottom-right";
|
|
100335
100186
|
})(ImageGravity || (ImageGravity = {}));
|
|
100187
|
+
var TablesDBIndexType;
|
|
100188
|
+
(function(TablesDBIndexType2) {
|
|
100189
|
+
TablesDBIndexType2["Key"] = "key";
|
|
100190
|
+
TablesDBIndexType2["Fulltext"] = "fulltext";
|
|
100191
|
+
TablesDBIndexType2["Unique"] = "unique";
|
|
100192
|
+
TablesDBIndexType2["Spatial"] = "spatial";
|
|
100193
|
+
})(TablesDBIndexType || (TablesDBIndexType = {}));
|
|
100336
100194
|
var PasswordHash;
|
|
100337
100195
|
(function(PasswordHash2) {
|
|
100338
100196
|
PasswordHash2["Sha1"] = "sha1";
|
|
@@ -100362,6 +100220,8 @@ var DatabaseType;
|
|
|
100362
100220
|
(function(DatabaseType2) {
|
|
100363
100221
|
DatabaseType2["Legacy"] = "legacy";
|
|
100364
100222
|
DatabaseType2["Tablesdb"] = "tablesdb";
|
|
100223
|
+
DatabaseType2["Documentsdb"] = "documentsdb";
|
|
100224
|
+
DatabaseType2["Vectorsdb"] = "vectorsdb";
|
|
100365
100225
|
})(DatabaseType || (DatabaseType = {}));
|
|
100366
100226
|
var AttributeStatus;
|
|
100367
100227
|
(function(AttributeStatus2) {
|
|
@@ -100476,7 +100336,7 @@ var package_default = {
|
|
|
100476
100336
|
type: "module",
|
|
100477
100337
|
homepage: "https://appwrite.io/support",
|
|
100478
100338
|
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",
|
|
100479
|
-
version: "
|
|
100339
|
+
version: "17.1.0",
|
|
100480
100340
|
license: "BSD-3-Clause",
|
|
100481
100341
|
main: "dist/index.cjs",
|
|
100482
100342
|
module: "dist/index.js",
|
|
@@ -100566,10 +100426,14 @@ var package_default = {
|
|
|
100566
100426
|
|
|
100567
100427
|
// lib/parser.ts
|
|
100568
100428
|
var import_os2 = __toESM(require("os"), 1);
|
|
100429
|
+
BigInt.prototype.toJSON = function() {
|
|
100430
|
+
return this.toString();
|
|
100431
|
+
};
|
|
100569
100432
|
var { description } = package_default;
|
|
100570
100433
|
var cliConfig = {
|
|
100571
100434
|
verbose: false,
|
|
100572
100435
|
json: false,
|
|
100436
|
+
raw: false,
|
|
100573
100437
|
force: false,
|
|
100574
100438
|
all: false,
|
|
100575
100439
|
ids: [],
|
|
@@ -100592,6 +100456,25 @@ var extractReportCommandArgs = (value) => {
|
|
|
100592
100456
|
}
|
|
100593
100457
|
return reportData.data.args;
|
|
100594
100458
|
};
|
|
100459
|
+
var MAX_COL_WIDTH = 40;
|
|
100460
|
+
var formatCellValue = (value) => {
|
|
100461
|
+
if (value == null) return "-";
|
|
100462
|
+
if (Array.isArray(value)) {
|
|
100463
|
+
if (value.length === 0) return "[]";
|
|
100464
|
+
return `[${value.length} items]`;
|
|
100465
|
+
}
|
|
100466
|
+
if (typeof value === "object") {
|
|
100467
|
+
if (value?.constructor?.name === "BigNumber") return String(value);
|
|
100468
|
+
const keys = Object.keys(value);
|
|
100469
|
+
if (keys.length === 0) return "{}";
|
|
100470
|
+
return `{${keys.length} keys}`;
|
|
100471
|
+
}
|
|
100472
|
+
const str = String(value);
|
|
100473
|
+
if (str.length > MAX_COL_WIDTH) {
|
|
100474
|
+
return str.slice(0, MAX_COL_WIDTH - 1) + "\u2026";
|
|
100475
|
+
}
|
|
100476
|
+
return str;
|
|
100477
|
+
};
|
|
100595
100478
|
var drawTable = (data) => {
|
|
100596
100479
|
if (data.length == 0) {
|
|
100597
100480
|
console.log("[]");
|
|
@@ -100599,19 +100482,55 @@ var drawTable = (data) => {
|
|
|
100599
100482
|
}
|
|
100600
100483
|
const rows = data.map((item) => toJsonObject(item) ?? {});
|
|
100601
100484
|
const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
|
|
100602
|
-
const
|
|
100603
|
-
if (
|
|
100485
|
+
const allKeys = Object.keys(obj);
|
|
100486
|
+
if (allKeys.length === 0) {
|
|
100604
100487
|
drawJSON(data);
|
|
100605
100488
|
return;
|
|
100606
100489
|
}
|
|
100607
|
-
const
|
|
100490
|
+
const maxColumns = 6;
|
|
100491
|
+
if (allKeys.length > maxColumns) {
|
|
100492
|
+
const rowEntries = rows.map((row) => {
|
|
100493
|
+
const entries = [];
|
|
100494
|
+
for (const key of Object.keys(row)) {
|
|
100495
|
+
const value = row[key];
|
|
100496
|
+
if (typeof value === "function") continue;
|
|
100497
|
+
if (value == null) continue;
|
|
100498
|
+
if (value?.constructor?.name === "BigNumber") {
|
|
100499
|
+
entries.push([key, String(value)]);
|
|
100500
|
+
continue;
|
|
100501
|
+
}
|
|
100502
|
+
if (typeof value === "object") continue;
|
|
100503
|
+
if (typeof value === "string" && value.trim() === "") continue;
|
|
100504
|
+
entries.push([key, String(value)]);
|
|
100505
|
+
}
|
|
100506
|
+
return entries;
|
|
100507
|
+
});
|
|
100508
|
+
const flatEntries = rowEntries.flat();
|
|
100509
|
+
if (flatEntries.length === 0) {
|
|
100510
|
+
drawJSON(data);
|
|
100511
|
+
return;
|
|
100512
|
+
}
|
|
100513
|
+
const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
|
|
100514
|
+
const separatorLen = Math.min(maxKeyLen + 2 + MAX_COL_WIDTH, process.stdout.columns || 80);
|
|
100515
|
+
rowEntries.forEach((entries, idx) => {
|
|
100516
|
+
if (idx > 0) console.log(import_chalk2.default.cyan("\u2500".repeat(separatorLen)));
|
|
100517
|
+
for (const [key, value] of entries) {
|
|
100518
|
+
const paddedKey = key.padEnd(maxKeyLen);
|
|
100519
|
+
console.log(`${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
|
|
100520
|
+
}
|
|
100521
|
+
});
|
|
100522
|
+
return;
|
|
100523
|
+
}
|
|
100524
|
+
const columns = allKeys;
|
|
100525
|
+
const def = allKeys.reduce((result, key) => {
|
|
100608
100526
|
result[key] = "-";
|
|
100609
100527
|
return result;
|
|
100610
100528
|
}, {});
|
|
100611
100529
|
const normalizedData = rows.map((item) => ({ ...def, ...item }));
|
|
100612
|
-
const columns = Object.keys(normalizedData[0]);
|
|
100613
100530
|
const table = new import_cli_table3.default({
|
|
100614
100531
|
head: columns.map((c) => import_chalk2.default.cyan.italic.bold(c)),
|
|
100532
|
+
colWidths: columns.map(() => null),
|
|
100533
|
+
wordWrap: false,
|
|
100615
100534
|
chars: {
|
|
100616
100535
|
top: " ",
|
|
100617
100536
|
"top-mid": " ",
|
|
@@ -100633,15 +100552,7 @@ var drawTable = (data) => {
|
|
|
100633
100552
|
normalizedData.forEach((row) => {
|
|
100634
100553
|
const rowValues = [];
|
|
100635
100554
|
for (const key of columns) {
|
|
100636
|
-
|
|
100637
|
-
rowValues.push("-");
|
|
100638
|
-
} else if (Array.isArray(row[key])) {
|
|
100639
|
-
rowValues.push(JSON.stringify(row[key]));
|
|
100640
|
-
} else if (typeof row[key] === "object") {
|
|
100641
|
-
rowValues.push(JSON.stringify(row[key]));
|
|
100642
|
-
} else {
|
|
100643
|
-
rowValues.push(String(row[key]));
|
|
100644
|
-
}
|
|
100555
|
+
rowValues.push(formatCellValue(row[key]));
|
|
100645
100556
|
}
|
|
100646
100557
|
table.push(rowValues);
|
|
100647
100558
|
});
|
|
@@ -100757,7 +100668,7 @@ var commandDescriptions = {
|
|
|
100757
100668
|
locale: `The locale command allows you to customize your app based on your users' location.`,
|
|
100758
100669
|
sites: `The sites command allows you to view, create and manage your Appwrite Sites.`,
|
|
100759
100670
|
storage: `The storage command allows you to manage your project files.`,
|
|
100760
|
-
teams: `The teams command allows you to group users of your project to enable them to share read and write access to your project resources.`,
|
|
100671
|
+
teams: `The teams command allows you to group users of your project to enable them to share read and write access to your project resources. Requires a linked project. To manage console-level teams, use the 'organizations' command instead.`,
|
|
100761
100672
|
update: `The update command allows you to update the ${SDK_TITLE} CLI to the latest version.`,
|
|
100762
100673
|
users: `The users command allows you to manage your project users.`,
|
|
100763
100674
|
projects: `The projects command allows you to manage your projects, add platforms, manage API keys, Dev Keys etc.`,
|
|
@@ -100782,7 +100693,7 @@ async function packageDirectory(dirPath) {
|
|
|
100782
100693
|
import_os3.default.tmpdir(),
|
|
100783
100694
|
`appwrite-deploy-${Date.now()}.tar.gz`
|
|
100784
100695
|
);
|
|
100785
|
-
await
|
|
100696
|
+
await Zn(
|
|
100786
100697
|
{
|
|
100787
100698
|
gzip: true,
|
|
100788
100699
|
file: tempFile,
|
|
@@ -100851,7 +100762,7 @@ async function downloadDeploymentCode(params) {
|
|
|
100851
100762
|
`Failed to write deployment archive to "${compressedFileName}": ${message}`
|
|
100852
100763
|
);
|
|
100853
100764
|
}
|
|
100854
|
-
|
|
100765
|
+
co({
|
|
100855
100766
|
sync: true,
|
|
100856
100767
|
cwd: resourcePath,
|
|
100857
100768
|
file: compressedFileName,
|
|
@@ -101058,12 +100969,16 @@ var questionsInitProject = [
|
|
|
101058
100969
|
choices: async () => {
|
|
101059
100970
|
const client = await sdkForConsole(true);
|
|
101060
100971
|
const { teams } = isCloud() ? await paginate(
|
|
101061
|
-
async (
|
|
100972
|
+
async (args) => (await getOrganizationsService(args.sdk)).list({
|
|
100973
|
+
queries: args.queries
|
|
100974
|
+
}),
|
|
101062
100975
|
{ sdk: client },
|
|
101063
100976
|
100,
|
|
101064
100977
|
"teams"
|
|
101065
100978
|
) : await paginate(
|
|
101066
|
-
async (
|
|
100979
|
+
async (args) => (await getTeamsService(args.sdk)).list({
|
|
100980
|
+
queries: args.queries
|
|
100981
|
+
}),
|
|
101067
100982
|
{ parseOutput: false, sdk: client },
|
|
101068
100983
|
100,
|
|
101069
100984
|
"teams"
|
|
@@ -101088,14 +101003,14 @@ var questionsInitProject = [
|
|
|
101088
101003
|
name: "project",
|
|
101089
101004
|
message: "What would you like to name your project?",
|
|
101090
101005
|
default: "My Awesome Project",
|
|
101091
|
-
when: (answer) => answer.start !== "existing"
|
|
101006
|
+
when: (answer) => whenOverride(answer) && answer.start !== "existing"
|
|
101092
101007
|
},
|
|
101093
101008
|
{
|
|
101094
101009
|
type: "input",
|
|
101095
101010
|
name: "id",
|
|
101096
101011
|
message: "What ID would you like to have for your project?",
|
|
101097
101012
|
default: "unique()",
|
|
101098
|
-
when: (answer) => answer.start !== "existing"
|
|
101013
|
+
when: (answer) => whenOverride(answer) && answer.start !== "existing"
|
|
101099
101014
|
},
|
|
101100
101015
|
{
|
|
101101
101016
|
type: "search-list",
|
|
@@ -101111,7 +101026,7 @@ var questionsInitProject = [
|
|
|
101111
101026
|
JSON.stringify({ method: "orderDesc", attribute: "$id" })
|
|
101112
101027
|
];
|
|
101113
101028
|
const { projects } = await paginate(
|
|
101114
|
-
async () => (await getProjectsService()).list(queries),
|
|
101029
|
+
async (args) => (await getProjectsService()).list(args.queries),
|
|
101115
101030
|
{ parseOutput: false },
|
|
101116
101031
|
100,
|
|
101117
101032
|
"projects",
|
|
@@ -101191,7 +101106,7 @@ var questionsPullFunctions = [
|
|
|
101191
101106
|
validate: (value) => validateRequired("function", value),
|
|
101192
101107
|
choices: async () => {
|
|
101193
101108
|
const { functions } = await paginate(
|
|
101194
|
-
async () => (await getFunctionsService()).list(),
|
|
101109
|
+
async (args) => (await getFunctionsService()).list(args.queries),
|
|
101195
101110
|
{ parseOutput: false },
|
|
101196
101111
|
100,
|
|
101197
101112
|
"functions"
|
|
@@ -101230,7 +101145,7 @@ var questionsPullSites = [
|
|
|
101230
101145
|
validate: (value) => validateRequired("site", value),
|
|
101231
101146
|
choices: async () => {
|
|
101232
101147
|
const { sites } = await paginate(
|
|
101233
|
-
async () => (await getSitesService()).list(),
|
|
101148
|
+
async (args) => (await getSitesService()).list(args.queries),
|
|
101234
101149
|
{ parseOutput: false },
|
|
101235
101150
|
100,
|
|
101236
101151
|
"sites"
|
|
@@ -103178,18 +103093,9 @@ var Push = class {
|
|
|
103178
103093
|
const functionsServiceForVars = await getFunctionsService(
|
|
103179
103094
|
this.projectClient
|
|
103180
103095
|
);
|
|
103181
|
-
const { variables } = await
|
|
103182
|
-
|
|
103183
|
-
|
|
103184
|
-
functionId: args.functionId
|
|
103185
|
-
});
|
|
103186
|
-
},
|
|
103187
|
-
{
|
|
103188
|
-
functionId: func["$id"]
|
|
103189
|
-
},
|
|
103190
|
-
100,
|
|
103191
|
-
"variables"
|
|
103192
|
-
);
|
|
103096
|
+
const { variables } = await functionsServiceForVars.listVariables({
|
|
103097
|
+
functionId: func["$id"]
|
|
103098
|
+
});
|
|
103193
103099
|
await Promise.all(
|
|
103194
103100
|
variables.map(async (variable) => {
|
|
103195
103101
|
const functionsServiceDel = await getFunctionsService(
|
|
@@ -103483,18 +103389,9 @@ var Push = class {
|
|
|
103483
103389
|
if (withVariables) {
|
|
103484
103390
|
updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
|
|
103485
103391
|
const sitesServiceForVars = await getSitesService(this.projectClient);
|
|
103486
|
-
const { variables } = await
|
|
103487
|
-
|
|
103488
|
-
|
|
103489
|
-
siteId: args.siteId
|
|
103490
|
-
});
|
|
103491
|
-
},
|
|
103492
|
-
{
|
|
103493
|
-
siteId: site["$id"]
|
|
103494
|
-
},
|
|
103495
|
-
100,
|
|
103496
|
-
"variables"
|
|
103497
|
-
);
|
|
103392
|
+
const { variables } = await sitesServiceForVars.listVariables({
|
|
103393
|
+
siteId: site["$id"]
|
|
103394
|
+
});
|
|
103498
103395
|
await Promise.all(
|
|
103499
103396
|
variables.map(async (variable) => {
|
|
103500
103397
|
const sitesServiceDel = await getSitesService(this.projectClient);
|
|
@@ -106226,9 +106123,6 @@ var Schema = class {
|
|
|
106226
106123
|
});
|
|
106227
106124
|
/*! Bundled license information:
|
|
106228
106125
|
|
|
106229
|
-
safe-buffer/index.js:
|
|
106230
|
-
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106231
|
-
|
|
106232
106126
|
undici/lib/fetch/body.js:
|
|
106233
106127
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
106234
106128
|
|