@wovin/core 0.1.7 → 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.
- package/README.md +15 -0
- package/dist/applog.min.js +1 -1
- package/dist/{chunk-B6GB52LJ.min.js → chunk-5ILLZTSY.min.js} +3 -3
- package/dist/{chunk-PANN7XTE.min.js → chunk-6T25Z3DG.min.js} +2 -2
- package/dist/{chunk-BEFJYVDW.min.js → chunk-CT54AE2F.min.js} +2 -2
- package/dist/{chunk-4APURYN7.min.js → chunk-PA775CGA.min.js} +2 -2
- package/dist/{chunk-AOM4CWTC.min.js → chunk-QUZMTKEG.min.js} +13 -2
- package/dist/{chunk-AOM4CWTC.min.js.map → chunk-QUZMTKEG.min.js.map} +1 -1
- package/dist/{chunk-MDWDKXLU.min.js → chunk-WKMJF43O.min.js} +2 -2
- package/dist/index.min.js +6 -6
- package/dist/ipfs.min.js +4 -4
- package/dist/pubsub.min.js +4 -4
- package/dist/query.min.js +3 -3
- package/dist/thread/writeable.d.ts +12 -1
- package/dist/thread/writeable.d.ts.map +1 -1
- package/dist/thread.min.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-B6GB52LJ.min.js.map → chunk-5ILLZTSY.min.js.map} +0 -0
- /package/dist/{chunk-PANN7XTE.min.js.map → chunk-6T25Z3DG.min.js.map} +0 -0
- /package/dist/{chunk-BEFJYVDW.min.js.map → chunk-CT54AE2F.min.js.map} +0 -0
- /package/dist/{chunk-4APURYN7.min.js.map → chunk-PA775CGA.min.js.map} +0 -0
- /package/dist/{chunk-MDWDKXLU.min.js.map → chunk-WKMJF43O.min.js.map} +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @wovin/core
|
|
2
|
+
|
|
3
|
+
Core utilities and types for Wovin applications.
|
|
4
|
+
|
|
5
|
+
## MobX Configuration
|
|
6
|
+
|
|
7
|
+
This package configures MobX with strict mode enabled (`enforceActions: 'always'`). To use non-strict mode in your application, override the configuration after importing:
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { configure } from '@wovin/core/mobx'
|
|
11
|
+
|
|
12
|
+
configure({
|
|
13
|
+
enforceActions: 'never'
|
|
14
|
+
})
|
|
15
|
+
```
|
package/dist/applog.min.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-QPGEBDMJ.min.js";
|
|
4
4
|
import {
|
|
5
5
|
lastWriteWins
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
4122
|
+
//# sourceMappingURL=chunk-5ILLZTSY.min.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createDebugName,
|
|
5
5
|
g,
|
|
6
6
|
observableArrayMap
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
510
|
+
//# sourceMappingURL=chunk-CT54AE2F.min.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
areCidsEqual,
|
|
4
4
|
decode,
|
|
5
5
|
g
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
*
|
|
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-
|
|
11214
|
+
//# sourceMappingURL=chunk-QUZMTKEG.min.js.map
|