tinybase 8.1.0-beta.1 → 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 +1458 -222
- package/@types/ui-svelte/with-schemas/index.d.ts +2482 -406
- 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 -1
- package/min/ui-svelte/index.js.gz +0 -0
- package/min/ui-svelte/with-schemas/index.js +1 -1
- 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 +8 -8
- 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/relationships/index.js +4 -1
- package/relationships/with-schemas/index.js +4 -1
- 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 +1016 -347
- package/ui-svelte/with-schemas/index.js +1002 -333
- package/with-schemas/index.js +4 -1
package/queries/index.js
CHANGED
|
@@ -25,7 +25,10 @@ const CELL = 'Cell';
|
|
|
25
25
|
const CELL_IDS = CELL + IDS;
|
|
26
26
|
|
|
27
27
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
28
|
-
predicate(value)
|
|
28
|
+
predicate(value)
|
|
29
|
+
? /* istanbul ignore next */
|
|
30
|
+
otherwise?.()
|
|
31
|
+
: then(value);
|
|
29
32
|
const math = Math;
|
|
30
33
|
const mathMax = math.max;
|
|
31
34
|
const mathMin = math.min;
|
|
@@ -25,7 +25,10 @@ const CELL = 'Cell';
|
|
|
25
25
|
const CELL_IDS = CELL + IDS;
|
|
26
26
|
|
|
27
27
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
28
|
-
predicate(value)
|
|
28
|
+
predicate(value)
|
|
29
|
+
? /* istanbul ignore next */
|
|
30
|
+
otherwise?.()
|
|
31
|
+
: then(value);
|
|
29
32
|
const math = Math;
|
|
30
33
|
const mathMax = math.max;
|
|
31
34
|
const mathMin = math.min;
|
package/relationships/index.js
CHANGED
|
@@ -3,7 +3,10 @@ const EMPTY_STRING = '';
|
|
|
3
3
|
const STRING = getTypeOf(EMPTY_STRING);
|
|
4
4
|
|
|
5
5
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
6
|
-
predicate(value)
|
|
6
|
+
predicate(value)
|
|
7
|
+
? /* istanbul ignore next */
|
|
8
|
+
otherwise?.()
|
|
9
|
+
: then(value);
|
|
7
10
|
const isUndefined = (thing) => thing === void 0;
|
|
8
11
|
const isNull = (thing) => thing === null;
|
|
9
12
|
const ifNotUndefined = getIfNotFunction(isUndefined);
|
|
@@ -3,7 +3,10 @@ const EMPTY_STRING = '';
|
|
|
3
3
|
const STRING = getTypeOf(EMPTY_STRING);
|
|
4
4
|
|
|
5
5
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
6
|
-
predicate(value)
|
|
6
|
+
predicate(value)
|
|
7
|
+
? /* istanbul ignore next */
|
|
8
|
+
otherwise?.()
|
|
9
|
+
: then(value);
|
|
7
10
|
const isUndefined = (thing) => thing === void 0;
|
|
8
11
|
const isNull = (thing) => thing === null;
|
|
9
12
|
const ifNotUndefined = getIfNotFunction(isUndefined);
|
package/schematizers/index.js
CHANGED
|
@@ -10,7 +10,10 @@ const DEFAULT = 'default';
|
|
|
10
10
|
const ALLOW_NULL = 'allowNull';
|
|
11
11
|
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const isNullish = (thing) => thing == null;
|
|
15
18
|
const isUndefined = (thing) => thing === void 0;
|
|
16
19
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -17,7 +17,10 @@ const UNIT = 'unit';
|
|
|
17
17
|
const SEQUENCE = 'sequence';
|
|
18
18
|
|
|
19
19
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
20
|
-
predicate(value)
|
|
20
|
+
predicate(value)
|
|
21
|
+
? /* istanbul ignore next */
|
|
22
|
+
otherwise?.()
|
|
23
|
+
: then(value);
|
|
21
24
|
const isNullish = (thing) => thing == null;
|
|
22
25
|
const isUndefined = (thing) => thing === void 0;
|
|
23
26
|
const isNull = (thing) => thing === null;
|
|
@@ -17,7 +17,10 @@ const UNIT = 'unit';
|
|
|
17
17
|
const SEQUENCE = 'sequence';
|
|
18
18
|
|
|
19
19
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
20
|
-
predicate(value)
|
|
20
|
+
predicate(value)
|
|
21
|
+
? /* istanbul ignore next */
|
|
22
|
+
otherwise?.()
|
|
23
|
+
: then(value);
|
|
21
24
|
const isNullish = (thing) => thing == null;
|
|
22
25
|
const isUndefined = (thing) => thing === void 0;
|
|
23
26
|
const isNull = (thing) => thing === null;
|
|
@@ -18,7 +18,10 @@ const TYPE_LITERAL = 'TypeLiteral';
|
|
|
18
18
|
const UNION = 'Union';
|
|
19
19
|
|
|
20
20
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
21
|
-
predicate(value)
|
|
21
|
+
predicate(value)
|
|
22
|
+
? /* istanbul ignore next */
|
|
23
|
+
otherwise?.()
|
|
24
|
+
: then(value);
|
|
22
25
|
const isNullish = (thing) => thing == null;
|
|
23
26
|
const isUndefined = (thing) => thing === void 0;
|
|
24
27
|
const isNull = (thing) => thing === null;
|
|
@@ -18,7 +18,10 @@ const TYPE_LITERAL = 'TypeLiteral';
|
|
|
18
18
|
const UNION = 'Union';
|
|
19
19
|
|
|
20
20
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
21
|
-
predicate(value)
|
|
21
|
+
predicate(value)
|
|
22
|
+
? /* istanbul ignore next */
|
|
23
|
+
otherwise?.()
|
|
24
|
+
: then(value);
|
|
22
25
|
const isNullish = (thing) => thing == null;
|
|
23
26
|
const isUndefined = (thing) => thing === void 0;
|
|
24
27
|
const isNull = (thing) => thing === null;
|
|
@@ -12,7 +12,10 @@ const NULL = 'null';
|
|
|
12
12
|
const ANY_OF = 'anyOf';
|
|
13
13
|
|
|
14
14
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
15
|
-
predicate(value)
|
|
15
|
+
predicate(value)
|
|
16
|
+
? /* istanbul ignore next */
|
|
17
|
+
otherwise?.()
|
|
18
|
+
: then(value);
|
|
16
19
|
const isNullish = (thing) => thing == null;
|
|
17
20
|
const isUndefined = (thing) => thing === void 0;
|
|
18
21
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -12,7 +12,10 @@ const NULL = 'null';
|
|
|
12
12
|
const ANY_OF = 'anyOf';
|
|
13
13
|
|
|
14
14
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
15
|
-
predicate(value)
|
|
15
|
+
predicate(value)
|
|
16
|
+
? /* istanbul ignore next */
|
|
17
|
+
otherwise?.()
|
|
18
|
+
: then(value);
|
|
16
19
|
const isNullish = (thing) => thing == null;
|
|
17
20
|
const isUndefined = (thing) => thing === void 0;
|
|
18
21
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -15,7 +15,10 @@ const WRAPPED = 'wrapped';
|
|
|
15
15
|
const RECORD = 'record';
|
|
16
16
|
|
|
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 isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
21
24
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -15,7 +15,10 @@ const WRAPPED = 'wrapped';
|
|
|
15
15
|
const RECORD = 'record';
|
|
16
16
|
|
|
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 isNullish = (thing) => thing == null;
|
|
20
23
|
const isUndefined = (thing) => thing === void 0;
|
|
21
24
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -11,7 +11,10 @@ const ALLOW_NULL = 'allowNull';
|
|
|
11
11
|
const NULLABLE = 'nullable';
|
|
12
12
|
|
|
13
13
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
14
|
-
predicate(value)
|
|
14
|
+
predicate(value)
|
|
15
|
+
? /* istanbul ignore next */
|
|
16
|
+
otherwise?.()
|
|
17
|
+
: then(value);
|
|
15
18
|
const isNullish = (thing) => thing == null;
|
|
16
19
|
const isUndefined = (thing) => thing === void 0;
|
|
17
20
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -11,7 +11,10 @@ const ALLOW_NULL = 'allowNull';
|
|
|
11
11
|
const NULLABLE = 'nullable';
|
|
12
12
|
|
|
13
13
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
14
|
-
predicate(value)
|
|
14
|
+
predicate(value)
|
|
15
|
+
? /* istanbul ignore next */
|
|
16
|
+
otherwise?.()
|
|
17
|
+
: then(value);
|
|
15
18
|
const isNullish = (thing) => thing == null;
|
|
16
19
|
const isUndefined = (thing) => thing === void 0;
|
|
17
20
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -13,7 +13,10 @@ const OPTIONAL = 'optional';
|
|
|
13
13
|
const RECORD = 'record';
|
|
14
14
|
|
|
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 isNullish = (thing) => thing == null;
|
|
18
21
|
const isUndefined = (thing) => thing === void 0;
|
|
19
22
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -13,7 +13,10 @@ const OPTIONAL = 'optional';
|
|
|
13
13
|
const RECORD = 'record';
|
|
14
14
|
|
|
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 isNullish = (thing) => thing == null;
|
|
18
21
|
const isUndefined = (thing) => thing === void 0;
|
|
19
22
|
const ifNotNullish = getIfNotFunction(isNullish);
|
|
@@ -10,7 +10,10 @@ const DEFAULT = 'default';
|
|
|
10
10
|
const ALLOW_NULL = 'allowNull';
|
|
11
11
|
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const isNullish = (thing) => thing == null;
|
|
15
18
|
const isUndefined = (thing) => thing === void 0;
|
|
16
19
|
const ifNotNullish = getIfNotFunction(isNullish);
|
package/store/index.js
CHANGED
|
@@ -29,7 +29,10 @@ const JSON_PREFIX = '\uFFFD';
|
|
|
29
29
|
const id = (key) => EMPTY_STRING + key;
|
|
30
30
|
|
|
31
31
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
32
|
-
predicate(value)
|
|
32
|
+
predicate(value)
|
|
33
|
+
? /* istanbul ignore next */
|
|
34
|
+
otherwise?.()
|
|
35
|
+
: then(value);
|
|
33
36
|
const GLOBAL = globalThis;
|
|
34
37
|
const isFiniteNumber = isFinite;
|
|
35
38
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
|
@@ -29,7 +29,10 @@ const JSON_PREFIX = '\uFFFD';
|
|
|
29
29
|
const id = (key) => EMPTY_STRING + key;
|
|
30
30
|
|
|
31
31
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
32
|
-
predicate(value)
|
|
32
|
+
predicate(value)
|
|
33
|
+
? /* istanbul ignore next */
|
|
34
|
+
otherwise?.()
|
|
35
|
+
: then(value);
|
|
33
36
|
const GLOBAL = globalThis;
|
|
34
37
|
const isFiniteNumber = isFinite;
|
|
35
38
|
const isInstanceOf = (thing, cls) => thing instanceof cls;
|
package/synchronizers/index.js
CHANGED
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -10,7 +10,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
10
10
|
|
|
11
11
|
const promise = Promise;
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const GLOBAL = globalThis;
|
|
15
18
|
const THOUSAND = 1e3;
|
|
16
19
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -10,7 +10,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
10
10
|
|
|
11
11
|
const promise = Promise;
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const GLOBAL = globalThis;
|
|
15
18
|
const THOUSAND = 1e3;
|
|
16
19
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -10,7 +10,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
10
10
|
|
|
11
11
|
const promise = Promise;
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const GLOBAL = globalThis;
|
|
15
18
|
const THOUSAND = 1e3;
|
|
16
19
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -10,7 +10,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
10
10
|
|
|
11
11
|
const promise = Promise;
|
|
12
12
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
13
|
-
predicate(value)
|
|
13
|
+
predicate(value)
|
|
14
|
+
? /* istanbul ignore next */
|
|
15
|
+
otherwise?.()
|
|
16
|
+
: then(value);
|
|
14
17
|
const GLOBAL = globalThis;
|
|
15
18
|
const THOUSAND = 1e3;
|
|
16
19
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -9,7 +9,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
9
9
|
|
|
10
10
|
const promise = Promise;
|
|
11
11
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
12
|
-
predicate(value)
|
|
12
|
+
predicate(value)
|
|
13
|
+
? /* istanbul ignore next */
|
|
14
|
+
otherwise?.()
|
|
15
|
+
: then(value);
|
|
13
16
|
const GLOBAL = globalThis;
|
|
14
17
|
const THOUSAND = 1e3;
|
|
15
18
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -9,7 +9,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
9
9
|
|
|
10
10
|
const promise = Promise;
|
|
11
11
|
const getIfNotFunction = (predicate) => (value, then, otherwise) =>
|
|
12
|
-
predicate(value)
|
|
12
|
+
predicate(value)
|
|
13
|
+
? /* istanbul ignore next */
|
|
14
|
+
otherwise?.()
|
|
15
|
+
: then(value);
|
|
13
16
|
const GLOBAL = globalThis;
|
|
14
17
|
const THOUSAND = 1e3;
|
|
15
18
|
const startTimeout = (callback, sec = 0) =>
|
|
@@ -4,7 +4,10 @@ const MESSAGE = 'message';
|
|
|
4
4
|
const strMatch = (str, regex) => str?.match(regex);
|
|
5
5
|
|
|
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 isUndefined = (thing) => thing === void 0;
|
|
9
12
|
const ifNotUndefined = getIfNotFunction(isUndefined);
|
|
10
13
|
const slice = (arrayOrString, start, end) => arrayOrString.slice(start, end);
|
|
@@ -4,7 +4,10 @@ const MESSAGE = 'message';
|
|
|
4
4
|
const strMatch = (str, regex) => str?.match(regex);
|
|
5
5
|
|
|
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 isUndefined = (thing) => thing === void 0;
|
|
9
12
|
const ifNotUndefined = getIfNotFunction(isUndefined);
|
|
10
13
|
const slice = (arrayOrString, start, end) => arrayOrString.slice(start, end);
|
|
@@ -5,7 +5,10 @@ const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
|
5
5
|
|
|
6
6
|
const promise = Promise;
|
|
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 GLOBAL = globalThis;
|
|
10
13
|
const THOUSAND = 1e3;
|
|
11
14
|
const startTimeout = (callback, sec = 0) =>
|