@fireproof/core 0.19.110 → 0.19.112-dev-web

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/{chunk-OFGPKRCM.js → chunk-GZANCVTS.js} +3 -1
  2. package/chunk-GZANCVTS.js.map +1 -0
  3. package/{chunk-WS3YRPIA.js → chunk-LNFBDD6E.js} +4 -4
  4. package/chunk-LNFBDD6E.js.map +1 -0
  5. package/deno.json +1 -2
  6. package/{gateway-H7UD6TNB.js → gateway@skip-esm-O655UEIP.js} +3 -3
  7. package/gateway@skip-esm-O655UEIP.js.map +1 -0
  8. package/{gateway-5FCWPX5W.js → gateway@skip-iife-OZ2V32XH.js} +5 -5
  9. package/gateway@skip-iife-OZ2V32XH.js.map +1 -0
  10. package/index.cjs +32 -30
  11. package/index.cjs.map +1 -1
  12. package/index.global.js +417 -178
  13. package/index.global.js.map +1 -1
  14. package/index.js +11 -11
  15. package/index.js.map +1 -1
  16. package/{key-bag-file-WADZBHYG.js → key-bag-file-4TYN2H7F.js} +3 -3
  17. package/{key-bag-indexdb-PGVAI3FJ.js → key-bag-indexdb-JEOAS4WM.js} +3 -3
  18. package/{mem-filesystem-YPPJV7Q2.js → mem-filesystem@skip-iife-CJI7IIKV.js} +4 -4
  19. package/mem-filesystem@skip-iife-CJI7IIKV.js.map +1 -0
  20. package/metafile-cjs.json +1 -1
  21. package/metafile-esm.json +1 -1
  22. package/metafile-iife.json +1 -1
  23. package/{node-filesystem-INX4ZTHE.js → node-filesystem@skip-iife-O74VAABQ.js} +4 -4
  24. package/node-filesystem@skip-iife-O74VAABQ.js.map +1 -0
  25. package/package.json +15 -6
  26. package/tests/blockstore/keyed-crypto.test.ts +2 -2
  27. package/tests/blockstore/store.test.ts +3 -5
  28. package/tests/fireproof/all-gateway.test.ts +11 -9
  29. package/{utils-QO2HIWGI.js → utils-L7MUZUJX.js} +3 -3
  30. package/web/bundle-not-impl-UH74NK5L.js +5 -0
  31. package/web/bundle-not-impl-UH74NK5L.js.map +1 -0
  32. package/web/chunk-2DC5ZIR4.js +7 -0
  33. package/web/chunk-2DC5ZIR4.js.map +1 -0
  34. package/web/chunk-Q5W7UNMP.js +292 -0
  35. package/web/chunk-Q5W7UNMP.js.map +1 -0
  36. package/web/chunk-S4HRSKEO.js +75 -0
  37. package/web/chunk-S4HRSKEO.js.map +1 -0
  38. package/web/gateway@skip-esm-GI5PRACF.js +165 -0
  39. package/web/gateway@skip-esm-GI5PRACF.js.map +1 -0
  40. package/web/index.cjs +4138 -0
  41. package/web/index.cjs.map +1 -0
  42. package/web/index.d.cts +1139 -0
  43. package/web/index.d.ts +1139 -0
  44. package/web/index.js +3478 -0
  45. package/web/index.js.map +1 -0
  46. package/web/key-bag-file-4SJQGORQ.js +54 -0
  47. package/web/key-bag-file-4SJQGORQ.js.map +1 -0
  48. package/web/key-bag-indexdb-GSQOUUVQ.js +50 -0
  49. package/web/key-bag-indexdb-GSQOUUVQ.js.map +1 -0
  50. package/web/metafile-cjs.json +1 -0
  51. package/web/metafile-esm.json +1 -0
  52. package/web/utils-EFZJNXH5.js +14 -0
  53. package/web/utils-EFZJNXH5.js.map +1 -0
  54. package/chunk-OFGPKRCM.js.map +0 -1
  55. package/chunk-WS3YRPIA.js.map +0 -1
  56. package/gateway-5FCWPX5W.js.map +0 -1
  57. package/gateway-H7UD6TNB.js.map +0 -1
  58. package/mem-filesystem-YPPJV7Q2.js.map +0 -1
  59. package/node-filesystem-INX4ZTHE.js.map +0 -1
  60. /package/{key-bag-file-WADZBHYG.js.map → key-bag-file-4TYN2H7F.js.map} +0 -0
  61. /package/{key-bag-indexdb-PGVAI3FJ.js.map → key-bag-indexdb-JEOAS4WM.js.map} +0 -0
  62. /package/{utils-QO2HIWGI.js.map → utils-L7MUZUJX.js.map} +0 -0
package/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getFileSystem,
7
7
  getPath,
8
8
  toArrayBuffer
9
- } from "./chunk-WS3YRPIA.js";
9
+ } from "./chunk-LNFBDD6E.js";
10
10
  import {
11
11
  INDEXDB_VERSION
12
12
  } from "./chunk-PB4BKL4O.js";
