@rocicorp/zero 0.9.2024122100 → 0.9.2024122300
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/out/{chunk-DERTBT62.js → chunk-NYJROCBH.js} +15 -2
- package/out/{chunk-DERTBT62.js.map → chunk-NYJROCBH.js.map} +2 -2
- package/out/react.js +6 -2
- package/out/react.js.map +2 -2
- package/out/solid.js +1 -1
- package/out/zero-cache/src/workers/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/workers/syncer.js +2 -2
- package/out/zero-cache/src/workers/syncer.js.map +1 -1
- package/out/zero-client/src/client/server-option.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +5 -1
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-react/src/use-query.d.ts.map +1 -1
- package/out/zero.js +1 -1
- package/package.json +1 -1
|
@@ -15445,7 +15445,7 @@ function makeMessage(message, context, logLevel) {
|
|
|
15445
15445
|
}
|
|
15446
15446
|
|
|
15447
15447
|
// ../zero-client/src/client/version.ts
|
|
15448
|
-
var version2 = "0.9.
|
|
15448
|
+
var version2 = "0.9.2024122300+b69fce";
|
|
15449
15449
|
|
|
15450
15450
|
// ../zero-client/src/client/log-options.ts
|
|
15451
15451
|
var LevelFilterLogSink = class {
|
|
@@ -16036,6 +16036,13 @@ function validateServerParam(paramName, server) {
|
|
|
16036
16036
|
return urlString;
|
|
16037
16037
|
}
|
|
16038
16038
|
function getServer(server) {
|
|
16039
|
+
const WS = getBrowserGlobal("WebSocket");
|
|
16040
|
+
if (!WS) {
|
|
16041
|
+
console.warn(
|
|
16042
|
+
"Zero started in an unsupported environment, no data will be synced."
|
|
16043
|
+
);
|
|
16044
|
+
return null;
|
|
16045
|
+
}
|
|
16039
16046
|
if (server === void 0 || server === null) {
|
|
16040
16047
|
console.warn(
|
|
16041
16048
|
"Zero starting up with no server URL. This is supported for unit testing and prototyping, but no data will be synced."
|
|
@@ -16616,6 +16623,12 @@ var Zero = class {
|
|
|
16616
16623
|
}
|
|
16617
16624
|
return createLogOptions(options);
|
|
16618
16625
|
}
|
|
16626
|
+
/**
|
|
16627
|
+
* The server URL that this Zero instance is configured with.
|
|
16628
|
+
*/
|
|
16629
|
+
get server() {
|
|
16630
|
+
return this.#server;
|
|
16631
|
+
}
|
|
16619
16632
|
/**
|
|
16620
16633
|
* The name of the IndexedDB database in which the data of this
|
|
16621
16634
|
* instance of Zero is stored.
|
|
@@ -17463,4 +17476,4 @@ export {
|
|
|
17463
17476
|
escapeLike,
|
|
17464
17477
|
Zero
|
|
17465
17478
|
};
|
|
17466
|
-
//# sourceMappingURL=chunk-
|
|
17479
|
+
//# sourceMappingURL=chunk-NYJROCBH.js.map
|