@thisisagile/easy 17.18.5 → 17.18.6
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-S33RXRXR.mjs → chunk-2VL6B3UJ.mjs} +9 -9
- package/dist/{chunk-MLAU6FXE.mjs → chunk-3E3YJR6L.mjs} +5 -5
- package/dist/{chunk-SEWX25XP.mjs → chunk-3TI2Y4HN.mjs} +2 -2
- package/dist/{chunk-MCCIBDEH.mjs → chunk-3Y7X2UQ6.mjs} +3 -3
- package/dist/{chunk-ZZ65BSDI.mjs → chunk-4IH3OE4Y.mjs} +3 -3
- package/dist/{chunk-VAT2WY5Y.mjs → chunk-4REZO4ZW.mjs} +3 -3
- package/dist/{chunk-DF6AC3AA.mjs → chunk-55KHMBCA.mjs} +2 -2
- package/dist/{chunk-6ILWOSEE.mjs → chunk-56HLMAA4.mjs} +16 -13
- package/dist/chunk-56HLMAA4.mjs.map +1 -0
- package/dist/{chunk-H2762RTS.mjs → chunk-5FX7PFZG.mjs} +3 -5
- package/dist/{chunk-H2762RTS.mjs.map → chunk-5FX7PFZG.mjs.map} +1 -1
- package/dist/{chunk-D5KAY6YW.mjs → chunk-5HLBJ56K.mjs} +9 -9
- package/dist/{chunk-SSQRH66L.mjs → chunk-6VTDQIEE.mjs} +3 -3
- package/dist/{chunk-OEL3QKBX.mjs → chunk-744LD44R.mjs} +4 -4
- package/dist/{chunk-Q3WMGUO2.mjs → chunk-BGSOJQAU.mjs} +2 -2
- package/dist/{chunk-55SDDPJZ.mjs → chunk-BLB72GKW.mjs} +2 -2
- package/dist/{chunk-A7C3XND3.mjs → chunk-CCJAHP7Z.mjs} +34 -8
- package/dist/chunk-CCJAHP7Z.mjs.map +1 -0
- package/dist/{chunk-Q56PAJ4T.mjs → chunk-COJ6DGFZ.mjs} +2 -2
- package/dist/{chunk-T3CJ5MZK.mjs → chunk-DIJQ6NKV.mjs} +4 -4
- package/dist/{chunk-OYQIOBV7.mjs → chunk-DK6TQHF3.mjs} +3 -3
- package/dist/{chunk-6LGUOSH3.mjs → chunk-DKTEKZ4O.mjs} +4 -4
- package/dist/{chunk-TU7SVDUE.mjs → chunk-DLJOM2QT.mjs} +4 -4
- package/dist/{chunk-WIBQ7LKH.mjs → chunk-EL4LXAN7.mjs} +3 -3
- package/dist/{chunk-6TR4LD27.mjs → chunk-FT66ANA7.mjs} +6 -6
- package/dist/{chunk-KD36HS3N.mjs → chunk-H27UMLDT.mjs} +2 -2
- package/dist/{chunk-3AB2A6WF.mjs → chunk-HCIL5KUZ.mjs} +3 -3
- package/dist/{chunk-BU6LSSQP.mjs → chunk-HN6COYSV.mjs} +2 -2
- package/dist/{chunk-WTFW6DLP.mjs → chunk-HTKGQGMZ.mjs} +3 -3
- package/dist/{chunk-KTENM2OG.mjs → chunk-IANSP3JJ.mjs} +3 -3
- package/dist/{chunk-NKSCRMWF.mjs → chunk-IRUM7VWE.mjs} +2 -2
- package/dist/{chunk-7JFDA4UI.mjs → chunk-KFSHBLFI.mjs} +2 -2
- package/dist/{chunk-LJPESIYZ.mjs → chunk-KXOBVHGI.mjs} +3 -3
- package/dist/{chunk-NCEWAKOZ.mjs → chunk-KYQULNU4.mjs} +2 -2
- package/dist/{chunk-3Q26WV4F.mjs → chunk-LEC6Y5RE.mjs} +8 -8
- package/dist/{chunk-MMGVG4ZW.mjs → chunk-LXCI7XE5.mjs} +3 -3
- package/dist/{chunk-IABTCMHB.mjs → chunk-M6LRND3Z.mjs} +4 -4
- package/dist/{chunk-5HENJTR6.mjs → chunk-PKILDKWU.mjs} +2 -2
- package/dist/{chunk-FD7AIHNO.mjs → chunk-PWTOW5KS.mjs} +2 -2
- package/dist/{chunk-ROJDO7ZE.mjs → chunk-QZUUK6PI.mjs} +4 -4
- package/dist/{chunk-VORW47OU.mjs → chunk-R3LDH6ZW.mjs} +2 -2
- package/dist/{chunk-K3FRMONT.mjs → chunk-SOXQOCCH.mjs} +6 -6
- package/dist/{chunk-W7D4GZRE.mjs → chunk-TZZJ3U5V.mjs} +5 -7
- package/dist/{chunk-W7D4GZRE.mjs.map → chunk-TZZJ3U5V.mjs.map} +1 -1
- package/dist/{chunk-LXENNRRB.mjs → chunk-VCSOI44U.mjs} +2 -2
- package/dist/{chunk-JQQGQCYH.mjs → chunk-YDC3NPU4.mjs} +3 -5
- package/dist/{chunk-JQQGQCYH.mjs.map → chunk-YDC3NPU4.mjs.map} +1 -1
- package/dist/{chunk-MBXA7ZCQ.mjs → chunk-YDEAOY7R.mjs} +2 -2
- package/dist/{chunk-NDCIZJXB.mjs → chunk-YGKMN5UC.mjs} +2 -2
- package/dist/{chunk-KDK2E7CA.mjs → chunk-YH4CTU3I.mjs} +3 -3
- package/dist/{chunk-P2GDPTZ3.mjs → chunk-YQZVVYMQ.mjs} +2 -2
- package/dist/data/Condition.mjs +4 -5
- package/dist/data/Database.mjs +5 -6
- package/dist/data/Field.mjs +4 -5
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.mjs +13 -14
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/domain/Audit.mjs +17 -18
- package/dist/domain/Child.mjs +14 -15
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/DateTime.d.ts +4 -3
- package/dist/domain/DateTime.mjs +13 -14
- package/dist/domain/Entity.mjs +17 -18
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.mjs +13 -14
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.mjs +13 -14
- package/dist/domain/Typo.mjs +12 -13
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/http/CacheControl.mjs +13 -14
- package/dist/http/CacheControl.mjs.map +1 -1
- package/dist/http/ContentType.mjs +5 -6
- package/dist/http/HttpStatus.mjs +5 -6
- package/dist/http/HttpVerb.mjs +5 -6
- package/dist/http/LocalRequestStore.mjs +4 -5
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/RequestOptions.mjs +8 -9
- package/dist/http/RestResult.mjs +13 -14
- package/dist/http/toResponse.mjs +14 -15
- package/dist/index.js +34 -23
- package/dist/index.js.map +1 -1
- package/dist/process/App.mjs +6 -7
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.mjs +13 -14
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.mjs +6 -7
- package/dist/process/Search.mjs +13 -14
- package/dist/process/UseCase.mjs +5 -6
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/Req.mjs +12 -13
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/services/Api.mjs +21 -22
- package/dist/services/ApiGateway.mjs +24 -25
- package/dist/services/AxiosProvider.mjs +19 -20
- package/dist/services/MappedRouteGateway.mjs +27 -28
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.mjs +25 -26
- package/dist/services/ViewRouteGateway.mjs +28 -29
- package/dist/services/ViewRouteGateway.mjs.map +1 -1
- package/dist/sql/Column.mjs +12 -13
- package/dist/sql/Count.mjs +4 -5
- package/dist/sql/Delete.mjs +3 -4
- package/dist/sql/Insert.mjs +3 -4
- package/dist/sql/Select.mjs +3 -4
- package/dist/sql/SqlQuery.mjs +2 -3
- package/dist/sql/Table.mjs +21 -22
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.mjs +13 -14
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.mjs +3 -4
- package/dist/types/Cache.mjs +3 -4
- package/dist/types/Cache.mjs.map +1 -1
- package/dist/types/CacheAge.mjs +13 -14
- package/dist/types/Case.mjs +11 -12
- package/dist/types/Context.mjs +4 -5
- package/dist/types/Enum.mjs +4 -5
- package/dist/types/Environment.mjs +4 -5
- package/dist/types/Environment.mjs.map +1 -1
- package/dist/types/Exception.mjs +6 -7
- package/dist/types/Gateway.mjs +8 -9
- package/dist/types/IsEqual.mjs +12 -13
- package/dist/types/Json.mjs +3 -4
- package/dist/types/List.mjs +1 -2
- package/dist/types/Meta.mjs +3 -4
- package/dist/types/Number.mjs +12 -13
- package/dist/types/Object.mjs +2 -3
- package/dist/types/PageList.mjs +12 -13
- package/dist/types/Parser.mjs +11 -12
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Repository.mjs +8 -9
- package/dist/types/Result.mjs +5 -6
- package/dist/types/Results.mjs +6 -7
- package/dist/types/Tag.mjs +3 -4
- package/dist/types/Tag.mjs.map +1 -1
- package/dist/types/Template.mjs +3 -4
- package/dist/types/Try.mjs +11 -12
- package/dist/types/Uri.mjs +11 -12
- package/dist/types/Uri.mjs.map +1 -1
- package/dist/utils/If.d.ts +4 -0
- package/dist/utils/If.mjs +7 -1
- package/dist/utils/Mapper.mjs +5 -6
- package/dist/utils/Promise.mjs +2 -3
- package/dist/utils/Seconds.mjs +2 -3
- package/dist/utils/Sentence.mjs +3 -4
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/View.mjs +15 -16
- package/dist/validation/Contraints.mjs +12 -13
- package/dist/validation/Validate.mjs +11 -12
- package/dist/validation/When.mjs +11 -12
- package/package.json +1 -1
- package/src/domain/DateTime.ts +22 -12
- package/src/utils/If.ts +14 -2
- package/dist/chunk-6ILWOSEE.mjs.map +0 -1
- package/dist/chunk-A7C3XND3.mjs.map +0 -1
- package/dist/chunk-JSON7A4X.mjs +0 -30
- package/dist/chunk-JSON7A4X.mjs.map +0 -1
- /package/dist/{chunk-S33RXRXR.mjs.map → chunk-2VL6B3UJ.mjs.map} +0 -0
- /package/dist/{chunk-MLAU6FXE.mjs.map → chunk-3E3YJR6L.mjs.map} +0 -0
- /package/dist/{chunk-SEWX25XP.mjs.map → chunk-3TI2Y4HN.mjs.map} +0 -0
- /package/dist/{chunk-MCCIBDEH.mjs.map → chunk-3Y7X2UQ6.mjs.map} +0 -0
- /package/dist/{chunk-ZZ65BSDI.mjs.map → chunk-4IH3OE4Y.mjs.map} +0 -0
- /package/dist/{chunk-VAT2WY5Y.mjs.map → chunk-4REZO4ZW.mjs.map} +0 -0
- /package/dist/{chunk-DF6AC3AA.mjs.map → chunk-55KHMBCA.mjs.map} +0 -0
- /package/dist/{chunk-D5KAY6YW.mjs.map → chunk-5HLBJ56K.mjs.map} +0 -0
- /package/dist/{chunk-SSQRH66L.mjs.map → chunk-6VTDQIEE.mjs.map} +0 -0
- /package/dist/{chunk-OEL3QKBX.mjs.map → chunk-744LD44R.mjs.map} +0 -0
- /package/dist/{chunk-Q3WMGUO2.mjs.map → chunk-BGSOJQAU.mjs.map} +0 -0
- /package/dist/{chunk-55SDDPJZ.mjs.map → chunk-BLB72GKW.mjs.map} +0 -0
- /package/dist/{chunk-Q56PAJ4T.mjs.map → chunk-COJ6DGFZ.mjs.map} +0 -0
- /package/dist/{chunk-T3CJ5MZK.mjs.map → chunk-DIJQ6NKV.mjs.map} +0 -0
- /package/dist/{chunk-OYQIOBV7.mjs.map → chunk-DK6TQHF3.mjs.map} +0 -0
- /package/dist/{chunk-6LGUOSH3.mjs.map → chunk-DKTEKZ4O.mjs.map} +0 -0
- /package/dist/{chunk-TU7SVDUE.mjs.map → chunk-DLJOM2QT.mjs.map} +0 -0
- /package/dist/{chunk-WIBQ7LKH.mjs.map → chunk-EL4LXAN7.mjs.map} +0 -0
- /package/dist/{chunk-6TR4LD27.mjs.map → chunk-FT66ANA7.mjs.map} +0 -0
- /package/dist/{chunk-KD36HS3N.mjs.map → chunk-H27UMLDT.mjs.map} +0 -0
- /package/dist/{chunk-3AB2A6WF.mjs.map → chunk-HCIL5KUZ.mjs.map} +0 -0
- /package/dist/{chunk-BU6LSSQP.mjs.map → chunk-HN6COYSV.mjs.map} +0 -0
- /package/dist/{chunk-WTFW6DLP.mjs.map → chunk-HTKGQGMZ.mjs.map} +0 -0
- /package/dist/{chunk-KTENM2OG.mjs.map → chunk-IANSP3JJ.mjs.map} +0 -0
- /package/dist/{chunk-NKSCRMWF.mjs.map → chunk-IRUM7VWE.mjs.map} +0 -0
- /package/dist/{chunk-7JFDA4UI.mjs.map → chunk-KFSHBLFI.mjs.map} +0 -0
- /package/dist/{chunk-LJPESIYZ.mjs.map → chunk-KXOBVHGI.mjs.map} +0 -0
- /package/dist/{chunk-NCEWAKOZ.mjs.map → chunk-KYQULNU4.mjs.map} +0 -0
- /package/dist/{chunk-3Q26WV4F.mjs.map → chunk-LEC6Y5RE.mjs.map} +0 -0
- /package/dist/{chunk-MMGVG4ZW.mjs.map → chunk-LXCI7XE5.mjs.map} +0 -0
- /package/dist/{chunk-IABTCMHB.mjs.map → chunk-M6LRND3Z.mjs.map} +0 -0
- /package/dist/{chunk-5HENJTR6.mjs.map → chunk-PKILDKWU.mjs.map} +0 -0
- /package/dist/{chunk-FD7AIHNO.mjs.map → chunk-PWTOW5KS.mjs.map} +0 -0
- /package/dist/{chunk-ROJDO7ZE.mjs.map → chunk-QZUUK6PI.mjs.map} +0 -0
- /package/dist/{chunk-VORW47OU.mjs.map → chunk-R3LDH6ZW.mjs.map} +0 -0
- /package/dist/{chunk-K3FRMONT.mjs.map → chunk-SOXQOCCH.mjs.map} +0 -0
- /package/dist/{chunk-LXENNRRB.mjs.map → chunk-VCSOI44U.mjs.map} +0 -0
- /package/dist/{chunk-MBXA7ZCQ.mjs.map → chunk-YDEAOY7R.mjs.map} +0 -0
- /package/dist/{chunk-NDCIZJXB.mjs.map → chunk-YGKMN5UC.mjs.map} +0 -0
- /package/dist/{chunk-KDK2E7CA.mjs.map → chunk-YH4CTU3I.mjs.map} +0 -0
- /package/dist/{chunk-P2GDPTZ3.mjs.map → chunk-YQZVVYMQ.mjs.map} +0 -0
package/dist/domain/Audit.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Audit
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-SOXQOCCH.mjs";
|
|
4
|
+
import "../chunk-3E3YJR6L.mjs";
|
|
5
|
+
import "../chunk-56HLMAA4.mjs";
|
|
6
|
+
import "../chunk-YDC3NPU4.mjs";
|
|
7
7
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-DK6TQHF3.mjs";
|
|
9
|
+
import "../chunk-IANSP3JJ.mjs";
|
|
10
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
11
11
|
import "../chunk-OFGI5FLG.mjs";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-KYQULNU4.mjs";
|
|
13
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
14
|
+
import "../chunk-PKILDKWU.mjs";
|
|
15
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
16
16
|
import "../chunk-WSBULPUZ.mjs";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-JSON7A4X.mjs";
|
|
17
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
18
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
19
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
20
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
21
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
22
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
24
23
|
import "../chunk-CO2AFYVD.mjs";
|
|
25
24
|
import "../chunk-BDA5LB4S.mjs";
|
|
26
25
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/domain/Child.mjs
CHANGED
|
@@ -4,28 +4,27 @@ import {
|
|
|
4
4
|
import "../chunk-LXQQ5N6S.mjs";
|
|
5
5
|
import {
|
|
6
6
|
required
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3E3YJR6L.mjs";
|
|
8
8
|
import "../chunk-ADJAEGCT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Struct
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-DK6TQHF3.mjs";
|
|
12
12
|
import {
|
|
13
13
|
json
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-IANSP3JJ.mjs";
|
|
15
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
16
16
|
import "../chunk-OFGI5FLG.mjs";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-KYQULNU4.mjs";
|
|
18
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
19
|
+
import "../chunk-PKILDKWU.mjs";
|
|
20
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
21
21
|
import "../chunk-WSBULPUZ.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-JSON7A4X.mjs";
|
|
22
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
23
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
24
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
25
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
26
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
27
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
29
28
|
import "../chunk-CO2AFYVD.mjs";
|
|
30
29
|
import "../chunk-BDA5LB4S.mjs";
|
|
31
30
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/domain/Child.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { required } from '../validation/Contraints';\nimport { Id, toId } from '../types/Id';\nimport { json, Json } from '../types/Json';\n\nexport abstract class Child extends Struct {\n @required() readonly id: Id = this.state.id ?? toId();\n\n protected merge(a: unknown): Json {\n return json.merge(this, a, { id: this.id });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/domain/Child.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { required } from '../validation/Contraints';\nimport { Id, toId } from '../types/Id';\nimport { json, Json } from '../types/Json';\n\nexport abstract class Child extends Struct {\n @required() readonly id: Id = this.state.id ?? toId();\n\n protected merge(a: unknown): Json {\n return json.merge(this, a, { id: this.id });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAe,QAAf,cAA6B,OAAO;AAAA,EACpB,KAAS,KAAK,MAAM,MAAM,KAAK;AAAA,EAE1C,MAAM,GAAkB;AAChC,WAAO,KAAK,MAAM,MAAM,GAAG,EAAE,IAAI,KAAK,GAAG,CAAC;AAAA,EAC5C;AACF;AALuB;AAAA,EAApB,SAAS;AAAA,GADU,MACC;","names":[]}
|
|
@@ -16,6 +16,10 @@ export declare class DateTime extends Value<Optional<string>> {
|
|
|
16
16
|
static get now(): DateTime;
|
|
17
17
|
get isValid(): boolean;
|
|
18
18
|
get fromNow(): string;
|
|
19
|
+
get inAmsterdam(): DateTime;
|
|
20
|
+
get inNewYork(): DateTime;
|
|
21
|
+
get inLondon(): DateTime;
|
|
22
|
+
get inWarsaw(): DateTime;
|
|
19
23
|
protected get utc(): LuxonDateTime;
|
|
20
24
|
from(locale?: string): string;
|
|
21
25
|
from(date?: DateTime, locale?: string): string;
|
|
@@ -31,9 +35,6 @@ export declare class DateTime extends Value<Optional<string>> {
|
|
|
31
35
|
endOf(unit?: DateTimeUnit): DateTime;
|
|
32
36
|
isWeekend(): boolean;
|
|
33
37
|
withZone(zone: string): DateTime;
|
|
34
|
-
inAmsterdam(): DateTime;
|
|
35
|
-
inNewYork(): DateTime;
|
|
36
|
-
inLondon(): DateTime;
|
|
37
38
|
toString(): string;
|
|
38
39
|
toJSON(): JsonValue;
|
|
39
40
|
toFormat(format: string): string;
|
package/dist/domain/DateTime.mjs
CHANGED
|
@@ -2,23 +2,22 @@ import {
|
|
|
2
2
|
DateTime,
|
|
3
3
|
dt,
|
|
4
4
|
isDateTime
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-56HLMAA4.mjs";
|
|
6
|
+
import "../chunk-YDC3NPU4.mjs";
|
|
7
7
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
9
9
|
import "../chunk-OFGI5FLG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-KYQULNU4.mjs";
|
|
11
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
12
|
+
import "../chunk-PKILDKWU.mjs";
|
|
13
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
14
14
|
import "../chunk-WSBULPUZ.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-JSON7A4X.mjs";
|
|
15
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
16
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
17
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
18
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
19
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
20
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
22
21
|
import "../chunk-CO2AFYVD.mjs";
|
|
23
22
|
import "../chunk-BDA5LB4S.mjs";
|
|
24
23
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/domain/Entity.mjs
CHANGED
|
@@ -4,33 +4,32 @@ import {
|
|
|
4
4
|
import "../chunk-LXQQ5N6S.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Audit
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-SOXQOCCH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
required
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-3E3YJR6L.mjs";
|
|
11
|
+
import "../chunk-56HLMAA4.mjs";
|
|
12
|
+
import "../chunk-YDC3NPU4.mjs";
|
|
13
13
|
import "../chunk-ADJAEGCT.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Struct
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DK6TQHF3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
json
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-IANSP3JJ.mjs";
|
|
20
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
21
21
|
import "../chunk-OFGI5FLG.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-KYQULNU4.mjs";
|
|
23
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
24
|
+
import "../chunk-PKILDKWU.mjs";
|
|
25
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
26
26
|
import "../chunk-WSBULPUZ.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-JSON7A4X.mjs";
|
|
27
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
28
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
29
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
30
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
31
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
32
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
34
33
|
import "../chunk-CO2AFYVD.mjs";
|
|
35
34
|
import "../chunk-BDA5LB4S.mjs";
|
|
36
35
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/domain/Entity.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { Audit } from './Audit';\nimport { required } from '../validation/Contraints';\nimport { Id, toId } from '../types/Id';\nimport { json, Json } from '../types/Json';\n\nexport abstract class Entity extends Struct {\n @required() readonly id: Id = this.state.id ?? toId();\n @required() readonly created: Audit = new Audit(this.state.created);\n @required() readonly lastModified: Audit = new Audit(this.state.lastModified);\n\n protected merge(a: unknown): Json {\n return json.merge(this, a, {\n id: this.id,\n created: this.created,\n lastModified: new Audit(),\n });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/domain/Entity.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { Audit } from './Audit';\nimport { required } from '../validation/Contraints';\nimport { Id, toId } from '../types/Id';\nimport { json, Json } from '../types/Json';\n\nexport abstract class Entity extends Struct {\n @required() readonly id: Id = this.state.id ?? toId();\n @required() readonly created: Audit = new Audit(this.state.created);\n @required() readonly lastModified: Audit = new Audit(this.state.lastModified);\n\n protected merge(a: unknown): Json {\n return json.merge(this, a, {\n id: this.id,\n created: this.created,\n lastModified: new Audit(),\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAe,SAAf,cAA8B,OAAO;AAAA,EACrB,KAAS,KAAK,MAAM,MAAM,KAAK;AAAA,EAC/B,UAAiB,IAAI,MAAM,KAAK,MAAM,OAAO;AAAA,EAC7C,eAAsB,IAAI,MAAM,KAAK,MAAM,YAAY;AAAA,EAElE,MAAM,GAAkB;AAChC,WAAO,KAAK,MAAM,MAAM,GAAG;AAAA,MACzB,IAAI,KAAK;AAAA,MACT,SAAS,KAAK;AAAA,MACd,cAAc,IAAI,MAAM;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAXuB;AAAA,EAApB,SAAS;AAAA,GADU,OACC;AACA;AAAA,EAApB,SAAS;AAAA,GAFU,OAEC;AACA;AAAA,EAApB,SAAS;AAAA,GAHU,OAGC;","names":[]}
|
package/dist/domain/Repo.mjs
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Repository
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4IH3OE4Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toJson
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-IANSP3JJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
when
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-5HLBJ56K.mjs";
|
|
10
10
|
import {
|
|
11
11
|
isValidatable
|
|
12
12
|
} from "../chunk-OFGI5FLG.mjs";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-KYQULNU4.mjs";
|
|
14
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
reject,
|
|
17
17
|
resolve
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-PKILDKWU.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Exception
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-KXOBVHGI.mjs";
|
|
22
22
|
import "../chunk-WSBULPUZ.mjs";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
24
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
25
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
26
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
27
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
28
28
|
import {
|
|
29
29
|
asList
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-JSON7A4X.mjs";
|
|
30
|
+
} from "../chunk-CCJAHP7Z.mjs";
|
|
32
31
|
import "../chunk-CO2AFYVD.mjs";
|
|
33
32
|
import "../chunk-BDA5LB4S.mjs";
|
|
34
33
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/domain/Repo.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/domain/Repo.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { FetchOptions, Gateway } from '../types/Gateway';\nimport { Repository } from '../types/Repository';\nimport { Constructor } from '../types/Constructor';\nimport { Json, JsonValue, toJson } from '../types/Json';\nimport { isValidatable } from '../types/Validatable';\nimport { PageList } from '../types/PageList';\nimport { Id, Key } from '../types/Id';\nimport { when } from '../validation/When';\nimport { Exception } from '../types/Exception';\nimport { asList, List } from '../types/List';\nimport { reject, resolve } from '../utils/Promise';\n\nexport type RepoAction = 'add' | 'update' | 'remove';\n\nexport class Repo<T extends Struct, Options = FetchOptions> extends Repository<T, Options> {\n constructor(\n protected ctor: Constructor<T>,\n private readonly gateway: Gateway<Options>\n ) {\n super();\n }\n\n create = (item: T | Json): T => (isValidatable(item) ? item : new this.ctor(item));\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options).then(js => js.map(i => new this.ctor(i)));\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => new this.ctor(j));\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids).then(j => asList(this.ctor, j));\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options).then(js => js.map(i => new this.ctor(i)));\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n\n add(t: T | Json): Promise<T> {\n return this.extend(this.create(t), 'add')\n .then(i => when(i).not.isValid.reject())\n .then(i => this.validate(i, 'add'))\n .then(i => this.gateway.add(toJson(i)))\n .then(j => new this.ctor(j));\n }\n\n update(id: Id, json: Json): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => new this.ctor(j).update(json) as T)\n .then(i => this.extend(i, 'update'))\n .then(i => when(i).not.isValid.reject())\n .then(i => this.validate(i, 'update'))\n .then(i => this.gateway.update(toJson(i)))\n .then(j => new this.ctor(j));\n }\n\n remove(id: Id): Promise<boolean> {\n return this.gateway.remove(id);\n }\n\n extend(item: T, _action?: RepoAction): Promise<T> {\n return resolve(item);\n }\n\n validate(item: T, _action?: RepoAction): Promise<T> {\n return resolve(item);\n }\n\n upsert(id: Id, item: Json): Promise<T> {\n return this.update(id, item).catch(e => (Exception.DoesNotExist.equals(e) ? this.add(item) : reject(e)));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/domain/Repo.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { FetchOptions, Gateway } from '../types/Gateway';\nimport { Repository } from '../types/Repository';\nimport { Constructor } from '../types/Constructor';\nimport { Json, JsonValue, toJson } from '../types/Json';\nimport { isValidatable } from '../types/Validatable';\nimport { PageList } from '../types/PageList';\nimport { Id, Key } from '../types/Id';\nimport { when } from '../validation/When';\nimport { Exception } from '../types/Exception';\nimport { asList, List } from '../types/List';\nimport { reject, resolve } from '../utils/Promise';\n\nexport type RepoAction = 'add' | 'update' | 'remove';\n\nexport class Repo<T extends Struct, Options = FetchOptions> extends Repository<T, Options> {\n constructor(\n protected ctor: Constructor<T>,\n private readonly gateway: Gateway<Options>\n ) {\n super();\n }\n\n create = (item: T | Json): T => (isValidatable(item) ? item : new this.ctor(item));\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options).then(js => js.map(i => new this.ctor(i)));\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => new this.ctor(j));\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids).then(j => asList(this.ctor, j));\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options).then(js => js.map(i => new this.ctor(i)));\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options).then(js => js.map(i => new this.ctor(i)));\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n\n add(t: T | Json): Promise<T> {\n return this.extend(this.create(t), 'add')\n .then(i => when(i).not.isValid.reject())\n .then(i => this.validate(i, 'add'))\n .then(i => this.gateway.add(toJson(i)))\n .then(j => new this.ctor(j));\n }\n\n update(id: Id, json: Json): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => new this.ctor(j).update(json) as T)\n .then(i => this.extend(i, 'update'))\n .then(i => when(i).not.isValid.reject())\n .then(i => this.validate(i, 'update'))\n .then(i => this.gateway.update(toJson(i)))\n .then(j => new this.ctor(j));\n }\n\n remove(id: Id): Promise<boolean> {\n return this.gateway.remove(id);\n }\n\n extend(item: T, _action?: RepoAction): Promise<T> {\n return resolve(item);\n }\n\n validate(item: T, _action?: RepoAction): Promise<T> {\n return resolve(item);\n }\n\n upsert(id: Id, item: Json): Promise<T> {\n return this.update(id, item).catch(e => (Exception.DoesNotExist.equals(e) ? this.add(item) : reject(e)));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeO,IAAM,OAAN,cAA6D,WAAuB;AAAA,EACzF,YACY,MACO,SACjB;AACA,UAAM;AAHI;AACO;AAAA,EAGnB;AAAA,EAEA,SAAS,CAAC,SAAuB,cAAc,IAAI,IAAI,OAAO,IAAI,KAAK,KAAK,IAAI;AAAA,EAEhF,IAAI,SAAyC;AAC3C,WAAO,KAAK,QAAQ,IAAI,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC;AAAA,EAC3E;AAAA,EAEA,KAAK,IAAoB;AACvB,WAAO,KAAK,QACT,KAAK,EAAE,EACP,KAAK,OAAK,KAAK,CAAC,EAAE,IAAI,UAAU,OAAO,UAAU,YAAY,CAAC,EAC9D,KAAK,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC;AAAA,EAC/B;AAAA,EAEA,SAAS,KAA6B;AACpC,WAAO,KAAK,QAAQ,MAAM,GAAG,GAAG,EAAE,KAAK,OAAK,OAAO,KAAK,MAAM,CAAC,CAAC;AAAA,EAClE;AAAA,EAEA,MAAM,KAAU,SAAyC;AACvD,WAAO,KAAK,QAAQ,GAAG,OAAO,KAAK,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC;AAAA,EACtF;AAAA,EAEA,GAAG,KAAc,OAAkB,SAAyC;AAC1E,WAAO,KAAK,QAAQ,GAAG,IAAI,SAAS,GAAG,OAAO,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC;AAAA,EACjG;AAAA,EAEA,OAAO,GAAc,SAAyC;AAC5D,WAAO,KAAK,QAAQ,OAAO,GAAG,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC;AAAA,EACjF;AAAA,EAEA,OAAO,SAAyC;AAC9C,WAAO,KAAK,QAAQ,OAAO,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC;AAAA,EAC9E;AAAA,EAEA,OAAO,IAA0B;AAC/B,WAAO,KAAK,QAAQ,OAAO,EAAE;AAAA,EAC/B;AAAA,EAEA,IAAI,GAAyB;AAC3B,WAAO,KAAK,OAAO,KAAK,OAAO,CAAC,GAAG,KAAK,EACrC,KAAK,OAAK,KAAK,CAAC,EAAE,IAAI,QAAQ,OAAO,CAAC,EACtC,KAAK,OAAK,KAAK,SAAS,GAAG,KAAK,CAAC,EACjC,KAAK,OAAK,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EACrC,KAAK,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC;AAAA,EAC/B;AAAA,EAEA,OAAO,IAAQ,MAAwB;AACrC,WAAO,KAAK,QACT,KAAK,EAAE,EACP,KAAK,OAAK,KAAK,CAAC,EAAE,IAAI,UAAU,OAAO,UAAU,YAAY,CAAC,EAC9D,KAAK,OAAK,IAAI,KAAK,KAAK,CAAC,EAAE,OAAO,IAAI,CAAM,EAC5C,KAAK,OAAK,KAAK,OAAO,GAAG,QAAQ,CAAC,EAClC,KAAK,OAAK,KAAK,CAAC,EAAE,IAAI,QAAQ,OAAO,CAAC,EACtC,KAAK,OAAK,KAAK,SAAS,GAAG,QAAQ,CAAC,EACpC,KAAK,OAAK,KAAK,QAAQ,OAAO,OAAO,CAAC,CAAC,CAAC,EACxC,KAAK,OAAK,IAAI,KAAK,KAAK,CAAC,CAAC;AAAA,EAC/B;AAAA,EAEA,OAAO,IAA0B;AAC/B,WAAO,KAAK,QAAQ,OAAO,EAAE;AAAA,EAC/B;AAAA,EAEA,OAAO,MAAS,SAAkC;AAChD,WAAO,QAAQ,IAAI;AAAA,EACrB;AAAA,EAEA,SAAS,MAAS,SAAkC;AAClD,WAAO,QAAQ,IAAI;AAAA,EACrB;AAAA,EAEA,OAAO,IAAQ,MAAwB;AACrC,WAAO,KAAK,OAAO,IAAI,IAAI,EAAE,MAAM,OAAM,UAAU,aAAa,OAAO,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,CAAE;AAAA,EACzG;AACF;","names":[]}
|
package/dist/domain/Struct.mjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Struct,
|
|
3
3
|
isStruct
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DK6TQHF3.mjs";
|
|
5
|
+
import "../chunk-IANSP3JJ.mjs";
|
|
6
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
7
7
|
import "../chunk-OFGI5FLG.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KYQULNU4.mjs";
|
|
9
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
10
|
+
import "../chunk-PKILDKWU.mjs";
|
|
11
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
12
12
|
import "../chunk-WSBULPUZ.mjs";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-JSON7A4X.mjs";
|
|
13
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
14
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
15
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
16
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
17
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
18
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
20
19
|
import "../chunk-CO2AFYVD.mjs";
|
|
21
20
|
import "../chunk-BDA5LB4S.mjs";
|
|
22
21
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/domain/Typo.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Repository
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4IH3OE4Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
when
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5HLBJ56K.mjs";
|
|
7
7
|
import "../chunk-OFGI5FLG.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KYQULNU4.mjs";
|
|
9
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
10
|
+
import "../chunk-PKILDKWU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Exception
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-KXOBVHGI.mjs";
|
|
14
14
|
import "../chunk-WSBULPUZ.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-JSON7A4X.mjs";
|
|
15
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
16
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
17
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
18
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
19
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
20
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
22
21
|
import "../chunk-CO2AFYVD.mjs";
|
|
23
22
|
import "../chunk-BDA5LB4S.mjs";
|
|
24
23
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/domain/Typo.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/domain/Typo.ts"],"sourcesContent":["import { View } from '../utils/View';\nimport { FetchOptions, Gateway } from '../types/Gateway';\nimport { Repository } from '../types/Repository';\nimport { Json, JsonValue } from '../types/Json';\nimport { PageList } from '../types/PageList';\nimport { Id, Key } from '../types/Id';\nimport { when } from '../validation/When';\nimport { Exception } from '../types/Exception';\nimport { List } from '../types/List';\n\nexport class Typo<T, Options = FetchOptions> extends Repository<T, Options> {\n constructor(\n protected view: View<T>,\n private readonly gateway: Gateway<Options>\n ) {\n super();\n }\n\n create = (j: Json): T => this.view.from(j);\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options).then(js => js.map(this.create));\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => this.create(j));\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids).then(js => js.map(this.create));\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options).then(js => js.map(this.create));\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options).then(js => js.map(this.create));\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options).then(js => js.map(this.create));\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options).then(js => js.map(j => this.create(j)));\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/domain/Typo.ts"],"sourcesContent":["import { View } from '../utils/View';\nimport { FetchOptions, Gateway } from '../types/Gateway';\nimport { Repository } from '../types/Repository';\nimport { Json, JsonValue } from '../types/Json';\nimport { PageList } from '../types/PageList';\nimport { Id, Key } from '../types/Id';\nimport { when } from '../validation/When';\nimport { Exception } from '../types/Exception';\nimport { List } from '../types/List';\n\nexport class Typo<T, Options = FetchOptions> extends Repository<T, Options> {\n constructor(\n protected view: View<T>,\n private readonly gateway: Gateway<Options>\n ) {\n super();\n }\n\n create = (j: Json): T => this.view.from(j);\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options).then(js => js.map(this.create));\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => this.create(j));\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids).then(js => js.map(this.create));\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options).then(js => js.map(this.create));\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options).then(js => js.map(this.create));\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options).then(js => js.map(this.create));\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options).then(js => js.map(j => this.create(j)));\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,IAAM,OAAN,cAA8C,WAAuB;AAAA,EAC1E,YACY,MACO,SACjB;AACA,UAAM;AAHI;AACO;AAAA,EAGnB;AAAA,EAEA,SAAS,CAAC,MAAe,KAAK,KAAK,KAAK,CAAC;AAAA,EAEzC,IAAI,SAAyC;AAC3C,WAAO,KAAK,QAAQ,IAAI,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAAA,EACjE;AAAA,EAEA,KAAK,IAAoB;AACvB,WAAO,KAAK,QACT,KAAK,EAAE,EACP,KAAK,OAAK,KAAK,CAAC,EAAE,IAAI,UAAU,OAAO,UAAU,YAAY,CAAC,EAC9D,KAAK,OAAK,KAAK,OAAO,CAAC,CAAC;AAAA,EAC7B;AAAA,EAEA,SAAS,KAA6B;AACpC,WAAO,KAAK,QAAQ,MAAM,GAAG,GAAG,EAAE,KAAK,QAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAAA,EAClE;AAAA,EAEA,MAAM,KAAU,SAAyC;AACvD,WAAO,KAAK,QAAQ,GAAG,OAAO,KAAK,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAAA,EAC5E;AAAA,EAEA,GAAG,KAAc,OAAkB,SAAyC;AAC1E,WAAO,KAAK,QAAQ,GAAG,IAAI,SAAS,GAAG,OAAO,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAAA,EACvF;AAAA,EAEA,OAAO,GAAc,SAAyC;AAC5D,WAAO,KAAK,QAAQ,OAAO,GAAG,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAAA,EACvE;AAAA,EAEA,OAAO,SAAyC;AAC9C,WAAO,KAAK,QAAQ,OAAO,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,KAAK,OAAO,CAAC,CAAC,CAAC;AAAA,EAC5E;AAAA,EAEA,OAAO,IAA0B;AAC/B,WAAO,KAAK,QAAQ,OAAO,EAAE;AAAA,EAC/B;AACF;","names":[]}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cacheAge,
|
|
3
3
|
isCacheAge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-4REZO4ZW.mjs";
|
|
5
|
+
import "../chunk-3TI2Y4HN.mjs";
|
|
6
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
7
7
|
import "../chunk-OFGI5FLG.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KYQULNU4.mjs";
|
|
9
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
10
|
+
import "../chunk-PKILDKWU.mjs";
|
|
11
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
12
12
|
import "../chunk-WSBULPUZ.mjs";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
14
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
15
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
16
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
entries
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-A7C3XND3.mjs";
|
|
19
|
+
} from "../chunk-5FX7PFZG.mjs";
|
|
21
20
|
import {
|
|
22
21
|
ifDefined
|
|
23
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-CCJAHP7Z.mjs";
|
|
24
23
|
import "../chunk-CO2AFYVD.mjs";
|
|
25
24
|
import "../chunk-BDA5LB4S.mjs";
|
|
26
25
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/CacheControl.ts"],"sourcesContent":["import { cacheAge, CacheAge, isCacheAge } from '../types/CacheAge';\nimport { on } from '../types/Constructor';\nimport { entries } from '../types/Object';\nimport { ifDefined } from '../utils/If';\n\nexport class CacheControl {\n name = 'Cache-Control';\n\n protected constructor(\n readonly enabled = true,\n private directives: Record<string, boolean | CacheAge | undefined> = {}\n ) {}\n\n static disabled = () => new CacheControl(false);\n\n static OneSecond = () => new CacheControl().maxAge(1).staleWhileRevalidate(1);\n\n static fiveSeconds = () => new CacheControl().maxAge(5).staleWhileRevalidate(5);\n\n static tenSeconds = () => new CacheControl().maxAge(10).staleWhileRevalidate(10);\n\n static thirtySeconds = () => new CacheControl().maxAge(30).staleWhileRevalidate(30);\n\n static sixtySeconds = () => new CacheControl().maxAge(60).staleWhileRevalidate(60);\n\n static custom = (maxAge?: CacheAge, staleWhileRevalidate?: CacheAge) => new CacheControl().maxAge(maxAge).staleWhileRevalidate(staleWhileRevalidate);\n\n readonly maxAge = (ca?: CacheAge): this => on(this, t => (t.directives['max-age'] = ca));\n\n readonly sharedMaxAge = (ca?: CacheAge): this => on(this, t => (t.directives['s-maxage'] = ca));\n\n readonly noCache = (a?: boolean): this => on(this, t => (t.directives['no-cache'] = a));\n\n readonly mustRevalidate = (a?: boolean): this => on(this, t => (t.directives['must-revalidate'] = a));\n\n readonly private = (a?: boolean): this => on(this, t => (t.directives['private'] = a));\n\n readonly public = (a?: boolean): this => on(this, t => (t.directives['public'] = a));\n\n readonly immutable = (a?: boolean): this => on(this, t => (t.directives['immutable'] = a));\n\n readonly staleWhileRevalidate = (ca?: CacheAge): this => on(this, t => (t.directives['stale-while-revalidate'] = ca));\n\n value = (): string => this.toString();\n\n toString(): string {\n return entries(this.directives)\n .mapDefined(([k, v]) => ifDefined(v, isCacheAge(v) ? `${k}=${cacheAge.toSeconds(v)}` : k))\n .join(',');\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/http/CacheControl.ts"],"sourcesContent":["import { cacheAge, CacheAge, isCacheAge } from '../types/CacheAge';\nimport { on } from '../types/Constructor';\nimport { entries } from '../types/Object';\nimport { ifDefined } from '../utils/If';\n\nexport class CacheControl {\n name = 'Cache-Control';\n\n protected constructor(\n readonly enabled = true,\n private directives: Record<string, boolean | CacheAge | undefined> = {}\n ) {}\n\n static disabled = () => new CacheControl(false);\n\n static OneSecond = () => new CacheControl().maxAge(1).staleWhileRevalidate(1);\n\n static fiveSeconds = () => new CacheControl().maxAge(5).staleWhileRevalidate(5);\n\n static tenSeconds = () => new CacheControl().maxAge(10).staleWhileRevalidate(10);\n\n static thirtySeconds = () => new CacheControl().maxAge(30).staleWhileRevalidate(30);\n\n static sixtySeconds = () => new CacheControl().maxAge(60).staleWhileRevalidate(60);\n\n static custom = (maxAge?: CacheAge, staleWhileRevalidate?: CacheAge) => new CacheControl().maxAge(maxAge).staleWhileRevalidate(staleWhileRevalidate);\n\n readonly maxAge = (ca?: CacheAge): this => on(this, t => (t.directives['max-age'] = ca));\n\n readonly sharedMaxAge = (ca?: CacheAge): this => on(this, t => (t.directives['s-maxage'] = ca));\n\n readonly noCache = (a?: boolean): this => on(this, t => (t.directives['no-cache'] = a));\n\n readonly mustRevalidate = (a?: boolean): this => on(this, t => (t.directives['must-revalidate'] = a));\n\n readonly private = (a?: boolean): this => on(this, t => (t.directives['private'] = a));\n\n readonly public = (a?: boolean): this => on(this, t => (t.directives['public'] = a));\n\n readonly immutable = (a?: boolean): this => on(this, t => (t.directives['immutable'] = a));\n\n readonly staleWhileRevalidate = (ca?: CacheAge): this => on(this, t => (t.directives['stale-while-revalidate'] = ca));\n\n value = (): string => this.toString();\n\n toString(): string {\n return entries(this.directives)\n .mapDefined(([k, v]) => ifDefined(v, isCacheAge(v) ? `${k}=${cacheAge.toSeconds(v)}` : k))\n .join(',');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAM,eAAN,MAAM,cAAa;AAAA,EAGd,YACC,UAAU,MACX,aAA6D,CAAC,GACtE;AAFS;AACD;AAAA,EACP;AAAA,EALH,OAAO;AAAA,EAOP,OAAO,WAAW,MAAM,IAAI,cAAa,KAAK;AAAA,EAE9C,OAAO,YAAY,MAAM,IAAI,cAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE5E,OAAO,cAAc,MAAM,IAAI,cAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE9E,OAAO,aAAa,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAE/E,OAAO,gBAAgB,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAElF,OAAO,eAAe,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAEjF,OAAO,SAAS,CAAC,QAAmB,yBAAoC,IAAI,cAAa,EAAE,OAAO,MAAM,EAAE,qBAAqB,oBAAoB;AAAA,EAE1I,SAAS,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,EAAG;AAAA,EAE9E,eAAe,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,EAAG;AAAA,EAErF,UAAU,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,CAAE;AAAA,EAE7E,iBAAiB,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,iBAAiB,IAAI,CAAE;AAAA,EAE3F,UAAU,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,CAAE;AAAA,EAE5E,SAAS,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,QAAQ,IAAI,CAAE;AAAA,EAE1E,YAAY,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,WAAW,IAAI,CAAE;AAAA,EAEhF,uBAAuB,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,wBAAwB,IAAI,EAAG;AAAA,EAEpH,QAAQ,MAAc,KAAK,SAAS;AAAA,EAEpC,WAAmB;AACjB,WAAO,QAAQ,KAAK,UAAU,EAC3B,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,GAAG,CAAC,IAAI,SAAS,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,EACxF,KAAK,GAAG;AAAA,EACb;AACF;","names":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContentType
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JSON7A4X.mjs";
|
|
3
|
+
} from "../chunk-YQZVVYMQ.mjs";
|
|
4
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
5
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
6
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
7
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
9
8
|
import "../chunk-CO2AFYVD.mjs";
|
|
10
9
|
import "../chunk-BDA5LB4S.mjs";
|
|
11
10
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/http/HttpStatus.mjs
CHANGED
|
@@ -2,12 +2,11 @@ import {
|
|
|
2
2
|
HttpStatus,
|
|
3
3
|
isHttpStatus,
|
|
4
4
|
toHttpStatus
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-JSON7A4X.mjs";
|
|
5
|
+
} from "../chunk-H27UMLDT.mjs";
|
|
6
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
7
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
8
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
9
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
11
10
|
import "../chunk-CO2AFYVD.mjs";
|
|
12
11
|
import "../chunk-BDA5LB4S.mjs";
|
|
13
12
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/http/HttpVerb.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HttpVerb
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JSON7A4X.mjs";
|
|
3
|
+
} from "../chunk-KFSHBLFI.mjs";
|
|
4
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
5
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
6
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
7
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
9
8
|
import "../chunk-CO2AFYVD.mjs";
|
|
10
9
|
import "../chunk-BDA5LB4S.mjs";
|
|
11
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ctx
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-JSON7A4X.mjs";
|
|
3
|
+
} from "../chunk-YGKMN5UC.mjs";
|
|
4
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
5
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
6
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
8
7
|
import "../chunk-CO2AFYVD.mjs";
|
|
9
8
|
import "../chunk-BDA5LB4S.mjs";
|
|
10
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/LocalRequestStore.ts"],"sourcesContent":["import { Response } from './Response';\nimport { Request } from './Request';\nimport { Store } from '../types/Cache';\nimport { Func } from '../types/Func';\nimport { ctx } from '../types/Context';\n\nexport class LocalRequestStore implements Store<Response, Request> {\n key = (_req: Request): string => '';\n\n execute(req: Request, f: Func<Promise<Response>, Request>): Promise<Response> {\n const key = this.key(req);\n return ctx.request.get(key) ?? ctx.request.set(key, f(req));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/http/LocalRequestStore.ts"],"sourcesContent":["import { Response } from './Response';\nimport { Request } from './Request';\nimport { Store } from '../types/Cache';\nimport { Func } from '../types/Func';\nimport { ctx } from '../types/Context';\n\nexport class LocalRequestStore implements Store<Response, Request> {\n key = (_req: Request): string => '';\n\n execute(req: Request, f: Func<Promise<Response>, Request>): Promise<Response> {\n const key = this.key(req);\n return ctx.request.get(key) ?? ctx.request.set(key, f(req));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAMO,IAAM,oBAAN,MAA4D;AAAA,EACjE,MAAM,CAAC,SAA0B;AAAA,EAEjC,QAAQ,KAAc,GAAwD;AAC5E,UAAM,MAAM,KAAK,IAAI,GAAG;AACxB,WAAO,IAAI,QAAQ,IAAI,GAAG,KAAK,IAAI,QAAQ,IAAI,KAAK,EAAE,GAAG,CAAC;AAAA,EAC5D;AACF;","names":[]}
|
|
@@ -2,17 +2,16 @@ import {
|
|
|
2
2
|
RequestOptions,
|
|
3
3
|
isRequestOptions,
|
|
4
4
|
toPageOptions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-DKTEKZ4O.mjs";
|
|
6
6
|
import "../chunk-SW2OCUH3.mjs";
|
|
7
7
|
import "../chunk-LXQQ5N6S.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-JSON7A4X.mjs";
|
|
8
|
+
import "../chunk-YQZVVYMQ.mjs";
|
|
9
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
10
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
11
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
12
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
13
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
14
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
16
15
|
import "../chunk-CO2AFYVD.mjs";
|
|
17
16
|
import "../chunk-BDA5LB4S.mjs";
|
|
18
17
|
import "../chunk-SJGQU3OG.mjs";
|
package/dist/http/RestResult.mjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRestResult,
|
|
3
3
|
rest
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-FT66ANA7.mjs";
|
|
5
|
+
import "../chunk-H27UMLDT.mjs";
|
|
6
6
|
import "../chunk-UYDZZAEK.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-5HLBJ56K.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-KYQULNU4.mjs";
|
|
10
|
+
import "../chunk-BGSOJQAU.mjs";
|
|
11
|
+
import "../chunk-PKILDKWU.mjs";
|
|
12
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
13
13
|
import "../chunk-WSBULPUZ.mjs";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-JSON7A4X.mjs";
|
|
14
|
+
import "../chunk-YGKMN5UC.mjs";
|
|
15
|
+
import "../chunk-3Y7X2UQ6.mjs";
|
|
16
|
+
import "../chunk-HCIL5KUZ.mjs";
|
|
17
|
+
import "../chunk-HTKGQGMZ.mjs";
|
|
18
|
+
import "../chunk-5FX7PFZG.mjs";
|
|
19
|
+
import "../chunk-CCJAHP7Z.mjs";
|
|
21
20
|
import "../chunk-CO2AFYVD.mjs";
|
|
22
21
|
import "../chunk-BDA5LB4S.mjs";
|
|
23
22
|
import "../chunk-SJGQU3OG.mjs";
|