@@ -24,7 +24,7 @@ import {
24
24
  getName,
25
25
  getStore,
26
26
  isNotFoundError
27
- } from "./chunk-OFGPKRCM.js";
27
+ } from "./chunk-GZANCVTS.js";
28
28
 
29
29
  // src/database.ts
30
30
  import { ResolveOnce as ResolveOnce6 } from "@adviser/cement";
@@ -684,14 +684,14 @@ var keyBagProviderFactories = new Map(
684
684
  {
685
685
  protocol: "file:",
686
686
  factory: async (url, sthis) => {
687
- const { KeyBagProviderFile } = await import("./key-bag-file-WADZBHYG.js");
687
+ const { KeyBagProviderFile } = await import("./key-bag-file-4TYN2H7F.js");
688
688
  return new KeyBagProviderFile(url, sthis);
689
689
  }
690
690
  },
691
691
  {
692
692
  protocol: "indexdb:",
693
693
  factory: async (url, sthis) => {
694
- const { KeyBagProviderIndexDB } = await import("./key-bag-indexdb-PGVAI3FJ.js");
694
+ const { KeyBagProviderIndexDB } = await import("./key-bag-indexdb-JEOAS4WM.js");
695
695
  return new KeyBagProviderIndexDB(url, sthis);
696
696
  }
697
697
  }
@@ -1584,7 +1584,7 @@ import { Result as Result4 } from "@adviser/cement";
1584
1584
  async function decodeGatewayMetaBytesToDbMeta(sthis, byteHeads) {
1585
1585
  const crdtEntries = JSON.parse(sthis.txt.decode(byteHeads));
1586
1586
  if (!crdtEntries.length) {
1587
- sthis.logger.Debug().Str("byteHeads", new TextDecoder().decode(byteHeads)).Msg("No CRDT entries found");
1587
+ sthis.logger.Debug().Any("byteHeads", byteHeads).Msg("No CRDT entries found");
1588
1588
  return [];
1589
1589
  }
1590
1590
  if (!crdtEntries.map) {
@@ -1621,7 +1621,7 @@ async function setCryptoKeyFromGatewayMetaPayload(uri, sthis, data) {
1621
1621
  sthis.logger.Debug().Str("dbMeta.key", dbMeta.key).Str("uri", uri.toString()).Msg("Set crypto key from gateway meta payload");
1622
1622
  return Result4.Ok(dbMeta);
1623
1623
  }
1624
- sthis.logger.Debug().Str("data", new TextDecoder().decode(data)).Msg("No crypto in gateway meta payload");
1624
+ sthis.logger.Debug().Any("data", data).Msg("No crypto in gateway meta payload");
1625
1625
  return Result4.Ok(void 0);
1626
1626
  } catch (error) {
1627
1627
  sthis.logger.Debug().Err(error).Msg("Failed to set crypto key from gateway meta payload");
@@ -2229,22 +2229,22 @@ function toStoreRuntime(opts, sthis) {
2229
2229
  registerStoreProtocol({
2230
2230
  protocol: "file:",
2231
2231
  gateway: async (sthis) => {
2232
- const { FileGateway } = await import("./gateway-5FCWPX5W.js");
2232
+ const { FileGateway } = await import("./gateway@skip-iife-OZ2V32XH.js");
2233
2233
  return new FileGateway(sthis);
2234
2234
  },
2235
2235
  test: async (sthis) => {
2236
- const { FileTestStore } = await import("./gateway-5FCWPX5W.js");
2236
+ const { FileTestStore } = await import("./gateway@skip-iife-OZ2V32XH.js");
2237
2237
  return new FileTestStore(sthis);
2238
2238
  }
2239
2239
  });
2240
2240
  registerStoreProtocol({
2241
2241
  protocol: "indexdb:",
2242
2242
  gateway: async (sthis) => {
2243
- const { IndexDBGateway } = await import("./gateway-H7UD6TNB.js");
2243
+ const { IndexDBGateway } = await import("./gateway@skip-esm-O655UEIP.js");
2244
2244
  return new IndexDBGateway(sthis);
2245
2245
  },
2246
2246
  test: async (sthis) => {
2247
- const { IndexDBTestStore } = await import("./gateway-H7UD6TNB.js");
2247
+ const { IndexDBTestStore } = await import("./gateway@skip-esm-O655UEIP.js");
2248
2248
  return new IndexDBTestStore(sthis);
2249
2249
  }
2250
2250
  });
@@ -3446,7 +3446,7 @@ import { runtimeFn as runtimeFn2 } from "@adviser/cement";
3446
3446
 
3447
3447
  // src/version.ts
3448
3448
  var PACKAGE_VERSION = Object.keys({
3449
- "0.19.110": "xxxx"
3449
+ "0.19.112-dev-web": "xxxx"
3450
3450
  })[0];
3451
3451
  export {
3452
3452
  CRDT,