casualos 4.2.3 → 4.2.4-alpha.25071757716
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 +69 -32
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -149486,7 +149486,7 @@ var trace = TraceAPI.getInstance();
|
|
|
149486
149486
|
function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
149487
149487
|
const tracer = trace.getTracer(
|
|
149488
149488
|
"InstrumentedHashHelpers",
|
|
149489
|
-
false ? void 0 : "v4.2.
|
|
149489
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
149490
149490
|
);
|
|
149491
149491
|
return tracer.startActiveSpan(
|
|
149492
149492
|
"hashLowEntropyPasswordWithSalt",
|
|
@@ -149504,7 +149504,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
|
149504
149504
|
function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
149505
149505
|
const tracer = trace.getTracer(
|
|
149506
149506
|
"InstrumentedHashHelpers",
|
|
149507
|
-
false ? void 0 : "v4.2.
|
|
149507
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
149508
149508
|
);
|
|
149509
149509
|
return tracer.startActiveSpan(
|
|
149510
149510
|
"hashHighEntropyPasswordWithSalt",
|
|
@@ -149522,7 +149522,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
|
149522
149522
|
function verifyPasswordAgainstHashes2(password, salt, hashes) {
|
|
149523
149523
|
const tracer = trace.getTracer(
|
|
149524
149524
|
"InstrumentedHashHelpers",
|
|
149525
|
-
false ? void 0 : "v4.2.
|
|
149525
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
149526
149526
|
);
|
|
149527
149527
|
return tracer.startActiveSpan(
|
|
149528
149528
|
"verifyPasswordAgainstHashes",
|
|
@@ -157123,7 +157123,7 @@ function traced(tracerName, options = {}, metricOptions = {}) {
|
|
|
157123
157123
|
}
|
|
157124
157124
|
const tracer = trace.getTracer(
|
|
157125
157125
|
tracerName,
|
|
157126
|
-
false ? void 0 : "v4.2.
|
|
157126
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
157127
157127
|
);
|
|
157128
157128
|
return function(target, propertyKey, descriptor) {
|
|
157129
157129
|
const originalMethod = descriptor.value;
|
|
@@ -157209,7 +157209,7 @@ function getHistogram(meter) {
|
|
|
157209
157209
|
}
|
|
157210
157210
|
return metrics.getMeter(
|
|
157211
157211
|
meter.meter,
|
|
157212
|
-
false ? void 0 : "v4.2.
|
|
157212
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
157213
157213
|
).createHistogram(meter.name, meter.options);
|
|
157214
157214
|
}
|
|
157215
157215
|
function getCounter(meter) {
|
|
@@ -157218,7 +157218,7 @@ function getCounter(meter) {
|
|
|
157218
157218
|
}
|
|
157219
157219
|
return metrics.getMeter(
|
|
157220
157220
|
meter.meter,
|
|
157221
|
-
false ? void 0 : "v4.2.
|
|
157221
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
157222
157222
|
).createCounter(meter.name, meter.options);
|
|
157223
157223
|
}
|
|
157224
157224
|
function traceHttpResponse(options = {}) {
|
|
@@ -171392,7 +171392,7 @@ var RecordsServer = class {
|
|
|
171392
171392
|
this._viewTemplateRenderer = viewTemplateRenderer;
|
|
171393
171393
|
this._tracer = trace.getTracer(
|
|
171394
171394
|
"RecordsServer",
|
|
171395
|
-
false ? void 0 : "v4.2.
|
|
171395
|
+
false ? void 0 : "v4.2.4-alpha.25071757716"
|
|
171396
171396
|
);
|
|
171397
171397
|
this._purchasableItems = purchasableItemsController;
|
|
171398
171398
|
this._procedures = this._createProcedures();
|
|
@@ -175448,8 +175448,8 @@ var RecordsServer = class {
|
|
|
175448
175448
|
return {
|
|
175449
175449
|
success: true,
|
|
175450
175450
|
...metadata,
|
|
175451
|
-
version: true ? "v4.2.
|
|
175452
|
-
versionHash: true ? "
|
|
175451
|
+
version: true ? "v4.2.4-alpha.25071757716" : void 0,
|
|
175452
|
+
versionHash: true ? "c213ddc7d74c64cf69e0d1ab1dcbcb9d86cb8ef2" : void 0
|
|
175453
175453
|
};
|
|
175454
175454
|
}),
|
|
175455
175455
|
getPurchasableItem: procedure().origins(true).http("GET", "/api/v2/records/purchasableItems").inputs(
|
|
@@ -220623,13 +220623,8 @@ function replaceMacros(text) {
|
|
|
220623
220623
|
return text;
|
|
220624
220624
|
}
|
|
220625
220625
|
var Transpiler = class {
|
|
220626
|
-
get forceSync() {
|
|
220627
|
-
return this._forceSync;
|
|
220628
|
-
}
|
|
220629
|
-
set forceSync(value) {
|
|
220630
|
-
this._forceSync = value;
|
|
220631
|
-
}
|
|
220632
220626
|
constructor(options) {
|
|
220627
|
+
this._jsxPreserveWhitespace = false;
|
|
220633
220628
|
this._insertEnergyChecks = options?.insertEnergyChecks ?? true;
|
|
220634
220629
|
this._cache = new import_lru_cache.default({
|
|
220635
220630
|
max: 1e3
|
|
@@ -220656,6 +220651,12 @@ var Transpiler = class {
|
|
|
220656
220651
|
this._exportFactory = options?.exportFactory ?? "exports";
|
|
220657
220652
|
this._forceSync = options?.forceSync ?? false;
|
|
220658
220653
|
}
|
|
220654
|
+
get forceSync() {
|
|
220655
|
+
return this._forceSync;
|
|
220656
|
+
}
|
|
220657
|
+
set forceSync(value) {
|
|
220658
|
+
this._forceSync = value;
|
|
220659
|
+
}
|
|
220659
220660
|
parse(code) {
|
|
220660
220661
|
const macroed = replaceMacros(code);
|
|
220661
220662
|
const node = this._parse(macroed);
|
|
@@ -220724,6 +220725,7 @@ var Transpiler = class {
|
|
|
220724
220725
|
if (cached2) {
|
|
220725
220726
|
return cached2;
|
|
220726
220727
|
}
|
|
220728
|
+
this._jsxPreserveWhitespace = directives.jsxPreserveWhitespace ?? false;
|
|
220727
220729
|
const macroed = replaceMacros(code);
|
|
220728
220730
|
const node = this._parse(macroed);
|
|
220729
220731
|
const isAsync = directives.isAsync || this._isAsyncNode(node);
|
|
@@ -221940,27 +221942,57 @@ await ${this._exportFactory}({ `;
|
|
|
221940
221942
|
_replaceJSXElementChildren(node, children, doc, text, metadata) {
|
|
221941
221943
|
const version3 = { "0": getClock2(doc, 0) };
|
|
221942
221944
|
for (let child of children) {
|
|
221943
|
-
|
|
221944
|
-
|
|
221945
|
-
|
|
221946
|
-
|
|
221947
|
-
|
|
221948
|
-
|
|
221949
|
-
|
|
221950
|
-
|
|
221951
|
-
|
|
221952
|
-
|
|
221953
|
-
|
|
221954
|
-
|
|
221955
|
-
|
|
221956
|
-
|
|
221945
|
+
let changed = false;
|
|
221946
|
+
const changeHandler = () => {
|
|
221947
|
+
changed = true;
|
|
221948
|
+
};
|
|
221949
|
+
try {
|
|
221950
|
+
text.observe(changeHandler);
|
|
221951
|
+
const pos = createRelativePositionFromStateVector2(
|
|
221952
|
+
text,
|
|
221953
|
+
version3,
|
|
221954
|
+
child.end,
|
|
221955
|
+
void 0,
|
|
221956
|
+
true
|
|
221957
|
+
);
|
|
221958
|
+
this._replace(child, doc, text, metadata);
|
|
221959
|
+
if (!changed) {
|
|
221960
|
+
continue;
|
|
221961
|
+
}
|
|
221962
|
+
doc.clientID += 1;
|
|
221963
|
+
const absoluteEnd = createAbsolutePositionFromRelativePosition(
|
|
221964
|
+
pos,
|
|
221965
|
+
doc
|
|
221966
|
+
);
|
|
221967
|
+
text.insert(absoluteEnd.index, ",");
|
|
221968
|
+
} finally {
|
|
221969
|
+
text.unobserve(changeHandler);
|
|
221970
|
+
}
|
|
221957
221971
|
}
|
|
221958
221972
|
}
|
|
221959
221973
|
_replaceJSXText(node, doc, text) {
|
|
221960
221974
|
doc.clientID += 1;
|
|
221961
221975
|
const version3 = { "0": getClock2(doc, 0) };
|
|
221962
|
-
|
|
221963
|
-
|
|
221976
|
+
let startIndex;
|
|
221977
|
+
let endIndex;
|
|
221978
|
+
if (!this._jsxPreserveWhitespace) {
|
|
221979
|
+
const isMultiLine = /\r|\n/.test(node.raw);
|
|
221980
|
+
if (isMultiLine) {
|
|
221981
|
+
const startMatch = /\S/.exec(node.raw);
|
|
221982
|
+
if (!startMatch) {
|
|
221983
|
+
return;
|
|
221984
|
+
}
|
|
221985
|
+
startIndex = startMatch.index + node.start;
|
|
221986
|
+
const endMatch = /\S\s*$/.exec(node.raw);
|
|
221987
|
+
endIndex = endMatch.index + 1 + node.start;
|
|
221988
|
+
} else {
|
|
221989
|
+
startIndex = node.start;
|
|
221990
|
+
endIndex = node.end;
|
|
221991
|
+
}
|
|
221992
|
+
} else {
|
|
221993
|
+
startIndex = node.start;
|
|
221994
|
+
endIndex = node.end;
|
|
221995
|
+
}
|
|
221964
221996
|
const absoluteStart = createAbsolutePositionFromStateVector(
|
|
221965
221997
|
doc,
|
|
221966
221998
|
text,
|
|
@@ -222266,6 +222298,8 @@ function parseDirectives(code) {
|
|
|
222266
222298
|
directives.isAsync = true;
|
|
222267
222299
|
} else if (part === "module") {
|
|
222268
222300
|
directives.isModule = true;
|
|
222301
|
+
} else if (part === "jsx-preserve-whitespace") {
|
|
222302
|
+
directives.jsxPreserveWhitespace = true;
|
|
222269
222303
|
}
|
|
222270
222304
|
}
|
|
222271
222305
|
return directives;
|
|
@@ -222285,6 +222319,9 @@ function addDirectives(code, directives) {
|
|
|
222285
222319
|
if (directives.isModule) {
|
|
222286
222320
|
directiveString += "module ";
|
|
222287
222321
|
}
|
|
222322
|
+
if (directives.jsxPreserveWhitespace) {
|
|
222323
|
+
directiveString += "jsx-preserve-whitespace ";
|
|
222324
|
+
}
|
|
222288
222325
|
directiveString = directiveString.trim() + '";';
|
|
222289
222326
|
return directiveString + code;
|
|
222290
222327
|
}
|
|
@@ -232812,7 +232849,7 @@ var config2 = new Conf({
|
|
|
232812
232849
|
projectName: "casualos-cli"
|
|
232813
232850
|
});
|
|
232814
232851
|
var program2 = new Command();
|
|
232815
|
-
program2.name("casualos").description("A CLI for CasualOS").version("v4.2.
|
|
232852
|
+
program2.name("casualos").description("A CLI for CasualOS").version("v4.2.4-alpha.25071757716").option(
|
|
232816
232853
|
"-e, --endpoint <url>",
|
|
232817
232854
|
"The endpoint to use for queries. Can be used to override the current endpoint."
|
|
232818
232855
|
).option(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "casualos",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4-alpha.25071757716",
|
|
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.4-alpha.25071757716",
|
|
32
|
+
"@casual-simulation/aux-records": "^4.2.4-alpha.25071757716",
|
|
33
|
+
"@casual-simulation/aux-runtime": "^4.2.4-alpha.25071757716",
|
|
34
|
+
"@casual-simulation/aux-vm": "^4.2.4-alpha.25071757716",
|
|
35
35
|
"@octokit/app": "^15.1.0",
|
|
36
36
|
"@octokit/auth-oauth-device": "^7.1.1",
|
|
37
37
|
"@octokit/core": "^6.1.2",
|