@wovin/core 0.1.30 → 0.1.32

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.
@@ -47,7 +47,7 @@ import {
47
47
  withAg,
48
48
  withPvFrom,
49
49
  withTs
50
- } from "./chunk-5WIJ7WIJ.min.js";
50
+ } from "./chunk-C72WHVW4.min.js";
51
51
  import "./chunk-HYMC7W6S.min.js";
52
52
  import "./chunk-QO2KMGDN.min.js";
53
53
  import "./chunk-KEHU7HGZ.min.js";
@@ -4,7 +4,7 @@ import {
4
4
  createDebugName,
5
5
  g,
6
6
  observableArrayMap
7
- } from "./chunk-5WIJ7WIJ.min.js";
7
+ } from "./chunk-C72WHVW4.min.js";
8
8
  import {
9
9
  autorun,
10
10
  comparer,
@@ -62,4 +62,4 @@ export {
62
62
  includes,
63
63
  includedIn
64
64
  };
65
- //# sourceMappingURL=chunk-SETD2AWO.min.js.map
65
+ //# sourceMappingURL=chunk-5NT4YV7V.min.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QPGEBDMJ.min.js";
4
4
  import {
5
5
  lastWriteWins
6
- } from "./chunk-DGNZX3DK.min.js";
6
+ } from "./chunk-GWAHFKL6.min.js";
7
7
  import {
8
8
  CID as CID2,
9
9
  areCidsEqual,
@@ -16,7 +16,7 @@ import {
16
16
  rollingFilter,
17
17
  src_exports,
18
18
  wrapper_default
19
- } from "./chunk-5WIJ7WIJ.min.js";
19
+ } from "./chunk-C72WHVW4.min.js";
20
20
  import {
21
21
  CID,
22
22
  Token,
@@ -1603,4 +1603,4 @@ export {
1603
1603
  collectDagBlocks,
1604
1604
  streamReaderToIterable
1605
1605
  };
1606
- //# sourceMappingURL=chunk-44AW6ACI.min.js.map
1606
+ //# sourceMappingURL=chunk-7X3H5GWS.min.js.map
@@ -7880,8 +7880,12 @@ function getCidSync(bytes) {
7880
7880
  }
7881
7881
  function encodeBlock(jsonObject) {
7882
7882
  DEBUG3("[encodeBlock]", jsonObject);
7883
- const byteView = encode2(jsonObject);
7884
- return { bytes: byteView, cid: getCidSync(byteView) };
7883
+ try {
7884
+ const byteView = encode2(jsonObject);
7885
+ return { bytes: byteView, cid: getCidSync(byteView) };
7886
+ } catch (err) {
7887
+ throw ERROR3("[encodeBlock] failed to encode:", jsonObject, err);
7888
+ }
7885
7889
  }
7886
7890
  async function encodeBlockOriginal(jsonObject) {
7887
7891
  const encoded = await encode4({ value: jsonObject, codec: src_exports, hasher: sha2562 });
@@ -9051,4 +9055,4 @@ lodash-es/lodash.js:
9051
9055
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9052
9056
  *)
9053
9057
  */
9054
- //# sourceMappingURL=chunk-5WIJ7WIJ.min.js.map
9058
+ //# sourceMappingURL=chunk-C72WHVW4.min.js.map