@wovin/core 0.1.8 → 0.1.9

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.
@@ -46,7 +46,7 @@ import {
46
46
  variableNameWithoutQuestionmark,
47
47
  withPvFrom,
48
48
  withTs
49
- } from "./chunk-AOM4CWTC.min.js";
49
+ } from "./chunk-QUZMTKEG.min.js";
50
50
  import "./chunk-KEHU7HGZ.min.js";
51
51
  import "./chunk-HYMC7W6S.min.js";
52
52
  import "./chunk-PHITDXZT.min.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QPGEBDMJ.min.js";
4
4
  import {
5
5
  lastWriteWins
6
- } from "./chunk-BEFJYVDW.min.js";
6
+ } from "./chunk-CT54AE2F.min.js";
7
7
  import {
8
8
  CID,
9
9
  areCidsEqual,
@@ -16,7 +16,7 @@ import {
16
16
  rollingFilter,
17
17
  src_exports,
18
18
  wrapper_default
19
- } from "./chunk-AOM4CWTC.min.js";
19
+ } from "./chunk-QUZMTKEG.min.js";
20
20
  import {
21
21
  __commonJS,
22
22
  __toESM
@@ -4119,4 +4119,4 @@ export {
4119
4119
  carFromBlob,
4120
4120
  streamReaderToIterable
4121
4121
  };
4122
- //# sourceMappingURL=chunk-B6GB52LJ.min.js.map
4122
+ //# sourceMappingURL=chunk-5ILLZTSY.min.js.map
@@ -4,7 +4,7 @@ import {
4
4
  createDebugName,
5
5
  g,
6
6
  observableArrayMap
7
- } from "./chunk-AOM4CWTC.min.js";
7
+ } from "./chunk-QUZMTKEG.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-PANN7XTE.min.js.map
65
+ //# sourceMappingURL=chunk-6T25Z3DG.min.js.map
@@ -16,7 +16,7 @@ import {
16
16
  rollingMapper,
17
17
  sortApplogsByTs,
18
18
  wrapper_default
19
- } from "./chunk-AOM4CWTC.min.js";
19
+ } from "./chunk-QUZMTKEG.min.js";
20
20
  import {
21
21
  action,
22
22
  autorun,
@@ -507,4 +507,4 @@ export {
507
507
  withTimeout,
508
508
  throwOnTimeout
509
509
  };
510
- //# sourceMappingURL=chunk-BEFJYVDW.min.js.map
510
+ //# sourceMappingURL=chunk-CT54AE2F.min.js.map
@@ -3,7 +3,7 @@ import {
3
3
  areCidsEqual,
4
4
  decode,
5
5
  g
6
- } from "./chunk-AOM4CWTC.min.js";
6
+ } from "./chunk-QUZMTKEG.min.js";
7
7
 
8
8
  // src/ipfs/fetch-snapshot-chain.ts
9
9
  var { WARN, LOG, DEBUG, VERBOSE, ERROR } = g.setup(g.INFO);
@@ -67,4 +67,4 @@ function createMemoryBlockStore() {
67
67
  export {
68
68
  fetchSnapshotChainUntil
69
69
  };
70
- //# sourceMappingURL=chunk-4APURYN7.min.js.map
70
+ //# sourceMappingURL=chunk-PA775CGA.min.js.map
@@ -10891,8 +10891,19 @@ var WriteableThread = class extends Thread {
10891
10891
  return this.insertRaw(missing) ?? [];
10892
10892
  }
10893
10893
  /**
10894
- * @param appLogsToInsert It needs to be mutable because it will be sorted
10894
+ * Insert raw applogs directly into the thread.
10895
+ *
10896
+ * STRICT VALIDATION: This method throws errors for:
10897
+ * - Duplicate applogs in input array (programming error)
10898
+ * - Invalid applogs (missing required fields)
10899
+ * - Applogs already in thread (programming error)
10900
+ *
10901
+ * For external imports where duplicates are expected, use removeDuplicateAppLogs()
10902
+ * before calling this method.
10903
+ *
10904
+ * @param appLogsToInsert Must be deduplicated and validated. Needs to be mutable because it will be sorted
10895
10905
  * (and if you need to clone it, so do it when you need to) - this is weird as TS is slathering type safety onto ducks
10906
+ * @throws Error if validation fails
10896
10907
  */
10897
10908
  insertRaw(appLogsToInsert) {
10898
10909
  DEBUG8(`[WriteableThread.insertRaw] ENTER - ${appLogsToInsert.length} applogs for thread "${this.name}"`);
@@ -11200,4 +11211,4 @@ lodash-es/lodash.js:
11200
11211
  @noble/hashes/utils.js:
11201
11212
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
11202
11213
  */
11203
- //# sourceMappingURL=chunk-AOM4CWTC.min.js.map
11214
+ //# sourceMappingURL=chunk-QUZMTKEG.min.js.map