@camstack/sdk 1.2.120 → 1.2.122

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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _trpc_client = require("@trpc/client");
3
- let _camstack_types = require("@camstack/types");
3
+ let _camstack_types_client = require("@camstack/types/client");
4
4
  //#region ../../node_modules/superjson/dist/double-indexed-kv.js
5
5
  var DoubleIndexedKV = class {
6
6
  constructor() {
@@ -717,7 +717,7 @@ var System = class {
717
717
  this.baseRetryMs = config.retryDelayMs ?? WS_RECONNECT_RETRY_DELAY_MS;
718
718
  this.maxRetryMs = config.maxRetryDelayMs ?? WS_RECONNECT_MAX_RETRY_DELAY_MS;
719
719
  this._trpcClient = this.buildTrpcClient();
720
- this._systemProxy = (0, _camstack_types.createSystemProxy)(this._trpcClient);
720
+ this._systemProxy = (0, _camstack_types_client.createSystemProxy)(this._trpcClient);
721
721
  }
722
722
  /** Active server base URL (no trailing slash). */
723
723
  get serverUrl() {
@@ -809,7 +809,7 @@ var System = class {
809
809
  async init(timeoutMs) {
810
810
  if (this.mirror?.isReady()) return;
811
811
  if (this.mirrorInit) return this.mirrorInit;
812
- const m = new _camstack_types.SystemMirror(this._trpcClient);
812
+ const m = new _camstack_types_client.SystemMirror(this._trpcClient);
813
813
  this.mirror = m;
814
814
  this.mirrorInit = (async () => {
815
815
  await this.awaitConnected(timeoutMs);
@@ -849,7 +849,7 @@ var System = class {
849
849
  this.connected = false;
850
850
  this.connectedPromise = null;
851
851
  this._trpcClient = this.buildTrpcClient();
852
- this._systemProxy = (0, _camstack_types.createSystemProxy)(this._trpcClient);
852
+ this._systemProxy = (0, _camstack_types_client.createSystemProxy)(this._trpcClient);
853
853
  }
854
854
  /**
855
855
  * Pivot the underlying tRPC transport onto a different base URL.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createTRPCClient, createWSClient, httpLink, wsLink } from "@trpc/client";
2
- import { SystemMirror, createSystemProxy } from "@camstack/types";
2
+ import { SystemMirror, createSystemProxy } from "@camstack/types/client";
3
3
  //#region ../../node_modules/superjson/dist/double-indexed-kv.js
4
4
  var DoubleIndexedKV = class {
5
5
  constructor() {
package/dist/types.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface ProviderInfo {
14
14
  }
15
15
  export interface ProxyClientConfig {
16
16
  /**
17
- * Primary proxy URL (e.g. "http://192.168.x.x:4000").
17
+ * Primary proxy URL (e.g. "http://192.168.10.100:4000").
18
18
  * Can also be an array of URLs to race.
19
19
  * The first successful connection wins.
20
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/sdk",
3
- "version": "1.2.120",
3
+ "version": "1.2.122",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "superjson": "^2.2.6"
31
31
  },
32
32
  "peerDependencies": {
33
- "@camstack/types": "*"
33
+ "@camstack/types": ">=1.2.306"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@camstack/types": "*",