casualos 3.8.1-alpha.18755991904 → 3.8.1-alpha.18945091435

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 +31 -14
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -90258,6 +90258,9 @@ var YjsSharedDocument = class {
90258
90258
  createArray() {
90259
90259
  return new YjsSharedArray(new YArray());
90260
90260
  }
90261
+ createText() {
90262
+ return new YjsSharedText(new YText());
90263
+ }
90261
90264
  async init() {
90262
90265
  }
90263
90266
  connect() {
@@ -90462,7 +90465,7 @@ var YjsSharedMap = class _YjsSharedMap extends YjsSharedType {
90462
90465
  return this.type.size;
90463
90466
  }
90464
90467
  set(key, value) {
90465
- if (value instanceof YjsSharedType) {
90468
+ if (value instanceof YjsSharedType || value instanceof YjsSharedText) {
90466
90469
  if (value.doc) {
90467
90470
  throw new Error(
90468
90471
  "Cannot set a top-level map inside another map."
@@ -90638,7 +90641,7 @@ var YjsSharedArray = class _YjsSharedArray extends YjsSharedType {
90638
90641
  _mapItems(items) {
90639
90642
  let containsSharedType = false;
90640
90643
  for (let i2 of items) {
90641
- if (i2 instanceof YjsSharedType) {
90644
+ if (i2 instanceof YjsSharedType || i2 instanceof YjsSharedText) {
90642
90645
  if (i2.doc) {
90643
90646
  throw new Error(
90644
90647
  "Cannot push a top-level array inside another array."
@@ -90649,7 +90652,9 @@ var YjsSharedArray = class _YjsSharedArray extends YjsSharedType {
90649
90652
  }
90650
90653
  }
90651
90654
  if (containsSharedType) {
90652
- items = items.map((i2) => i2 instanceof YjsSharedType ? i2.type : i2);
90655
+ items = items.map(
90656
+ (i2) => i2 instanceof YjsSharedType || i2 instanceof YjsSharedText ? i2.type : i2
90657
+ );
90653
90658
  }
90654
90659
  return items;
90655
90660
  }
@@ -90673,6 +90678,9 @@ var YjsSharedText = class _YjsSharedText {
90673
90678
  get deepChanges() {
90674
90679
  return this._deepChanges;
90675
90680
  }
90681
+ get type() {
90682
+ return this._text;
90683
+ }
90676
90684
  constructor(text) {
90677
90685
  if (text instanceof YText) {
90678
90686
  this._text = text;
@@ -90736,7 +90744,16 @@ var YjsSharedText = class _YjsSharedText {
90736
90744
  };
90737
90745
  function valueOrSharedType(val) {
90738
90746
  if (val instanceof AbstractType) {
90739
- return val.__sharedType;
90747
+ const sharedType = val.__sharedType;
90748
+ if (sharedType) {
90749
+ return sharedType;
90750
+ } else if (val instanceof YMap) {
90751
+ return new YjsSharedMap(val);
90752
+ } else if (val instanceof YArray) {
90753
+ return new YjsSharedArray(val);
90754
+ } else if (val instanceof YText) {
90755
+ return new YjsSharedText(val);
90756
+ }
90740
90757
  }
90741
90758
  return val;
90742
90759
  }
@@ -93467,7 +93484,7 @@ var trace = TraceAPI.getInstance();
93467
93484
  function hashLowEntropyPasswordWithSalt2(password, salt) {
93468
93485
  const tracer = trace.getTracer(
93469
93486
  "InstrumentedHashHelpers",
93470
- false ? void 0 : "v3.8.1-alpha.18755991904"
93487
+ false ? void 0 : "v3.8.1-alpha.18945091435"
93471
93488
  );
93472
93489
  return tracer.startActiveSpan(
93473
93490
  "hashLowEntropyPasswordWithSalt",
@@ -93485,7 +93502,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
93485
93502
  function hashHighEntropyPasswordWithSalt2(password, salt) {
93486
93503
  const tracer = trace.getTracer(
93487
93504
  "InstrumentedHashHelpers",
93488
- false ? void 0 : "v3.8.1-alpha.18755991904"
93505
+ false ? void 0 : "v3.8.1-alpha.18945091435"
93489
93506
  );
93490
93507
  return tracer.startActiveSpan(
93491
93508
  "hashHighEntropyPasswordWithSalt",
@@ -93503,7 +93520,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
93503
93520
  function verifyPasswordAgainstHashes2(password, salt, hashes) {
93504
93521
  const tracer = trace.getTracer(
93505
93522
  "InstrumentedHashHelpers",
93506
- false ? void 0 : "v3.8.1-alpha.18755991904"
93523
+ false ? void 0 : "v3.8.1-alpha.18945091435"
93507
93524
  );
93508
93525
  return tracer.startActiveSpan(
93509
93526
  "verifyPasswordAgainstHashes",
@@ -100895,7 +100912,7 @@ var import_semantic_conventions = __toESM(require_src3());
100895
100912
  function traced(tracerName, options = {}, metricOptions = {}) {
100896
100913
  const tracer = trace.getTracer(
100897
100914
  tracerName,
100898
- false ? void 0 : "v3.8.1-alpha.18755991904"
100915
+ false ? void 0 : "v3.8.1-alpha.18945091435"
100899
100916
  );
100900
100917
  return function(target, propertyKey, descriptor) {
100901
100918
  const originalMethod = descriptor.value;
@@ -100977,7 +100994,7 @@ function getHistogram(meter) {
100977
100994
  }
100978
100995
  return metrics.getMeter(
100979
100996
  meter.meter,
100980
- false ? void 0 : "v3.8.1-alpha.18755991904"
100997
+ false ? void 0 : "v3.8.1-alpha.18945091435"
100981
100998
  ).createHistogram(meter.name, meter.options);
100982
100999
  }
100983
101000
  function getCounter(meter) {
@@ -100986,7 +101003,7 @@ function getCounter(meter) {
100986
101003
  }
100987
101004
  return metrics.getMeter(
100988
101005
  meter.meter,
100989
- false ? void 0 : "v3.8.1-alpha.18755991904"
101006
+ false ? void 0 : "v3.8.1-alpha.18945091435"
100990
101007
  ).createCounter(meter.name, meter.options);
100991
101008
  }
100992
101009
  function traceHttpResponse(options = {}) {
@@ -111472,7 +111489,7 @@ var RecordsServer = class {
111472
111489
  this._databaseRecordsController = databaseRecordsController;
111473
111490
  this._tracer = trace.getTracer(
111474
111491
  "RecordsServer",
111475
- false ? void 0 : "v3.8.1-alpha.18755991904"
111492
+ false ? void 0 : "v3.8.1-alpha.18945091435"
111476
111493
  );
111477
111494
  this._procedures = this._createProcedures();
111478
111495
  this._setupRoutes();
@@ -114604,8 +114621,8 @@ var RecordsServer = class {
114604
114621
  return {
114605
114622
  success: true,
114606
114623
  ...metadata,
114607
- version: true ? "v3.8.1-alpha.18755991904" : void 0,
114608
- versionHash: true ? "20f206790fb0aa7189d2dd15f8bb3c16cd4899a0" : void 0
114624
+ version: true ? "v3.8.1-alpha.18945091435" : void 0,
114625
+ versionHash: true ? "b054019c2eb645be225fbf813dacbda1ee3af6ed" : void 0
114609
114626
  };
114610
114627
  })
114611
114628
  };
@@ -146350,7 +146367,7 @@ var config = new Conf({
146350
146367
  projectName: "casualos-cli"
146351
146368
  });
146352
146369
  var program2 = new Command();
146353
- program2.name("casualos").description("A CLI for CasualOS").version("v3.8.1-alpha.18755991904").option(
146370
+ program2.name("casualos").description("A CLI for CasualOS").version("v3.8.1-alpha.18945091435").option(
146354
146371
  "-e, --endpoint <url>",
146355
146372
  "The endpoint to use for queries. Can be used to override the current endpoint."
146356
146373
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casualos",
3
- "version": "3.8.1-alpha.18755991904",
3
+ "version": "3.8.1-alpha.18945091435",
4
4
  "description": "Command line interface for CasualOS.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "index.d.ts",
@@ -35,8 +35,8 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@casual-simulation/aux-common": "^3.8.1-alpha.18755991904",
39
- "@casual-simulation/aux-records": "^3.8.1-alpha.18755991904",
38
+ "@casual-simulation/aux-common": "^3.8.1-alpha.18945091435",
39
+ "@casual-simulation/aux-records": "^3.8.1-alpha.18945091435",
40
40
  "@octokit/app": "^15.1.0",
41
41
  "@octokit/auth-oauth-device": "^7.1.1",
42
42
  "@octokit/core": "^6.1.2",
@@ -63,5 +63,5 @@
63
63
  "**/*.def",
64
64
  "templates/**"
65
65
  ],
66
- "gitHead": "20f206790fb0aa7189d2dd15f8bb3c16cd4899a0"
66
+ "gitHead": "b054019c2eb645be225fbf813dacbda1ee3af6ed"
67
67
  }