zitejs 0.9.58 → 0.9.60

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.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCaller = void 0;
4
+ var index_js_1 = require("../caller/index.js");
5
+ Object.defineProperty(exports, "createCaller", { enumerable: true, get: function () { return index_js_1.createCaller; } });
@@ -9,6 +9,7 @@ function getMode() {
9
9
  const host = window.location.host;
10
10
  return host.startsWith("zite-editor") ||
11
11
  host.startsWith("zite-action-") ||
12
+ host.startsWith("zite-snapshot-") ||
12
13
  host.endsWith(".zite-dev-sandbox.com") ||
13
14
  host.endsWith(".zite-sandbox.com") ||
14
15
  host.endsWith(".zite-dev-app.com") ||
@@ -65,6 +66,9 @@ function buildFetchOptions(name, input, extra) {
65
66
  mode: getMode(),
66
67
  usageToken: token,
67
68
  ...(ziteAuthToken ? { ziteAuthToken } : {}),
69
+ ...(typeof window !== "undefined" && window.__ziteSnapshotId
70
+ ? { snapshotId: window.__ziteSnapshotId }
71
+ : {}),
68
72
  ...extra,
69
73
  }),
70
74
  },
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTableClient = void 0;
4
+ var index_js_1 = require("../runtime/index.js");
5
+ Object.defineProperty(exports, "createTableClient", { enumerable: true, get: function () { return index_js_1.createTableClient; } });
@@ -0,0 +1,2 @@
1
+ export { createCaller } from '../caller/index.js';
2
+ export type { EndpointConfig } from '../caller/index.js';
@@ -0,0 +1 @@
1
+ export { createCaller } from '../caller/index.js';
@@ -5,6 +5,7 @@ function getMode() {
5
5
  const host = window.location.host;
6
6
  return host.startsWith("zite-editor") ||
7
7
  host.startsWith("zite-action-") ||
8
+ host.startsWith("zite-snapshot-") ||
8
9
  host.endsWith(".zite-dev-sandbox.com") ||
9
10
  host.endsWith(".zite-sandbox.com") ||
10
11
  host.endsWith(".zite-dev-app.com") ||
@@ -61,6 +62,9 @@ function buildFetchOptions(name, input, extra) {
61
62
  mode: getMode(),
62
63
  usageToken: token,
63
64
  ...(ziteAuthToken ? { ziteAuthToken } : {}),
65
+ ...(typeof window !== "undefined" && window.__ziteSnapshotId
66
+ ? { snapshotId: window.__ziteSnapshotId }
67
+ : {}),
64
68
  ...extra,
65
69
  }),
66
70
  },
package/dist/esm/cli.js CHANGED
File without changes
@@ -0,0 +1,2 @@
1
+ export { createTableClient } from '../runtime/index.js';
2
+ export type { TableClient } from '../runtime/index.js';
@@ -0,0 +1 @@
1
+ export { createTableClient } from '../runtime/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.58",
3
+ "version": "0.9.60",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",