casualos 4.2.2 → 4.2.3-alpha.23548940774

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.
Files changed (2) hide show
  1. package/dist/cli.js +47 -10
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -149440,7 +149440,7 @@ var trace = TraceAPI.getInstance();
149440
149440
  function hashLowEntropyPasswordWithSalt2(password, salt) {
149441
149441
  const tracer = trace.getTracer(
149442
149442
  "InstrumentedHashHelpers",
149443
- false ? void 0 : "v4.2.2"
149443
+ false ? void 0 : "v4.2.3-alpha.23548940774"
149444
149444
  );
149445
149445
  return tracer.startActiveSpan(
149446
149446
  "hashLowEntropyPasswordWithSalt",
@@ -149458,7 +149458,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
149458
149458
  function hashHighEntropyPasswordWithSalt2(password, salt) {
149459
149459
  const tracer = trace.getTracer(
149460
149460
  "InstrumentedHashHelpers",
149461
- false ? void 0 : "v4.2.2"
149461
+ false ? void 0 : "v4.2.3-alpha.23548940774"
149462
149462
  );
149463
149463
  return tracer.startActiveSpan(
149464
149464
  "hashHighEntropyPasswordWithSalt",
@@ -149476,7 +149476,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
149476
149476
  function verifyPasswordAgainstHashes2(password, salt, hashes) {
149477
149477
  const tracer = trace.getTracer(
149478
149478
  "InstrumentedHashHelpers",
149479
- false ? void 0 : "v4.2.2"
149479
+ false ? void 0 : "v4.2.3-alpha.23548940774"
149480
149480
  );
149481
149481
  return tracer.startActiveSpan(
149482
149482
  "verifyPasswordAgainstHashes",
@@ -157049,7 +157049,7 @@ var import_semantic_conventions = __toESM(require_src3());
157049
157049
  function traced(tracerName, options = {}, metricOptions = {}) {
157050
157050
  const tracer = trace.getTracer(
157051
157051
  tracerName,
157052
- false ? void 0 : "v4.2.2"
157052
+ false ? void 0 : "v4.2.3-alpha.23548940774"
157053
157053
  );
157054
157054
  return function(target, propertyKey, descriptor) {
157055
157055
  const originalMethod = descriptor.value;
@@ -157135,7 +157135,7 @@ function getHistogram(meter) {
157135
157135
  }
157136
157136
  return metrics.getMeter(
157137
157137
  meter.meter,
157138
- false ? void 0 : "v4.2.2"
157138
+ false ? void 0 : "v4.2.3-alpha.23548940774"
157139
157139
  ).createHistogram(meter.name, meter.options);
157140
157140
  }
157141
157141
  function getCounter(meter) {
@@ -157144,7 +157144,7 @@ function getCounter(meter) {
157144
157144
  }
157145
157145
  return metrics.getMeter(
157146
157146
  meter.meter,
157147
- false ? void 0 : "v4.2.2"
157147
+ false ? void 0 : "v4.2.3-alpha.23548940774"
157148
157148
  ).createCounter(meter.name, meter.options);
157149
157149
  }
157150
157150
  function traceHttpResponse(options = {}) {
@@ -164773,14 +164773,26 @@ var RecordsController = class {
164773
164773
  return success2(webConfig);
164774
164774
  }
164775
164775
  async getPlayerWebManifest(hostname3) {
164776
+ console.log(
164777
+ `[RecordsController] [getPlayerWebManifest] Attempting to get web manifest for hostname: ${hostname3}`
164778
+ );
164776
164779
  const customDomain = await this._store.getVerifiedCustomDomainByName(
164777
164780
  hostname3
164778
164781
  );
164779
164782
  if (customDomain?.studio.playerWebManifest) {
164783
+ console.log(
164784
+ `[RecordsController] [getPlayerWebManifest] Found manifest.`
164785
+ );
164780
164786
  return success2(customDomain.studio.playerWebManifest);
164781
164787
  }
164788
+ console.log(
164789
+ `[RecordsController] [getPlayerWebManifest] No manifest found. Returning default manifest.`
164790
+ );
164782
164791
  const manifest = await this._config.getPlayerWebManifest();
164783
164792
  if (!manifest) {
164793
+ console.log(
164794
+ `[RecordsController] [getPlayerWebManifest] No default manifest found in configuration.`
164795
+ );
164784
164796
  return failure({
164785
164797
  errorCode: "not_found",
164786
164798
  errorMessage: "No web manifest found."
@@ -171178,7 +171190,7 @@ var RecordsServer = class {
171178
171190
  this._viewTemplateRenderer = viewTemplateRenderer;
171179
171191
  this._tracer = trace.getTracer(
171180
171192
  "RecordsServer",
171181
- false ? void 0 : "v4.2.2"
171193
+ false ? void 0 : "v4.2.3-alpha.23548940774"
171182
171194
  );
171183
171195
  this._purchasableItems = purchasableItemsController;
171184
171196
  this._procedures = this._createProcedures();
@@ -175191,8 +175203,8 @@ var RecordsServer = class {
175191
175203
  return {
175192
175204
  success: true,
175193
175205
  ...metadata,
175194
- version: true ? "v4.2.2" : void 0,
175195
- versionHash: true ? "23837d528de8efc2b99587e7b72a6fc30af6dbe7" : void 0
175206
+ version: true ? "v4.2.3-alpha.23548940774" : void 0,
175207
+ versionHash: true ? "3cf9aead128f80c93131d9a2e3ee70677d600802" : void 0
175196
175208
  };
175197
175209
  }),
175198
175210
  getPurchasableItem: procedure().origins(true).http("GET", "/api/v2/records/purchasableItems").inputs(
@@ -220027,6 +220039,9 @@ var Transpiler = class {
220027
220039
  } else if (n5.accessibility) {
220028
220040
  this._removeAccessibility(n5, doc, text);
220029
220041
  }
220042
+ if (n5.override) {
220043
+ this._removeOverride(n5, doc, text);
220044
+ }
220030
220045
  } else if (n5.type === "PropertyDefinition") {
220031
220046
  if (n5.accessibility) {
220032
220047
  this._removeAccessibility(n5, doc, text);
@@ -220654,6 +220669,28 @@ await ${this._exportFactory}({ `;
220654
220669
  }
220655
220670
  text.delete(indexOfAccessibility, accessibility.length);
220656
220671
  }
220672
+ _removeOverride(node, doc, text) {
220673
+ doc.clientID += 1;
220674
+ const version3 = { "0": getClock2(doc, 0) };
220675
+ const override = "override ";
220676
+ const t5 = text.toString();
220677
+ const relativeStart = createRelativePositionFromStateVector2(
220678
+ text,
220679
+ version3,
220680
+ node.start,
220681
+ -1,
220682
+ true
220683
+ );
220684
+ const absoluteStart = createAbsolutePositionFromRelativePosition(
220685
+ relativeStart,
220686
+ doc
220687
+ );
220688
+ const indexOfOverride = t5.indexOf(override, absoluteStart.index);
220689
+ if (indexOfOverride < 0 || indexOfOverride > node.key.start) {
220690
+ return;
220691
+ }
220692
+ text.delete(indexOfOverride, override.length);
220693
+ }
220657
220694
  _removeAsExpression(node, doc, text) {
220658
220695
  doc.clientID += 1;
220659
220696
  const version3 = { "0": getClock2(doc, 0) };
@@ -231919,7 +231956,7 @@ var config2 = new Conf({
231919
231956
  projectName: "casualos-cli"
231920
231957
  });
231921
231958
  var program2 = new Command();
231922
- program2.name("casualos").description("A CLI for CasualOS").version("v4.2.2").option(
231959
+ program2.name("casualos").description("A CLI for CasualOS").version("v4.2.3-alpha.23548940774").option(
231923
231960
  "-e, --endpoint <url>",
231924
231961
  "The endpoint to use for queries. Can be used to override the current endpoint."
231925
231962
  ).option(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casualos",
3
- "version": "4.2.2",
3
+ "version": "4.2.3-alpha.23548940774",
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.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",
31
+ "@casual-simulation/aux-common": "^4.2.3-alpha.23548940774",
32
+ "@casual-simulation/aux-records": "^4.2.3-alpha.23548940774",
33
+ "@casual-simulation/aux-runtime": "^4.2.3-alpha.23548940774",
34
+ "@casual-simulation/aux-vm": "^4.2.3-alpha.23548940774",
35
35
  "@octokit/app": "^15.1.0",
36
36
  "@octokit/auth-oauth-device": "^7.1.1",
37
37
  "@octokit/core": "^6.1.2",