@wovin/core 0.0.5 → 0.0.7
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/dist/applog/applog-helpers.d.ts +4 -4
- package/dist/applog/applog-helpers.d.ts.map +1 -1
- package/dist/applog.min.js +1 -1
- package/dist/chunk-5O6HLH5H.min.js +2 -0
- package/dist/chunk-5O6HLH5H.min.js.map +1 -0
- package/dist/chunk-6WLDICQ6.min.js +2 -0
- package/dist/chunk-6WLDICQ6.min.js.map +1 -0
- package/dist/chunk-O7KDPKK2.min.js +2 -0
- package/dist/chunk-O7KDPKK2.min.js.map +1 -0
- package/dist/chunk-XQUJRFOK.min.js +45 -0
- package/dist/{chunk-FPUMKLJ4.min.js.map → chunk-XQUJRFOK.min.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/mobx/mobx-utils.d.ts +19 -12
- package/dist/mobx/mobx-utils.d.ts.map +1 -1
- package/dist/pubsub/publication.d.ts +2 -2
- package/dist/pubsub/publication.d.ts.map +1 -1
- package/dist/pubsub.min.js +1 -1
- package/dist/query/basic.d.ts +28 -26
- package/dist/query/basic.d.ts.map +1 -1
- package/dist/query/divergences.d.ts +5 -5
- package/dist/query/divergences.d.ts.map +1 -1
- package/dist/query.min.js +1 -1
- package/dist/thread/basic.d.ts +36 -0
- package/dist/thread/basic.d.ts.map +1 -0
- package/dist/thread/filters.d.ts +40 -0
- package/dist/thread/filters.d.ts.map +1 -0
- package/dist/thread/mapped.d.ts +19 -0
- package/dist/thread/mapped.d.ts.map +1 -0
- package/dist/thread/writeable.d.ts +17 -0
- package/dist/thread/writeable.d.ts.map +1 -0
- package/dist/thread.d.ts +5 -0
- package/dist/thread.d.ts.map +1 -0
- package/dist/thread.min.js +2 -0
- package/dist/types/typescript-utils.d.ts +2 -2
- package/dist/types/typescript-utils.d.ts.map +1 -1
- package/dist/types.min.js +1 -1
- package/package.json +83 -83
- package/dist/chunk-3DTRPG63.min.js +0 -2
- package/dist/chunk-3DTRPG63.min.js.map +0 -1
- package/dist/chunk-FPUMKLJ4.min.js +0 -45
- package/dist/chunk-MBXUXVXG.min.js +0 -2
- package/dist/chunk-MBXUXVXG.min.js.map +0 -1
- package/dist/chunk-PMJNK5VR.min.js +0 -2
- package/dist/chunk-PMJNK5VR.min.js.map +0 -1
- package/dist/stream/basic.d.ts +0 -36
- package/dist/stream/basic.d.ts.map +0 -1
- package/dist/stream/filters.d.ts +0 -38
- package/dist/stream/filters.d.ts.map +0 -1
- package/dist/stream/mapped.d.ts +0 -19
- package/dist/stream/mapped.d.ts.map +0 -1
- package/dist/stream/writeable.d.ts +0 -17
- package/dist/stream/writeable.d.ts.map +0 -1
- package/dist/stream.d.ts +0 -5
- package/dist/stream.d.ts.map +0 -1
- package/dist/stream.min.js +0 -2
- /package/dist/{stream.min.js.map → thread.min.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
2
|
+
"name": "@wovin/core",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.min.js",
|
|
6
|
+
"module": "./dist/index.min.js",
|
|
7
|
+
"browser": "./dist/index.min.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.min.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./applog": {
|
|
15
|
+
"import": "./dist/applog.min.js",
|
|
16
|
+
"types": "./dist/applog.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./ipfs": {
|
|
19
|
+
"import": "./dist/ipfs.min.js",
|
|
20
|
+
"types": "./dist/ipfs.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./pubsub": {
|
|
23
|
+
"import": "./dist/pubsub.min.js",
|
|
24
|
+
"types": "./dist/pubsub.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./query": {
|
|
27
|
+
"import": "./dist/query.min.js",
|
|
28
|
+
"types": "./dist/query.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./thread": {
|
|
31
|
+
"import": "./dist/thread.min.js",
|
|
32
|
+
"types": "./dist/thread.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./types": {
|
|
35
|
+
"import": "./dist/types.min.js",
|
|
36
|
+
"types": "./dist/types.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./utils": {
|
|
39
|
+
"import": "./dist/utils.min.js",
|
|
40
|
+
"types": "./dist/utils.d.ts"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"./dist/"
|
|
45
|
+
],
|
|
46
|
+
"esm.sh": {
|
|
47
|
+
"bundle": false
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"mobx": "^6.12.0",
|
|
51
|
+
"@sinclair/typebox": "^0.31.28"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@ipld/car": "^5.2.4",
|
|
55
|
+
"@ipld/dag-json": "^10.1.5",
|
|
56
|
+
"@noble/hashes": "^1.3.2",
|
|
57
|
+
"besonders-logger": "1.0.0-RC11",
|
|
58
|
+
"date-fns": "^2.30.0",
|
|
59
|
+
"lodash-es": "^4.17.21",
|
|
60
|
+
"mobx-utils": "^6.0.8",
|
|
61
|
+
"multiformats": "^12.1.3",
|
|
62
|
+
"safe-stable-stringify": "^2.4.3"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/lodash-es": "^4.17.12",
|
|
66
|
+
"concurrently": "^8.2.2",
|
|
67
|
+
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
68
|
+
"tsup": "^8.0.1",
|
|
69
|
+
"typescript": "^5.0.2",
|
|
70
|
+
"vite": "^4.4.5",
|
|
71
|
+
"tsupconfig": "^0.0.0"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "rm -rf dist/ && concurrently \"pnpm build:code\" \"pnpm build:types\"",
|
|
75
|
+
"build:code": "tsup --minify",
|
|
76
|
+
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
77
|
+
"dev": "concurrently \"pnpm dev:code\" \"pnpm dev:types\"",
|
|
78
|
+
"dev:code": "tsup --watch",
|
|
79
|
+
"dev:types": "tsc --emitDeclarationOnly --declaration --watch",
|
|
80
|
+
"lint": "eslint .",
|
|
81
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
82
|
+
"pub": "npm publish --tag latest --access=public"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{H as T,T as y,U as l}from"./chunk-FPUMKLJ4.min.js";import{b as p}from"./chunk-G3GOAFHU.min.js";var e=p(y(),1),a=p(l(),1);var g=a.TypeSystem.Type("ApplogStream",(n,t)=>t instanceof T)(),{String:c,Optional:x,Boolean:f,Object:m,Number:u}=e.Type,o=c.bind(e.Type),r=u.bind(e.Type),b=m.bind(e.Type),O=x.bind(e.Type),B=f.bind(e.Type),S=o(),k=r(),P=B(),D=!0,N=!1;function j(){let n=o(),t=o(),s=r(),i=r();console.log({s1:n,s2:t,n1:s,n2:i})}export{g as a,o as b,r as c,b as d,O as e,B as f,S as g,k as h,P as i,D as j,N as k,j as l};
|
|
2
|
-
//# sourceMappingURL=chunk-3DTRPG63.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/typescript-utils.ts"],"sourcesContent":["import { Type as T } from '@sinclair/typebox'\nimport { TypeSystem } from '@sinclair/typebox/system'\nimport type { CID } from 'multiformats'\nimport { ApplogStream } from '../stream'\n\nexport const ApplogStreamTB = TypeSystem.Type<ApplogStream>('ApplogStream', (options, value) => {\n\treturn value instanceof ApplogStream\n})()\nconst { String: StringTB, Optional: OptionalTB, Boolean: BooleanTB, Object: ObjectTB, Number: NumberTB } = T\nexport const Str: typeof StringTB = StringTB.bind(T)\nexport const Num: typeof NumberTB = NumberTB.bind(T)\nexport const Obj: typeof ObjectTB = ObjectTB.bind(T)\nexport const Opt: typeof OptionalTB = OptionalTB.bind(T)\nexport const Bool: typeof BooleanTB = BooleanTB.bind(T)\n\nexport const STR: ReturnType<typeof T.String> = Str()\nexport const NUM: ReturnType<typeof T.Number> = Num()\nexport const BOOL: ReturnType<typeof T.Boolean> = Bool()\n\nexport type DefaultTrue = true | boolean\nexport const DefaultTrue: DefaultTrue = true\n\nexport type DefaultFalse = false | boolean\nexport const DefaultFalse: DefaultFalse = false\n\nexport type GenericObject = Record<string, any>\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>\nexport type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>\nexport type PromiseType<T extends Promise<any>> = T extends Promise<infer U> ? U : never\n\nexport type CoerceToString<T> = T extends string ? T : never\n\n/**\n * Define nominal type of U based on type of T. Similar to Opaque types in Flow\n */\nexport type Tagged<T, Tag> = T & { tag?: Tag }\n\n// export interface Service {\n// \tendpoint?: URL\n// \ttoken: string\n// \trateLimiter?: RateLimiter\n// \tfetch?: typeof _fetch\n// }\n\n// https://stackoverflow.com/a/76276541\nexport type LastElementOf<T extends readonly unknown[]> = T extends readonly [...unknown[], infer Last] ? Last : never\n\nexport function checkParityTB() {\n\t/* Most examples are constantly calling Type.*() - needed to check if its really needed\n https://github.com/sinclairzx81/typebox/issues/587#issuecomment-1712457623\n */\n\tconst s1 = Str()\n\tconst s2 = Str()\n\tconst n1 = Num()\n\tconst n2 = Num()\n\tconsole.log({ s1, s2, n1, n2 })\n}\n\n/** solidjs Setter requires returning something, which I often don't */\nexport type GenericSetter<T> = (newValue: T) => void\n"],"mappings":"sGAAA,IAAAA,EAA0B,SAC1BC,EAA2B,SAIpB,IAAMC,EAAiB,aAAW,KAAmB,eAAgB,CAACC,EAASC,IAC9EA,aAAiBC,CACxB,EAAE,EACG,CAAE,OAAQC,EAAU,SAAUC,EAAY,QAASC,EAAW,OAAQC,EAAU,OAAQC,CAAS,EAAI,EAAAC,KAC9FC,EAAuBN,EAAS,KAAK,EAAAK,IAAC,EACtCE,EAAuBH,EAAS,KAAK,EAAAC,IAAC,EACtCG,EAAuBL,EAAS,KAAK,EAAAE,IAAC,EACtCI,EAAyBR,EAAW,KAAK,EAAAI,IAAC,EAC1CK,EAAyBR,EAAU,KAAK,EAAAG,IAAC,EAEzCM,EAAmCL,EAAI,EACvCM,EAAmCL,EAAI,EACvCM,EAAqCH,EAAK,EAG1CI,EAA2B,GAG3BC,EAA6B,GAwBnC,SAASC,GAAgB,CAI/B,IAAMC,EAAKX,EAAI,EACTY,EAAKZ,EAAI,EACTa,EAAKZ,EAAI,EACTa,EAAKb,EAAI,EACf,QAAQ,IAAI,CAAE,GAAAU,EAAI,GAAAC,EAAI,GAAAC,EAAI,GAAAC,CAAG,CAAC,CAC/B","names":["import_typebox","import_system","ApplogStreamTB","options","value","ApplogStream","StringTB","OptionalTB","BooleanTB","ObjectTB","NumberTB","T","Str","Num","Obj","Opt","Bool","STR","NUM","BOOL","DefaultTrue","DefaultFalse","checkParityTB","s1","s2","n1","n2"]}
|