casualos 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +63 -17
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -137453,7 +137453,10 @@ var WEB_CONFIG_SCHEMA = external_exports.object({
|
|
|
137453
137453
|
postHogApiHost: external_exports.string().min(1).nullable().optional().describe(
|
|
137454
137454
|
"The HTTP host that should be used for PostHog analytics. If not specified, then the default PostHog cloud host will be used."
|
|
137455
137455
|
),
|
|
137456
|
-
enableSimpleAnalytics: external_exports.boolean().nullable().optional().describe("Whether to enable simple analytics. Defaults to false.")
|
|
137456
|
+
enableSimpleAnalytics: external_exports.boolean().nullable().optional().describe("Whether to enable simple analytics. Defaults to false."),
|
|
137457
|
+
noAutomaticGridPortal: external_exports.boolean().nullable().optional().describe(
|
|
137458
|
+
"Whether to disable loading the grid portal by default. Defaults to false."
|
|
137459
|
+
)
|
|
137457
137460
|
});
|
|
137458
137461
|
|
|
137459
137462
|
// ../aux-common/common/Version.ts
|
|
@@ -149437,7 +149440,7 @@ var trace = TraceAPI.getInstance();
|
|
|
149437
149440
|
function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
149438
149441
|
const tracer = trace.getTracer(
|
|
149439
149442
|
"InstrumentedHashHelpers",
|
|
149440
|
-
false ? void 0 : "v4.2.
|
|
149443
|
+
false ? void 0 : "v4.2.2"
|
|
149441
149444
|
);
|
|
149442
149445
|
return tracer.startActiveSpan(
|
|
149443
149446
|
"hashLowEntropyPasswordWithSalt",
|
|
@@ -149455,7 +149458,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
|
149455
149458
|
function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
149456
149459
|
const tracer = trace.getTracer(
|
|
149457
149460
|
"InstrumentedHashHelpers",
|
|
149458
|
-
false ? void 0 : "v4.2.
|
|
149461
|
+
false ? void 0 : "v4.2.2"
|
|
149459
149462
|
);
|
|
149460
149463
|
return tracer.startActiveSpan(
|
|
149461
149464
|
"hashHighEntropyPasswordWithSalt",
|
|
@@ -149473,7 +149476,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
|
149473
149476
|
function verifyPasswordAgainstHashes2(password, salt, hashes) {
|
|
149474
149477
|
const tracer = trace.getTracer(
|
|
149475
149478
|
"InstrumentedHashHelpers",
|
|
149476
|
-
false ? void 0 : "v4.2.
|
|
149479
|
+
false ? void 0 : "v4.2.2"
|
|
149477
149480
|
);
|
|
149478
149481
|
return tracer.startActiveSpan(
|
|
149479
149482
|
"verifyPasswordAgainstHashes",
|
|
@@ -157046,7 +157049,7 @@ var import_semantic_conventions = __toESM(require_src3());
|
|
|
157046
157049
|
function traced(tracerName, options = {}, metricOptions = {}) {
|
|
157047
157050
|
const tracer = trace.getTracer(
|
|
157048
157051
|
tracerName,
|
|
157049
|
-
false ? void 0 : "v4.2.
|
|
157052
|
+
false ? void 0 : "v4.2.2"
|
|
157050
157053
|
);
|
|
157051
157054
|
return function(target, propertyKey, descriptor) {
|
|
157052
157055
|
const originalMethod = descriptor.value;
|
|
@@ -157132,7 +157135,7 @@ function getHistogram(meter) {
|
|
|
157132
157135
|
}
|
|
157133
157136
|
return metrics.getMeter(
|
|
157134
157137
|
meter.meter,
|
|
157135
|
-
false ? void 0 : "v4.2.
|
|
157138
|
+
false ? void 0 : "v4.2.2"
|
|
157136
157139
|
).createHistogram(meter.name, meter.options);
|
|
157137
157140
|
}
|
|
157138
157141
|
function getCounter(meter) {
|
|
@@ -157141,7 +157144,7 @@ function getCounter(meter) {
|
|
|
157141
157144
|
}
|
|
157142
157145
|
return metrics.getMeter(
|
|
157143
157146
|
meter.meter,
|
|
157144
|
-
false ? void 0 : "v4.2.
|
|
157147
|
+
false ? void 0 : "v4.2.2"
|
|
157145
157148
|
).createCounter(meter.name, meter.options);
|
|
157146
157149
|
}
|
|
157147
157150
|
function traceHttpResponse(options = {}) {
|
|
@@ -164305,6 +164308,12 @@ var RecordsController = class {
|
|
|
164305
164308
|
...existingStudio,
|
|
164306
164309
|
...updates
|
|
164307
164310
|
};
|
|
164311
|
+
if (updates.playerConfig) {
|
|
164312
|
+
final.playerConfig = {
|
|
164313
|
+
...existingStudio.playerConfig ?? {},
|
|
164314
|
+
...updates.playerConfig
|
|
164315
|
+
};
|
|
164316
|
+
}
|
|
164308
164317
|
await this._store.updateStudio(final);
|
|
164309
164318
|
if (loomConfig) {
|
|
164310
164319
|
await this._store.updateStudioLoomConfig(final.id, loomConfig);
|
|
@@ -169172,7 +169181,8 @@ var COM_ID_PLAYER_CONFIG = WEB_CONFIG_SCHEMA.pick({
|
|
|
169172
169181
|
logoBackgroundColor: true,
|
|
169173
169182
|
disableVM: true,
|
|
169174
169183
|
postHogApiKey: true,
|
|
169175
|
-
postHogApiHost: true
|
|
169184
|
+
postHogApiHost: true,
|
|
169185
|
+
noAutomaticGridPortal: true
|
|
169176
169186
|
}).partial();
|
|
169177
169187
|
var COM_ID_WEB_CONFIG_SCHEMA = external_exports.object({
|
|
169178
169188
|
playerConfig: COM_ID_PLAYER_CONFIG,
|
|
@@ -171168,7 +171178,7 @@ var RecordsServer = class {
|
|
|
171168
171178
|
this._viewTemplateRenderer = viewTemplateRenderer;
|
|
171169
171179
|
this._tracer = trace.getTracer(
|
|
171170
171180
|
"RecordsServer",
|
|
171171
|
-
false ? void 0 : "v4.2.
|
|
171181
|
+
false ? void 0 : "v4.2.2"
|
|
171172
171182
|
);
|
|
171173
171183
|
this._purchasableItems = purchasableItemsController;
|
|
171174
171184
|
this._procedures = this._createProcedures();
|
|
@@ -175181,8 +175191,8 @@ var RecordsServer = class {
|
|
|
175181
175191
|
return {
|
|
175182
175192
|
success: true,
|
|
175183
175193
|
...metadata,
|
|
175184
|
-
version: true ? "v4.2.
|
|
175185
|
-
versionHash: true ? "
|
|
175194
|
+
version: true ? "v4.2.2" : void 0,
|
|
175195
|
+
versionHash: true ? "23837d528de8efc2b99587e7b72a6fc30af6dbe7" : void 0
|
|
175186
175196
|
};
|
|
175187
175197
|
}),
|
|
175188
175198
|
getPurchasableItem: procedure().origins(true).http("GET", "/api/v2/records/purchasableItems").inputs(
|
|
@@ -219664,7 +219674,9 @@ var TypeScriptVisistorKeys = {
|
|
|
219664
219674
|
TSMethodSignature: [],
|
|
219665
219675
|
TSPropertySignature: [],
|
|
219666
219676
|
TSAsExpression: [],
|
|
219677
|
+
TSSatisfiesExpression: [],
|
|
219667
219678
|
TSParameterProperty: ["parameter"],
|
|
219679
|
+
ParenthesizedExpression: ["expression"],
|
|
219668
219680
|
ClassDeclaration: [
|
|
219669
219681
|
...import_estraverse.VisitorKeys.ClassDeclaration,
|
|
219670
219682
|
"implements",
|
|
@@ -219710,7 +219722,12 @@ var TypeScriptVisistorKeys = {
|
|
|
219710
219722
|
],
|
|
219711
219723
|
RestElement: [...import_estraverse.VisitorKeys.RestElement, "typeAnnotation"],
|
|
219712
219724
|
ObjectPattern: [...import_estraverse.VisitorKeys.ObjectPattern, "typeAnnotation"],
|
|
219713
|
-
ArrayPattern: [...import_estraverse.VisitorKeys.ArrayPattern, "typeAnnotation"]
|
|
219725
|
+
ArrayPattern: [...import_estraverse.VisitorKeys.ArrayPattern, "typeAnnotation"],
|
|
219726
|
+
ArrowFunctionExpression: [
|
|
219727
|
+
...import_estraverse.VisitorKeys.ArrowFunctionExpression,
|
|
219728
|
+
"returnType",
|
|
219729
|
+
"typeParameters"
|
|
219730
|
+
]
|
|
219714
219731
|
};
|
|
219715
219732
|
var MACROS = [
|
|
219716
219733
|
{
|
|
@@ -219870,7 +219887,10 @@ var Transpiler = class {
|
|
|
219870
219887
|
const node = this._parser.parse(code, {
|
|
219871
219888
|
ecmaVersion: 14,
|
|
219872
219889
|
locations: true,
|
|
219873
|
-
sourceType: "module"
|
|
219890
|
+
sourceType: "module",
|
|
219891
|
+
// We need to preserve parenthesis in order to
|
|
219892
|
+
// correctly handle scenarios where extra parenthesis are used, like in arrow functions returning object literals.
|
|
219893
|
+
preserveParens: true
|
|
219874
219894
|
});
|
|
219875
219895
|
return node;
|
|
219876
219896
|
}
|
|
@@ -220020,6 +220040,8 @@ var Transpiler = class {
|
|
|
220020
220040
|
this._removeAsExpression(n5, doc, text);
|
|
220021
220041
|
} else if (n5.type === "Identifier" && n5.optional === true) {
|
|
220022
220042
|
this._removeOptionalFromIdentifier(n5, doc, text);
|
|
220043
|
+
} else if (n5.type === "TSSatisfiesExpression") {
|
|
220044
|
+
this._removeSatisfiesExpression(n5, doc, text);
|
|
220023
220045
|
} else if (n5.type.startsWith("TS")) {
|
|
220024
220046
|
this._removeNodeOrReplaceWithUndefined(n5, doc, text);
|
|
220025
220047
|
} else if (n5.type === "CallExpression") {
|
|
@@ -220635,14 +220657,38 @@ await ${this._exportFactory}({ `;
|
|
|
220635
220657
|
_removeAsExpression(node, doc, text) {
|
|
220636
220658
|
doc.clientID += 1;
|
|
220637
220659
|
const version3 = { "0": getClock2(doc, 0) };
|
|
220638
|
-
const
|
|
220660
|
+
const afterExpression = createAbsolutePositionFromStateVector(
|
|
220639
220661
|
doc,
|
|
220640
220662
|
text,
|
|
220641
220663
|
version3,
|
|
220642
220664
|
node.expression.end,
|
|
220665
|
+
1,
|
|
220666
|
+
true
|
|
220667
|
+
);
|
|
220668
|
+
const absoluteEnd = createAbsolutePositionFromStateVector(
|
|
220669
|
+
doc,
|
|
220670
|
+
text,
|
|
220671
|
+
version3,
|
|
220672
|
+
node.end,
|
|
220643
220673
|
-1,
|
|
220644
220674
|
true
|
|
220645
220675
|
);
|
|
220676
|
+
text.delete(
|
|
220677
|
+
afterExpression.index,
|
|
220678
|
+
absoluteEnd.index - afterExpression.index
|
|
220679
|
+
);
|
|
220680
|
+
}
|
|
220681
|
+
_removeSatisfiesExpression(node, doc, text) {
|
|
220682
|
+
doc.clientID += 1;
|
|
220683
|
+
const version3 = { "0": getClock2(doc, 0) };
|
|
220684
|
+
const afterExpression = createAbsolutePositionFromStateVector(
|
|
220685
|
+
doc,
|
|
220686
|
+
text,
|
|
220687
|
+
version3,
|
|
220688
|
+
node.expression.end,
|
|
220689
|
+
1,
|
|
220690
|
+
true
|
|
220691
|
+
);
|
|
220646
220692
|
const absoluteEnd = createAbsolutePositionFromStateVector(
|
|
220647
220693
|
doc,
|
|
220648
220694
|
text,
|
|
@@ -220652,8 +220698,8 @@ await ${this._exportFactory}({ `;
|
|
|
220652
220698
|
true
|
|
220653
220699
|
);
|
|
220654
220700
|
text.delete(
|
|
220655
|
-
|
|
220656
|
-
absoluteEnd.index -
|
|
220701
|
+
afterExpression.index,
|
|
220702
|
+
absoluteEnd.index - afterExpression.index
|
|
220657
220703
|
);
|
|
220658
220704
|
}
|
|
220659
220705
|
_removeNodeOrReplaceWithUndefined(node, doc, text) {
|
|
@@ -231873,7 +231919,7 @@ var config2 = new Conf({
|
|
|
231873
231919
|
projectName: "casualos-cli"
|
|
231874
231920
|
});
|
|
231875
231921
|
var program2 = new Command();
|
|
231876
|
-
program2.name("casualos").description("A CLI for CasualOS").version("v4.2.
|
|
231922
|
+
program2.name("casualos").description("A CLI for CasualOS").version("v4.2.2").option(
|
|
231877
231923
|
"-e, --endpoint <url>",
|
|
231878
231924
|
"The endpoint to use for queries. Can be used to override the current endpoint."
|
|
231879
231925
|
).option(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "casualos",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Command line interface for CasualOS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@casual-simulation/aux-common": "^4.2.
|
|
32
|
-
"@casual-simulation/aux-records": "^4.2.
|
|
33
|
-
"@casual-simulation/aux-runtime": "^4.2.
|
|
34
|
-
"@casual-simulation/aux-vm": "^4.2.
|
|
31
|
+
"@casual-simulation/aux-common": "^4.2.2",
|
|
32
|
+
"@casual-simulation/aux-records": "^4.2.2",
|
|
33
|
+
"@casual-simulation/aux-runtime": "^4.2.2",
|
|
34
|
+
"@casual-simulation/aux-vm": "^4.2.2",
|
|
35
35
|
"@octokit/app": "^15.1.0",
|
|
36
36
|
"@octokit/auth-oauth-device": "^7.1.1",
|
|
37
37
|
"@octokit/core": "^6.1.2",
|