@design-edito/tools 0.2.5 → 0.2.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/agnostic/arrays/index.js +4 -4
- package/agnostic/colors/index.js +9 -9
- package/agnostic/css/bem/index.js +2 -2
- package/agnostic/css/index.js +5 -5
- package/agnostic/html/hyper-json/cast/index.js +5 -5
- package/agnostic/html/hyper-json/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
- package/agnostic/html/hyper-json/tree/index.js +5 -5
- package/agnostic/html/hyper-json/utils/index.js +5 -5
- package/agnostic/html/index.js +11 -11
- package/agnostic/misc/index.js +15 -15
- package/agnostic/misc/lorem-ipsum/index.js +5 -5
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/index.js +9 -9
- package/agnostic/strings/index.js +7 -7
- package/agnostic/strings/parse-table/index.d.ts +34 -28
- package/agnostic/strings/parse-table/index.js +1 -3
- package/chunks/{chunk-YWOU65KY.js → chunk-7SQPSZJS.js} +22 -22
- package/chunks/{chunk-TBRLSFVL.js → chunk-IOEX4WMM.js} +4 -4
- package/chunks/{chunk-C7SDXW3B.js → chunk-LW37RZBH.js} +5 -5
- package/chunks/{chunk-YRWLIDCE.js → chunk-MXGOSLJF.js} +1 -1
- package/chunks/{chunk-GYELTEZT.js → chunk-O7NVF55C.js} +14 -5
- package/chunks/{chunk-WV2D6IX4.js → chunk-WD3CE5WS.js} +2 -2
- package/node/@aws-s3/index.js +9 -9
- package/node/@aws-s3/storage/directory/index.js +7 -7
- package/node/@aws-s3/storage/file/index.js +10 -10
- package/node/@aws-s3/storage/index.js +9 -9
- package/node/@google-cloud/index.js +13 -13
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/directory/index.js +7 -7
- package/node/@google-cloud/storage/file/index.js +15 -15
- package/node/@google-cloud/storage/index.js +17 -17
- package/node/cloud-storage/index.js +42 -42
- package/node/cloud-storage/operations/copy-dir/index.js +2 -2
- package/node/cloud-storage/operations/copy-file/index.js +2 -2
- package/node/cloud-storage/operations/download-file/index.js +2 -2
- package/node/cloud-storage/operations/exists-file/index.js +2 -2
- package/node/cloud-storage/operations/index.js +54 -54
- package/node/cloud-storage/operations/list-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-file/index.js +2 -2
- package/node/cloud-storage/operations/remove-dir/index.js +2 -2
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.js +2 -2
- package/node/cloud-storage/operations/upload-file/index.js +2 -2
- package/node/ftps/directory/index.js +4 -4
- package/node/ftps/file/index.js +6 -6
- package/node/ftps/index.js +9 -9
- package/node/images/index.js +10 -10
- package/node/images/transform/index.js +7 -7
- package/node/sftp/directory/index.js +7 -7
- package/node/sftp/file/index.js +10 -10
- package/node/sftp/index.js +8 -8
- package/package.json +1 -1
- package/chunks/{chunk-CA3UPHYO.js → chunk-6AYH6N4T.js} +3 -3
- package/chunks/{chunk-KIONYWA7.js → chunk-7YW5HL6N.js} +3 -3
- package/chunks/{chunk-XKRFL2AB.js → chunk-A7K5DUP7.js} +6 -6
- package/chunks/{chunk-FS6LRTDK.js → chunk-AK5LBEW3.js} +3 -3
- package/chunks/{chunk-DPQRXSZH.js → chunk-E7JWKPHC.js} +3 -3
- package/chunks/{chunk-NOLQR5RW.js → chunk-I3LKH6JC.js} +3 -3
- package/chunks/{chunk-H4LW6FP3.js → chunk-IH6TPXGZ.js} +3 -3
- package/chunks/{chunk-EOTOFHUR.js → chunk-IIMYMEJ6.js} +3 -3
- package/chunks/{chunk-OA7Y2A5T.js → chunk-JZ6QNL7U.js} +3 -3
- package/chunks/{chunk-SQL5JXYJ.js → chunk-KBFSUJ57.js} +5 -5
- package/chunks/{chunk-KA3PLDPZ.js → chunk-KXIEPXDI.js} +9 -9
- package/chunks/{chunk-24ZUWYIR.js → chunk-MRCJT2LW.js} +3 -3
- package/chunks/{chunk-646R6BQZ.js → chunk-N7TMNMOK.js} +3 -3
- package/chunks/{chunk-UK4HNSEJ.js → chunk-NSB5NOKA.js} +3 -3
- package/chunks/{chunk-ZQ3DJPY5.js → chunk-QUPIMVDB.js} +9 -9
- package/chunks/{chunk-6NLNUGBI.js → chunk-RG5U7D3R.js} +3 -3
- package/chunks/{chunk-UXEKCYL7.js → chunk-UEAMPAHK.js} +3 -3
- package/chunks/{chunk-KSS2ZJHI.js → chunk-VCCKYSSJ.js} +12 -12
- package/chunks/{chunk-4XGNPFBN.js → chunk-WLZD64PA.js} +6 -6
- package/chunks/{chunk-QXVZJYNY.js → chunk-X5F6XGEP.js} +6 -6
- package/chunks/{chunk-KE7RNBSU.js → chunk-X5K3KE5O.js} +14 -14
- package/chunks/{chunk-KQAPQMHJ.js → chunk-XUIBDINM.js} +3 -3
- package/chunks/{chunk-FAZEIFCI.js → chunk-YBCIFNYC.js} +21 -21
- package/chunks/{chunk-XPGDKBTU.js → chunk-ZBAKY6DB.js} +6 -6
@@ -1,20 +1,20 @@
|
|
1
1
|
import {
|
2
2
|
Tree
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-VCCKYSSJ.js";
|
4
4
|
import "../../../../chunks/chunk-QAQZEKIF.js";
|
5
|
-
import "../../../../chunks/chunk-FHLCPVND.js";
|
6
5
|
import "../../../../chunks/chunk-QAVYONH6.js";
|
6
|
+
import "../../../../chunks/chunk-SXRWMH3U.js";
|
7
7
|
import "../../../../chunks/chunk-XEQ2PBT2.js";
|
8
|
+
import "../../../../chunks/chunk-FHLCPVND.js";
|
8
9
|
import "../../../../chunks/chunk-UT2J62LH.js";
|
9
|
-
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
10
|
-
import "../../../../chunks/chunk-SXRWMH3U.js";
|
11
10
|
import "../../../../chunks/chunk-BKO7GLC2.js";
|
12
11
|
import "../../../../chunks/chunk-RW7VAKJW.js";
|
12
|
+
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
13
13
|
import "../../../../chunks/chunk-XNF5MLCQ.js";
|
14
14
|
import "../../../../chunks/chunk-E6MSDKON.js";
|
15
15
|
import "../../../../chunks/chunk-YDIBNEGA.js";
|
16
|
-
import "../../../../chunks/chunk-ZTDVUXPR.js";
|
17
16
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
17
|
+
import "../../../../chunks/chunk-ZTDVUXPR.js";
|
18
18
|
import "../../../../chunks/chunk-6XL25OZX.js";
|
19
19
|
import "../../../../chunks/chunk-RLJOYG64.js";
|
20
20
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import {
|
2
2
|
Utils
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-VCCKYSSJ.js";
|
4
4
|
import "../../../../chunks/chunk-QAQZEKIF.js";
|
5
|
-
import "../../../../chunks/chunk-FHLCPVND.js";
|
6
5
|
import "../../../../chunks/chunk-QAVYONH6.js";
|
6
|
+
import "../../../../chunks/chunk-SXRWMH3U.js";
|
7
7
|
import "../../../../chunks/chunk-XEQ2PBT2.js";
|
8
|
+
import "../../../../chunks/chunk-FHLCPVND.js";
|
8
9
|
import "../../../../chunks/chunk-UT2J62LH.js";
|
9
|
-
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
10
|
-
import "../../../../chunks/chunk-SXRWMH3U.js";
|
11
10
|
import "../../../../chunks/chunk-BKO7GLC2.js";
|
12
11
|
import "../../../../chunks/chunk-RW7VAKJW.js";
|
12
|
+
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
13
13
|
import "../../../../chunks/chunk-XNF5MLCQ.js";
|
14
14
|
import "../../../../chunks/chunk-E6MSDKON.js";
|
15
15
|
import "../../../../chunks/chunk-YDIBNEGA.js";
|
16
|
-
import "../../../../chunks/chunk-ZTDVUXPR.js";
|
17
16
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
17
|
+
import "../../../../chunks/chunk-ZTDVUXPR.js";
|
18
18
|
import "../../../../chunks/chunk-6XL25OZX.js";
|
19
19
|
import "../../../../chunks/chunk-RLJOYG64.js";
|
20
20
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
package/agnostic/html/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "../../chunks/chunk-
|
2
|
+
Placeholders
|
3
|
+
} from "../../chunks/chunk-VYW4IADX.js";
|
4
4
|
import {
|
5
5
|
selectorToElement
|
6
6
|
} from "../../chunks/chunk-SKBOSWM2.js";
|
@@ -12,30 +12,30 @@ import {
|
|
12
12
|
} from "../../chunks/chunk-XB3EGDBI.js";
|
13
13
|
import {
|
14
14
|
HyperJson
|
15
|
-
} from "../../chunks/chunk-
|
16
|
-
import "../../chunks/chunk-
|
15
|
+
} from "../../chunks/chunk-IOEX4WMM.js";
|
16
|
+
import "../../chunks/chunk-VCCKYSSJ.js";
|
17
17
|
import "../../chunks/chunk-QAQZEKIF.js";
|
18
|
-
import "../../chunks/chunk-FHLCPVND.js";
|
19
18
|
import "../../chunks/chunk-QAVYONH6.js";
|
19
|
+
import "../../chunks/chunk-SXRWMH3U.js";
|
20
20
|
import "../../chunks/chunk-XEQ2PBT2.js";
|
21
|
+
import "../../chunks/chunk-FHLCPVND.js";
|
21
22
|
import "../../chunks/chunk-UT2J62LH.js";
|
23
|
+
import "../../chunks/chunk-BKO7GLC2.js";
|
24
|
+
import "../../chunks/chunk-RW7VAKJW.js";
|
22
25
|
import {
|
23
26
|
insertNode
|
24
27
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
25
|
-
import "../../chunks/chunk-SXRWMH3U.js";
|
26
|
-
import "../../chunks/chunk-BKO7GLC2.js";
|
27
|
-
import "../../chunks/chunk-RW7VAKJW.js";
|
28
28
|
import {
|
29
29
|
getNodeAncestors
|
30
30
|
} from "../../chunks/chunk-LUPVHC73.js";
|
31
31
|
import {
|
32
|
-
|
33
|
-
} from "../../chunks/chunk-
|
32
|
+
getPositionInsideParent
|
33
|
+
} from "../../chunks/chunk-VTPRO4NJ.js";
|
34
34
|
import "../../chunks/chunk-XNF5MLCQ.js";
|
35
35
|
import "../../chunks/chunk-E6MSDKON.js";
|
36
36
|
import "../../chunks/chunk-YDIBNEGA.js";
|
37
|
-
import "../../chunks/chunk-ZTDVUXPR.js";
|
38
37
|
import "../../chunks/chunk-JMU5PDBD.js";
|
38
|
+
import "../../chunks/chunk-ZTDVUXPR.js";
|
39
39
|
import "../../chunks/chunk-6XL25OZX.js";
|
40
40
|
import "../../chunks/chunk-TIER4TF4.js";
|
41
41
|
import "../../chunks/chunk-FR5H2OCV.js";
|
package/agnostic/misc/index.js
CHANGED
@@ -6,7 +6,7 @@ import "../../chunks/chunk-L3OCRR3V.js";
|
|
6
6
|
import "../../chunks/chunk-H4PP6AHP.js";
|
7
7
|
import {
|
8
8
|
LoremIpsum
|
9
|
-
} from "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-MXGOSLJF.js";
|
10
10
|
import {
|
11
11
|
Assert
|
12
12
|
} from "../../chunks/chunk-WAMSK4A3.js";
|
@@ -17,25 +17,28 @@ import {
|
|
17
17
|
Crawler
|
18
18
|
} from "../../chunks/chunk-YUP434IY.js";
|
19
19
|
import "../../chunks/chunk-4CIS3R7T.js";
|
20
|
-
import {
|
21
|
-
data_size_exports
|
22
|
-
} from "../../chunks/chunk-7DV4CM2Z.js";
|
23
20
|
import {
|
24
21
|
getCurrentDownlink
|
25
22
|
} from "../../chunks/chunk-7AWTHZLY.js";
|
23
|
+
import {
|
24
|
+
data_size_exports
|
25
|
+
} from "../../chunks/chunk-7DV4CM2Z.js";
|
26
26
|
import {
|
27
27
|
Outcome
|
28
28
|
} from "../../chunks/chunk-JMU5PDBD.js";
|
29
|
+
import "../../chunks/chunk-QXAJXTXV.js";
|
30
|
+
import {
|
31
|
+
isNotNullish,
|
32
|
+
isNullish,
|
33
|
+
nullishValues
|
34
|
+
} from "../../chunks/chunk-HC6ZOHCS.js";
|
29
35
|
import "../../chunks/chunk-S32K7POB.js";
|
30
36
|
import "../../chunks/chunk-D3ERTRDW.js";
|
31
37
|
import "../../chunks/chunk-75BICI4L.js";
|
32
38
|
import "../../chunks/chunk-OGBUSUE6.js";
|
33
|
-
import "../../chunks/chunk-
|
34
|
-
import "../../chunks/chunk-6RGDWX4A.js";
|
35
|
-
import {
|
36
|
-
isConstructorFunction
|
37
|
-
} from "../../chunks/chunk-RCO57B6F.js";
|
39
|
+
import "../../chunks/chunk-WLZD64PA.js";
|
38
40
|
import "../../chunks/chunk-VJJIYJMY.js";
|
41
|
+
import "../../chunks/chunk-YS6WMSWC.js";
|
39
42
|
import "../../chunks/chunk-AQBJ6HNB.js";
|
40
43
|
import "../../chunks/chunk-TIER4TF4.js";
|
41
44
|
import {
|
@@ -47,14 +50,11 @@ import "../../chunks/chunk-RLJOYG64.js";
|
|
47
50
|
import "../../chunks/chunk-WH6BPDAC.js";
|
48
51
|
import "../../chunks/chunk-QHLQVR3E.js";
|
49
52
|
import "../../chunks/chunk-FENXVJYO.js";
|
50
|
-
import "../../chunks/chunk-YS6WMSWC.js";
|
51
53
|
import "../../chunks/chunk-RLAZR3NL.js";
|
52
|
-
import "../../chunks/chunk-
|
54
|
+
import "../../chunks/chunk-6RGDWX4A.js";
|
53
55
|
import {
|
54
|
-
|
55
|
-
|
56
|
-
nullishValues
|
57
|
-
} from "../../chunks/chunk-HC6ZOHCS.js";
|
56
|
+
isConstructorFunction
|
57
|
+
} from "../../chunks/chunk-RCO57B6F.js";
|
58
58
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
59
59
|
|
60
60
|
// src/agnostic/misc/index.ts
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
LoremIpsum
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-MXGOSLJF.js";
|
4
4
|
import "../../../chunks/chunk-S32K7POB.js";
|
5
5
|
import "../../../chunks/chunk-D3ERTRDW.js";
|
6
6
|
import "../../../chunks/chunk-75BICI4L.js";
|
7
7
|
import "../../../chunks/chunk-OGBUSUE6.js";
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-6RGDWX4A.js";
|
10
|
-
import "../../../chunks/chunk-RCO57B6F.js";
|
8
|
+
import "../../../chunks/chunk-WLZD64PA.js";
|
11
9
|
import "../../../chunks/chunk-VJJIYJMY.js";
|
10
|
+
import "../../../chunks/chunk-YS6WMSWC.js";
|
12
11
|
import "../../../chunks/chunk-AQBJ6HNB.js";
|
13
12
|
import "../../../chunks/chunk-TIER4TF4.js";
|
14
13
|
import "../../../chunks/chunk-FR5H2OCV.js";
|
@@ -18,8 +17,9 @@ import "../../../chunks/chunk-RLJOYG64.js";
|
|
18
17
|
import "../../../chunks/chunk-WH6BPDAC.js";
|
19
18
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
20
19
|
import "../../../chunks/chunk-FENXVJYO.js";
|
21
|
-
import "../../../chunks/chunk-YS6WMSWC.js";
|
22
20
|
import "../../../chunks/chunk-RLAZR3NL.js";
|
21
|
+
import "../../../chunks/chunk-6RGDWX4A.js";
|
22
|
+
import "../../../chunks/chunk-RCO57B6F.js";
|
23
23
|
import "../../../chunks/chunk-WSFCRVEQ.js";
|
24
24
|
export {
|
25
25
|
LoremIpsum
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
absoluteModulo
|
3
|
-
} from "../../chunks/chunk-DNIOWD7K.js";
|
4
1
|
import {
|
5
2
|
clamp
|
6
3
|
} from "../../chunks/chunk-OSAXBA7G.js";
|
4
|
+
import {
|
5
|
+
absoluteModulo
|
6
|
+
} from "../../chunks/chunk-DNIOWD7K.js";
|
7
7
|
import {
|
8
8
|
interpolate
|
9
9
|
} from "../../chunks/chunk-BJAYUP7M.js";
|
@@ -1,22 +1,16 @@
|
|
1
1
|
import {
|
2
2
|
recordFormat
|
3
3
|
} from "../../chunks/chunk-YP64J65L.js";
|
4
|
-
import {
|
5
|
-
recordMap
|
6
|
-
} from "../../chunks/chunk-XNF5MLCQ.js";
|
7
4
|
import {
|
8
5
|
Validation
|
9
6
|
} from "../../chunks/chunk-FPEW3A27.js";
|
7
|
+
import {
|
8
|
+
recordMap
|
9
|
+
} from "../../chunks/chunk-XNF5MLCQ.js";
|
10
10
|
import {
|
11
11
|
Enums
|
12
12
|
} from "../../chunks/chunk-WOAYU6LB.js";
|
13
13
|
import "../../chunks/chunk-E6MSDKON.js";
|
14
|
-
import {
|
15
|
-
deepGetProperty
|
16
|
-
} from "../../chunks/chunk-SKMCIFS3.js";
|
17
|
-
import {
|
18
|
-
isRecord
|
19
|
-
} from "../../chunks/chunk-YDIBNEGA.js";
|
20
14
|
import {
|
21
15
|
flattenGetters
|
22
16
|
} from "../../chunks/chunk-VFJYLXCI.js";
|
@@ -24,6 +18,12 @@ import {
|
|
24
18
|
isNonNullObject,
|
25
19
|
isObject
|
26
20
|
} from "../../chunks/chunk-HQLRJ7XW.js";
|
21
|
+
import {
|
22
|
+
deepGetProperty
|
23
|
+
} from "../../chunks/chunk-SKMCIFS3.js";
|
24
|
+
import {
|
25
|
+
isRecord
|
26
|
+
} from "../../chunks/chunk-YDIBNEGA.js";
|
27
27
|
import "../../chunks/chunk-SNJJII7A.js";
|
28
28
|
import "../../chunks/chunk-QXAJXTXV.js";
|
29
29
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
CharCodes
|
3
|
-
} from "../../chunks/chunk-34U4HX4V.js";
|
4
1
|
import {
|
5
2
|
matches,
|
6
3
|
matchesEvery,
|
7
4
|
matchesSome
|
8
5
|
} from "../../chunks/chunk-R3AWQXMY.js";
|
6
|
+
import {
|
7
|
+
CharCodes
|
8
|
+
} from "../../chunks/chunk-34U4HX4V.js";
|
9
9
|
import {
|
10
10
|
normalizeIndent
|
11
11
|
} from "../../chunks/chunk-JQXNEJAP.js";
|
12
|
+
import {
|
13
|
+
parseTable
|
14
|
+
} from "../../chunks/chunk-O7NVF55C.js";
|
15
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
12
16
|
import {
|
13
17
|
replaceAll
|
14
18
|
} from "../../chunks/chunk-ZTDVUXPR.js";
|
15
19
|
import {
|
16
20
|
toAlphanum
|
17
21
|
} from "../../chunks/chunk-COVPTTAD.js";
|
18
|
-
import {
|
19
|
-
parseTable
|
20
|
-
} from "../../chunks/chunk-GYELTEZT.js";
|
21
|
-
import "../../chunks/chunk-JMU5PDBD.js";
|
22
22
|
import {
|
23
23
|
trimEnd,
|
24
24
|
trimStart
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { Outcome } from '../../misc/outcome';
|
2
|
-
export type
|
2
|
+
export type ParseTableLineModeOptions<T extends Record<string, string>> = {
|
3
3
|
inputToLines: (input: string) => string[];
|
4
4
|
headLinePos: number;
|
5
5
|
headLineToHeaders: (input: string) => string[];
|
6
6
|
bodyLinesBounds: [number, number];
|
7
7
|
bodyLineToCellValue: (input: string) => string[];
|
8
8
|
schema: (obj: unknown) => T;
|
9
|
-
}
|
9
|
+
};
|
10
|
+
export type ParseTableColumnModeOptions<T extends Record<string, string>> = {
|
10
11
|
inputToLines: (input: string) => string[];
|
11
12
|
headLinePos: number;
|
12
13
|
bodyLinesBounds: [number, number];
|
@@ -15,50 +16,56 @@ export type ParseTableOptions<T extends Record<string, string>> = {
|
|
15
16
|
valueRefine: (value: string) => string;
|
16
17
|
schema: (obj: unknown) => T;
|
17
18
|
};
|
18
|
-
export
|
19
|
+
export type ParseTableOptions<T extends Record<string, string>> = ParseTableLineModeOptions<T> | ParseTableColumnModeOptions<T>;
|
19
20
|
/**
|
20
21
|
* Parses a tabular string input into an array of objects, where each object represents a row in the table.
|
21
22
|
*
|
22
23
|
* There are two parsing modes:
|
23
24
|
*
|
24
|
-
* 1. **Delimiter-based parsing**
|
25
|
-
* - The table is split into rows and then into cells using
|
25
|
+
* 1. **Delimiter-based parsing** (default)
|
26
|
+
* - The table is split into rows and then into cells using functions such as splitting on `\n` and `\t`.
|
26
27
|
* - The header row is parsed into an array of header names, which are mapped to each cell value.
|
28
|
+
* - Defaults: `inputToLines = s => s.split('\n')`, `headLinePos = 0`, `headLineToHeaders = h => h.split('\t')`,
|
29
|
+
* `bodyLinesBounds = [0, Infinity]`, `bodyLineToCellValue = r => r.split('\t')`.
|
27
30
|
*
|
28
31
|
* 2. **Column-slice parsing**
|
29
32
|
* - The table is split into fixed-width columns based on start indices provided in `options.columns`.
|
30
33
|
* - The header row and body rows are sliced using these column boundaries.
|
31
34
|
* - Each header and cell value can be refined with user-provided functions.
|
35
|
+
* - Defaults: `inputToLines = s => s.split('\n')`, `headLinePos = 0`, `bodyLinesBounds = [1, Infinity]`,
|
36
|
+
* `headerRefine = h => h`, `valueRefine = v => v`.
|
32
37
|
*
|
33
38
|
* @template T - The type of the objects in the resulting array, extending `Record<string, string>`.
|
34
39
|
* @param {string} table - The string representation of the table to be parsed.
|
35
|
-
* @param {ParseTableOptions<T
|
40
|
+
* @param {Partial<ParseTableOptions<T>> & { schema: (obj: unknown) => T }} options - Configuration options for parsing the table.
|
36
41
|
*
|
37
|
-
* ###
|
38
|
-
* @param {function(string): string[]} options.inputToLines - Function to split the input string into lines.
|
39
|
-
* @param {number} options.headLinePos - The index of the header line in the lines array.
|
40
|
-
* @param {[number, number]} options.bodyLinesBounds - Tuple `[start, end]` indicating the range of lines to parse as body rows.
|
42
|
+
* ### Required
|
41
43
|
* @param {function(unknown): T} options.schema - Function to validate and transform each row object.
|
42
44
|
*
|
43
|
-
* ###
|
44
|
-
* @param {function(string): string[]} options.
|
45
|
-
* @param {
|
45
|
+
* ### Common (optional)
|
46
|
+
* @param {function(string): string[]} [options.inputToLines] - Function to split the input string into lines. Default: `s => s.split('\n')`.
|
47
|
+
* @param {number} [options.headLinePos] - Index of the header line. Default: `0`.
|
48
|
+
* @param {[number, number]} [options.bodyLinesBounds] - Tuple `[start, end]` indicating the range of lines to parse as body rows.
|
49
|
+
*
|
50
|
+
* ### Delimiter-based (optional, used when `columns` is not provided)
|
51
|
+
* @param {function(string): string[]} [options.headLineToHeaders] - Function to parse the header line into an array of header names. Default: `h => h.split('\t')`.
|
52
|
+
* @param {function(string): string[]} [options.bodyLineToCellValue] - Function to parse each body line into an array of cell values. Default: `r => r.split('\t')`.
|
46
53
|
*
|
47
|
-
* ### Column-slice
|
48
|
-
* @param {number[]} options.columns -
|
49
|
-
* @param {function(string): string} options.headerRefine - Function to clean or normalize header names.
|
50
|
-
* @param {function(string): string} options.valueRefine - Function to clean or normalize cell values.
|
54
|
+
* ### Column-slice (optional, used when `columns` is provided)
|
55
|
+
* @param {number[]} [options.columns] - Starting indices for each column. The last column extends to the end of the line.
|
56
|
+
* @param {function(string): string} [options.headerRefine] - Function to clean or normalize header names. Default: `h => h`.
|
57
|
+
* @param {function(string): string} [options.valueRefine] - Function to clean or normalize cell values. Default: `v => v`.
|
51
58
|
*
|
52
|
-
* @returns {Outcome.Either<T[], string>} An `Outcome`
|
59
|
+
* @returns {Outcome.Either<T[], string>} An `Outcome` containing either:
|
53
60
|
* - `success = true` with an array of parsed row objects, or
|
54
61
|
* - `success = false` with an error message.
|
55
62
|
*
|
56
|
-
* @throws Will
|
63
|
+
* @throws Will return a failure outcome if the header line cannot be found.
|
57
64
|
*
|
58
65
|
* @example
|
59
|
-
* // Delimiter-based parsing
|
66
|
+
* // Delimiter-based parsing (default)
|
60
67
|
* const table = 'name\tage\nAlice\t30\nBob\t25';
|
61
|
-
* const result = parseTable(table);
|
68
|
+
* const result = parseTable(table, { schema: row => row });
|
62
69
|
* if (result.success) {
|
63
70
|
* console.log(result.payload); // [{ name: 'Alice', age: '30' }, { name: 'Bob', age: '25' }]
|
64
71
|
* }
|
@@ -67,16 +74,15 @@ export declare const defaultOptions: ParseTableOptions<any>;
|
|
67
74
|
* // Column-slice parsing
|
68
75
|
* const table = 'Name Age\nAlice 30 \nBob 25 ';
|
69
76
|
* const result = parseTable(table, {
|
70
|
-
*
|
71
|
-
*
|
72
|
-
* bodyLinesBounds: [1, Infinity],
|
73
|
-
* columns: [0, 10, 15], // start indices for each column
|
77
|
+
* schema: row => row,
|
78
|
+
* columns: [0, 10, 15],
|
74
79
|
* headerRefine: h => h.trim(),
|
75
|
-
* valueRefine: v => v.trim()
|
76
|
-
* schema: row => row
|
80
|
+
* valueRefine: v => v.trim()
|
77
81
|
* });
|
78
82
|
* if (result.success) {
|
79
83
|
* console.log(result.payload); // [{ Name: 'Alice', Age: '30' }, { Name: 'Bob', Age: '25' }]
|
80
84
|
* }
|
81
85
|
*/
|
82
|
-
export declare function parseTable<T extends Record<string, string>>(table: string,
|
86
|
+
export declare function parseTable<T extends Record<string, string>>(table: string, _options: Partial<ParseTableOptions<T>> & {
|
87
|
+
schema: (obj: unknown) => T;
|
88
|
+
}): Outcome.Either<T[], string>;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import {
|
2
|
-
defaultOptions,
|
3
2
|
parseTable
|
4
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-O7NVF55C.js";
|
5
4
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
6
5
|
import "../../../chunks/chunk-WSFCRVEQ.js";
|
7
6
|
export {
|
8
|
-
defaultOptions,
|
9
7
|
parseTable
|
10
8
|
};
|
@@ -1,36 +1,36 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "./chunk-
|
2
|
+
remove_file_exports
|
3
|
+
} from "./chunk-IH6TPXGZ.js";
|
4
4
|
import {
|
5
|
-
|
6
|
-
} from "./chunk-
|
5
|
+
upload_file_exports
|
6
|
+
} from "./chunk-I3LKH6JC.js";
|
7
7
|
import {
|
8
|
-
|
9
|
-
} from "./chunk-
|
8
|
+
copy_file_exports
|
9
|
+
} from "./chunk-JZ6QNL7U.js";
|
10
10
|
import {
|
11
|
-
|
12
|
-
} from "./chunk-
|
11
|
+
download_file_exports
|
12
|
+
} from "./chunk-IIMYMEJ6.js";
|
13
13
|
import {
|
14
|
-
|
15
|
-
} from "./chunk-
|
14
|
+
exists_file_exports
|
15
|
+
} from "./chunk-MRCJT2LW.js";
|
16
16
|
import {
|
17
|
-
|
18
|
-
} from "./chunk-
|
17
|
+
list_dir_exports
|
18
|
+
} from "./chunk-E7JWKPHC.js";
|
19
19
|
import {
|
20
|
-
|
21
|
-
} from "./chunk-
|
20
|
+
move_file_exports
|
21
|
+
} from "./chunk-N7TMNMOK.js";
|
22
22
|
import {
|
23
|
-
|
24
|
-
} from "./chunk-
|
23
|
+
move_dir_exports
|
24
|
+
} from "./chunk-AK5LBEW3.js";
|
25
25
|
import {
|
26
|
-
|
27
|
-
} from "./chunk-
|
26
|
+
remove_dir_exports
|
27
|
+
} from "./chunk-6AYH6N4T.js";
|
28
28
|
import {
|
29
|
-
|
30
|
-
} from "./chunk-
|
29
|
+
stat_file_exports
|
30
|
+
} from "./chunk-NSB5NOKA.js";
|
31
31
|
import {
|
32
|
-
|
33
|
-
} from "./chunk-
|
32
|
+
copy_dir_exports
|
33
|
+
} from "./chunk-RG5U7D3R.js";
|
34
34
|
import {
|
35
35
|
__export
|
36
36
|
} from "./chunk-WSFCRVEQ.js";
|
@@ -2,16 +2,16 @@ import {
|
|
2
2
|
Cast,
|
3
3
|
Tree,
|
4
4
|
Utils
|
5
|
-
} from "./chunk-
|
5
|
+
} from "./chunk-VCCKYSSJ.js";
|
6
|
+
import {
|
7
|
+
Serialize
|
8
|
+
} from "./chunk-SXRWMH3U.js";
|
6
9
|
import {
|
7
10
|
Types
|
8
11
|
} from "./chunk-XEQ2PBT2.js";
|
9
12
|
import {
|
10
13
|
SmartTags
|
11
14
|
} from "./chunk-UT2J62LH.js";
|
12
|
-
import {
|
13
|
-
Serialize
|
14
|
-
} from "./chunk-SXRWMH3U.js";
|
15
15
|
import {
|
16
16
|
Transformer
|
17
17
|
} from "./chunk-BKO7GLC2.js";
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
file_exports
|
3
|
-
} from "./chunk-KE7RNBSU.js";
|
4
1
|
import {
|
5
2
|
bucket_exports
|
6
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-UEAMPAHK.js";
|
7
4
|
import {
|
8
5
|
directory_exports
|
9
|
-
} from "./chunk-
|
6
|
+
} from "./chunk-X5F6XGEP.js";
|
7
|
+
import {
|
8
|
+
file_exports
|
9
|
+
} from "./chunk-X5K3KE5O.js";
|
10
10
|
import {
|
11
11
|
__export
|
12
12
|
} from "./chunk-WSFCRVEQ.js";
|
@@ -3,15 +3,25 @@ import {
|
|
3
3
|
} from "./chunk-JMU5PDBD.js";
|
4
4
|
|
5
5
|
// src/agnostic/strings/parse-table/index.ts
|
6
|
-
var
|
6
|
+
var defaultLineModeOptions = {
|
7
7
|
inputToLines: (i) => i.split("\n"),
|
8
8
|
headLinePos: 0,
|
9
|
-
headLineToHeaders: (
|
10
|
-
bodyLinesBounds: [
|
9
|
+
headLineToHeaders: (h) => h.split(" "),
|
10
|
+
bodyLinesBounds: [0, Infinity],
|
11
11
|
bodyLineToCellValue: (i) => i.split(" "),
|
12
12
|
schema: (i) => i
|
13
13
|
};
|
14
|
-
|
14
|
+
var defaultColumnModeOptions = {
|
15
|
+
inputToLines: (i) => i.split("\n"),
|
16
|
+
headLinePos: 0,
|
17
|
+
bodyLinesBounds: [1, Infinity],
|
18
|
+
columns: [],
|
19
|
+
headerRefine: (h) => h,
|
20
|
+
valueRefine: (v) => v,
|
21
|
+
schema: (i) => i
|
22
|
+
};
|
23
|
+
function parseTable(table, _options) {
|
24
|
+
const options = "columns" in _options ? { ...defaultColumnModeOptions, ..._options } : { ...defaultLineModeOptions, ..._options };
|
15
25
|
const lines = options.inputToLines(table);
|
16
26
|
const headLine = lines.at(options.headLinePos);
|
17
27
|
if (headLine === void 0) return Outcome.makeFailure("Head line not found");
|
@@ -55,6 +65,5 @@ function parseTable(table, options = defaultOptions) {
|
|
55
65
|
}
|
56
66
|
|
57
67
|
export {
|
58
|
-
defaultOptions,
|
59
68
|
parseTable
|
60
69
|
};
|
package/node/@aws-s3/index.js
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
import {
|
2
2
|
storage_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-
|
6
|
-
import "../../chunks/chunk-ZEZCYPLQ.js";
|
7
|
-
import "../../chunks/chunk-4XSDRT23.js";
|
3
|
+
} from "../../chunks/chunk-WD3CE5WS.js";
|
4
|
+
import "../../chunks/chunk-ZBAKY6DB.js";
|
5
|
+
import "../../chunks/chunk-QUPIMVDB.js";
|
8
6
|
import "../../chunks/chunk-3TKBCG7Y.js";
|
9
|
-
import "../../chunks/chunk-QWZ4ZNFA.js";
|
10
|
-
import "../../chunks/chunk-ZSUG52DO.js";
|
11
|
-
import "../../chunks/chunk-VROZGPC5.js";
|
12
7
|
import "../../chunks/chunk-FD5WR2A5.js";
|
13
|
-
import "../../chunks/chunk-4XBUJAQU.js";
|
14
8
|
import "../../chunks/chunk-C6QTHDDM.js";
|
15
9
|
import "../../chunks/chunk-IV75M3KE.js";
|
10
|
+
import "../../chunks/chunk-ZEZCYPLQ.js";
|
11
|
+
import "../../chunks/chunk-ZSUG52DO.js";
|
12
|
+
import "../../chunks/chunk-QWZ4ZNFA.js";
|
16
13
|
import "../../chunks/chunk-ON6LC3HE.js";
|
14
|
+
import "../../chunks/chunk-4XSDRT23.js";
|
15
|
+
import "../../chunks/chunk-VROZGPC5.js";
|
16
|
+
import "../../chunks/chunk-4XBUJAQU.js";
|
17
17
|
import "../../chunks/chunk-JMU5PDBD.js";
|
18
18
|
import "../../chunks/chunk-FENXVJYO.js";
|
19
19
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
2
|
-
import {
|
3
|
-
remove_dir_exports
|
4
|
-
} from "../../../../chunks/chunk-4XSDRT23.js";
|
1
|
+
import "../../../../chunks/chunk-ZBAKY6DB.js";
|
5
2
|
import {
|
6
3
|
list_exports
|
7
4
|
} from "../../../../chunks/chunk-ZSUG52DO.js";
|
8
|
-
import {
|
9
|
-
copy_dir_exports
|
10
|
-
} from "../../../../chunks/chunk-4XBUJAQU.js";
|
11
5
|
import {
|
12
6
|
move_dir_exports
|
13
7
|
} from "../../../../chunks/chunk-ON6LC3HE.js";
|
8
|
+
import {
|
9
|
+
remove_dir_exports
|
10
|
+
} from "../../../../chunks/chunk-4XSDRT23.js";
|
11
|
+
import {
|
12
|
+
copy_dir_exports
|
13
|
+
} from "../../../../chunks/chunk-4XBUJAQU.js";
|
14
14
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
15
15
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
16
16
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|