ahmed-rivet-convex 1.1.0 → 1.1.1

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.
@@ -11,7 +11,7 @@ import {
11
11
  isProd,
12
12
  throwInvalidType,
13
13
  unreachable
14
- } from "./chunk-SGW2EIVJ.js";
14
+ } from "./chunk-MWDKU7HM.js";
15
15
  import {
16
16
  __export,
17
17
  __reExport
@@ -8572,4 +8572,4 @@ export {
8572
8572
  Client,
8573
8573
  TDigest
8574
8574
  };
8575
- //# sourceMappingURL=chunk-MCG5AQEZ.js.map
8575
+ //# sourceMappingURL=chunk-CIYYQODG.js.map
@@ -134,7 +134,7 @@ import {
134
134
  withWrite,
135
135
  withWriteNoImplicitCommit,
136
136
  wrapIterable
137
- } from "./chunk-MCG5AQEZ.js";
137
+ } from "./chunk-CIYYQODG.js";
138
138
  import {
139
139
  assert,
140
140
  assertArray,
@@ -147,7 +147,7 @@ import {
147
147
  hasOwn,
148
148
  isProd,
149
149
  unreachable
150
- } from "./chunk-SGW2EIVJ.js";
150
+ } from "./chunk-MWDKU7HM.js";
151
151
  import {
152
152
  __export
153
153
  } from "./chunk-424PT5DM.js";
@@ -545,6 +545,26 @@ var ReadImpl = class {
545
545
  if (this.#closed) {
546
546
  return transactionIsClosedRejection();
547
547
  }
548
+ const pre = globalThis.__pbIdbPrefetch;
549
+ const dbName = this.#tx.db.name;
550
+ const early = pre && dbName ? pre[dbName] : void 0;
551
+ if (pre && early) {
552
+ delete pre[dbName];
553
+ const live = () => this.getAll();
554
+ return early.then((r) => {
555
+ if (!r || !r.keys || !r.vals) return live();
556
+ const map = /* @__PURE__ */ new Map();
557
+ for (let i = 0; i < r.keys.length; i++) {
558
+ map.set(
559
+ r.keys[i],
560
+ deepFreezeAllowUndefined(
561
+ r.vals[i]
562
+ )
563
+ );
564
+ }
565
+ return map;
566
+ }, live);
567
+ }
548
568
  return new Promise((resolve, reject) => {
549
569
  const store = objectStore(this.#tx);
550
570
  const keysReq = store.getAllKeys();
@@ -14757,7 +14777,7 @@ function makeMessage(message, context, logLevel) {
14757
14777
  }
14758
14778
 
14759
14779
  // ../zero-client/src/client/version.ts
14760
- var version2 = "1.0.32";
14780
+ var version2 = "1.1.1";
14761
14781
 
14762
14782
  // ../zero-client/src/client/log-options.ts
14763
14783
  var LevelFilterLogSink = class {
@@ -17783,4 +17803,4 @@ export {
17783
17803
  pako/dist/pako.esm.mjs:
17784
17804
  (*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *)
17785
17805
  */
17786
- //# sourceMappingURL=chunk-ZYE2DHSS.js.map
17806
+ //# sourceMappingURL=chunk-IX5565UC.js.map