@thisisagile/easy 17.23.1 → 17.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HAEVUETQ.mjs → chunk-2C5WHSM5.mjs} +2 -2
- package/dist/{chunk-UWA2JPXC.mjs → chunk-4WLPMNMB.mjs} +9 -9
- package/dist/{chunk-DUMDOMES.mjs → chunk-6ATDEGSU.mjs} +3 -3
- package/dist/{chunk-P4MEAARF.mjs → chunk-6ENYJKOF.mjs} +42 -35
- package/dist/chunk-6ENYJKOF.mjs.map +1 -0
- package/dist/{chunk-MBY7DP5K.mjs → chunk-6RSOVRW4.mjs} +4 -4
- package/dist/{chunk-MBFLUJ5X.mjs → chunk-73VXBPTL.mjs} +11 -11
- package/dist/{chunk-CHV6RMJL.mjs → chunk-7OEH5Q3V.mjs} +2 -2
- package/dist/{chunk-SHTZ4ZZ2.mjs → chunk-AWT4XDU7.mjs} +4 -4
- package/dist/{chunk-QL3DRPMM.mjs → chunk-BDKRR6H2.mjs} +2 -2
- package/dist/{chunk-VI57VONC.mjs → chunk-CHLVZFAR.mjs} +2 -2
- package/dist/{chunk-RTVVXROA.mjs → chunk-CMMMDBTK.mjs} +3 -3
- package/dist/{chunk-WUHEP5NJ.mjs → chunk-D4EFIKFU.mjs} +4 -4
- package/dist/chunk-D4EFIKFU.mjs.map +1 -0
- package/dist/{chunk-3ZX4YFOK.mjs → chunk-EOIG654K.mjs} +4 -4
- package/dist/{chunk-LMVFKEDS.mjs → chunk-F2SLQDR2.mjs} +2 -2
- package/dist/{chunk-5UUY67VD.mjs → chunk-F7MQZLCR.mjs} +3 -3
- package/dist/{chunk-3LWQJAEJ.mjs → chunk-FLJXHLSM.mjs} +3 -3
- package/dist/{chunk-7WCAHERW.mjs → chunk-GA7BBYC2.mjs} +3 -3
- package/dist/{chunk-UGTCVMQQ.mjs → chunk-GSAKK3JN.mjs} +3 -3
- package/dist/{chunk-A42HFDBS.mjs → chunk-HFBHENMJ.mjs} +3 -3
- package/dist/{chunk-A42HFDBS.mjs.map → chunk-HFBHENMJ.mjs.map} +1 -1
- package/dist/{chunk-Q7FJUYZT.mjs → chunk-HO3IEF5S.mjs} +14 -3
- package/dist/chunk-HO3IEF5S.mjs.map +1 -0
- package/dist/{chunk-MTDHDEDS.mjs → chunk-HWYUYPBI.mjs} +6 -6
- package/dist/{chunk-J7FACY7Y.mjs → chunk-I4HFLLRR.mjs} +3 -3
- package/dist/{chunk-YAB5YLHI.mjs → chunk-J5AZL5T6.mjs} +2 -2
- package/dist/{chunk-F4JCURDN.mjs → chunk-JABPZGOG.mjs} +2 -2
- package/dist/{chunk-4BH22HLY.mjs → chunk-JJQAGAQN.mjs} +3 -3
- package/dist/{chunk-5UXTE3WM.mjs → chunk-KBB2WGTO.mjs} +2 -2
- package/dist/{chunk-QH2LF3L3.mjs → chunk-LIDMZELG.mjs} +3 -3
- package/dist/{chunk-KBR62ITL.mjs → chunk-N5B6HSHV.mjs} +4 -4
- package/dist/{chunk-XWRQODZZ.mjs → chunk-NUA7EUWX.mjs} +6 -6
- package/dist/{chunk-DAG7KGVL.mjs → chunk-O4CJ7NSN.mjs} +2 -2
- package/dist/{chunk-TG7T4QPS.mjs → chunk-ONWMWJ43.mjs} +2 -2
- package/dist/chunk-ONWMWJ43.mjs.map +1 -0
- package/dist/{chunk-HL7ITJJT.mjs → chunk-OVORFG3O.mjs} +2 -2
- package/dist/{chunk-4WIL3EXY.mjs → chunk-PB6SCADS.mjs} +4 -4
- package/dist/{chunk-RGO5KVRQ.mjs → chunk-QNE24TSJ.mjs} +2 -2
- package/dist/{chunk-BI3DP4QA.mjs → chunk-S2VNBE5K.mjs} +3 -3
- package/dist/{chunk-7W67IZE4.mjs → chunk-ST3P6VWM.mjs} +2 -2
- package/dist/{chunk-AMIP3FS5.mjs → chunk-TLYJ2G3X.mjs} +9 -3
- package/dist/chunk-TLYJ2G3X.mjs.map +1 -0
- package/dist/{chunk-SDGUXNY3.mjs → chunk-TMAB63X5.mjs} +2 -2
- package/dist/{chunk-BE474ULY.mjs → chunk-UCNB24EO.mjs} +2 -2
- package/dist/{chunk-YODYDO2U.mjs → chunk-W53U3D4O.mjs} +2 -2
- package/dist/{chunk-UHP56ITH.mjs → chunk-WBL4BT3I.mjs} +2 -2
- package/dist/{chunk-4K6SPD7T.mjs → chunk-WDC45I5H.mjs} +4 -4
- package/dist/{chunk-KWE3VWIW.mjs → chunk-Y5NBOPDI.mjs} +5 -5
- package/dist/chunk-Y5NBOPDI.mjs.map +1 -0
- package/dist/{chunk-VKBEWDLL.mjs → chunk-YMJ43VFE.mjs} +4 -4
- package/dist/{chunk-OWZ5I5IV.mjs → chunk-YYIIQGLL.mjs} +13 -10
- package/dist/chunk-YYIIQGLL.mjs.map +1 -0
- package/dist/{chunk-I32HDHLS.mjs → chunk-ZNUHRHPU.mjs} +2 -2
- package/dist/data/Condition.mjs +5 -4
- package/dist/data/Database.mjs +6 -5
- package/dist/data/Field.mjs +5 -4
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.mjs +14 -13
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/domain/Audit.mjs +18 -17
- package/dist/domain/Child.mjs +15 -14
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/DateTime.mjs +14 -13
- package/dist/domain/Entity.mjs +18 -17
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.mjs +14 -13
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.mjs +14 -13
- package/dist/domain/Typo.mjs +14 -13
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/http/CacheControl.mjs +14 -13
- package/dist/http/CacheControl.mjs.map +1 -1
- package/dist/http/ContentType.mjs +6 -5
- package/dist/http/HttpStatus.mjs +6 -5
- package/dist/http/HttpVerb.mjs +6 -5
- package/dist/http/LocalRequestStore.mjs +5 -4
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/RequestOptions.mjs +9 -8
- package/dist/http/RestResult.mjs +14 -13
- package/dist/http/toResponse.mjs +15 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/process/App.mjs +7 -6
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.mjs +14 -13
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.mjs +7 -6
- package/dist/process/Search.mjs +14 -13
- package/dist/process/UseCase.d.ts +1 -1
- package/dist/process/UseCase.mjs +9 -8
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/Req.mjs +13 -12
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/services/Api.mjs +22 -21
- package/dist/services/ApiGateway.mjs +25 -24
- package/dist/services/AxiosProvider.mjs +20 -19
- package/dist/services/MappedRouteGateway.mjs +28 -27
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.mjs +26 -25
- package/dist/services/ViewRouteGateway.mjs +29 -29
- package/dist/sql/Column.mjs +13 -12
- package/dist/sql/Count.mjs +5 -4
- package/dist/sql/Delete.mjs +4 -3
- package/dist/sql/Insert.mjs +4 -3
- package/dist/sql/Select.mjs +4 -3
- package/dist/sql/SqlQuery.mjs +3 -2
- package/dist/sql/Table.mjs +22 -21
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.mjs +14 -13
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.mjs +4 -3
- package/dist/types/AnyKey.d.ts +2 -2
- package/dist/types/Cache.mjs +4 -3
- package/dist/types/Cache.mjs.map +1 -1
- package/dist/types/CacheAge.mjs +14 -13
- package/dist/types/Case.mjs +12 -11
- package/dist/types/Context.d.ts +1 -1
- package/dist/types/Context.mjs +5 -4
- package/dist/types/Enum.mjs +5 -4
- package/dist/types/Environment.mjs +5 -4
- package/dist/types/Environment.mjs.map +1 -1
- package/dist/types/Exception.mjs +7 -6
- package/dist/types/Gateway.mjs +9 -8
- package/dist/types/IsEqual.mjs +13 -12
- package/dist/types/Json.mjs +4 -3
- package/dist/types/List.d.ts +12 -9
- package/dist/types/List.mjs +2 -1
- package/dist/types/Meta.mjs +4 -3
- package/dist/types/Number.mjs +13 -12
- package/dist/types/Object.mjs +3 -2
- package/dist/types/PageList.mjs +13 -12
- package/dist/types/Parser.mjs +12 -11
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Repository.mjs +9 -8
- package/dist/types/Result.mjs +6 -5
- package/dist/types/Results.mjs +7 -6
- package/dist/types/Tag.mjs +4 -3
- package/dist/types/Tag.mjs.map +1 -1
- package/dist/types/Template.d.ts +0 -43
- package/dist/types/Template.mjs +6 -11
- package/dist/types/ToText.d.ts +45 -0
- package/dist/types/ToText.mjs +23 -0
- package/dist/types/ToText.mjs.map +1 -0
- package/dist/types/Try.mjs +12 -11
- package/dist/types/Uri.mjs +12 -11
- package/dist/types/Uri.mjs.map +1 -1
- package/dist/utils/If.mjs +2 -1
- package/dist/utils/Mapper.mjs +6 -5
- package/dist/utils/Promise.d.ts +2 -0
- package/dist/utils/Promise.mjs +8 -4
- package/dist/utils/Seconds.mjs +3 -2
- package/dist/utils/Sentence.mjs +4 -3
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/View.mjs +16 -16
- package/dist/validation/Contraints.mjs +13 -12
- package/dist/validation/Validate.mjs +12 -11
- package/dist/validation/When.mjs +12 -11
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/process/Scope.ts +1 -1
- package/src/process/UseCase.ts +5 -5
- package/src/types/AnyKey.ts +10 -2
- package/src/types/Context.ts +6 -2
- package/src/types/Exception.ts +2 -1
- package/src/types/List.ts +17 -11
- package/src/types/Template.ts +2 -152
- package/src/types/ToText.ts +167 -0
- package/src/types/Uri.ts +1 -1
- package/src/utils/Promise.ts +5 -0
- package/src/utils/Sentence.ts +1 -1
- package/src/validation/Contraints.ts +1 -1
- package/src/validation/Validate.ts +10 -3
- package/dist/chunk-AMIP3FS5.mjs.map +0 -1
- package/dist/chunk-KWE3VWIW.mjs.map +0 -1
- package/dist/chunk-OWZ5I5IV.mjs.map +0 -1
- package/dist/chunk-P4MEAARF.mjs.map +0 -1
- package/dist/chunk-Q7FJUYZT.mjs.map +0 -1
- package/dist/chunk-TG7T4QPS.mjs.map +0 -1
- package/dist/chunk-WUHEP5NJ.mjs.map +0 -1
- /package/dist/{chunk-HAEVUETQ.mjs.map → chunk-2C5WHSM5.mjs.map} +0 -0
- /package/dist/{chunk-UWA2JPXC.mjs.map → chunk-4WLPMNMB.mjs.map} +0 -0
- /package/dist/{chunk-DUMDOMES.mjs.map → chunk-6ATDEGSU.mjs.map} +0 -0
- /package/dist/{chunk-MBY7DP5K.mjs.map → chunk-6RSOVRW4.mjs.map} +0 -0
- /package/dist/{chunk-MBFLUJ5X.mjs.map → chunk-73VXBPTL.mjs.map} +0 -0
- /package/dist/{chunk-CHV6RMJL.mjs.map → chunk-7OEH5Q3V.mjs.map} +0 -0
- /package/dist/{chunk-SHTZ4ZZ2.mjs.map → chunk-AWT4XDU7.mjs.map} +0 -0
- /package/dist/{chunk-QL3DRPMM.mjs.map → chunk-BDKRR6H2.mjs.map} +0 -0
- /package/dist/{chunk-VI57VONC.mjs.map → chunk-CHLVZFAR.mjs.map} +0 -0
- /package/dist/{chunk-RTVVXROA.mjs.map → chunk-CMMMDBTK.mjs.map} +0 -0
- /package/dist/{chunk-3ZX4YFOK.mjs.map → chunk-EOIG654K.mjs.map} +0 -0
- /package/dist/{chunk-LMVFKEDS.mjs.map → chunk-F2SLQDR2.mjs.map} +0 -0
- /package/dist/{chunk-5UUY67VD.mjs.map → chunk-F7MQZLCR.mjs.map} +0 -0
- /package/dist/{chunk-3LWQJAEJ.mjs.map → chunk-FLJXHLSM.mjs.map} +0 -0
- /package/dist/{chunk-7WCAHERW.mjs.map → chunk-GA7BBYC2.mjs.map} +0 -0
- /package/dist/{chunk-UGTCVMQQ.mjs.map → chunk-GSAKK3JN.mjs.map} +0 -0
- /package/dist/{chunk-MTDHDEDS.mjs.map → chunk-HWYUYPBI.mjs.map} +0 -0
- /package/dist/{chunk-J7FACY7Y.mjs.map → chunk-I4HFLLRR.mjs.map} +0 -0
- /package/dist/{chunk-YAB5YLHI.mjs.map → chunk-J5AZL5T6.mjs.map} +0 -0
- /package/dist/{chunk-F4JCURDN.mjs.map → chunk-JABPZGOG.mjs.map} +0 -0
- /package/dist/{chunk-4BH22HLY.mjs.map → chunk-JJQAGAQN.mjs.map} +0 -0
- /package/dist/{chunk-5UXTE3WM.mjs.map → chunk-KBB2WGTO.mjs.map} +0 -0
- /package/dist/{chunk-QH2LF3L3.mjs.map → chunk-LIDMZELG.mjs.map} +0 -0
- /package/dist/{chunk-KBR62ITL.mjs.map → chunk-N5B6HSHV.mjs.map} +0 -0
- /package/dist/{chunk-XWRQODZZ.mjs.map → chunk-NUA7EUWX.mjs.map} +0 -0
- /package/dist/{chunk-DAG7KGVL.mjs.map → chunk-O4CJ7NSN.mjs.map} +0 -0
- /package/dist/{chunk-HL7ITJJT.mjs.map → chunk-OVORFG3O.mjs.map} +0 -0
- /package/dist/{chunk-4WIL3EXY.mjs.map → chunk-PB6SCADS.mjs.map} +0 -0
- /package/dist/{chunk-RGO5KVRQ.mjs.map → chunk-QNE24TSJ.mjs.map} +0 -0
- /package/dist/{chunk-BI3DP4QA.mjs.map → chunk-S2VNBE5K.mjs.map} +0 -0
- /package/dist/{chunk-7W67IZE4.mjs.map → chunk-ST3P6VWM.mjs.map} +0 -0
- /package/dist/{chunk-SDGUXNY3.mjs.map → chunk-TMAB63X5.mjs.map} +0 -0
- /package/dist/{chunk-BE474ULY.mjs.map → chunk-UCNB24EO.mjs.map} +0 -0
- /package/dist/{chunk-YODYDO2U.mjs.map → chunk-W53U3D4O.mjs.map} +0 -0
- /package/dist/{chunk-UHP56ITH.mjs.map → chunk-WBL4BT3I.mjs.map} +0 -0
- /package/dist/{chunk-4K6SPD7T.mjs.map → chunk-WDC45I5H.mjs.map} +0 -0
- /package/dist/{chunk-VKBEWDLL.mjs.map → chunk-YMJ43VFE.mjs.map} +0 -0
- /package/dist/{chunk-I32HDHLS.mjs.map → chunk-ZNUHRHPU.mjs.map} +0 -0
package/dist/types/List.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { Json } from './Json';
|
|
|
4
4
|
import { Get, GetProperty } from './Get';
|
|
5
5
|
import type { Id } from './Id';
|
|
6
6
|
import { Optional } from './Types';
|
|
7
|
+
import { AnyKey } from './AnyKey';
|
|
8
|
+
type Pred<T> = (value: T, index: number, obj: T[]) => unknown;
|
|
7
9
|
export declare class List<T = unknown> extends Array<T> {
|
|
8
10
|
get ids(): List<Id>;
|
|
9
11
|
isSubSetOf(...items: ArrayLike<T>): boolean;
|
|
@@ -13,12 +15,12 @@ export declare class List<T = unknown> extends Array<T> {
|
|
|
13
15
|
areEqual(...items: ArrayLike<T>): boolean;
|
|
14
16
|
asc(p: GetProperty<T, any>): List<T>;
|
|
15
17
|
desc(p: GetProperty<T, any>): List<T>;
|
|
16
|
-
first(p?:
|
|
18
|
+
first(p?: Pred<T>, params?: unknown): T;
|
|
17
19
|
firstValue<V>(f: (t: T) => V, alt?: Get<V, T>): Optional<V>;
|
|
18
20
|
isFirst(value: T): boolean;
|
|
19
|
-
next(p?:
|
|
20
|
-
prev(p?:
|
|
21
|
-
last(p?:
|
|
21
|
+
next(p?: Pred<T>, params?: unknown): T;
|
|
22
|
+
prev(p?: Pred<T>, params?: unknown): T;
|
|
23
|
+
last(p?: Pred<T>, params?: unknown): T;
|
|
22
24
|
isLast(value: T): boolean;
|
|
23
25
|
overlaps(...items: ArrayLike<T>): boolean;
|
|
24
26
|
diff(others: ArrayLike<T>): List<T>;
|
|
@@ -38,7 +40,7 @@ export declare class List<T = unknown> extends Array<T> {
|
|
|
38
40
|
distinct(): List<T>;
|
|
39
41
|
distinctByKey(key: keyof T): List<T>;
|
|
40
42
|
distinctByValue(): List<T>;
|
|
41
|
-
filter(p:
|
|
43
|
+
filter(p: Pred<T>, params?: unknown): List<T>;
|
|
42
44
|
sum(p: (t: T) => number): number;
|
|
43
45
|
max(p: (value: T) => any): T;
|
|
44
46
|
max(key: keyof T): T;
|
|
@@ -55,8 +57,8 @@ export declare class List<T = unknown> extends Array<T> {
|
|
|
55
57
|
remove(item: T): List<T>;
|
|
56
58
|
replace(key: keyof T, item: T): List<T>;
|
|
57
59
|
switch(item: T): List<T>;
|
|
58
|
-
switchOn(
|
|
59
|
-
switchOn(
|
|
60
|
+
switchOn<U = T>(item: U, on: AnyKey<U>): List<T>;
|
|
61
|
+
switchOn<T>(item: T, on: Pred<T>): List<T>;
|
|
60
62
|
defined(): List<NonNullable<T>>;
|
|
61
63
|
toObject(key: keyof T, options?: {
|
|
62
64
|
deleteKey?: boolean;
|
|
@@ -67,8 +69,8 @@ export declare class List<T = unknown> extends Array<T> {
|
|
|
67
69
|
slice(start?: number, end?: number): List<T>;
|
|
68
70
|
none(p: (t: T) => boolean): boolean;
|
|
69
71
|
chunk(chunkSize: number): List<List<T>>;
|
|
70
|
-
update<U = T>(p:
|
|
71
|
-
updateFirst<U = T>(p:
|
|
72
|
+
update<U = T>(p: Pred<T>, val: T | ((v: U) => T)): List<T>;
|
|
73
|
+
updateFirst<U = T>(p: Pred<T>, val: T | ((v: U) => T)): List<T>;
|
|
72
74
|
updateFirstById<U = T>(id: Id, val: T | ((v: U) => T)): List<T>;
|
|
73
75
|
updateById<U = T>(id: Id, val: T | ((v: U) => T)): List<T>;
|
|
74
76
|
}
|
|
@@ -77,3 +79,4 @@ export declare const isList: <T>(l?: unknown) => l is List<T>;
|
|
|
77
79
|
export declare const asList: <T>(c: Constructor<T>, items?: unknown) => List<T>;
|
|
78
80
|
export declare const maxValue: <T>(l: List<T>, key: keyof T) => T[keyof T] | undefined;
|
|
79
81
|
export declare const minValue: <T>(l: List<T>, key: keyof T) => T[keyof T] | undefined;
|
|
82
|
+
export {};
|
package/dist/types/List.mjs
CHANGED
package/dist/types/Meta.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LIDMZELG.mjs";
|
|
4
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
5
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
6
|
+
import "../chunk-SSROJBD5.mjs";
|
|
6
7
|
import "../chunk-CO2AFYVD.mjs";
|
|
7
8
|
import "../chunk-BDA5LB4S.mjs";
|
|
8
9
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Number.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asNumber
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-W53U3D4O.mjs";
|
|
4
|
+
import "../chunk-YYIIQGLL.mjs";
|
|
5
5
|
import "../chunk-OFGI5FLG.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ST3P6VWM.mjs";
|
|
7
|
+
import "../chunk-OVORFG3O.mjs";
|
|
8
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
9
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
10
10
|
import "../chunk-WSBULPUZ.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
12
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
13
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
14
|
+
import "../chunk-LIDMZELG.mjs";
|
|
15
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
16
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
17
|
+
import "../chunk-SSROJBD5.mjs";
|
|
17
18
|
import "../chunk-CO2AFYVD.mjs";
|
|
18
19
|
import "../chunk-BDA5LB4S.mjs";
|
|
19
20
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Object.mjs
CHANGED
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
extractKeys,
|
|
4
4
|
keys,
|
|
5
5
|
values
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-KBB2WGTO.mjs";
|
|
7
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
8
|
+
import "../chunk-SSROJBD5.mjs";
|
|
8
9
|
import "../chunk-CO2AFYVD.mjs";
|
|
9
10
|
import "../chunk-BDA5LB4S.mjs";
|
|
10
11
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/PageList.mjs
CHANGED
|
@@ -5,20 +5,21 @@ import {
|
|
|
5
5
|
toFilter,
|
|
6
6
|
toPageList,
|
|
7
7
|
toShortFilter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-JJQAGAQN.mjs";
|
|
9
|
+
import "../chunk-YYIIQGLL.mjs";
|
|
10
10
|
import "../chunk-OFGI5FLG.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ST3P6VWM.mjs";
|
|
12
|
+
import "../chunk-OVORFG3O.mjs";
|
|
13
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
14
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
15
15
|
import "../chunk-WSBULPUZ.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
17
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
18
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
19
|
+
import "../chunk-LIDMZELG.mjs";
|
|
20
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
21
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
22
|
+
import "../chunk-SSROJBD5.mjs";
|
|
22
23
|
import "../chunk-CO2AFYVD.mjs";
|
|
23
24
|
import "../chunk-BDA5LB4S.mjs";
|
|
24
25
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Parser.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValid
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YYIIQGLL.mjs";
|
|
4
4
|
import "../chunk-OFGI5FLG.mjs";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-ST3P6VWM.mjs";
|
|
6
|
+
import "../chunk-OVORFG3O.mjs";
|
|
7
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
8
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
9
9
|
import "../chunk-WSBULPUZ.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
11
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
12
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
13
|
+
import "../chunk-LIDMZELG.mjs";
|
|
14
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
15
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
16
|
+
import "../chunk-SSROJBD5.mjs";
|
|
16
17
|
import {
|
|
17
18
|
toArray
|
|
18
19
|
} from "../chunk-CO2AFYVD.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/Parser.ts"],"sourcesContent":["import { Get, ofGet, Predicate } from './Get';\nimport { isDefined, isEmpty, isIn, isObject, isString, isTrue } from './Is';\nimport { isValid } from '../validation/Validate';\nimport { Constructor, on } from './Constructor';\nimport { toArray } from './Array';\n\nexport class Parser<T, V> {\n if = {\n equals: (pred?: Predicate<T>): this => this.evaluate(isTrue, pred),\n empty: <U>(pred?: Get<U, T>): this => this.evaluate(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluate(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluate(isValid, pred),\n in: (...items: T[]): this => this.evaluate(() => isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluate(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluate(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => this.value instanceof c, pred),\n },\n not: {\n empty: <U>(pred?: Get<U, T>): this => this.evaluateNot(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluateNot(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluateNot(isValid, pred),\n isObject: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n in: (...items: T[]): this => this.evaluate(() => !isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluateNot(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => !(this.value instanceof c), pred),\n },\n },\n };\n\n constructor(\n protected value: T,\n protected valid = true\n ) {}\n\n protected evaluate<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n\n protected evaluateNot<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = !ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/Parser.ts"],"sourcesContent":["import { Get, ofGet, Predicate } from './Get';\nimport { isDefined, isEmpty, isIn, isObject, isString, isTrue } from './Is';\nimport { isValid } from '../validation/Validate';\nimport { Constructor, on } from './Constructor';\nimport { toArray } from './Array';\n\nexport class Parser<T, V> {\n if = {\n equals: (pred?: Predicate<T>): this => this.evaluate(isTrue, pred),\n empty: <U>(pred?: Get<U, T>): this => this.evaluate(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluate(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluate(isValid, pred),\n in: (...items: T[]): this => this.evaluate(() => isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluate(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluate(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => this.value instanceof c, pred),\n },\n not: {\n empty: <U>(pred?: Get<U, T>): this => this.evaluateNot(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluateNot(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluateNot(isValid, pred),\n isObject: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n in: (...items: T[]): this => this.evaluate(() => !isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluateNot(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => !(this.value instanceof c), pred),\n },\n },\n };\n\n constructor(\n protected value: T,\n protected valid = true\n ) {}\n\n protected evaluate<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n\n protected evaluateNot<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = !ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,SAAN,MAAmB;AAAA,EA0BxB,YACY,OACA,QAAQ,MAClB;AAFU;AACA;AAAA,EACT;AAAA,EA5BH,KAAK;AAAA,IACH,QAAQ,CAAC,SAA8B,KAAK,SAAS,QAAQ,IAAI;AAAA,IACjE,OAAO,CAAI,SAA2B,KAAK,SAAS,SAAS,IAAI;AAAA,IACjE,SAAS,CAAI,SAA2B,KAAK,SAAS,WAAW,IAAI;AAAA,IACrE,OAAO,CAAI,SAA2B,KAAK,SAAS,SAAS,IAAI;AAAA,IACjE,IAAI,IAAI,UAAqB,KAAK,SAAS,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG,KAAK,CAAC,CAAC;AAAA,IACpF,IAAI;AAAA,MACF,QAAQ,CAAI,SAA2B,KAAK,SAAS,UAAU,IAAI;AAAA,MACnE,QAAQ,CAAI,SAA2B,KAAK,SAAS,UAAU,IAAI;AAAA,MACnE,UAAU,CAAI,GAAmB,SAA2B,KAAK,SAAS,MAAM,KAAK,iBAAiB,GAAG,IAAI;AAAA,IAC/G;AAAA,IACA,KAAK;AAAA,MACH,OAAO,CAAI,SAA2B,KAAK,YAAY,SAAS,IAAI;AAAA,MACpE,SAAS,CAAI,SAA2B,KAAK,YAAY,WAAW,IAAI;AAAA,MACxE,OAAO,CAAI,SAA2B,KAAK,YAAY,SAAS,IAAI;AAAA,MACpE,UAAU,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,MACxE,IAAI,IAAI,UAAqB,KAAK,SAAS,MAAM,CAAC,KAAK,KAAK,OAAO,QAAQ,GAAG,KAAK,CAAC,CAAC;AAAA,MACrF,IAAI;AAAA,QACF,QAAQ,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,QACtE,QAAQ,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,QACtE,UAAU,CAAI,GAAmB,SAA2B,KAAK,SAAS,MAAM,EAAE,KAAK,iBAAiB,IAAI,IAAI;AAAA,MAClH;AAAA,IACF;AAAA,EACF;AAAA,EAOU,SAAY,MAAoB,MAAwB;AAChE,WAAO,GAAG,MAAM,OAAM,EAAE,QAAQ,MAAM,MAAM,OAAO,MAAM,MAAM,KAAK,KAAK,IAAI,KAAK,KAAK,CAAE;AAAA,EAC3F;AAAA,EAEU,YAAe,MAAoB,MAAwB;AACnE,WAAO,GAAG,MAAM,OAAM,EAAE,QAAQ,CAAC,MAAM,MAAM,OAAO,MAAM,MAAM,KAAK,KAAK,IAAI,KAAK,KAAK,CAAE;AAAA,EAC5F;AACF;","names":[]}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Repository
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-S2VNBE5K.mjs";
|
|
4
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
5
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
6
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
7
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
8
|
+
import "../chunk-LIDMZELG.mjs";
|
|
9
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
10
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
11
|
+
import "../chunk-SSROJBD5.mjs";
|
|
11
12
|
import "../chunk-CO2AFYVD.mjs";
|
|
12
13
|
import "../chunk-BDA5LB4S.mjs";
|
|
13
14
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Result.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isResult,
|
|
3
3
|
toResult
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OVORFG3O.mjs";
|
|
5
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
6
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
7
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
8
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
9
|
+
import "../chunk-SSROJBD5.mjs";
|
|
9
10
|
import "../chunk-CO2AFYVD.mjs";
|
|
10
11
|
import "../chunk-BDA5LB4S.mjs";
|
|
11
12
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Results.mjs
CHANGED
|
@@ -2,12 +2,13 @@ import {
|
|
|
2
2
|
Results,
|
|
3
3
|
isResults,
|
|
4
4
|
toResults
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-ST3P6VWM.mjs";
|
|
6
|
+
import "../chunk-OVORFG3O.mjs";
|
|
7
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
8
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
9
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
10
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
11
|
+
import "../chunk-SSROJBD5.mjs";
|
|
11
12
|
import "../chunk-CO2AFYVD.mjs";
|
|
12
13
|
import "../chunk-BDA5LB4S.mjs";
|
|
13
14
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Tag.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LIDMZELG.mjs";
|
|
4
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
5
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
6
|
+
import "../chunk-SSROJBD5.mjs";
|
|
6
7
|
import "../chunk-CO2AFYVD.mjs";
|
|
7
8
|
import "../chunk-BDA5LB4S.mjs";
|
|
8
9
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Tag.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/Tag.ts"],"sourcesContent":["import { meta } from './Meta';\n\nexport const tag =\n (name: string): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set(name, property);\n };\n\nexport const searchable = (): PropertyDecorator => tag(searchable.name);\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/Tag.ts"],"sourcesContent":["import { meta } from './Meta';\n\nexport const tag =\n (name: string): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set(name, property);\n };\n\nexport const searchable = (): PropertyDecorator => tag(searchable.name);\n"],"mappings":";;;;;;;;;;;;;;;;;AAEO,IAAM,MACX,CAAC,SACD,CAAC,SAAkB,aAAoC;AACrD,OAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,MAAM,QAAQ;AACrD;AAEK,IAAM,aAAa,MAAyB,IAAI,WAAW,IAAI;","names":[]}
|
package/dist/types/Template.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { List } from './List';
|
|
2
1
|
import { Text } from './Text';
|
|
3
|
-
import { Optional } from './Types';
|
|
4
|
-
import { Get } from './Get';
|
|
5
|
-
import { JsonValue } from './Json';
|
|
6
2
|
export type TemplateOptions = {
|
|
7
3
|
type?: Text;
|
|
8
4
|
property?: Text;
|
|
@@ -20,42 +16,3 @@ export declare class Template implements Text {
|
|
|
20
16
|
private readonly option;
|
|
21
17
|
}
|
|
22
18
|
export declare function template(tmpl: Text, subject: unknown, options?: TemplateOptions): Text;
|
|
23
|
-
export declare class ToText implements Text {
|
|
24
|
-
readonly subject: string;
|
|
25
|
-
constructor(subject: string);
|
|
26
|
-
get cap(): ToText;
|
|
27
|
-
get capFirst(): ToText;
|
|
28
|
-
get title(): ToText;
|
|
29
|
-
get pascal(): ToText;
|
|
30
|
-
get lower(): ToText;
|
|
31
|
-
get upper(): ToText;
|
|
32
|
-
get camel(): ToText;
|
|
33
|
-
get kebab(): ToText;
|
|
34
|
-
get strictKebab(): ToText;
|
|
35
|
-
get slug(): ToText;
|
|
36
|
-
get snake(): ToText;
|
|
37
|
-
get plural(): ToText;
|
|
38
|
-
get space(): ToText;
|
|
39
|
-
get sentence(): ToText;
|
|
40
|
-
get initials(): ToText;
|
|
41
|
-
get trim(): ToText;
|
|
42
|
-
get isEmpty(): boolean;
|
|
43
|
-
parse: (subject: unknown, options?: {}) => ToText;
|
|
44
|
-
is: (...others: unknown[]) => boolean;
|
|
45
|
-
equals: (...others: unknown[]) => boolean;
|
|
46
|
-
isLike: (...others: unknown[]) => boolean;
|
|
47
|
-
ifLike: (...others: unknown[]) => Optional<this>;
|
|
48
|
-
endsWith: (end?: unknown) => boolean;
|
|
49
|
-
startsWith: (end?: unknown) => boolean;
|
|
50
|
-
first: (n: number) => ToText;
|
|
51
|
-
last: (n: number) => ToText;
|
|
52
|
-
map: (func: Get<string, string>) => ToText;
|
|
53
|
-
replace: (search: Text, replace: Text) => ToText;
|
|
54
|
-
add: (add?: unknown, separator?: string) => ToText;
|
|
55
|
-
with: (separator: string, ...other: unknown[]) => ToText;
|
|
56
|
-
split: (separator?: string) => List<string>;
|
|
57
|
-
toString(): string;
|
|
58
|
-
toJSON(): JsonValue;
|
|
59
|
-
}
|
|
60
|
-
export declare function text(subject?: unknown, alt?: string): ToText;
|
|
61
|
-
export declare function textValue(subject: any, prop: string): string;
|
package/dist/types/Template.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Template,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "../chunk-5UXTE3WM.mjs";
|
|
9
|
-
import "../chunk-AMIP3FS5.mjs";
|
|
3
|
+
template
|
|
4
|
+
} from "../chunk-6ENYJKOF.mjs";
|
|
5
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
6
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
7
|
+
import "../chunk-SSROJBD5.mjs";
|
|
10
8
|
import "../chunk-CO2AFYVD.mjs";
|
|
11
9
|
import "../chunk-BDA5LB4S.mjs";
|
|
12
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -18,9 +16,6 @@ import "../chunk-DEJ7A5PY.mjs";
|
|
|
18
16
|
import "../chunk-4N72FQFX.mjs";
|
|
19
17
|
export {
|
|
20
18
|
Template,
|
|
21
|
-
|
|
22
|
-
template,
|
|
23
|
-
text,
|
|
24
|
-
textValue
|
|
19
|
+
template
|
|
25
20
|
};
|
|
26
21
|
//# sourceMappingURL=Template.mjs.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Text } from './Text';
|
|
2
|
+
import { Optional } from './Types';
|
|
3
|
+
import { Get } from './Get';
|
|
4
|
+
import { List } from './List';
|
|
5
|
+
import { JsonValue } from './Json';
|
|
6
|
+
export declare class ToText implements Text {
|
|
7
|
+
readonly subject: string;
|
|
8
|
+
constructor(subject: string);
|
|
9
|
+
get cap(): ToText;
|
|
10
|
+
get capFirst(): ToText;
|
|
11
|
+
get title(): ToText;
|
|
12
|
+
get pascal(): ToText;
|
|
13
|
+
get lower(): ToText;
|
|
14
|
+
get upper(): ToText;
|
|
15
|
+
get camel(): ToText;
|
|
16
|
+
get kebab(): ToText;
|
|
17
|
+
get strictKebab(): ToText;
|
|
18
|
+
get slug(): ToText;
|
|
19
|
+
get snake(): ToText;
|
|
20
|
+
get plural(): ToText;
|
|
21
|
+
get space(): ToText;
|
|
22
|
+
get sentence(): ToText;
|
|
23
|
+
get initials(): ToText;
|
|
24
|
+
get trim(): ToText;
|
|
25
|
+
get trimSentence(): ToText;
|
|
26
|
+
get isEmpty(): boolean;
|
|
27
|
+
parse: (subject: unknown, options?: {}) => ToText;
|
|
28
|
+
is: (...others: unknown[]) => boolean;
|
|
29
|
+
equals: (...others: unknown[]) => boolean;
|
|
30
|
+
isLike: (...others: unknown[]) => boolean;
|
|
31
|
+
ifLike: (...others: unknown[]) => Optional<this>;
|
|
32
|
+
endsWith: (end?: unknown) => boolean;
|
|
33
|
+
startsWith: (end?: unknown) => boolean;
|
|
34
|
+
first: (n: number) => ToText;
|
|
35
|
+
last: (n: number) => ToText;
|
|
36
|
+
map: (func: Get<string, string>) => ToText;
|
|
37
|
+
replace: (search: Text, replace: Text) => ToText;
|
|
38
|
+
add: (add?: unknown, separator?: string) => ToText;
|
|
39
|
+
with: (separator: string, ...other: unknown[]) => ToText;
|
|
40
|
+
split: (separator?: string) => List<string>;
|
|
41
|
+
toString(): string;
|
|
42
|
+
toJSON(): JsonValue;
|
|
43
|
+
}
|
|
44
|
+
export declare function text(subject?: unknown, alt?: string): ToText;
|
|
45
|
+
export declare function textValue(subject: any, prop: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ToText,
|
|
3
|
+
text,
|
|
4
|
+
textValue
|
|
5
|
+
} from "../chunk-6ENYJKOF.mjs";
|
|
6
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
7
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
8
|
+
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
10
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
11
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
12
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
13
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
14
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
15
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
16
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
17
|
+
import "../chunk-4N72FQFX.mjs";
|
|
18
|
+
export {
|
|
19
|
+
ToText,
|
|
20
|
+
text,
|
|
21
|
+
textValue
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ToText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/types/Try.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Try,
|
|
3
3
|
tryTo
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YYIIQGLL.mjs";
|
|
5
5
|
import "../chunk-OFGI5FLG.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ST3P6VWM.mjs";
|
|
7
|
+
import "../chunk-OVORFG3O.mjs";
|
|
8
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
9
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
10
10
|
import "../chunk-WSBULPUZ.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ONWMWJ43.mjs";
|
|
12
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
13
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
14
|
+
import "../chunk-LIDMZELG.mjs";
|
|
15
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
16
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
17
|
+
import "../chunk-SSROJBD5.mjs";
|
|
17
18
|
import "../chunk-CO2AFYVD.mjs";
|
|
18
19
|
import "../chunk-BDA5LB4S.mjs";
|
|
19
20
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/types/Uri.mjs
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryTo
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YYIIQGLL.mjs";
|
|
4
4
|
import "../chunk-OFGI5FLG.mjs";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-ST3P6VWM.mjs";
|
|
6
|
+
import "../chunk-OVORFG3O.mjs";
|
|
7
|
+
import "../chunk-HO3IEF5S.mjs";
|
|
8
|
+
import "../chunk-HFBHENMJ.mjs";
|
|
9
9
|
import "../chunk-WSBULPUZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ctx
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-ONWMWJ43.mjs";
|
|
13
|
+
import "../chunk-6ENYJKOF.mjs";
|
|
14
|
+
import "../chunk-FLJXHLSM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
meta
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-LIDMZELG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
entries
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-KBB2WGTO.mjs";
|
|
21
21
|
import {
|
|
22
22
|
toList
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-TLYJ2G3X.mjs";
|
|
24
|
+
import "../chunk-SSROJBD5.mjs";
|
|
24
25
|
import {
|
|
25
26
|
toArray
|
|
26
27
|
} from "../chunk-CO2AFYVD.mjs";
|
package/dist/types/Uri.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/Uri.ts"],"sourcesContent":["import { isBoolean, isNotEmpty, isTrue } from './Is';\nimport { asString, Text } from './Text';\nimport { toName } from './Constructor';\nimport { ctx } from './Context';\nimport { List, toList } from './List';\nimport { meta } from './Meta';\nimport { tryTo } from './Try';\nimport { Optional } from './Types';\nimport { OneOrMore, toArray } from './Array';\nimport { entries } from './Object';\n\nexport type Segment = Text & { key?: string; segment?: string; query?: (value: unknown) => string };\n\nexport const toSegment = (\n key?: Text,\n {\n segment,\n query,\n }: {\n segment?: string;\n query?: (value: unknown) => string;\n } = {}\n): Segment => ({\n key: key as string,\n segment,\n query,\n toString: () => asString(key),\n});\n\nexport const uri = {\n host: (key?: string): Segment => toSegment(key, { segment: key ?? ctx.env.host ?? '$host' }),\n resource: <Props extends UriExpandProps>(resource: Uri<Props>): Segment => toSegment(toName(resource, 'Uri'), { segment: toName(resource, 'Uri') }),\n segment: (key?: Text): Segment => toSegment(key, { segment: key as string }),\n path: (key: Text): Segment => toSegment(key, { segment: `:${key}` }),\n query: (key: Text): Segment =>\n toSegment(key, {\n query: (value: unknown): string =>\n tryTo(value)\n .is.defined()\n .map(v => encodeURIComponent(asString(v)))\n .map(v => `${key}=${v}`)\n .orElse('') ?? '',\n }),\n boolean: (key: Text): Segment => toSegment(key, { query: (value: unknown): string => (isTrue(value) ? `${key}` : '') }),\n};\n\ntype Prop = { segment: Segment; value: any };\n\nconst toRoute = (...segments: Segment[]): string =>\n toList(segments)\n .mapDefined(s => s.segment)\n .join('/');\n\nexport type Uri<Props extends UriExpandProps = UriExpandProps> = {\n id: (id?: unknown) => Uri<Props>;\n ids: (ids: OneOrMore<unknown>) => Uri<Props>;\n query: (q?: unknown) => Uri<Props>;\n sort: (q?: any) => Uri<Props>;\n skip: (n?: number) => Uri<Props>;\n take: (n?: number) => Uri<Props>;\n path: string;\n route: (resource: string) => string;\n isInternal: boolean;\n toString: () => string;\n expand: (props: Partial<Props>) => Uri<Props>;\n};\n\nexport type UriExpandProps = { q?: string; s?: string; skip?: number; take?: number };\n\nexport class EasyUri<Props extends UriExpandProps = UriExpandProps> implements Uri<Props> {\n static readonly id = uri.path('id');\n static readonly ids = uri.query('ids');\n static readonly query = uri.query('q');\n static readonly sort = uri.query('s');\n static readonly skip = uri.query('skip');\n static readonly take = uri.query('take');\n\n readonly host = uri.host();\n protected resource = uri.resource(this);\n\n protected state: any = {};\n\n constructor(readonly segments: Segment[] = []) {}\n\n get path(): string {\n return toRoute(uri.segment(''), this.resource, ...this.segments);\n }\n\n get complete(): string {\n return toRoute(this.host, this.resource, ...this.segments);\n }\n\n get isInternal(): boolean {\n return toRoute(this.host) === (ctx.env.host ?? '$host');\n }\n\n protected get props(): List<Prop> {\n return meta(this.state).values<Prop>();\n }\n\n route = (resource: Optional<string> = this.resource.key): string => toRoute(uri.segment(''), uri.segment(resource?.toLowerCase()), ...this.segments);\n\n set = (segment: Segment, value?: unknown): this => {\n tryTo(value)\n .is.defined()\n .accept(value => (this.state[segment.key ?? ''] = { segment, value }));\n return this;\n };\n\n toString(): string {\n return tryTo(() => this.props)\n .map(ps => ps.filter(p => p.segment?.segment))\n .map(ps => ps.reduce((r: string, p: Prop) => r.replace(asString(p.segment.segment), asString(p.value)), this.complete))\n .map(route => ({\n route,\n query: this.props.mapDefined(p => (p.segment?.query ? p.segment?.query(p.value) : undefined))?.join('&'),\n }))\n .map(({ route, query }) => (isNotEmpty(query) ? `${route}?${query}` : route)).value;\n }\n\n id = (id?: unknown): this => this.set(EasyUri.id, id);\n ids = (ids: OneOrMore<unknown>): this => this.set(EasyUri.ids, toArray(ids).join(','));\n query = (q?: unknown): this => this.set(EasyUri.query, q);\n sort = (s?: any): this => this.set(EasyUri.sort, asString(s));\n\n skip = (index?: number): this => this.set(EasyUri.skip, index);\n take = (items?: number): this => this.set(EasyUri.take, items);\n\n expand(props: Partial<Props>): this {\n return entries(props as any)\n .filter(([_, v]) => isNotEmpty(v))\n .reduce((u, [k, v]) => (isBoolean(v) ? u.set(uri.boolean(k), v) : u.set(uri.query(k), toArray(v).join(','))), this);\n }\n}\n\nexport const clipUri = (uri?: EasyUri | string | null): string =>\n tryTo(() => asString(uri))\n .map(uri => uri.replace(/^(https?:\\/\\/)?(www\\.)?/, ''))\n .map(uri => uri.replace(/\\/$/, '')).value;\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/Uri.ts"],"sourcesContent":["import { isBoolean, isNotEmpty, isTrue } from './Is';\nimport { asString, Text } from './Text';\nimport { toName } from './Constructor';\nimport { ctx } from './Context';\nimport { List, toList } from './List';\nimport { meta } from './Meta';\nimport { tryTo } from './Try';\nimport { Optional } from './Types';\nimport { OneOrMore, toArray } from './Array';\nimport { entries } from './Object';\n\nexport type Segment = Text & { key?: string; segment?: string; query?: (value: unknown) => string };\n\nexport const toSegment = (\n key?: Text,\n {\n segment,\n query,\n }: {\n segment?: string;\n query?: (value: unknown) => string;\n } = {}\n): Segment => ({\n key: key as string,\n segment,\n query,\n toString: () => asString(key),\n});\n\nexport const uri = {\n host: (key?: string): Segment => toSegment(key, { segment: key ?? ctx.env.host ?? '$host' }),\n resource: <Props extends UriExpandProps>(resource: Uri<Props>): Segment => toSegment(toName(resource, 'Uri'), { segment: toName(resource, 'Uri') }),\n segment: (key?: Text): Segment => toSegment(key, { segment: key as string }),\n path: (key: Text): Segment => toSegment(key, { segment: `:${key}` }),\n query: (key: Text): Segment =>\n toSegment(key, {\n query: (value: unknown): string =>\n tryTo(value)\n .is.defined()\n .map(v => encodeURIComponent(asString(v)))\n .map(v => `${key}=${v}`)\n .orElse('') ?? '',\n }),\n boolean: (key: Text): Segment => toSegment(key, { query: (value: unknown): string => (isTrue(value) ? `${key}` : '') }),\n};\n\ntype Prop = { segment: Segment; value: any };\n\nconst toRoute = (...segments: Segment[]): string =>\n toList(segments)\n .mapDefined(s => s.segment)\n .join('/');\n\nexport type Uri<Props extends UriExpandProps = UriExpandProps> = {\n id: (id?: unknown) => Uri<Props>;\n ids: (ids: OneOrMore<unknown>) => Uri<Props>;\n query: (q?: unknown) => Uri<Props>;\n sort: (q?: any) => Uri<Props>;\n skip: (n?: number) => Uri<Props>;\n take: (n?: number) => Uri<Props>;\n path: string;\n route: (resource: string) => string;\n isInternal: boolean;\n toString: () => string;\n expand: (props: Partial<Props>) => Uri<Props>;\n};\n\nexport type UriExpandProps = { q?: string; s?: string; skip?: number; take?: number };\n\nexport class EasyUri<Props extends UriExpandProps = UriExpandProps> implements Uri<Props> {\n static readonly id = uri.path('id');\n static readonly ids = uri.query('ids');\n static readonly query = uri.query('q');\n static readonly sort = uri.query('s');\n static readonly skip = uri.query('skip');\n static readonly take = uri.query('take');\n\n readonly host = uri.host();\n protected resource: Segment = uri.resource(this);\n\n protected state: any = {};\n\n constructor(readonly segments: Segment[] = []) {}\n\n get path(): string {\n return toRoute(uri.segment(''), this.resource, ...this.segments);\n }\n\n get complete(): string {\n return toRoute(this.host, this.resource, ...this.segments);\n }\n\n get isInternal(): boolean {\n return toRoute(this.host) === (ctx.env.host ?? '$host');\n }\n\n protected get props(): List<Prop> {\n return meta(this.state).values<Prop>();\n }\n\n route = (resource: Optional<string> = this.resource.key): string => toRoute(uri.segment(''), uri.segment(resource?.toLowerCase()), ...this.segments);\n\n set = (segment: Segment, value?: unknown): this => {\n tryTo(value)\n .is.defined()\n .accept(value => (this.state[segment.key ?? ''] = { segment, value }));\n return this;\n };\n\n toString(): string {\n return tryTo(() => this.props)\n .map(ps => ps.filter(p => p.segment?.segment))\n .map(ps => ps.reduce((r: string, p: Prop) => r.replace(asString(p.segment.segment), asString(p.value)), this.complete))\n .map(route => ({\n route,\n query: this.props.mapDefined(p => (p.segment?.query ? p.segment?.query(p.value) : undefined))?.join('&'),\n }))\n .map(({ route, query }) => (isNotEmpty(query) ? `${route}?${query}` : route)).value;\n }\n\n id = (id?: unknown): this => this.set(EasyUri.id, id);\n ids = (ids: OneOrMore<unknown>): this => this.set(EasyUri.ids, toArray(ids).join(','));\n query = (q?: unknown): this => this.set(EasyUri.query, q);\n sort = (s?: any): this => this.set(EasyUri.sort, asString(s));\n\n skip = (index?: number): this => this.set(EasyUri.skip, index);\n take = (items?: number): this => this.set(EasyUri.take, items);\n\n expand(props: Partial<Props>): this {\n return entries(props as any)\n .filter(([_, v]) => isNotEmpty(v))\n .reduce((u, [k, v]) => (isBoolean(v) ? u.set(uri.boolean(k), v) : u.set(uri.query(k), toArray(v).join(','))), this);\n }\n}\n\nexport const clipUri = (uri?: EasyUri | string | null): string =>\n tryTo(() => asString(uri))\n .map(uri => uri.replace(/^(https?:\\/\\/)?(www\\.)?/, ''))\n .map(uri => uri.replace(/\\/$/, '')).value;\n"],"mappings":"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","names":["value","uri"]}
|
package/dist/utils/If.mjs
CHANGED
package/dist/utils/Mapper.mjs
CHANGED
|
@@ -2,14 +2,15 @@ import {
|
|
|
2
2
|
Mapper,
|
|
3
3
|
isMapping,
|
|
4
4
|
mappings
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-WDC45I5H.mjs";
|
|
6
6
|
import "../chunk-WJZFE5NE.mjs";
|
|
7
7
|
import "../chunk-GCY5A63A.mjs";
|
|
8
8
|
import "../chunk-MDXL65W4.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-GA7BBYC2.mjs";
|
|
10
|
+
import "../chunk-LIDMZELG.mjs";
|
|
11
|
+
import "../chunk-KBB2WGTO.mjs";
|
|
12
|
+
import "../chunk-TLYJ2G3X.mjs";
|
|
13
|
+
import "../chunk-SSROJBD5.mjs";
|
|
13
14
|
import "../chunk-CO2AFYVD.mjs";
|
|
14
15
|
import "../chunk-BDA5LB4S.mjs";
|
|
15
16
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/utils/Promise.d.ts
CHANGED
|
@@ -16,11 +16,13 @@ export declare const tuple: {
|
|
|
16
16
|
fulfilled: List<Aw<T>>;
|
|
17
17
|
rejected: List<string>;
|
|
18
18
|
}>;
|
|
19
|
+
object: <T extends Record<string, unknown>>(obj: T) => Promise<{ [K in keyof T]: Aw<T[K]>; }>;
|
|
19
20
|
};
|
|
20
21
|
export declare const tuple2: <F, S>(first: Pro<F>, second: Pro<S>) => Promise<[Aw<F>, Aw<S>]>;
|
|
21
22
|
export declare const tuple3: <F, S, T>(first: Pro<F>, second: Pro<S>, third: Pro<T>) => Promise<[Aw<F>, Aw<S>, Aw<T>]>;
|
|
22
23
|
export declare const tuple4: <F, S, T, Fo>(first: Pro<F>, second: Pro<S>, third: Pro<T>, forth: Pro<Fo>) => Promise<[Aw<F>, Aw<S>, Aw<T>, Aw<Fo>]>;
|
|
23
24
|
export declare const tuple5: <F, S, T, Fo, Fi>(first: Pro<F>, second: Pro<S>, third: Pro<T>, forth: Pro<Fo>, fifth: Pro<Fi>) => Promise<[Aw<F>, Aw<S>, Aw<T>, Aw<Fo>, Aw<Fi>]>;
|
|
25
|
+
export declare const tupleO: <T extends Record<string, unknown>>(obj: T) => Promise<{ [K in keyof T]: Aw<T[K]>; }>;
|
|
24
26
|
export declare const settled: <T>(list: Pro<T>[]) => Promise<{
|
|
25
27
|
fulfilled: List<Aw<T>>;
|
|
26
28
|
rejected: List<string>;
|