tinybase 8.1.0-beta.0 → 8.1.0-beta.2
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/@types/_internal/ui/index.d.ts +0 -0
- package/@types/_internal/ui/with-schemas/index.d.ts +47 -0
- package/@types/_internal/ui-react/with-schemas/index.d.ts +9 -31
- package/@types/omni/index.d.ts +0 -3
- package/@types/omni/with-schemas/index.d.ts +0 -3
- package/@types/ui-react/with-schemas/index.d.ts +10 -8
- package/@types/ui-react-dom/with-schemas/index.d.ts +6 -4
- package/@types/ui-svelte/index.d.ts +3484 -0
- package/@types/ui-svelte/with-schemas/index.d.ts +3628 -0
- package/checkpoints/index.js +4 -1
- package/checkpoints/with-schemas/index.js +4 -1
- package/common/index.js +4 -1
- package/common/with-schemas/index.js +4 -1
- package/index.js +4 -1
- package/indexes/index.js +4 -1
- package/indexes/with-schemas/index.js +4 -1
- package/mergeable-store/index.js +4 -1
- package/mergeable-store/with-schemas/index.js +4 -1
- package/metrics/index.js +4 -1
- package/metrics/with-schemas/index.js +4 -1
- package/min/omni/index.js +1 -1
- package/min/omni/index.js.gz +0 -0
- package/min/omni/with-schemas/index.js +1 -1
- package/min/omni/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-svelte/index.js +1 -0
- package/min/ui-svelte/index.js.gz +0 -0
- package/min/ui-svelte/with-schemas/index.js +1 -0
- package/min/ui-svelte/with-schemas/index.js.gz +0 -0
- package/omni/index.js +11 -4739
- package/omni/with-schemas/index.js +11 -4739
- package/package.json +47 -7
- package/persisters/index.js +4 -1
- package/persisters/persister-automerge/index.js +4 -1
- package/persisters/persister-automerge/with-schemas/index.js +4 -1
- package/persisters/persister-browser/index.js +4 -1
- package/persisters/persister-browser/with-schemas/index.js +4 -1
- package/persisters/persister-cr-sqlite-wasm/index.js +4 -1
- package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +4 -1
- package/persisters/persister-durable-object-sql-storage/index.js +4 -1
- package/persisters/persister-durable-object-sql-storage/with-schemas/index.js +4 -1
- package/persisters/persister-durable-object-storage/index.js +4 -1
- package/persisters/persister-durable-object-storage/with-schemas/index.js +4 -1
- package/persisters/persister-electric-sql/index.js +4 -1
- package/persisters/persister-electric-sql/with-schemas/index.js +4 -1
- package/persisters/persister-expo-sqlite/index.js +4 -1
- package/persisters/persister-expo-sqlite/with-schemas/index.js +4 -1
- package/persisters/persister-file/index.js +4 -1
- package/persisters/persister-file/with-schemas/index.js +4 -1
- package/persisters/persister-indexed-db/index.js +4 -1
- package/persisters/persister-indexed-db/with-schemas/index.js +4 -1
- package/persisters/persister-libsql/index.js +4 -1
- package/persisters/persister-libsql/with-schemas/index.js +4 -1
- package/persisters/persister-partykit-client/index.js +4 -1
- package/persisters/persister-partykit-client/with-schemas/index.js +4 -1
- package/persisters/persister-partykit-server/index.js +4 -1
- package/persisters/persister-partykit-server/with-schemas/index.js +4 -1
- package/persisters/persister-pglite/index.js +4 -1
- package/persisters/persister-pglite/with-schemas/index.js +4 -1
- package/persisters/persister-postgres/index.js +4 -1
- package/persisters/persister-postgres/with-schemas/index.js +4 -1
- package/persisters/persister-powersync/index.js +4 -1
- package/persisters/persister-powersync/with-schemas/index.js +4 -1
- package/persisters/persister-react-native-mmkv/index.js +4 -1
- package/persisters/persister-react-native-mmkv/with-schemas/index.js +4 -1
- package/persisters/persister-react-native-sqlite/index.js +4 -1
- package/persisters/persister-react-native-sqlite/with-schemas/index.js +4 -1
- package/persisters/persister-remote/index.js +4 -1
- package/persisters/persister-remote/with-schemas/index.js +4 -1
- package/persisters/persister-sqlite-bun/index.js +4 -1
- package/persisters/persister-sqlite-bun/with-schemas/index.js +4 -1
- package/persisters/persister-sqlite-wasm/index.js +4 -1
- package/persisters/persister-sqlite-wasm/with-schemas/index.js +4 -1
- package/persisters/persister-sqlite3/index.js +4 -1
- package/persisters/persister-sqlite3/with-schemas/index.js +4 -1
- package/persisters/persister-yjs/index.js +4 -1
- package/persisters/persister-yjs/with-schemas/index.js +4 -1
- package/persisters/with-schemas/index.js +4 -1
- package/queries/index.js +4 -1
- package/queries/with-schemas/index.js +4 -1
- package/readme.md +14 -14
- package/relationships/index.js +4 -1
- package/relationships/with-schemas/index.js +4 -1
- package/releases.md +70 -44
- package/schematizers/index.js +4 -1
- package/schematizers/schematizer-arktype/index.js +4 -1
- package/schematizers/schematizer-arktype/with-schemas/index.js +4 -1
- package/schematizers/schematizer-effect/index.js +4 -1
- package/schematizers/schematizer-effect/with-schemas/index.js +4 -1
- package/schematizers/schematizer-typebox/index.js +4 -1
- package/schematizers/schematizer-typebox/with-schemas/index.js +4 -1
- package/schematizers/schematizer-valibot/index.js +4 -1
- package/schematizers/schematizer-valibot/with-schemas/index.js +4 -1
- package/schematizers/schematizer-yup/index.js +4 -1
- package/schematizers/schematizer-yup/with-schemas/index.js +4 -1
- package/schematizers/schematizer-zod/index.js +4 -1
- package/schematizers/schematizer-zod/with-schemas/index.js +4 -1
- package/schematizers/with-schemas/index.js +4 -1
- package/store/index.js +4 -1
- package/store/with-schemas/index.js +4 -1
- package/synchronizers/index.js +4 -1
- package/synchronizers/synchronizer-broadcast-channel/index.js +4 -1
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +4 -1
- package/synchronizers/synchronizer-local/index.js +4 -1
- package/synchronizers/synchronizer-local/with-schemas/index.js +4 -1
- package/synchronizers/synchronizer-ws-client/index.js +4 -1
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +4 -1
- package/synchronizers/synchronizer-ws-server/index.js +4 -1
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +4 -1
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +4 -1
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +4 -1
- package/synchronizers/synchronizer-ws-server-simple/index.js +4 -1
- package/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js +4 -1
- package/synchronizers/with-schemas/index.js +4 -1
- package/ui-react/index.js +100 -100
- package/ui-react/with-schemas/index.js +100 -100
- package/ui-react-dom/index.js +4 -1
- package/ui-react-dom/with-schemas/index.js +4 -1
- package/ui-react-inspector/index.js +4 -1
- package/ui-react-inspector/with-schemas/index.js +4 -1
- package/ui-svelte/index.js +2684 -0
- package/ui-svelte/with-schemas/index.js +2684 -0
- package/with-schemas/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinybase",
|
|
3
|
-
"version": "8.1.0-beta.
|
|
3
|
+
"version": "8.1.0-beta.2",
|
|
4
4
|
"author": "jamesgpearce",
|
|
5
5
|
"repository": "github:tinyplex/tinybase",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@automerge/automerge-repo": "^2.5.3",
|
|
25
|
-
"@cloudflare/workers-types": "^4.
|
|
26
|
-
"@electric-sql/pglite": "^0.3.
|
|
25
|
+
"@cloudflare/workers-types": "^4.20260312.1",
|
|
26
|
+
"@electric-sql/pglite": "^0.3.16",
|
|
27
27
|
"@libsql/client": "^0.17.0",
|
|
28
|
-
"@powersync/common": "^1.
|
|
28
|
+
"@powersync/common": "^1.49.0",
|
|
29
29
|
"@sinclair/typebox": "^0.34.48",
|
|
30
|
-
"@sqlite.org/sqlite-wasm": "^3.51.2-
|
|
30
|
+
"@sqlite.org/sqlite-wasm": "^3.51.2-build7",
|
|
31
31
|
"@vlcn.io/crsqlite-wasm": "^0.16.0",
|
|
32
32
|
"arktype": "^2.2.0",
|
|
33
33
|
"bun": "^1.3.10",
|
|
34
34
|
"effect": "^3.19.19",
|
|
35
35
|
"electric-sql": "^0.12.1",
|
|
36
|
-
"expo": "^55.0.
|
|
36
|
+
"expo": "^55.0.6",
|
|
37
37
|
"expo-sqlite": "^55.0.10",
|
|
38
38
|
"partykit": "^0.0.115",
|
|
39
39
|
"partysocket": "^1.1.16",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"react-dom": "^19.2.4",
|
|
43
43
|
"react-native-mmkv": "4.2.0",
|
|
44
44
|
"react-native-sqlite-storage": "^6.0.1",
|
|
45
|
-
"sqlite3": "^
|
|
45
|
+
"sqlite3": "^6.0.1",
|
|
46
|
+
"svelte": "^5.53.11",
|
|
46
47
|
"valibot": "^1.2.0",
|
|
47
48
|
"ws": "^8.19.0",
|
|
48
49
|
"yjs": "^13.6.29",
|
|
@@ -115,6 +116,9 @@
|
|
|
115
116
|
"sqlite3": {
|
|
116
117
|
"optional": true
|
|
117
118
|
},
|
|
119
|
+
"svelte": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
118
122
|
"valibot": {
|
|
119
123
|
"optional": true
|
|
120
124
|
},
|
|
@@ -438,6 +442,12 @@
|
|
|
438
442
|
"ui-react/with-schemas": [
|
|
439
443
|
"./@types/ui-react/with-schemas/index.d.ts"
|
|
440
444
|
],
|
|
445
|
+
"ui-svelte": [
|
|
446
|
+
"./@types/ui-svelte/index.d.ts"
|
|
447
|
+
],
|
|
448
|
+
"ui-svelte/with-schemas": [
|
|
449
|
+
"./@types/ui-svelte/with-schemas/index.d.ts"
|
|
450
|
+
],
|
|
441
451
|
"min": [
|
|
442
452
|
"./@types/index.d.ts"
|
|
443
453
|
],
|
|
@@ -743,6 +753,12 @@
|
|
|
743
753
|
],
|
|
744
754
|
"min/ui-react/with-schemas": [
|
|
745
755
|
"./@types/ui-react/with-schemas/index.d.ts"
|
|
756
|
+
],
|
|
757
|
+
"min/ui-svelte": [
|
|
758
|
+
"./@types/ui-svelte/index.d.ts"
|
|
759
|
+
],
|
|
760
|
+
"min/ui-svelte/with-schemas": [
|
|
761
|
+
"./@types/ui-svelte/with-schemas/index.d.ts"
|
|
746
762
|
]
|
|
747
763
|
}
|
|
748
764
|
},
|
|
@@ -1359,6 +1375,18 @@
|
|
|
1359
1375
|
"default": "./ui-react/index.js"
|
|
1360
1376
|
}
|
|
1361
1377
|
},
|
|
1378
|
+
"./ui-svelte": {
|
|
1379
|
+
"default": {
|
|
1380
|
+
"types": "./@types/ui-svelte/index.d.ts",
|
|
1381
|
+
"default": "./ui-svelte/index.js"
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
"./ui-svelte/with-schemas": {
|
|
1385
|
+
"default": {
|
|
1386
|
+
"types": "./@types/ui-svelte/with-schemas/index.d.ts",
|
|
1387
|
+
"default": "./ui-svelte/index.js"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1362
1390
|
"./min": {
|
|
1363
1391
|
"default": {
|
|
1364
1392
|
"types": "./@types/index.d.ts",
|
|
@@ -1970,6 +1998,18 @@
|
|
|
1970
1998
|
"types": "./@types/ui-react/with-schemas/index.d.ts",
|
|
1971
1999
|
"default": "./min/ui-react/index.js"
|
|
1972
2000
|
}
|
|
2001
|
+
},
|
|
2002
|
+
"./min/ui-svelte": {
|
|
2003
|
+
"default": {
|
|
2004
|
+
"types": "./@types/ui-svelte/index.d.ts",
|
|
2005
|
+
"default": "./min/ui-svelte/index.js"
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"./min/ui-svelte/with-schemas": {
|
|
2009
|
+
"default": {
|
|
2010
|
+
"types": "./@types/ui-svelte/with-schemas/index.d.ts",
|
|
2011
|
+
"default": "./min/ui-svelte/index.js"
|
|
2012
|
+
}
|
|
1973
2013
|
}
|
|
1974
2014
|
}
|
|
1975
2015
|
}
|
package/persisters/index.js
CHANGED
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const GLOBAL = globalThis;
|
|
19
22
|
const THOUSAND = 1e3;
|
|
20
23
|
const startInterval = (callback, sec, immediate) => {
|
|
@@ -2,7 +2,10 @@ const TINYBASE = 'tinybase';
|
|
|
2
2
|
const EMPTY_STRING = '';
|
|
3
3
|
|
|
4
4
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
5
|
-
predicate(value)
|
|
5
|
+
predicate(value)
|
|
6
|
+
? /* istanbul ignore next */
|
|
7
|
+
otherwise?.()
|
|
8
|
+
: then(value);
|
|
6
9
|
const isNullish = (thing) => thing == null;
|
|
7
10
|
const isUndefined = (thing) => thing === void 0;
|
|
8
11
|
const isNull = (thing) => thing === null;
|
|
@@ -2,7 +2,10 @@ const TINYBASE = 'tinybase';
|
|
|
2
2
|
const EMPTY_STRING = '';
|
|
3
3
|
|
|
4
4
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
5
|
-
predicate(value)
|
|
5
|
+
predicate(value)
|
|
6
|
+
? /* istanbul ignore next */
|
|
7
|
+
otherwise?.()
|
|
8
|
+
: then(value);
|
|
6
9
|
const isNullish = (thing) => thing == null;
|
|
7
10
|
const isUndefined = (thing) => thing === void 0;
|
|
8
11
|
const isNull = (thing) => thing === null;
|
|
@@ -2,7 +2,10 @@ const EMPTY_STRING = '';
|
|
|
2
2
|
const UNDEFINED = '\uFFFC';
|
|
3
3
|
|
|
4
4
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
5
|
-
predicate(value)
|
|
5
|
+
predicate(value)
|
|
6
|
+
? /* istanbul ignore next */
|
|
7
|
+
otherwise?.()
|
|
8
|
+
: then(value);
|
|
6
9
|
const GLOBAL = globalThis;
|
|
7
10
|
const WINDOW = GLOBAL.window;
|
|
8
11
|
const isNullish = (thing) => thing == null;
|
|
@@ -2,7 +2,10 @@ const EMPTY_STRING = '';
|
|
|
2
2
|
const UNDEFINED = '\uFFFC';
|
|
3
3
|
|
|
4
4
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
5
|
-
predicate(value)
|
|
5
|
+
predicate(value)
|
|
6
|
+
? /* istanbul ignore next */
|
|
7
|
+
otherwise?.()
|
|
8
|
+
: then(value);
|
|
6
9
|
const GLOBAL = globalThis;
|
|
7
10
|
const WINDOW = GLOBAL.window;
|
|
8
11
|
const isNullish = (thing) => thing == null;
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const THOUSAND = 1e3;
|
|
19
22
|
const startInterval = (callback, sec, immediate) => {
|
|
20
23
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const THOUSAND = 1e3;
|
|
19
22
|
const startInterval = (callback, sec, immediate) => {
|
|
20
23
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -5,7 +5,10 @@ const UNDEFINED = '\uFFFC';
|
|
|
5
5
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
6
6
|
|
|
7
7
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
8
|
-
predicate(value)
|
|
8
|
+
predicate(value)
|
|
9
|
+
? /* istanbul ignore next */
|
|
10
|
+
otherwise?.()
|
|
11
|
+
: then(value);
|
|
9
12
|
const isNullish = (thing) => thing == null;
|
|
10
13
|
const isUndefined = (thing) => thing === void 0;
|
|
11
14
|
const isNull = (thing) => thing === null;
|
|
@@ -5,7 +5,10 @@ const UNDEFINED = '\uFFFC';
|
|
|
5
5
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
6
6
|
|
|
7
7
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
8
|
-
predicate(value)
|
|
8
|
+
predicate(value)
|
|
9
|
+
? /* istanbul ignore next */
|
|
10
|
+
otherwise?.()
|
|
11
|
+
: then(value);
|
|
9
12
|
const isNullish = (thing) => thing == null;
|
|
10
13
|
const isUndefined = (thing) => thing === void 0;
|
|
11
14
|
const isNull = (thing) => thing === null;
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -15,7 +15,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
15
15
|
|
|
16
16
|
const promise = Promise;
|
|
17
17
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
18
|
-
predicate(value)
|
|
18
|
+
predicate(value)
|
|
19
|
+
? /* istanbul ignore next */
|
|
20
|
+
otherwise?.()
|
|
21
|
+
: then(value);
|
|
19
22
|
const THOUSAND = 1e3;
|
|
20
23
|
const startInterval = (callback, sec, immediate) => {
|
|
21
24
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -15,7 +15,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
15
15
|
|
|
16
16
|
const promise = Promise;
|
|
17
17
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
18
|
-
predicate(value)
|
|
18
|
+
predicate(value)
|
|
19
|
+
? /* istanbul ignore next */
|
|
20
|
+
otherwise?.()
|
|
21
|
+
: then(value);
|
|
19
22
|
const THOUSAND = 1e3;
|
|
20
23
|
const startInterval = (callback, sec, immediate) => {
|
|
21
24
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -6,7 +6,10 @@ const UTF8 = 'utf8';
|
|
|
6
6
|
const UNDEFINED = '\uFFFC';
|
|
7
7
|
|
|
8
8
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
9
|
-
predicate(value)
|
|
9
|
+
predicate(value)
|
|
10
|
+
? /* istanbul ignore next */
|
|
11
|
+
otherwise?.()
|
|
12
|
+
: then(value);
|
|
10
13
|
const isNullish = (thing) => thing == null;
|
|
11
14
|
const isUndefined = (thing) => thing === void 0;
|
|
12
15
|
const isNull = (thing) => thing === null;
|
|
@@ -6,7 +6,10 @@ const UTF8 = 'utf8';
|
|
|
6
6
|
const UNDEFINED = '\uFFFC';
|
|
7
7
|
|
|
8
8
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
9
|
-
predicate(value)
|
|
9
|
+
predicate(value)
|
|
10
|
+
? /* istanbul ignore next */
|
|
11
|
+
otherwise?.()
|
|
12
|
+
: then(value);
|
|
10
13
|
const isNullish = (thing) => thing == null;
|
|
11
14
|
const isUndefined = (thing) => thing === void 0;
|
|
12
15
|
const isNull = (thing) => thing === null;
|
|
@@ -4,7 +4,10 @@ const V = 'v';
|
|
|
4
4
|
|
|
5
5
|
const promise = Promise;
|
|
6
6
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
7
|
-
predicate(value)
|
|
7
|
+
predicate(value)
|
|
8
|
+
? /* istanbul ignore next */
|
|
9
|
+
otherwise?.()
|
|
10
|
+
: then(value);
|
|
8
11
|
const GLOBAL = globalThis;
|
|
9
12
|
const WINDOW = GLOBAL.window;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
@@ -4,7 +4,10 @@ const V = 'v';
|
|
|
4
4
|
|
|
5
5
|
const promise = Promise;
|
|
6
6
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
7
|
-
predicate(value)
|
|
7
|
+
predicate(value)
|
|
8
|
+
? /* istanbul ignore next */
|
|
9
|
+
otherwise?.()
|
|
10
|
+
: then(value);
|
|
8
11
|
const GLOBAL = globalThis;
|
|
9
12
|
const WINDOW = GLOBAL.window;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -6,7 +6,10 @@ const UNDEFINED = '\uFFFC';
|
|
|
6
6
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
7
7
|
|
|
8
8
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
9
|
-
predicate(value)
|
|
9
|
+
predicate(value)
|
|
10
|
+
? /* istanbul ignore next */
|
|
11
|
+
otherwise?.()
|
|
12
|
+
: then(value);
|
|
10
13
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
|
11
14
|
const isNullish = (thing) => thing == null;
|
|
12
15
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -6,7 +6,10 @@ const UNDEFINED = '\uFFFC';
|
|
|
6
6
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
7
7
|
|
|
8
8
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
9
|
-
predicate(value)
|
|
9
|
+
predicate(value)
|
|
10
|
+
? /* istanbul ignore next */
|
|
11
|
+
otherwise?.()
|
|
12
|
+
: then(value);
|
|
10
13
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
|
11
14
|
const isNullish = (thing) => thing == null;
|
|
12
15
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -8,7 +8,10 @@ const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
|
8
8
|
|
|
9
9
|
const promise = Promise;
|
|
10
10
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
11
|
-
predicate(value)
|
|
11
|
+
predicate(value)
|
|
12
|
+
? /* istanbul ignore next */
|
|
13
|
+
otherwise?.()
|
|
14
|
+
: then(value);
|
|
12
15
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
|
13
16
|
const isNullish = (thing) => thing == null;
|
|
14
17
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -8,7 +8,10 @@ const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
|
8
8
|
|
|
9
9
|
const promise = Promise;
|
|
10
10
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
11
|
-
predicate(value)
|
|
11
|
+
predicate(value)
|
|
12
|
+
? /* istanbul ignore next */
|
|
13
|
+
otherwise?.()
|
|
14
|
+
: then(value);
|
|
12
15
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
|
13
16
|
const isNullish = (thing) => thing == null;
|
|
14
17
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const GLOBAL = globalThis;
|
|
19
22
|
const isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const GLOBAL = globalThis;
|
|
19
22
|
const isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const GLOBAL = globalThis;
|
|
19
22
|
const isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -14,7 +14,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
14
14
|
|
|
15
15
|
const promise = Promise;
|
|
16
16
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
17
|
-
predicate(value)
|
|
17
|
+
predicate(value)
|
|
18
|
+
? /* istanbul ignore next */
|
|
19
|
+
otherwise?.()
|
|
20
|
+
: then(value);
|
|
18
21
|
const GLOBAL = globalThis;
|
|
19
22
|
const isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
2
|
|
|
3
3
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
4
|
-
predicate(value)
|
|
4
|
+
predicate(value)
|
|
5
|
+
? /* istanbul ignore next */
|
|
6
|
+
otherwise?.()
|
|
7
|
+
: then(value);
|
|
5
8
|
const isNullish = (thing) => thing == null;
|
|
6
9
|
const isUndefined = (thing) => thing === void 0;
|
|
7
10
|
const isNull = (thing) => thing === null;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
2
|
|
|
3
3
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
4
|
-
predicate(value)
|
|
4
|
+
predicate(value)
|
|
5
|
+
? /* istanbul ignore next */
|
|
6
|
+
otherwise?.()
|
|
7
|
+
: then(value);
|
|
5
8
|
const isNullish = (thing) => thing == null;
|
|
6
9
|
const isUndefined = (thing) => thing === void 0;
|
|
7
10
|
const isNull = (thing) => thing === null;
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
2
|
|
|
3
3
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
4
|
-
predicate(value)
|
|
4
|
+
predicate(value)
|
|
5
|
+
? /* istanbul ignore next */
|
|
6
|
+
otherwise?.()
|
|
7
|
+
: then(value);
|
|
5
8
|
const THOUSAND = 1e3;
|
|
6
9
|
const startInterval = (callback, sec, immediate) => {
|
|
7
10
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
2
|
|
|
3
3
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
4
|
-
predicate(value)
|
|
4
|
+
predicate(value)
|
|
5
|
+
? /* istanbul ignore next */
|
|
6
|
+
otherwise?.()
|
|
7
|
+
: then(value);
|
|
5
8
|
const THOUSAND = 1e3;
|
|
6
9
|
const startInterval = (callback, sec, immediate) => {
|
|
7
10
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|
|
@@ -13,7 +13,10 @@ const strReplace = (str, searchValue, replaceValue) =>
|
|
|
13
13
|
|
|
14
14
|
const promise = Promise;
|
|
15
15
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
16
|
-
predicate(value)
|
|
16
|
+
predicate(value)
|
|
17
|
+
? /* istanbul ignore next */
|
|
18
|
+
otherwise?.()
|
|
19
|
+
: then(value);
|
|
17
20
|
const THOUSAND = 1e3;
|
|
18
21
|
const startInterval = (callback, sec, immediate) => {
|
|
19
22
|
return setInterval(callback, sec * THOUSAND);
|