@design-edito/tools 0.1.28 → 0.1.30
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/agnostic/css/index.js +18 -14
- package/agnostic/html/hyper-json/cast/index.js +4 -4
- package/agnostic/html/hyper-json/index.d.ts +0 -2
- package/agnostic/html/hyper-json/index.js +5 -5
- package/agnostic/html/hyper-json/serialize/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/append/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/classList/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/join/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/length/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/print/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/push/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/querySelector/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/ref/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/replace/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/split/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toArray/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toBoolean/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toElement/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toNodeList/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toNull/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toNumber/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toRecord/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toRef/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toString/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toText/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/toTransformer/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/transformSelected/index.js +4 -4
- package/agnostic/html/hyper-json/transformers/trim/index.js +4 -4
- package/agnostic/html/hyper-json/tree/index.js +4 -4
- package/agnostic/html/hyper-json/utils/index.js +4 -4
- package/agnostic/html/index.js +22 -22
- package/agnostic/html/sanitize/index.js +6 -5
- package/agnostic/html/selector-to-element/index.js +6 -5
- package/agnostic/html/string-to-nodes/index.js +7 -6
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +2 -0
- package/agnostic/misc/crossenv/detect-runtime/index.js +7 -0
- package/agnostic/misc/crossenv/index.d.ts +6 -14
- package/agnostic/misc/crossenv/index.js +4 -3
- package/agnostic/misc/crossenv/types/index.d.ts +19 -0
- package/agnostic/misc/crossenv/types/index.js +6 -0
- package/agnostic/misc/crossenv/window/index.d.ts +7 -0
- package/agnostic/misc/crossenv/window/index.js +6 -0
- package/agnostic/misc/index.js +21 -17
- package/agnostic/misc/logs/index.js +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +6 -3
- package/agnostic/numbers/index.js +5 -5
- package/agnostic/objects/index.d.ts +2 -0
- package/agnostic/objects/index.js +9 -5
- package/agnostic/objects/record-format/index.d.ts +1 -1
- package/agnostic/objects/record-format/index.js +4 -14
- package/agnostic/random/hex-char/index.d.ts +2 -0
- package/agnostic/random/hex-char/index.js +8 -0
- package/agnostic/random/index.d.ts +9 -7
- package/agnostic/random/index.js +4 -1
- package/agnostic/random/random/index.d.ts +3 -0
- package/agnostic/random/random/index.js +8 -0
- package/agnostic/random/uuid/index.d.ts +3 -0
- package/agnostic/random/uuid/index.js +11 -0
- package/agnostic/strings/index.js +3 -3
- package/agnostic/time/index.js +5 -5
- package/chunks/chunk-75BICI4L.js +20 -0
- package/chunks/chunk-BQV4DOSE.js +1108 -0
- package/chunks/chunk-CB52KVOZ.js +22 -0
- package/chunks/chunk-D3ERTRDW.js +17 -0
- package/chunks/chunk-EVOTJ7SU.js +35 -0
- package/chunks/chunk-G2NZXHW6.js +21 -0
- package/chunks/chunk-HP3OH2K7.js +27 -0
- package/chunks/chunk-KN4RZPDY.js +211 -0
- package/chunks/chunk-LFUY5AWK.js +1108 -0
- package/chunks/chunk-LV2VMOWR.js +18 -0
- package/chunks/chunk-MUGIN5OW.js +211 -0
- package/chunks/chunk-NWFX6TEY.js +28 -0
- package/chunks/chunk-OGBUSUE6.js +12 -0
- package/chunks/chunk-OVG5RGI3.js +29 -0
- package/chunks/chunk-PXB7U2DH.js +31 -0
- package/chunks/chunk-RLJOYG64.js +33 -0
- package/chunks/chunk-S2NMAH7K.js +19 -0
- package/chunks/chunk-S32K7POB.js +29 -0
- package/chunks/chunk-S7MJLTCR.js +211 -0
- package/chunks/chunk-UFKH5WD2.js +21 -0
- package/chunks/chunk-WABWQCFE.js +127 -0
- package/chunks/chunk-YP64J65L.js +17 -0
- package/chunks/chunk-ZCPGE7H7.js +64 -0
- package/node/files/index.js +3 -3
- package/package.json +1 -1
package/agnostic/html/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
stringToNodes
|
|
3
|
-
} from "../../chunks/chunk-ZONKYNKA.js";
|
|
4
|
-
import {
|
|
5
|
-
Sanitize
|
|
6
|
-
} from "../../chunks/chunk-WECTUHS5.js";
|
|
7
|
-
import {
|
|
8
|
-
selectorToElement
|
|
9
|
-
} from "../../chunks/chunk-OO5SJJDW.js";
|
|
10
1
|
import {
|
|
11
2
|
HyperJson
|
|
12
|
-
} from "../../chunks/chunk-
|
|
13
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-HP3OH2K7.js";
|
|
4
|
+
import "../../chunks/chunk-BQV4DOSE.js";
|
|
5
|
+
import "../../chunks/chunk-ZCPGE7H7.js";
|
|
14
6
|
import "../../chunks/chunk-5GI5G45R.js";
|
|
15
|
-
import "../../chunks/chunk-GBMHGF7P.js";
|
|
16
|
-
import "../../chunks/chunk-DRNK3RLE.js";
|
|
17
|
-
import "../../chunks/chunk-3LVR6KZH.js";
|
|
18
|
-
import {
|
|
19
|
-
getPositionInsideParent
|
|
20
|
-
} from "../../chunks/chunk-VTPRO4NJ.js";
|
|
21
7
|
import {
|
|
22
8
|
getNodeAncestors
|
|
23
9
|
} from "../../chunks/chunk-SQZGZ3VT.js";
|
|
24
10
|
import {
|
|
25
11
|
insertNode
|
|
26
12
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
|
13
|
+
import {
|
|
14
|
+
getPositionInsideParent
|
|
15
|
+
} from "../../chunks/chunk-VTPRO4NJ.js";
|
|
27
16
|
import {
|
|
28
17
|
Placeholders
|
|
29
18
|
} from "../../chunks/chunk-VYW4IADX.js";
|
|
30
|
-
import "../../chunks/chunk-
|
|
19
|
+
import "../../chunks/chunk-GBMHGF7P.js";
|
|
20
|
+
import {
|
|
21
|
+
selectorToElement
|
|
22
|
+
} from "../../chunks/chunk-EVOTJ7SU.js";
|
|
23
|
+
import {
|
|
24
|
+
stringToNodes
|
|
25
|
+
} from "../../chunks/chunk-NWFX6TEY.js";
|
|
26
|
+
import {
|
|
27
|
+
Sanitize
|
|
28
|
+
} from "../../chunks/chunk-WABWQCFE.js";
|
|
31
29
|
import "../../chunks/chunk-YDIBNEGA.js";
|
|
30
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
|
32
31
|
import "../../chunks/chunk-MF56TTC5.js";
|
|
33
|
-
import "../../chunks/chunk-
|
|
34
|
-
import "../../chunks/chunk-
|
|
35
|
-
import "../../chunks/chunk-
|
|
36
|
-
import "../../chunks/chunk-
|
|
32
|
+
import "../../chunks/chunk-CB52KVOZ.js";
|
|
33
|
+
import "../../chunks/chunk-UFKH5WD2.js";
|
|
34
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
|
35
|
+
import "../../chunks/chunk-S2NMAH7K.js";
|
|
36
|
+
import "../../chunks/chunk-LV2VMOWR.js";
|
|
37
37
|
import "../../chunks/chunk-2KT7AKRW.js";
|
|
38
38
|
import "../../chunks/chunk-FENXVJYO.js";
|
|
39
39
|
import "../../chunks/chunk-QHLQVR3E.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Sanitize
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
6
|
-
import "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
3
|
+
} from "../../../chunks/chunk-WABWQCFE.js";
|
|
4
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
|
5
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
|
6
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
|
7
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
|
8
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
|
8
9
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
|
9
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
|
10
11
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectorToElement
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
6
|
-
import "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
3
|
+
} from "../../../chunks/chunk-EVOTJ7SU.js";
|
|
4
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
|
5
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
|
6
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
|
7
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
|
8
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
|
8
9
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
|
9
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
|
10
11
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
stringToNodes
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
6
|
-
import "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
8
|
-
import "../../../chunks/chunk-
|
|
3
|
+
} from "../../../chunks/chunk-NWFX6TEY.js";
|
|
4
|
+
import "../../../chunks/chunk-WABWQCFE.js";
|
|
5
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
|
6
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
|
7
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
|
8
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
|
9
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
|
9
10
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
|
10
11
|
import "../../../chunks/chunk-FENXVJYO.js";
|
|
11
12
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { detectRuntime as detectRuntimeFunc } from './detect-runtime';
|
|
2
|
+
import { Types as TypesNamespace } from './types';
|
|
3
|
+
import { Window as WindowNamespace } from './window';
|
|
3
4
|
export declare namespace Crossenv {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
DENO = "Deno",
|
|
8
|
-
REACT_NATIVE = "React Native",
|
|
9
|
-
ELECTRON = "Electron",
|
|
10
|
-
CLOUDFLARE = "Cloudflare Workers",
|
|
11
|
-
AWS_LAMBDA = "AWS Lambda"
|
|
12
|
-
}
|
|
13
|
-
function detectRuntime(): RuntimeName | null;
|
|
14
|
-
const getWindow: typeof getWindowFunction;
|
|
15
|
-
const getDocument: typeof getDocumentFunction;
|
|
5
|
+
const detectRuntime: typeof detectRuntimeFunc;
|
|
6
|
+
export import Types = TypesNamespace;
|
|
7
|
+
export import Window = WindowNamespace;
|
|
16
8
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Crossenv
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
3
|
+
} from "../../../chunks/chunk-UFKH5WD2.js";
|
|
4
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
|
5
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
|
6
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
|
6
7
|
export {
|
|
7
8
|
Crossenv
|
|
8
9
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare namespace Types {
|
|
2
|
+
enum RuntimeName {
|
|
3
|
+
NODE = "Node.js",
|
|
4
|
+
BROWSER = "Browser",
|
|
5
|
+
DENO = "Deno",
|
|
6
|
+
REACT_NATIVE = "React Native",
|
|
7
|
+
ELECTRON = "Electron",
|
|
8
|
+
CLOUDFLARE = "Cloudflare Workers",
|
|
9
|
+
AWS_LAMBDA = "AWS Lambda"
|
|
10
|
+
}
|
|
11
|
+
interface MinimalWindow {
|
|
12
|
+
Node: typeof Node;
|
|
13
|
+
Element: typeof Element;
|
|
14
|
+
Text: typeof Text;
|
|
15
|
+
NodeList: typeof NodeList;
|
|
16
|
+
Attr: typeof Attr;
|
|
17
|
+
document: Document;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Types } from '../types';
|
|
2
|
+
export declare namespace Window {
|
|
3
|
+
function exists(): boolean;
|
|
4
|
+
function set(customWindow: Types.MinimalWindow | null): Types.MinimalWindow | null;
|
|
5
|
+
function unset(): Types.MinimalWindow | null;
|
|
6
|
+
function get(): Types.MinimalWindow;
|
|
7
|
+
}
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LoremIpsum
|
|
3
|
-
} from "../../chunks/chunk-VA6HXRX4.js";
|
|
4
1
|
import {
|
|
5
2
|
Logs
|
|
6
|
-
} from "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-JWKI6G6E.js";
|
|
3
|
+
} from "../../chunks/chunk-G2NZXHW6.js";
|
|
8
4
|
import "../../chunks/chunk-L3OCRR3V.js";
|
|
9
5
|
import "../../chunks/chunk-H4PP6AHP.js";
|
|
6
|
+
import "../../chunks/chunk-JWKI6G6E.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../../chunks/chunk-
|
|
8
|
+
getCurrentDownlink
|
|
9
|
+
} from "../../chunks/chunk-7AWTHZLY.js";
|
|
13
10
|
import {
|
|
14
11
|
Cast
|
|
15
12
|
} from "../../chunks/chunk-4QQBKBYH.js";
|
|
@@ -17,24 +14,31 @@ import {
|
|
|
17
14
|
Crawler
|
|
18
15
|
} from "../../chunks/chunk-YUP434IY.js";
|
|
19
16
|
import {
|
|
20
|
-
|
|
21
|
-
} from "../../chunks/chunk-
|
|
17
|
+
LoremIpsum
|
|
18
|
+
} from "../../chunks/chunk-MUGIN5OW.js";
|
|
22
19
|
import "../../chunks/chunk-4CIS3R7T.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "../../chunks/chunk-
|
|
26
|
-
import "../../chunks/chunk-73V5RDSG.js";
|
|
27
|
-
import "../../chunks/chunk-4GUDL44X.js";
|
|
28
|
-
import {
|
|
29
|
-
Random
|
|
30
|
-
} from "../../chunks/chunk-R6KCN6CK.js";
|
|
21
|
+
Assert
|
|
22
|
+
} from "../../chunks/chunk-W7YBGJ4H.js";
|
|
31
23
|
import "../../chunks/chunk-YS6WMSWC.js";
|
|
32
24
|
import "../../chunks/chunk-6RGDWX4A.js";
|
|
33
25
|
import {
|
|
34
26
|
isConstructorFunction
|
|
35
27
|
} from "../../chunks/chunk-RCO57B6F.js";
|
|
36
|
-
import "../../chunks/chunk-RLAZR3NL.js";
|
|
37
28
|
import "../../chunks/chunk-FCU6IHKD.js";
|
|
29
|
+
import "../../chunks/chunk-RLAZR3NL.js";
|
|
30
|
+
import {
|
|
31
|
+
Crossenv
|
|
32
|
+
} from "../../chunks/chunk-UFKH5WD2.js";
|
|
33
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
|
34
|
+
import "../../chunks/chunk-S2NMAH7K.js";
|
|
35
|
+
import "../../chunks/chunk-LV2VMOWR.js";
|
|
36
|
+
import {
|
|
37
|
+
Random
|
|
38
|
+
} from "../../chunks/chunk-S32K7POB.js";
|
|
39
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
|
40
|
+
import "../../chunks/chunk-75BICI4L.js";
|
|
41
|
+
import "../../chunks/chunk-OGBUSUE6.js";
|
|
38
42
|
import "../../chunks/chunk-QXAJXTXV.js";
|
|
39
43
|
import {
|
|
40
44
|
isNotNullish,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Logs
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-JWKI6G6E.js";
|
|
3
|
+
} from "../../../chunks/chunk-G2NZXHW6.js";
|
|
5
4
|
import "../../../chunks/chunk-L3OCRR3V.js";
|
|
6
5
|
import "../../../chunks/chunk-H4PP6AHP.js";
|
|
6
|
+
import "../../../chunks/chunk-JWKI6G6E.js";
|
|
7
7
|
export {
|
|
8
8
|
Logs
|
|
9
9
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoremIpsum
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-R6KCN6CK.js";
|
|
3
|
+
} from "../../../chunks/chunk-MUGIN5OW.js";
|
|
5
4
|
import "../../../chunks/chunk-YS6WMSWC.js";
|
|
6
5
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
|
7
6
|
import "../../../chunks/chunk-RCO57B6F.js";
|
|
8
|
-
import "../../../chunks/chunk-RLAZR3NL.js";
|
|
9
7
|
import "../../../chunks/chunk-FCU6IHKD.js";
|
|
8
|
+
import "../../../chunks/chunk-RLAZR3NL.js";
|
|
9
|
+
import "../../../chunks/chunk-S32K7POB.js";
|
|
10
|
+
import "../../../chunks/chunk-D3ERTRDW.js";
|
|
11
|
+
import "../../../chunks/chunk-75BICI4L.js";
|
|
12
|
+
import "../../../chunks/chunk-OGBUSUE6.js";
|
|
10
13
|
export {
|
|
11
14
|
LoremIpsum
|
|
12
15
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/chunk-
|
|
2
|
+
interpolate
|
|
3
|
+
} from "../../chunks/chunk-EW46EXFB.js";
|
|
4
4
|
import {
|
|
5
5
|
clamp
|
|
6
6
|
} from "../../chunks/chunk-OSAXBA7G.js";
|
|
7
|
-
import {
|
|
8
|
-
interpolate
|
|
9
|
-
} from "../../chunks/chunk-EW46EXFB.js";
|
|
10
7
|
import {
|
|
11
8
|
createScale,
|
|
12
9
|
getHarmonic
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
round
|
|
16
13
|
} from "../../chunks/chunk-32IRF4OP.js";
|
|
14
|
+
import {
|
|
15
|
+
absoluteModulo
|
|
16
|
+
} from "../../chunks/chunk-DNIOWD7K.js";
|
|
17
17
|
|
|
18
18
|
// src/agnostic/numbers/index.ts
|
|
19
19
|
var Numbers;
|
|
@@ -2,12 +2,14 @@ import { Enums as EnumsNamespace } from './enums';
|
|
|
2
2
|
import { flattenGetters as flattenGettersFunc } from './flatten-getters';
|
|
3
3
|
import { isObject as isObjectFunc, isNonNullObject as isNonNullObjectFunc } from './is-object';
|
|
4
4
|
import { isRecord as isRecordFunc } from './is-record';
|
|
5
|
+
import { recordFormat as recordFormatFunc } from './record-format';
|
|
5
6
|
import { Validation as ValidationNamespace } from './validation';
|
|
6
7
|
export declare namespace Objects {
|
|
7
8
|
export import Enums = EnumsNamespace;
|
|
8
9
|
const flattenGetters: typeof flattenGettersFunc;
|
|
9
10
|
const isObject: typeof isObjectFunc;
|
|
10
11
|
const isNonNullObject: typeof isNonNullObjectFunc;
|
|
12
|
+
const recordFormat: typeof recordFormatFunc;
|
|
11
13
|
const isRecord: typeof isRecordFunc;
|
|
12
14
|
export import Validation = ValidationNamespace;
|
|
13
15
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
flattenGetters
|
|
3
|
+
} from "../../chunks/chunk-PO3V3I57.js";
|
|
1
4
|
import {
|
|
2
5
|
Validation
|
|
3
6
|
} from "../../chunks/chunk-FPEW3A27.js";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
} from "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-E6MSDKON.js";
|
|
8
|
+
recordFormat
|
|
9
|
+
} from "../../chunks/chunk-YP64J65L.js";
|
|
8
10
|
import {
|
|
9
11
|
isNonNullObject,
|
|
10
12
|
isObject
|
|
11
13
|
} from "../../chunks/chunk-HQLRJ7XW.js";
|
|
12
14
|
import {
|
|
13
|
-
|
|
14
|
-
} from "../../chunks/chunk-
|
|
15
|
+
Enums
|
|
16
|
+
} from "../../chunks/chunk-WOAYU6LB.js";
|
|
15
17
|
import {
|
|
16
18
|
isRecord
|
|
17
19
|
} from "../../chunks/chunk-YDIBNEGA.js";
|
|
20
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
|
18
21
|
import "../../chunks/chunk-4QQBKBYH.js";
|
|
19
22
|
import "../../chunks/chunk-QXAJXTXV.js";
|
|
20
23
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
|
@@ -26,6 +29,7 @@ var Objects;
|
|
|
26
29
|
Objects2.flattenGetters = flattenGetters;
|
|
27
30
|
Objects2.isObject = isObject;
|
|
28
31
|
Objects2.isNonNullObject = isNonNullObject;
|
|
32
|
+
Objects2.recordFormat = recordFormat;
|
|
29
33
|
Objects2.isRecord = isRecord;
|
|
30
34
|
Objects2.Validation = Validation;
|
|
31
35
|
})(Objects || (Objects = {}));
|
|
@@ -8,4 +8,4 @@ export type UnwrapPromise<PromiseOrNot> = PromiseOrNot extends Promise<infer Res
|
|
|
8
8
|
export type Formatted<F extends Format<{}>> = {
|
|
9
9
|
[Key in keyof F]: UnwrapPromise<ReturnType<F[Key]>>;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export declare function recordFormat<I extends {}, F extends Format<I>>(input: I, format: F): Promise<Formatted<F>>;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
for (const key in format) {
|
|
5
|
-
const formatter = format[key];
|
|
6
|
-
if (typeof formatter === "function") {
|
|
7
|
-
result[key] = await formatter(input[key]);
|
|
8
|
-
} else {
|
|
9
|
-
result[key] = formatter;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return result;
|
|
13
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
recordFormat
|
|
3
|
+
} from "../../../chunks/chunk-YP64J65L.js";
|
|
14
4
|
export {
|
|
15
|
-
recordFormat
|
|
5
|
+
recordFormat
|
|
16
6
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { random as randomFunc, randomInt as randomIntFunc } from './random';
|
|
2
|
+
import { randomHexChar as randomHexCharFunc } from './hex-char';
|
|
3
|
+
import { randomHash as randomHashFunc, randomHashPattern as randomHashPatternFunc, randomUUID as randomUUIDFunc } from './uuid';
|
|
1
4
|
export declare namespace Random {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function randomInt(...args: Parameters<typeof random>): number | undefined;
|
|
5
|
+
const random: typeof randomFunc;
|
|
6
|
+
const randomInt: typeof randomIntFunc;
|
|
5
7
|
const hexChars: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const randomHexChar: typeof randomHexCharFunc;
|
|
9
|
+
const randomHash: typeof randomHashFunc;
|
|
10
|
+
const randomHashPattern: typeof randomHashPatternFunc;
|
|
11
|
+
const randomUUID: typeof randomUUIDFunc;
|
|
10
12
|
}
|
package/agnostic/random/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
replaceAll
|
|
3
|
+
} from "../../chunks/chunk-MF56TTC5.js";
|
|
1
4
|
import {
|
|
2
5
|
CharCodes
|
|
3
6
|
} from "../../chunks/chunk-34U4HX4V.js";
|
|
@@ -9,9 +12,6 @@ import {
|
|
|
9
12
|
import {
|
|
10
13
|
toAlphanum
|
|
11
14
|
} from "../../chunks/chunk-COVPTTAD.js";
|
|
12
|
-
import {
|
|
13
|
-
replaceAll
|
|
14
|
-
} from "../../chunks/chunk-MF56TTC5.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeIndent
|
|
17
17
|
} from "../../chunks/chunk-JQXNEJAP.js";
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Transitions
|
|
3
|
-
} from "../../chunks/chunk-ENMBK6H7.js";
|
|
4
1
|
import {
|
|
5
2
|
timeout
|
|
6
3
|
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "../../chunks/chunk-
|
|
5
|
+
Transitions
|
|
6
|
+
} from "../../chunks/chunk-ENMBK6H7.js";
|
|
10
7
|
import {
|
|
11
8
|
Duration
|
|
12
9
|
} from "../../chunks/chunk-6NYUQXJT.js";
|
|
10
|
+
import {
|
|
11
|
+
wait
|
|
12
|
+
} from "../../chunks/chunk-4CIS3R7T.js";
|
|
13
13
|
|
|
14
14
|
// src/agnostic/time/index.ts
|
|
15
15
|
var Time;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
randomHexChar
|
|
3
|
+
} from "./chunk-OGBUSUE6.js";
|
|
4
|
+
|
|
5
|
+
// src/agnostic/random/uuid/index.ts
|
|
6
|
+
function randomHash(length = 4) {
|
|
7
|
+
return new Array(length).fill(null).map(randomHexChar).join("");
|
|
8
|
+
}
|
|
9
|
+
function randomHashPattern(pattern, joiner = "-") {
|
|
10
|
+
return pattern.map(randomHash).join(joiner);
|
|
11
|
+
}
|
|
12
|
+
function randomUUID() {
|
|
13
|
+
return randomHashPattern([8, 4, 4, 4, 12]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
randomHash,
|
|
18
|
+
randomHashPattern,
|
|
19
|
+
randomUUID
|
|
20
|
+
};
|