@thisisagile/easy 16.0.0 → 17.0.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-UNHWYQ54.mjs → chunk-27YL5N6O.mjs} +4 -4
- package/dist/{chunk-QQRGOHU6.mjs → chunk-2BGTVGU4.mjs} +2 -2
- package/dist/{chunk-X7FZPY3P.mjs → chunk-2KBPI5HD.mjs} +2 -2
- package/dist/{chunk-M47EOYDK.mjs → chunk-2S656HDG.mjs} +4 -4
- package/dist/{chunk-APYISY5K.mjs → chunk-2YNBXKAS.mjs} +2 -2
- package/dist/{chunk-YSBACFUR.mjs → chunk-3CTCZJ2E.mjs} +5 -5
- package/dist/{chunk-45GNHDKA.mjs → chunk-3G2I3M46.mjs} +4 -4
- package/dist/{chunk-6VLC4Z4H.mjs → chunk-3PG7XJVW.mjs} +2 -2
- package/dist/{chunk-7TJ4VCBE.mjs → chunk-3VP6O3LL.mjs} +9 -9
- package/dist/{chunk-D5FLGKVR.mjs → chunk-464AOKCS.mjs} +8 -8
- package/dist/{chunk-3L4RAR24.mjs → chunk-4IGBNRNB.mjs} +5 -5
- package/dist/{chunk-Q5HABVOK.mjs → chunk-5TDKTZD7.mjs} +3 -3
- package/dist/{chunk-D4K4MC24.mjs → chunk-7GL3D7F7.mjs} +3 -3
- package/dist/{chunk-2ZUDYGPP.mjs → chunk-A37OECZ2.mjs} +5 -5
- package/dist/{chunk-IAXKOENJ.mjs → chunk-A7PAVXBM.mjs} +4 -4
- package/dist/{chunk-KRLEHX37.mjs → chunk-ANOORQCM.mjs} +5 -5
- package/dist/{chunk-NYYHRFBW.mjs → chunk-AQT7Z43R.mjs} +4 -4
- package/dist/{chunk-U53FLD4J.mjs → chunk-CGMASUXA.mjs} +3 -3
- package/dist/{chunk-UKHDSTTZ.mjs → chunk-CMHJOQBL.mjs} +5 -5
- package/dist/{chunk-TMZRZLA2.mjs → chunk-CYTFXBYW.mjs} +3 -3
- package/dist/{chunk-J7XKOXMW.mjs → chunk-EGVFHL23.mjs} +6 -6
- package/dist/{chunk-A62OK7XE.mjs → chunk-F7C6VY2D.mjs} +5 -5
- package/dist/{chunk-HBJMCX2I.mjs → chunk-FCGLOMI7.mjs} +3 -3
- package/dist/{chunk-ZHXKBOK2.mjs → chunk-G4GZG77M.mjs} +2 -2
- package/dist/{chunk-ARTSACXM.mjs → chunk-GD24FBKZ.mjs} +7 -7
- package/dist/{chunk-JFU65NZU.mjs → chunk-HRKMPZGD.mjs} +9 -9
- package/dist/{chunk-JBJ2YERG.mjs → chunk-IFDDZTWN.mjs} +3 -3
- package/dist/{chunk-ZPNFXK7Y.mjs → chunk-IK4EPPOF.mjs} +4 -4
- package/dist/{chunk-6YVMQB26.mjs → chunk-JADWPU3M.mjs} +2 -2
- package/dist/{chunk-LYAPQ4QZ.mjs → chunk-JKZEVKE3.mjs} +4 -4
- package/dist/{chunk-JSON7A4X.mjs → chunk-JOI26DEU.mjs} +2 -2
- package/dist/{chunk-UJEQAXZI.mjs → chunk-JPHN3NM3.mjs} +3 -3
- package/dist/{chunk-JTGB3TSZ.mjs → chunk-JV37KGKL.mjs} +3 -3
- package/dist/{chunk-HV4CI2QX.mjs → chunk-JX7EOMTI.mjs} +9 -9
- package/dist/{chunk-HNVAFEZP.mjs → chunk-K2IES6IY.mjs} +2 -2
- package/dist/{chunk-ARZEQQW5.mjs → chunk-KCOJAMHS.mjs} +16 -16
- package/dist/{chunk-73UD7JJL.mjs → chunk-LCNUK6EI.mjs} +2 -2
- package/dist/{chunk-UW6S2PNO.mjs → chunk-LGXHFCSE.mjs} +5 -5
- package/dist/{chunk-UYDZZAEK.mjs → chunk-LHD6A2CA.mjs} +2 -2
- package/dist/{chunk-QTPKH4PY.mjs → chunk-MPFUPK2O.mjs} +5 -5
- package/dist/{chunk-WJZFE5NE.mjs → chunk-MYZQELEU.mjs} +2 -2
- package/dist/{chunk-LAR7AT6R.mjs → chunk-MZ74H2HU.mjs} +2 -2
- package/dist/{chunk-7K4QMDUN.mjs → chunk-OHHQ5YCI.mjs} +2 -2
- package/dist/{chunk-VV534JNS.mjs → chunk-OKVYYWDS.mjs} +3 -3
- package/dist/{chunk-CAHTK3AT.mjs → chunk-PB7ZHNR6.mjs} +2 -2
- package/dist/{chunk-FHW5K2RR.mjs → chunk-POMUVSEW.mjs} +5 -5
- package/dist/{chunk-USGZFNWP.mjs → chunk-QGLPCM3U.mjs} +3 -3
- package/dist/{chunk-4DJNTF2D.mjs → chunk-QQ62TFVN.mjs} +3 -3
- package/dist/{chunk-J6KN572O.mjs → chunk-RNM4YSY2.mjs} +3 -3
- package/dist/{chunk-RNROH3VJ.mjs → chunk-SWKY2KOQ.mjs} +3 -3
- package/dist/{chunk-4G6AW6D6.mjs → chunk-T5K5ZLP2.mjs} +3 -3
- package/dist/{chunk-EDVJUOFU.mjs → chunk-TUGGAGKI.mjs} +13 -13
- package/dist/{chunk-OFGI5FLG.mjs → chunk-UARTMYBD.mjs} +2 -2
- package/dist/{chunk-6BQEFLOS.mjs → chunk-V35WKNIG.mjs} +3 -3
- package/dist/{chunk-5WSP2IYF.mjs → chunk-WLFIQWOM.mjs} +6 -6
- package/dist/{chunk-PPWHEIZW.mjs → chunk-WWJDP64S.mjs} +4 -4
- package/dist/{chunk-A2JYVEBB.mjs → chunk-XSK44RYX.mjs} +4 -4
- package/dist/data/Condition.mjs +11 -11
- package/dist/data/Database.mjs +11 -11
- package/dist/data/Field.mjs +12 -12
- package/dist/data/InMemoryGateway.mjs +21 -21
- package/dist/domain/Audit.mjs +24 -24
- package/dist/domain/Child.mjs +24 -24
- package/dist/domain/DateTime.mjs +20 -20
- package/dist/domain/Entity.mjs +26 -26
- package/dist/domain/Repo.mjs +21 -21
- package/dist/domain/Struct.mjs +21 -21
- package/dist/domain/Typo.mjs +20 -20
- package/dist/http/CacheControl.mjs +58 -23
- package/dist/http/CacheControl.mjs.map +1 -1
- package/dist/http/ContentType.mjs +11 -11
- package/dist/http/HttpStatus.mjs +11 -11
- package/dist/http/HttpVerb.mjs +11 -11
- package/dist/http/LocalRequestStore.mjs +11 -11
- package/dist/http/RequestOptions.mjs +15 -15
- package/dist/http/Response.mjs +4 -4
- package/dist/http/RestResult.mjs +22 -22
- package/dist/http/toResponse.mjs +23 -23
- package/dist/index.d.ts +0 -9
- package/dist/index.js +209 -324
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -9
- package/dist/index.mjs.map +1 -1
- package/dist/process/App.mjs +12 -12
- package/dist/process/Manage.mjs +21 -21
- package/dist/process/Scope.mjs +12 -12
- package/dist/process/Search.mjs +21 -21
- package/dist/process/UseCase.mjs +11 -11
- package/dist/resources/Req.mjs +20 -20
- package/dist/security/Jwt.d.ts +2 -12
- package/dist/security/Jwt.mjs +60 -37
- package/dist/security/Jwt.mjs.map +1 -1
- package/dist/services/Api.mjs +31 -31
- package/dist/services/ApiGateway.mjs +34 -34
- package/dist/services/AxiosProvider.mjs +29 -29
- package/dist/services/MappedRouteGateway.mjs +40 -40
- package/dist/services/RouteGateway.mjs +35 -35
- package/dist/services/ViewRouteGateway.mjs +38 -38
- package/dist/sql/Clause.mjs +6 -6
- package/dist/sql/Column.mjs +23 -23
- package/dist/sql/Count.mjs +10 -10
- package/dist/sql/Delete.mjs +9 -9
- package/dist/sql/Insert.mjs +11 -11
- package/dist/sql/Select.mjs +9 -9
- package/dist/sql/SqlQuery.mjs +8 -8
- package/dist/sql/Table.mjs +33 -33
- package/dist/sql/TableGateway.mjs +21 -21
- package/dist/sql/Update.mjs +11 -11
- package/dist/types/Array.mjs +3 -3
- package/dist/types/Builder.mjs +2 -2
- package/dist/types/Cache.mjs +9 -9
- package/dist/types/CacheAge.mjs +21 -21
- package/dist/types/Case.mjs +19 -19
- package/dist/types/Constructor.mjs +2 -2
- package/dist/types/Context.mjs +11 -11
- package/dist/types/Enum.mjs +10 -10
- package/dist/types/Environment.mjs +10 -10
- package/dist/types/Exception.mjs +12 -12
- package/dist/types/Gateway.mjs +14 -14
- package/dist/types/IsA.mjs +3 -3
- package/dist/types/IsEqual.mjs +20 -20
- package/dist/types/Json.mjs +9 -9
- package/dist/types/List.mjs +7 -7
- package/dist/types/Meta.mjs +9 -9
- package/dist/types/Number.mjs +20 -20
- package/dist/types/Object.mjs +8 -8
- package/dist/types/PageList.mjs +20 -20
- package/dist/types/Parser.mjs +19 -19
- package/dist/types/Repository.mjs +14 -14
- package/dist/types/Result.mjs +12 -12
- package/dist/types/Results.mjs +13 -13
- package/dist/types/Tag.mjs +9 -9
- package/dist/types/Template.mjs +10 -10
- package/dist/types/Text.mjs +2 -2
- package/dist/types/Try.mjs +19 -19
- package/dist/types/Uri.mjs +106 -23
- package/dist/types/Uri.mjs.map +1 -1
- package/dist/types/Validatable.mjs +4 -4
- package/dist/types/Value.mjs +3 -3
- package/dist/utils/Convert.mjs +3 -3
- package/dist/utils/If.mjs +3 -3
- package/dist/utils/Mapper.mjs +14 -14
- package/dist/utils/Promise.mjs +8 -8
- package/dist/utils/Property.mjs +4 -4
- package/dist/utils/Sentence.mjs +10 -10
- package/dist/utils/State.mjs +3 -3
- package/dist/utils/View.mjs +23 -23
- package/dist/validation/Contraints.mjs +20 -20
- package/dist/validation/Validate.mjs +19 -19
- package/dist/validation/When.mjs +19 -19
- package/package.json +2 -4
- package/src/index.ts +0 -10
- package/src/security/Jwt.ts +4 -35
- package/dist/chunk-EIJ3GSGG.mjs +0 -45
- package/dist/chunk-EIJ3GSGG.mjs.map +0 -1
- package/dist/chunk-GSZLYZSW.mjs +0 -104
- package/dist/chunk-GSZLYZSW.mjs.map +0 -1
- package/dist/chunk-JFJLDIJB.mjs +0 -46
- package/dist/chunk-JFJLDIJB.mjs.map +0 -1
- package/dist/chunk-NFWIUPZU.mjs +0 -48
- package/dist/chunk-NFWIUPZU.mjs.map +0 -1
- package/dist/chunk-XBYDAQGZ.mjs +0 -15
- package/dist/chunk-XBYDAQGZ.mjs.map +0 -1
- package/dist/health/HealthResource.d.ts +0 -5
- package/dist/health/HealthResource.mjs +0 -58
- package/dist/health/HealthResource.mjs.map +0 -1
- package/dist/health/HealthUri.d.ts +0 -5
- package/dist/health/HealthUri.mjs +0 -31
- package/dist/health/HealthUri.mjs.map +0 -1
- package/dist/http/OriginatedError.d.ts +0 -9
- package/dist/http/OriginatedError.mjs +0 -23
- package/dist/http/OriginatedError.mjs.map +0 -1
- package/dist/http/Verb.d.ts +0 -23
- package/dist/http/Verb.mjs +0 -50
- package/dist/http/Verb.mjs.map +0 -1
- package/dist/resources/AppProvider.d.ts +0 -9
- package/dist/resources/AppProvider.mjs +0 -1
- package/dist/resources/AppProvider.mjs.map +0 -1
- package/dist/resources/Requires.d.ts +0 -9
- package/dist/resources/Requires.mjs +0 -39
- package/dist/resources/Requires.mjs.map +0 -1
- package/dist/resources/Resource.d.ts +0 -1
- package/dist/resources/Resource.mjs +0 -1
- package/dist/resources/Resource.mjs.map +0 -1
- package/dist/resources/Route.d.ts +0 -28
- package/dist/resources/Route.mjs +0 -32
- package/dist/resources/Route.mjs.map +0 -1
- package/dist/resources/Service.d.ts +0 -17
- package/dist/resources/Service.mjs +0 -55
- package/dist/resources/Service.mjs.map +0 -1
- package/src/health/HealthResource.ts +0 -12
- package/src/health/HealthUri.ts +0 -6
- package/src/http/OriginatedError.ts +0 -18
- package/src/http/Verb.ts +0 -36
- package/src/resources/AppProvider.ts +0 -11
- package/src/resources/Requires.ts +0 -33
- package/src/resources/Resource.ts +0 -1
- package/src/resources/Route.ts +0 -60
- package/src/resources/Service.ts +0 -37
- /package/dist/{chunk-UNHWYQ54.mjs.map → chunk-27YL5N6O.mjs.map} +0 -0
- /package/dist/{chunk-QQRGOHU6.mjs.map → chunk-2BGTVGU4.mjs.map} +0 -0
- /package/dist/{chunk-X7FZPY3P.mjs.map → chunk-2KBPI5HD.mjs.map} +0 -0
- /package/dist/{chunk-M47EOYDK.mjs.map → chunk-2S656HDG.mjs.map} +0 -0
- /package/dist/{chunk-APYISY5K.mjs.map → chunk-2YNBXKAS.mjs.map} +0 -0
- /package/dist/{chunk-YSBACFUR.mjs.map → chunk-3CTCZJ2E.mjs.map} +0 -0
- /package/dist/{chunk-45GNHDKA.mjs.map → chunk-3G2I3M46.mjs.map} +0 -0
- /package/dist/{chunk-6VLC4Z4H.mjs.map → chunk-3PG7XJVW.mjs.map} +0 -0
- /package/dist/{chunk-7TJ4VCBE.mjs.map → chunk-3VP6O3LL.mjs.map} +0 -0
- /package/dist/{chunk-D5FLGKVR.mjs.map → chunk-464AOKCS.mjs.map} +0 -0
- /package/dist/{chunk-3L4RAR24.mjs.map → chunk-4IGBNRNB.mjs.map} +0 -0
- /package/dist/{chunk-Q5HABVOK.mjs.map → chunk-5TDKTZD7.mjs.map} +0 -0
- /package/dist/{chunk-D4K4MC24.mjs.map → chunk-7GL3D7F7.mjs.map} +0 -0
- /package/dist/{chunk-2ZUDYGPP.mjs.map → chunk-A37OECZ2.mjs.map} +0 -0
- /package/dist/{chunk-IAXKOENJ.mjs.map → chunk-A7PAVXBM.mjs.map} +0 -0
- /package/dist/{chunk-KRLEHX37.mjs.map → chunk-ANOORQCM.mjs.map} +0 -0
- /package/dist/{chunk-NYYHRFBW.mjs.map → chunk-AQT7Z43R.mjs.map} +0 -0
- /package/dist/{chunk-U53FLD4J.mjs.map → chunk-CGMASUXA.mjs.map} +0 -0
- /package/dist/{chunk-UKHDSTTZ.mjs.map → chunk-CMHJOQBL.mjs.map} +0 -0
- /package/dist/{chunk-TMZRZLA2.mjs.map → chunk-CYTFXBYW.mjs.map} +0 -0
- /package/dist/{chunk-J7XKOXMW.mjs.map → chunk-EGVFHL23.mjs.map} +0 -0
- /package/dist/{chunk-A62OK7XE.mjs.map → chunk-F7C6VY2D.mjs.map} +0 -0
- /package/dist/{chunk-HBJMCX2I.mjs.map → chunk-FCGLOMI7.mjs.map} +0 -0
- /package/dist/{chunk-ZHXKBOK2.mjs.map → chunk-G4GZG77M.mjs.map} +0 -0
- /package/dist/{chunk-ARTSACXM.mjs.map → chunk-GD24FBKZ.mjs.map} +0 -0
- /package/dist/{chunk-JFU65NZU.mjs.map → chunk-HRKMPZGD.mjs.map} +0 -0
- /package/dist/{chunk-JBJ2YERG.mjs.map → chunk-IFDDZTWN.mjs.map} +0 -0
- /package/dist/{chunk-ZPNFXK7Y.mjs.map → chunk-IK4EPPOF.mjs.map} +0 -0
- /package/dist/{chunk-6YVMQB26.mjs.map → chunk-JADWPU3M.mjs.map} +0 -0
- /package/dist/{chunk-LYAPQ4QZ.mjs.map → chunk-JKZEVKE3.mjs.map} +0 -0
- /package/dist/{chunk-JSON7A4X.mjs.map → chunk-JOI26DEU.mjs.map} +0 -0
- /package/dist/{chunk-UJEQAXZI.mjs.map → chunk-JPHN3NM3.mjs.map} +0 -0
- /package/dist/{chunk-JTGB3TSZ.mjs.map → chunk-JV37KGKL.mjs.map} +0 -0
- /package/dist/{chunk-HV4CI2QX.mjs.map → chunk-JX7EOMTI.mjs.map} +0 -0
- /package/dist/{chunk-HNVAFEZP.mjs.map → chunk-K2IES6IY.mjs.map} +0 -0
- /package/dist/{chunk-ARZEQQW5.mjs.map → chunk-KCOJAMHS.mjs.map} +0 -0
- /package/dist/{chunk-73UD7JJL.mjs.map → chunk-LCNUK6EI.mjs.map} +0 -0
- /package/dist/{chunk-UW6S2PNO.mjs.map → chunk-LGXHFCSE.mjs.map} +0 -0
- /package/dist/{chunk-UYDZZAEK.mjs.map → chunk-LHD6A2CA.mjs.map} +0 -0
- /package/dist/{chunk-QTPKH4PY.mjs.map → chunk-MPFUPK2O.mjs.map} +0 -0
- /package/dist/{chunk-WJZFE5NE.mjs.map → chunk-MYZQELEU.mjs.map} +0 -0
- /package/dist/{chunk-LAR7AT6R.mjs.map → chunk-MZ74H2HU.mjs.map} +0 -0
- /package/dist/{chunk-7K4QMDUN.mjs.map → chunk-OHHQ5YCI.mjs.map} +0 -0
- /package/dist/{chunk-VV534JNS.mjs.map → chunk-OKVYYWDS.mjs.map} +0 -0
- /package/dist/{chunk-CAHTK3AT.mjs.map → chunk-PB7ZHNR6.mjs.map} +0 -0
- /package/dist/{chunk-FHW5K2RR.mjs.map → chunk-POMUVSEW.mjs.map} +0 -0
- /package/dist/{chunk-USGZFNWP.mjs.map → chunk-QGLPCM3U.mjs.map} +0 -0
- /package/dist/{chunk-4DJNTF2D.mjs.map → chunk-QQ62TFVN.mjs.map} +0 -0
- /package/dist/{chunk-J6KN572O.mjs.map → chunk-RNM4YSY2.mjs.map} +0 -0
- /package/dist/{chunk-RNROH3VJ.mjs.map → chunk-SWKY2KOQ.mjs.map} +0 -0
- /package/dist/{chunk-4G6AW6D6.mjs.map → chunk-T5K5ZLP2.mjs.map} +0 -0
- /package/dist/{chunk-EDVJUOFU.mjs.map → chunk-TUGGAGKI.mjs.map} +0 -0
- /package/dist/{chunk-OFGI5FLG.mjs.map → chunk-UARTMYBD.mjs.map} +0 -0
- /package/dist/{chunk-6BQEFLOS.mjs.map → chunk-V35WKNIG.mjs.map} +0 -0
- /package/dist/{chunk-5WSP2IYF.mjs.map → chunk-WLFIQWOM.mjs.map} +0 -0
- /package/dist/{chunk-PPWHEIZW.mjs.map → chunk-WWJDP64S.mjs.map} +0 -0
- /package/dist/{chunk-A2JYVEBB.mjs.map → chunk-XSK44RYX.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -12,32 +12,23 @@ export * from "./domain/Entity";
|
|
|
12
12
|
export * from "./domain/Struct";
|
|
13
13
|
export * from "./domain/Repo";
|
|
14
14
|
export * from "./domain/Typo";
|
|
15
|
-
export * from "./health/HealthResource";
|
|
16
|
-
export * from "./health/HealthUri";
|
|
17
15
|
export * from "./http/CacheControl";
|
|
18
16
|
export * from "./http/ContentType";
|
|
19
17
|
export * from "./http/HttpHeader";
|
|
20
18
|
export * from "./http/HttpStatus";
|
|
21
19
|
export * from "./http/HttpVerb";
|
|
22
|
-
export * from "./http/OriginatedError";
|
|
23
20
|
export * from "./http/Request";
|
|
24
21
|
export * from "./http/RequestOptions";
|
|
25
22
|
export * from "./http/RequestProvider";
|
|
26
23
|
export * from "./http/Response";
|
|
27
24
|
export * from "./http/RestResult";
|
|
28
25
|
export * from "./http/toResponse";
|
|
29
|
-
export * from "./http/Verb";
|
|
30
26
|
export * from "./process/App";
|
|
31
27
|
export * from "./process/Manage";
|
|
32
28
|
export * from "./process/Scope";
|
|
33
29
|
export * from "./process/Search";
|
|
34
30
|
export * from "./process/UseCase";
|
|
35
|
-
export * from "./resources/AppProvider";
|
|
36
31
|
export * from "./resources/Req";
|
|
37
|
-
export * from "./resources/Requires";
|
|
38
|
-
export * from "./resources/Resource";
|
|
39
|
-
export * from "./resources/Route";
|
|
40
|
-
export * from "./resources/Service";
|
|
41
32
|
export * from "./security/Jwt";
|
|
42
33
|
export * from "./services/Api";
|
|
43
34
|
export * from "./services/ApiGateway";
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data/Condition';\nexport * from './data/InMemoryGateway';\nexport * from './data/Database';\nexport * from './data/DataProvider';\nexport * from './data/Field';\nexport * from './data/Query';\nexport * from './data/QueryProvider';\n\nexport * from './domain/Audit';\nexport * from './domain/Child';\nexport * from './domain/DateTime';\nexport * from './domain/Entity';\nexport * from './domain/Struct';\nexport * from './domain/Repo';\nexport * from './domain/Typo';\n\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data/Condition';\nexport * from './data/InMemoryGateway';\nexport * from './data/Database';\nexport * from './data/DataProvider';\nexport * from './data/Field';\nexport * from './data/Query';\nexport * from './data/QueryProvider';\n\nexport * from './domain/Audit';\nexport * from './domain/Child';\nexport * from './domain/DateTime';\nexport * from './domain/Entity';\nexport * from './domain/Struct';\nexport * from './domain/Repo';\nexport * from './domain/Typo';\n\nexport * from './http/CacheControl';\nexport * from './http/ContentType';\nexport * from './http/HttpHeader';\nexport * from './http/HttpStatus';\nexport * from './http/HttpVerb';\nexport * from './http/Request';\nexport * from './http/RequestOptions';\nexport * from './http/RequestProvider';\nexport * from './http/Response';\nexport * from './http/RestResult';\nexport * from './http/toResponse';\n\nexport * from './process/App';\nexport * from './process/Manage';\nexport * from './process/Scope';\nexport * from './process/Search';\nexport * from './process/UseCase';\n\nexport * from './resources/Req';\n\nexport * from './security/Jwt';\n\nexport * from './services/Api';\nexport * from './services/ApiGateway';\nexport * from './services/AxiosProvider';\nexport * from './services/MappedRouteGateway';\nexport * from './services/RouteGateway';\nexport * from './services/ViewRouteGateway';\n\nexport * from './sql/Clause';\nexport * from './sql/Column';\nexport * from './sql/Delete';\nexport * from './sql/Insert';\nexport * from './sql/Join';\nexport * from './sql/SqlQuery';\nexport * from './sql/Select';\nexport * from './sql/Table';\nexport * from './sql/TableGateway';\nexport * from './sql/Update';\n\nexport * from './types/Array';\nexport * from './types/Builder';\nexport * from './types/Cache';\nexport * from './types/CacheAge';\nexport * from './types/Case';\nexport * from './types/Constructor';\nexport * from './types/Context';\nexport * from './types/Enum';\nexport * from './types/Environment';\nexport * from './types/ErrorOrigin';\nexport * from './types/Exception';\nexport * from './types/Falsy';\nexport * from './types/Func';\nexport * from './types/Gateway';\nexport * from './types/Get';\nexport * from './types/Id';\nexport * from './types/Identity';\nexport * from './types/Is';\nexport * from './types/IsA';\nexport * from './types/IsDate';\nexport * from './types/IsEqual';\nexport * from './types/Json';\nexport * from './types/List';\nexport * from './types/Message';\nexport * from './types/Meta';\nexport * from './types/Nullish';\nexport * from './types/Number';\nexport * from './types/Object';\nexport * from './types/PageList';\nexport * from './types/Parser';\nexport * from './types/Primitive';\nexport * from './types/Repository';\nexport * from './types/Result';\nexport * from './types/Results';\nexport * from './types/Sort';\nexport * from './types/Tag';\nexport * from './types/Template';\nexport * from './types/Text';\nexport * from './types/Try';\nexport * from './types/TypeGuard';\nexport * from './types/Types';\nexport * from './types/Uri';\nexport * from './types/Uuid';\nexport * from './types/Validatable';\nexport * from './types/Value';\n\nexport * from './utils/Base64';\nexport * from './utils/Convert';\nexport * from './utils/If';\nexport * from './utils/Loading';\nexport * from './utils/Log';\nexport * from './utils/Mapper';\nexport * from './utils/Promise';\nexport * from './utils/Property';\nexport * from './utils/State';\nexport * from './utils/Sentence';\nexport * from './utils/Traverse';\nexport * from './utils/View';\nexport * from './utils/Wait';\n\nexport * from './validation/Contraints';\nexport * from './validation/Validate';\nexport * from './validation/When';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AAEd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/dist/process/App.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Scope
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ANOORQCM.mjs";
|
|
4
|
+
import "../chunk-POMUVSEW.mjs";
|
|
5
|
+
import "../chunk-27YL5N6O.mjs";
|
|
6
|
+
import "../chunk-WWJDP64S.mjs";
|
|
7
|
+
import "../chunk-JV37KGKL.mjs";
|
|
8
|
+
import "../chunk-EGVFHL23.mjs";
|
|
9
|
+
import "../chunk-JOI26DEU.mjs";
|
|
10
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
11
|
+
import "../chunk-3G2I3M46.mjs";
|
|
12
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-G4GZG77M.mjs";
|
|
14
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
15
15
|
import "../chunk-DXQSIBC7.mjs";
|
|
16
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
17
16
|
import "../chunk-DEJ7A5PY.mjs";
|
|
17
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
18
18
|
import "../chunk-4N72FQFX.mjs";
|
|
19
19
|
|
|
20
20
|
// src/process/App.ts
|
package/dist/process/Manage.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-2S656HDG.mjs";
|
|
4
|
+
import "../chunk-F7C6VY2D.mjs";
|
|
5
|
+
import "../chunk-KCOJAMHS.mjs";
|
|
6
|
+
import "../chunk-UARTMYBD.mjs";
|
|
7
|
+
import "../chunk-T5K5ZLP2.mjs";
|
|
8
|
+
import "../chunk-RNM4YSY2.mjs";
|
|
9
|
+
import "../chunk-QGLPCM3U.mjs";
|
|
10
|
+
import "../chunk-JKZEVKE3.mjs";
|
|
11
|
+
import "../chunk-PB7ZHNR6.mjs";
|
|
12
|
+
import "../chunk-JADWPU3M.mjs";
|
|
13
|
+
import "../chunk-POMUVSEW.mjs";
|
|
14
|
+
import "../chunk-27YL5N6O.mjs";
|
|
15
|
+
import "../chunk-WWJDP64S.mjs";
|
|
16
|
+
import "../chunk-JV37KGKL.mjs";
|
|
17
|
+
import "../chunk-EGVFHL23.mjs";
|
|
18
|
+
import "../chunk-JOI26DEU.mjs";
|
|
19
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
20
|
+
import "../chunk-3G2I3M46.mjs";
|
|
21
21
|
import "../chunk-SJGQU3OG.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-G4GZG77M.mjs";
|
|
23
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
24
24
|
import "../chunk-DXQSIBC7.mjs";
|
|
25
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
26
25
|
import "../chunk-DEJ7A5PY.mjs";
|
|
26
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
27
27
|
import "../chunk-4N72FQFX.mjs";
|
|
28
28
|
|
|
29
29
|
// src/process/Manage.ts
|
package/dist/process/Scope.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Scope
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ANOORQCM.mjs";
|
|
4
|
+
import "../chunk-POMUVSEW.mjs";
|
|
5
|
+
import "../chunk-27YL5N6O.mjs";
|
|
6
|
+
import "../chunk-WWJDP64S.mjs";
|
|
7
|
+
import "../chunk-JV37KGKL.mjs";
|
|
8
|
+
import "../chunk-EGVFHL23.mjs";
|
|
9
|
+
import "../chunk-JOI26DEU.mjs";
|
|
10
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
11
|
+
import "../chunk-3G2I3M46.mjs";
|
|
12
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-G4GZG77M.mjs";
|
|
14
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
15
15
|
import "../chunk-DXQSIBC7.mjs";
|
|
16
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
17
16
|
import "../chunk-DEJ7A5PY.mjs";
|
|
17
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
18
18
|
import "../chunk-4N72FQFX.mjs";
|
|
19
19
|
export {
|
|
20
20
|
Scope
|
package/dist/process/Search.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-2S656HDG.mjs";
|
|
4
|
+
import "../chunk-F7C6VY2D.mjs";
|
|
5
|
+
import "../chunk-KCOJAMHS.mjs";
|
|
6
|
+
import "../chunk-UARTMYBD.mjs";
|
|
7
|
+
import "../chunk-T5K5ZLP2.mjs";
|
|
8
|
+
import "../chunk-RNM4YSY2.mjs";
|
|
9
|
+
import "../chunk-QGLPCM3U.mjs";
|
|
10
|
+
import "../chunk-JKZEVKE3.mjs";
|
|
11
|
+
import "../chunk-PB7ZHNR6.mjs";
|
|
12
|
+
import "../chunk-JADWPU3M.mjs";
|
|
13
|
+
import "../chunk-POMUVSEW.mjs";
|
|
14
|
+
import "../chunk-27YL5N6O.mjs";
|
|
15
|
+
import "../chunk-WWJDP64S.mjs";
|
|
16
|
+
import "../chunk-JV37KGKL.mjs";
|
|
17
|
+
import "../chunk-EGVFHL23.mjs";
|
|
18
|
+
import "../chunk-JOI26DEU.mjs";
|
|
19
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
20
|
+
import "../chunk-3G2I3M46.mjs";
|
|
21
21
|
import "../chunk-SJGQU3OG.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-G4GZG77M.mjs";
|
|
23
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
24
24
|
import "../chunk-DXQSIBC7.mjs";
|
|
25
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
26
25
|
import "../chunk-DEJ7A5PY.mjs";
|
|
26
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
27
27
|
import "../chunk-4N72FQFX.mjs";
|
|
28
28
|
export {
|
|
29
29
|
Search
|
package/dist/process/UseCase.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
text
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-POMUVSEW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Enum
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-27YL5N6O.mjs";
|
|
7
|
+
import "../chunk-WWJDP64S.mjs";
|
|
8
|
+
import "../chunk-JV37KGKL.mjs";
|
|
9
9
|
import {
|
|
10
10
|
toList
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-EGVFHL23.mjs";
|
|
12
|
+
import "../chunk-JOI26DEU.mjs";
|
|
13
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
14
14
|
import {
|
|
15
15
|
kebab
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-3G2I3M46.mjs";
|
|
17
17
|
import "../chunk-SJGQU3OG.mjs";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-G4GZG77M.mjs";
|
|
19
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
20
20
|
import "../chunk-DXQSIBC7.mjs";
|
|
21
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
22
21
|
import {
|
|
23
22
|
isIn,
|
|
24
23
|
isString
|
|
25
24
|
} from "../chunk-DEJ7A5PY.mjs";
|
|
25
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
26
26
|
import "../chunk-4N72FQFX.mjs";
|
|
27
27
|
|
|
28
28
|
// src/process/UseCase.ts
|
package/dist/resources/Req.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asNumber
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IFDDZTWN.mjs";
|
|
4
|
+
import "../chunk-KCOJAMHS.mjs";
|
|
5
|
+
import "../chunk-UARTMYBD.mjs";
|
|
6
|
+
import "../chunk-T5K5ZLP2.mjs";
|
|
7
|
+
import "../chunk-RNM4YSY2.mjs";
|
|
8
|
+
import "../chunk-QGLPCM3U.mjs";
|
|
9
|
+
import "../chunk-JKZEVKE3.mjs";
|
|
10
|
+
import "../chunk-PB7ZHNR6.mjs";
|
|
11
|
+
import "../chunk-JADWPU3M.mjs";
|
|
12
|
+
import "../chunk-POMUVSEW.mjs";
|
|
13
|
+
import "../chunk-27YL5N6O.mjs";
|
|
14
|
+
import "../chunk-WWJDP64S.mjs";
|
|
15
|
+
import "../chunk-JV37KGKL.mjs";
|
|
16
|
+
import "../chunk-EGVFHL23.mjs";
|
|
17
17
|
import {
|
|
18
18
|
ifDefined
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-JOI26DEU.mjs";
|
|
20
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
21
|
+
import "../chunk-3G2I3M46.mjs";
|
|
22
22
|
import "../chunk-SJGQU3OG.mjs";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-G4GZG77M.mjs";
|
|
24
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
25
25
|
import "../chunk-DXQSIBC7.mjs";
|
|
26
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
27
26
|
import "../chunk-DEJ7A5PY.mjs";
|
|
27
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
28
28
|
import "../chunk-4N72FQFX.mjs";
|
|
29
29
|
|
|
30
30
|
// src/resources/Req.ts
|
package/dist/security/Jwt.d.ts
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { Optional } from '../types/Types';
|
|
2
|
-
import { OneOrMore } from '../types/Array';
|
|
3
|
-
import { Value } from '../types/Value';
|
|
4
|
-
import { Validatable } from '../types/Validatable';
|
|
5
1
|
import { Json } from '../types/Json';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
issuer?: Optional<string>;
|
|
9
|
-
}
|
|
10
|
-
export declare class Jwt extends Value implements Validatable {
|
|
11
|
-
get isValid(): boolean;
|
|
12
|
-
static sign: (token: Json, options?: SignOptions) => Jwt;
|
|
2
|
+
import { Value } from "../types/Value";
|
|
3
|
+
export declare class Jwt extends Value {
|
|
13
4
|
static of: (a: {
|
|
14
5
|
jwt: string;
|
|
15
6
|
}) => Jwt;
|
|
16
7
|
decode: () => Json;
|
|
17
8
|
toJSON(): Json;
|
|
18
9
|
}
|
|
19
|
-
export {};
|
package/dist/security/Jwt.mjs
CHANGED
|
@@ -1,49 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tryTo
|
|
3
|
-
} from "../chunk-ARZEQQW5.mjs";
|
|
4
|
-
import "../chunk-OFGI5FLG.mjs";
|
|
5
1
|
import {
|
|
6
2
|
Value
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-J6KN572O.mjs";
|
|
10
|
-
import "../chunk-USGZFNWP.mjs";
|
|
11
|
-
import "../chunk-LYAPQ4QZ.mjs";
|
|
12
|
-
import {
|
|
13
|
-
ctx
|
|
14
|
-
} from "../chunk-6YVMQB26.mjs";
|
|
15
|
-
import "../chunk-FHW5K2RR.mjs";
|
|
16
|
-
import "../chunk-UNHWYQ54.mjs";
|
|
17
|
-
import "../chunk-PPWHEIZW.mjs";
|
|
18
|
-
import "../chunk-JTGB3TSZ.mjs";
|
|
19
|
-
import "../chunk-J7XKOXMW.mjs";
|
|
20
|
-
import "../chunk-JSON7A4X.mjs";
|
|
21
|
-
import "../chunk-X7FZPY3P.mjs";
|
|
22
|
-
import "../chunk-45GNHDKA.mjs";
|
|
3
|
+
} from "../chunk-PB7ZHNR6.mjs";
|
|
4
|
+
import "../chunk-3G2I3M46.mjs";
|
|
23
5
|
import "../chunk-SJGQU3OG.mjs";
|
|
24
|
-
import "../chunk-ZHXKBOK2.mjs";
|
|
25
|
-
import "../chunk-ZPNFXK7Y.mjs";
|
|
26
|
-
import "../chunk-DXQSIBC7.mjs";
|
|
27
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
28
6
|
import "../chunk-DEJ7A5PY.mjs";
|
|
7
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
29
8
|
import "../chunk-4N72FQFX.mjs";
|
|
30
9
|
|
|
10
|
+
// ../../node_modules/jwt-decode/build/esm/index.js
|
|
11
|
+
var InvalidTokenError = class extends Error {
|
|
12
|
+
};
|
|
13
|
+
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
14
|
+
function b64DecodeUnicode(str) {
|
|
15
|
+
return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
|
|
16
|
+
let code = p.charCodeAt(0).toString(16).toUpperCase();
|
|
17
|
+
if (code.length < 2) {
|
|
18
|
+
code = "0" + code;
|
|
19
|
+
}
|
|
20
|
+
return "%" + code;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
function base64UrlDecode(str) {
|
|
24
|
+
let output = str.replace(/-/g, "+").replace(/_/g, "/");
|
|
25
|
+
switch (output.length % 4) {
|
|
26
|
+
case 0:
|
|
27
|
+
break;
|
|
28
|
+
case 2:
|
|
29
|
+
output += "==";
|
|
30
|
+
break;
|
|
31
|
+
case 3:
|
|
32
|
+
output += "=";
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("base64 string is not of the correct length");
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
return b64DecodeUnicode(output);
|
|
39
|
+
} catch (err) {
|
|
40
|
+
return atob(output);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function jwtDecode(token, options) {
|
|
44
|
+
if (typeof token !== "string") {
|
|
45
|
+
throw new InvalidTokenError("Invalid token specified: must be a string");
|
|
46
|
+
}
|
|
47
|
+
options || (options = {});
|
|
48
|
+
const pos = options.header === true ? 0 : 1;
|
|
49
|
+
const part = token.split(".")[pos];
|
|
50
|
+
if (typeof part !== "string") {
|
|
51
|
+
throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
|
|
52
|
+
}
|
|
53
|
+
let decoded;
|
|
54
|
+
try {
|
|
55
|
+
decoded = base64UrlDecode(part);
|
|
56
|
+
} catch (e) {
|
|
57
|
+
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
return JSON.parse(decoded);
|
|
61
|
+
} catch (e) {
|
|
62
|
+
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
31
66
|
// src/security/Jwt.ts
|
|
32
|
-
import { decode, sign, verify } from "jsonwebtoken";
|
|
33
67
|
var Jwt = class _Jwt extends Value {
|
|
34
|
-
get isValid() {
|
|
35
|
-
return tryTo(() => ctx.env.get("tokenPublicKey") ?? "").map((key) => verify(this.value, key)).map(() => true).orElse() ?? false;
|
|
36
|
-
}
|
|
37
|
-
static sign = (token, options) => tryTo(() => ctx.env.get("tokenPrivateKey") ?? "").is.not.empty().map(
|
|
38
|
-
(key) => sign(token, key, {
|
|
39
|
-
...options,
|
|
40
|
-
expiresIn: ctx.env.get("tokenExpiresIn") ?? "1h",
|
|
41
|
-
keyid: ctx.env.get("tokenKeyid") ?? "easy",
|
|
42
|
-
algorithm: ctx.env.get("tokenAlgorithm", "RS256")
|
|
43
|
-
})
|
|
44
|
-
).map((s) => new _Jwt(s)).value;
|
|
45
68
|
static of = (a) => new _Jwt(a.jwt);
|
|
46
|
-
decode = () =>
|
|
69
|
+
decode = () => jwtDecode(this.value);
|
|
47
70
|
toJSON() {
|
|
48
71
|
return { jwt: this.value };
|
|
49
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/security/Jwt.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/jwt-decode/build/esm/index.js","../../src/security/Jwt.ts"],"sourcesContent":["export class InvalidTokenError extends Error {\n}\nInvalidTokenError.prototype.name = \"InvalidTokenError\";\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {\n let code = p.charCodeAt(0).toString(16).toUpperCase();\n if (code.length < 2) {\n code = \"0\" + code;\n }\n return \"%\" + code;\n }));\n}\nfunction base64UrlDecode(str) {\n let output = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += \"==\";\n break;\n case 3:\n output += \"=\";\n break;\n default:\n throw new Error(\"base64 string is not of the correct length\");\n }\n try {\n return b64DecodeUnicode(output);\n }\n catch (err) {\n return atob(output);\n }\n}\nexport function jwtDecode(token, options) {\n if (typeof token !== \"string\") {\n throw new InvalidTokenError(\"Invalid token specified: must be a string\");\n }\n options || (options = {});\n const pos = options.header === true ? 0 : 1;\n const part = token.split(\".\")[pos];\n if (typeof part !== \"string\") {\n throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);\n }\n let decoded;\n try {\n decoded = base64UrlDecode(part);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);\n }\n try {\n return JSON.parse(decoded);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);\n }\n}\n","import { jwtDecode as decode } from 'jwt-decode';\nimport { Json } from '../types/Json';\nimport {Value} from \"../types/Value\";\n\nexport class Jwt extends Value {\n static of = (a: { jwt: string }): Jwt => new Jwt(a.jwt);\n\n decode = (): Json => decode(this.value);\n\n toJSON(): Json {\n return { jwt: this.value };\n }\n}\n"],"mappings":";;;;;;;;;;AAAO,IAAM,oBAAN,cAAgC,MAAM;AAC7C;AACA,kBAAkB,UAAU,OAAO;AACnC,SAAS,iBAAiB,KAAK;AAC3B,SAAO,mBAAmB,KAAK,GAAG,EAAE,QAAQ,QAAQ,CAAC,GAAG,MAAM;AAC1D,QAAI,OAAO,EAAE,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,YAAY;AACpD,QAAI,KAAK,SAAS,GAAG;AACjB,aAAO,MAAM;AAAA,IACjB;AACA,WAAO,MAAM;AAAA,EACjB,CAAC,CAAC;AACN;AACA,SAAS,gBAAgB,KAAK;AAC1B,MAAI,SAAS,IAAI,QAAQ,MAAM,GAAG,EAAE,QAAQ,MAAM,GAAG;AACrD,UAAQ,OAAO,SAAS,GAAG;AAAA,IACvB,KAAK;AACD;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ;AACI,YAAM,IAAI,MAAM,4CAA4C;AAAA,EACpE;AACA,MAAI;AACA,WAAO,iBAAiB,MAAM;AAAA,EAClC,SACO,KAAK;AACR,WAAO,KAAK,MAAM;AAAA,EACtB;AACJ;AACO,SAAS,UAAU,OAAO,SAAS;AACtC,MAAI,OAAO,UAAU,UAAU;AAC3B,UAAM,IAAI,kBAAkB,2CAA2C;AAAA,EAC3E;AACA,cAAY,UAAU,CAAC;AACvB,QAAM,MAAM,QAAQ,WAAW,OAAO,IAAI;AAC1C,QAAM,OAAO,MAAM,MAAM,GAAG,EAAE,GAAG;AACjC,MAAI,OAAO,SAAS,UAAU;AAC1B,UAAM,IAAI,kBAAkB,0CAA0C,MAAM,CAAC,EAAE;AAAA,EACnF;AACA,MAAI;AACJ,MAAI;AACA,cAAU,gBAAgB,IAAI;AAAA,EAClC,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,qDAAqD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC7G;AACA,MAAI;AACA,WAAO,KAAK,MAAM,OAAO;AAAA,EAC7B,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,mDAAmD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC3G;AACJ;;;ACpDO,IAAM,MAAN,MAAM,aAAY,MAAM;AAAA,EAC7B,OAAO,KAAK,CAAC,MAA4B,IAAI,KAAI,EAAE,GAAG;AAAA,EAEtD,SAAS,MAAY,UAAO,KAAK,KAAK;AAAA,EAEtC,SAAe;AACb,WAAO,EAAE,KAAK,KAAK,MAAM;AAAA,EAC3B;AACF;","names":[]}
|
package/dist/services/Api.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api,
|
|
3
3
|
api
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WLFIQWOM.mjs";
|
|
5
|
+
import "../chunk-TUGGAGKI.mjs";
|
|
6
|
+
import "../chunk-5TDKTZD7.mjs";
|
|
7
|
+
import "../chunk-GD24FBKZ.mjs";
|
|
8
|
+
import "../chunk-LHD6A2CA.mjs";
|
|
9
|
+
import "../chunk-CYTFXBYW.mjs";
|
|
10
|
+
import "../chunk-MZ74H2HU.mjs";
|
|
11
|
+
import "../chunk-3VP6O3LL.mjs";
|
|
11
12
|
import "../chunk-LXQQ5N6S.mjs";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-45GNHDKA.mjs";
|
|
13
|
+
import "../chunk-QQ62TFVN.mjs";
|
|
14
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
15
|
+
import "../chunk-AQT7Z43R.mjs";
|
|
16
|
+
import "../chunk-IFDDZTWN.mjs";
|
|
17
|
+
import "../chunk-KCOJAMHS.mjs";
|
|
18
|
+
import "../chunk-UARTMYBD.mjs";
|
|
19
|
+
import "../chunk-T5K5ZLP2.mjs";
|
|
20
|
+
import "../chunk-RNM4YSY2.mjs";
|
|
21
|
+
import "../chunk-QGLPCM3U.mjs";
|
|
22
|
+
import "../chunk-JKZEVKE3.mjs";
|
|
23
|
+
import "../chunk-PB7ZHNR6.mjs";
|
|
24
|
+
import "../chunk-JADWPU3M.mjs";
|
|
25
|
+
import "../chunk-POMUVSEW.mjs";
|
|
26
|
+
import "../chunk-27YL5N6O.mjs";
|
|
27
|
+
import "../chunk-WWJDP64S.mjs";
|
|
28
|
+
import "../chunk-JV37KGKL.mjs";
|
|
29
|
+
import "../chunk-EGVFHL23.mjs";
|
|
30
|
+
import "../chunk-JOI26DEU.mjs";
|
|
31
|
+
import "../chunk-2KBPI5HD.mjs";
|
|
32
|
+
import "../chunk-3G2I3M46.mjs";
|
|
33
33
|
import "../chunk-SJGQU3OG.mjs";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-G4GZG77M.mjs";
|
|
35
|
+
import "../chunk-IK4EPPOF.mjs";
|
|
36
36
|
import "../chunk-DXQSIBC7.mjs";
|
|
37
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
38
37
|
import "../chunk-DEJ7A5PY.mjs";
|
|
38
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
39
39
|
import "../chunk-4N72FQFX.mjs";
|
|
40
40
|
export {
|
|
41
41
|
Api,
|