@dooboostore/simple-boot-http-server 1.0.17 → 1.0.19
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/cjs/SimpleBootHttpServer.d.ts +2 -1
- package/dist/cjs/SimpleBootHttpServer.d.ts.map +1 -1
- package/dist/cjs/SimpleBootHttpServer.js +310 -2
- package/dist/cjs/SimpleBootHttpServer.js.map +7 -0
- package/dist/cjs/codes/HttpHeaders.js +69 -1
- package/dist/cjs/codes/HttpHeaders.js.map +7 -0
- package/dist/cjs/codes/HttpMethod.js +39 -1
- package/dist/cjs/codes/HttpMethod.js.map +7 -0
- package/dist/cjs/codes/HttpStatus.js +47 -1
- package/dist/cjs/codes/HttpStatus.js.map +7 -0
- package/dist/cjs/codes/Mimes.js +55 -1
- package/dist/cjs/codes/Mimes.js.map +7 -0
- package/dist/cjs/codes/index.js +28 -1
- package/dist/cjs/codes/index.js.map +7 -0
- package/dist/cjs/decorators/MethodMapping.d.ts +0 -1
- package/dist/cjs/decorators/MethodMapping.d.ts.map +1 -1
- package/dist/cjs/decorators/MethodMapping.js +263 -2
- package/dist/cjs/decorators/MethodMapping.js.map +7 -0
- package/dist/cjs/decorators/index.js +22 -2
- package/dist/cjs/decorators/index.js.map +7 -0
- package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js +54 -1
- package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
- package/dist/cjs/endpoints/EndPoint.js +16 -1
- package/dist/cjs/endpoints/EndPoint.js.map +7 -0
- package/dist/cjs/endpoints/HeaderEndPoint.js +39 -1
- package/dist/cjs/endpoints/HeaderEndPoint.js.map +7 -0
- package/dist/cjs/endpoints/index.js +26 -1
- package/dist/cjs/endpoints/index.js.map +7 -0
- package/dist/cjs/errors/BadRequestError.js +34 -1
- package/dist/cjs/errors/BadRequestError.js.map +7 -0
- package/dist/cjs/errors/ForbiddenError.js +34 -1
- package/dist/cjs/errors/ForbiddenError.js.map +7 -0
- package/dist/cjs/errors/HttpError.js +38 -1
- package/dist/cjs/errors/HttpError.js.map +7 -0
- package/dist/cjs/errors/InternalServerError.js +34 -1
- package/dist/cjs/errors/InternalServerError.js.map +7 -0
- package/dist/cjs/errors/NotFoundError.js +34 -1
- package/dist/cjs/errors/NotFoundError.js.map +7 -0
- package/dist/cjs/errors/UnauthorizedError.js +34 -1
- package/dist/cjs/errors/UnauthorizedError.js.map +7 -0
- package/dist/cjs/errors/index.js +32 -1
- package/dist/cjs/errors/index.js.map +7 -0
- package/dist/cjs/filters/CacheFilter.js +150 -1
- package/dist/cjs/filters/CacheFilter.js.map +7 -0
- package/dist/cjs/filters/Filter.js +16 -1
- package/dist/cjs/filters/Filter.js.map +7 -0
- package/dist/cjs/filters/HttpStatusFilter.js +42 -1
- package/dist/cjs/filters/HttpStatusFilter.js.map +7 -0
- package/dist/cjs/filters/OpenApi3Filter.js +71 -2
- package/dist/cjs/filters/OpenApi3Filter.js.map +7 -0
- package/dist/cjs/filters/ResourceFilter.js +91 -2
- package/dist/cjs/filters/ResourceFilter.js.map +7 -0
- package/dist/cjs/filters/ThrowFilter.js +45 -1
- package/dist/cjs/filters/ThrowFilter.js.map +7 -0
- package/dist/cjs/filters/index.js +32 -2
- package/dist/cjs/filters/index.js.map +7 -0
- package/dist/cjs/index.d.ts +2 -12
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +24 -2
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/inject/InjectSituationType.js +31 -1
- package/dist/cjs/inject/InjectSituationType.js.map +7 -0
- package/dist/cjs/inject/index.js +22 -1
- package/dist/cjs/inject/index.js.map +7 -0
- package/dist/cjs/lifecycle/OnInit.js +16 -1
- package/dist/cjs/lifecycle/OnInit.js.map +7 -0
- package/dist/cjs/lifecycle/index.js +22 -1
- package/dist/cjs/lifecycle/index.js.map +7 -0
- package/dist/cjs/models/RequestResponse.js +493 -1
- package/dist/cjs/models/RequestResponse.js.map +7 -0
- package/dist/cjs/models/datas/HeaderData.js +33 -1
- package/dist/cjs/models/datas/HeaderData.js.map +7 -0
- package/dist/cjs/models/datas/MultipartData.js +16 -1
- package/dist/cjs/models/datas/MultipartData.js.map +7 -0
- package/dist/cjs/models/datas/ReqHeader.js +92 -1
- package/dist/cjs/models/datas/ReqHeader.js.map +7 -0
- package/dist/cjs/models/datas/Resource.js +78 -2
- package/dist/cjs/models/datas/Resource.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqFormUrlBody.js +29 -1
- package/dist/cjs/models/datas/body/ReqFormUrlBody.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqJsonBody.js +29 -1
- package/dist/cjs/models/datas/body/ReqJsonBody.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqMultipartFormBody.js +32 -1
- package/dist/cjs/models/datas/body/ReqMultipartFormBody.js.map +7 -0
- package/dist/cjs/models/index.js +38 -2
- package/dist/cjs/models/index.js.map +7 -0
- package/dist/cjs/models/method/patch/PatchJson.js +47 -2
- package/dist/cjs/models/method/patch/PatchJson.js.map +7 -0
- package/dist/cjs/option/HttpServerOption.js +72 -1
- package/dist/cjs/option/HttpServerOption.js.map +7 -0
- package/dist/cjs/option/index.js +22 -1
- package/dist/cjs/option/index.js.map +7 -0
- package/dist/cjs/resolvers/Resolver.js +16 -1
- package/dist/cjs/resolvers/Resolver.js.map +7 -0
- package/dist/cjs/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
- package/dist/cjs/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
- package/dist/cjs/resolvers/ResourceResolver.js +43 -0
- package/dist/cjs/resolvers/ResourceResolver.js.map +7 -0
- package/dist/cjs/resolvers/index.d.ts +1 -1
- package/dist/cjs/resolvers/index.js +24 -2
- package/dist/cjs/resolvers/index.js.map +7 -0
- package/dist/cjs/session/SessionManager.js +104 -1
- package/dist/cjs/session/SessionManager.js.map +7 -0
- package/dist/cjs/session/index.js +22 -1
- package/dist/cjs/session/index.js.map +7 -0
- package/dist/esm/SimpleBootHttpServer.d.ts +2 -1
- package/dist/esm/SimpleBootHttpServer.d.ts.map +1 -1
- package/dist/esm/SimpleBootHttpServer.js +287 -2
- package/dist/esm/SimpleBootHttpServer.js.map +7 -0
- package/dist/esm/codes/HttpHeaders.js +46 -1
- package/dist/esm/codes/HttpHeaders.js.map +7 -0
- package/dist/esm/codes/HttpMethod.js +16 -1
- package/dist/esm/codes/HttpMethod.js.map +7 -0
- package/dist/esm/codes/HttpStatus.js +24 -1
- package/dist/esm/codes/HttpStatus.js.map +7 -0
- package/dist/esm/codes/Mimes.js +32 -1
- package/dist/esm/codes/Mimes.js.map +7 -0
- package/dist/esm/codes/index.js +5 -1
- package/dist/esm/codes/index.js.map +7 -0
- package/dist/esm/decorators/MethodMapping.d.ts +0 -1
- package/dist/esm/decorators/MethodMapping.d.ts.map +1 -1
- package/dist/esm/decorators/MethodMapping.js +210 -2
- package/dist/esm/decorators/MethodMapping.js.map +7 -0
- package/dist/esm/decorators/index.js +2 -2
- package/dist/esm/decorators/index.js.map +7 -0
- package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js +31 -1
- package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
- package/dist/esm/endpoints/EndPoint.js +1 -0
- package/dist/esm/endpoints/EndPoint.js.map +7 -0
- package/dist/esm/endpoints/HeaderEndPoint.js +16 -1
- package/dist/esm/endpoints/HeaderEndPoint.js.map +7 -0
- package/dist/esm/endpoints/index.js +4 -1
- package/dist/esm/endpoints/index.js.map +7 -0
- package/dist/esm/errors/BadRequestError.js +11 -1
- package/dist/esm/errors/BadRequestError.js.map +7 -0
- package/dist/esm/errors/ForbiddenError.js +11 -1
- package/dist/esm/errors/ForbiddenError.js.map +7 -0
- package/dist/esm/errors/HttpError.js +15 -1
- package/dist/esm/errors/HttpError.js.map +7 -0
- package/dist/esm/errors/InternalServerError.js +11 -1
- package/dist/esm/errors/InternalServerError.js.map +7 -0
- package/dist/esm/errors/NotFoundError.js +11 -1
- package/dist/esm/errors/NotFoundError.js.map +7 -0
- package/dist/esm/errors/UnauthorizedError.js +11 -1
- package/dist/esm/errors/UnauthorizedError.js.map +7 -0
- package/dist/esm/errors/index.js +7 -1
- package/dist/esm/errors/index.js.map +7 -0
- package/dist/esm/filters/CacheFilter.js +127 -1
- package/dist/esm/filters/CacheFilter.js.map +7 -0
- package/dist/esm/filters/Filter.js +1 -0
- package/dist/esm/filters/Filter.js.map +7 -0
- package/dist/esm/filters/HttpStatusFilter.js +19 -1
- package/dist/esm/filters/HttpStatusFilter.js.map +7 -0
- package/dist/esm/filters/OpenApi3Filter.js +48 -2
- package/dist/esm/filters/OpenApi3Filter.js.map +7 -0
- package/dist/esm/filters/ResourceFilter.js +58 -2
- package/dist/esm/filters/ResourceFilter.js.map +7 -0
- package/dist/esm/filters/ThrowFilter.js +22 -1
- package/dist/esm/filters/ThrowFilter.js.map +7 -0
- package/dist/esm/filters/index.js +7 -2
- package/dist/esm/filters/index.js.map +7 -0
- package/dist/esm/index.d.ts +2 -12
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/inject/InjectSituationType.js +8 -1
- package/dist/esm/inject/InjectSituationType.js.map +7 -0
- package/dist/esm/inject/index.js +2 -1
- package/dist/esm/inject/index.js.map +7 -0
- package/dist/esm/lifecycle/OnInit.js +1 -0
- package/dist/esm/lifecycle/OnInit.js.map +7 -0
- package/dist/esm/lifecycle/index.js +2 -0
- package/dist/esm/lifecycle/index.js.map +7 -0
- package/dist/esm/models/RequestResponse.js +469 -1
- package/dist/esm/models/RequestResponse.js.map +7 -0
- package/dist/esm/models/datas/HeaderData.js +10 -1
- package/dist/esm/models/datas/HeaderData.js.map +7 -0
- package/dist/esm/models/datas/MultipartData.js +1 -0
- package/dist/esm/models/datas/MultipartData.js.map +7 -0
- package/dist/esm/models/datas/ReqHeader.js +69 -1
- package/dist/esm/models/datas/ReqHeader.js.map +7 -0
- package/dist/esm/models/datas/Resource.js +45 -2
- package/dist/esm/models/datas/Resource.js.map +7 -0
- package/dist/esm/models/datas/body/ReqFormUrlBody.js +6 -1
- package/dist/esm/models/datas/body/ReqFormUrlBody.js.map +7 -0
- package/dist/esm/models/datas/body/ReqJsonBody.js +6 -1
- package/dist/esm/models/datas/body/ReqJsonBody.js.map +7 -0
- package/dist/esm/models/datas/body/ReqMultipartFormBody.js +9 -1
- package/dist/esm/models/datas/body/ReqMultipartFormBody.js.map +7 -0
- package/dist/esm/models/index.js +10 -2
- package/dist/esm/models/index.js.map +7 -0
- package/dist/esm/models/method/patch/PatchJson.js +14 -2
- package/dist/esm/models/method/patch/PatchJson.js.map +7 -0
- package/dist/esm/option/HttpServerOption.d.ts +1 -1
- package/dist/esm/option/HttpServerOption.js +49 -1
- package/dist/esm/option/HttpServerOption.js.map +7 -0
- package/dist/esm/option/index.js +2 -1
- package/dist/esm/option/index.js.map +7 -0
- package/dist/esm/resolvers/Resolver.js +1 -0
- package/dist/esm/resolvers/Resolver.js.map +7 -0
- package/dist/esm/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
- package/dist/esm/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
- package/dist/esm/resolvers/ResourceResolver.js +20 -0
- package/dist/esm/resolvers/ResourceResolver.js.map +7 -0
- package/dist/esm/resolvers/index.d.ts +1 -1
- package/dist/esm/resolvers/index.js +3 -2
- package/dist/esm/resolvers/index.js.map +7 -0
- package/dist/esm/session/SessionManager.js +81 -1
- package/dist/esm/session/SessionManager.js.map +7 -0
- package/dist/esm/session/index.js +2 -1
- package/dist/esm/session/index.js.map +7 -0
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +6 -2
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.map +7 -0
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +28 -2
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.map +7 -0
- package/package.json +29 -23
- package/dist/cjs/SimpleBootHttpServer.js.LICENSE.txt +0 -20
- package/dist/cjs/decorators/MethodMapping.js.LICENSE.txt +0 -16
- package/dist/cjs/decorators/index.js.LICENSE.txt +0 -16
- package/dist/cjs/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
- package/dist/cjs/filters/ResourceFilter.js.LICENSE.txt +0 -13
- package/dist/cjs/filters/index.js.LICENSE.txt +0 -30
- package/dist/cjs/index.js.LICENSE.txt +0 -46
- package/dist/cjs/models/datas/Resource.js.LICENSE.txt +0 -13
- package/dist/cjs/models/index.js.LICENSE.txt +0 -25
- package/dist/cjs/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
- package/dist/cjs/resolvers/ResourceResorver.js +0 -2
- package/dist/cjs/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
- package/dist/cjs/resolvers/index.js.LICENSE.txt +0 -13
- package/dist/esm/SimpleBootHttpServer.js.LICENSE.txt +0 -20
- package/dist/esm/decorators/MethodMapping.js.LICENSE.txt +0 -16
- package/dist/esm/decorators/index.js.LICENSE.txt +0 -16
- package/dist/esm/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
- package/dist/esm/filters/ResourceFilter.js.LICENSE.txt +0 -13
- package/dist/esm/filters/index.js.LICENSE.txt +0 -30
- package/dist/esm/index.js.LICENSE.txt +0 -46
- package/dist/esm/models/datas/Resource.js.LICENSE.txt +0 -13
- package/dist/esm/models/index.js.LICENSE.txt +0 -25
- package/dist/esm/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
- package/dist/esm/resolvers/ResourceResorver.js +0 -2
- package/dist/esm/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
- package/dist/esm/resolvers/index.js.LICENSE.txt +0 -13
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.LICENSE.txt +0 -54
- package/dist/umd-bundle/SimpleBootHttpServer.d.ts +0 -14
- package/dist/umd-bundle/SimpleBootHttpServer.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpHeaders.d.ts +0 -42
- package/dist/umd-bundle/codes/HttpHeaders.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpMethod.d.ts +0 -12
- package/dist/umd-bundle/codes/HttpMethod.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpStatus.d.ts +0 -45
- package/dist/umd-bundle/codes/HttpStatus.d.ts.map +0 -1
- package/dist/umd-bundle/codes/Mimes.d.ts +0 -28
- package/dist/umd-bundle/codes/Mimes.d.ts.map +0 -1
- package/dist/umd-bundle/codes/index.d.ts +0 -5
- package/dist/umd-bundle/codes/index.d.ts.map +0 -1
- package/dist/umd-bundle/decorators/MethodMapping.d.ts +0 -74
- package/dist/umd-bundle/decorators/MethodMapping.d.ts.map +0 -1
- package/dist/umd-bundle/decorators/index.d.ts +0 -2
- package/dist/umd-bundle/decorators/index.d.ts.map +0 -1
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.LICENSE.txt +0 -54
- package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts +0 -16
- package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/EndPoint.d.ts +0 -7
- package/dist/umd-bundle/endpoints/EndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts +0 -12
- package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/index.d.ts +0 -4
- package/dist/umd-bundle/endpoints/index.d.ts.map +0 -1
- package/dist/umd-bundle/errors/BadRequestError.d.ts +0 -8
- package/dist/umd-bundle/errors/BadRequestError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/ForbiddenError.d.ts +0 -8
- package/dist/umd-bundle/errors/ForbiddenError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/HttpError.d.ts +0 -12
- package/dist/umd-bundle/errors/HttpError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/InternalServerError.d.ts +0 -8
- package/dist/umd-bundle/errors/InternalServerError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/NotFoundError.d.ts +0 -8
- package/dist/umd-bundle/errors/NotFoundError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/UnauthorizedError.d.ts +0 -8
- package/dist/umd-bundle/errors/UnauthorizedError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/index.d.ts +0 -7
- package/dist/umd-bundle/errors/index.d.ts.map +0 -1
- package/dist/umd-bundle/filters/CacheFilter.d.ts +0 -45
- package/dist/umd-bundle/filters/CacheFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/Filter.d.ts +0 -17
- package/dist/umd-bundle/filters/Filter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/HttpStatusFilter.d.ts +0 -20
- package/dist/umd-bundle/filters/HttpStatusFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/OpenApi3Filter.d.ts +0 -142
- package/dist/umd-bundle/filters/OpenApi3Filter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/ResourceFilter.d.ts +0 -24
- package/dist/umd-bundle/filters/ResourceFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/ThrowFilter.d.ts +0 -19
- package/dist/umd-bundle/filters/ThrowFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/index.d.ts +0 -7
- package/dist/umd-bundle/filters/index.d.ts.map +0 -1
- package/dist/umd-bundle/index.d.ts +0 -13
- package/dist/umd-bundle/index.d.ts.map +0 -1
- package/dist/umd-bundle/inject/InjectSituationType.d.ts +0 -4
- package/dist/umd-bundle/inject/InjectSituationType.d.ts.map +0 -1
- package/dist/umd-bundle/inject/index.d.ts +0 -2
- package/dist/umd-bundle/inject/index.d.ts.map +0 -1
- package/dist/umd-bundle/lifecycle/OnInit.d.ts +0 -5
- package/dist/umd-bundle/lifecycle/OnInit.d.ts.map +0 -1
- package/dist/umd-bundle/lifecycle/index.d.ts +0 -2
- package/dist/umd-bundle/lifecycle/index.d.ts.map +0 -1
- package/dist/umd-bundle/models/RequestResponse.d.ts +0 -100
- package/dist/umd-bundle/models/RequestResponse.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/HeaderData.d.ts +0 -10
- package/dist/umd-bundle/models/datas/HeaderData.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/MultipartData.d.ts +0 -12
- package/dist/umd-bundle/models/datas/MultipartData.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/ReqHeader.d.ts +0 -68
- package/dist/umd-bundle/models/datas/ReqHeader.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/Resource.d.ts +0 -11
- package/dist/umd-bundle/models/datas/Resource.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts +0 -4
- package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts +0 -4
- package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts +0 -6
- package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/index.d.ts +0 -10
- package/dist/umd-bundle/models/index.d.ts.map +0 -1
- package/dist/umd-bundle/models/method/patch/PatchJson.d.ts +0 -8
- package/dist/umd-bundle/models/method/patch/PatchJson.d.ts.map +0 -1
- package/dist/umd-bundle/option/HttpServerOption.d.ts +0 -83
- package/dist/umd-bundle/option/HttpServerOption.d.ts.map +0 -1
- package/dist/umd-bundle/option/index.d.ts +0 -2
- package/dist/umd-bundle/option/index.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/Resolver.d.ts +0 -5
- package/dist/umd-bundle/resolvers/Resolver.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/ResourceResorver.d.ts +0 -6
- package/dist/umd-bundle/resolvers/ResourceResorver.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/index.d.ts +0 -3
- package/dist/umd-bundle/resolvers/index.d.ts.map +0 -1
- package/dist/umd-bundle/session/SessionManager.d.ts +0 -57
- package/dist/umd-bundle/session/SessionManager.d.ts.map +0 -1
- package/dist/umd-bundle/session/index.d.ts +0 -2
- package/dist/umd-bundle/session/index.d.ts.map +0 -1
|
@@ -1,2 +1,263 @@
|
|
|
1
|
-
|
|
2
|
-
(()=>{var t={5053:(t,e,r)=>{"use strict";r.d(e,{d:()=>f});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,f=!a&&!u,c={create:a?function(){return F(Object.create(null))}:u?function(){return F({__proto__:null})}:function(){return F({})},has:f?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:f?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,C(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!C(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(C(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),h="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):i(t,16),t}return i(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),y=n?Symbol.for("@reflect-metadata:registry"):void 0,l=function(){var t;return!m(y)&&k(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[y]),m(t)&&(t=function(){var t,r,n,o;m(y)||void 0===e.Reflect||y in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(m(r)||!r.has(e))||!!o(t,e).length&&(m(r)&&(r=new h,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case m(r):r=e;break;case r===e:break;case m(n):n=e;break;case n===e:break;default:void 0===o&&(o=new h),o.add(e)}},getProvider:f,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!m(n))return!1;var o=i.get(t);m(o)&&(o=new d,i.set(t,o)),o.set(e,r)}return!0}};return a;function u(e,i){if(!m(r)){if(r.isProviderFor(e,i))return r;if(!m(n)){if(n.isProviderFor(e,i))return r;if(!m(o))for(var a=D(o);;){var u=U(a);if(!u)return;var f=I(u);if(f.isProviderFor(e,i))return N(a),f}}}if(!m(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return m(n)||(r=n.get(e)),m(r)?(m(r=u(t,e))||(m(n)&&(n=new d,i.set(t,n)),n.set(e,r)),r):r}function c(t){if(m(t))throw new TypeError;return r===t||n===t||!m(o)&&o.has(t)}}()),!m(y)&&k(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,y,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!m(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!m(o)&&R(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!m(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(m(o))return r;for(var i=D(o.keys()),a=0;;){var u=U(i);if(!u)return r.length=a,r;var f=I(u);try{r[a]=f}catch(t){try{N(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(m(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);m(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return l.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(m(a)){if(!i)return;a=new d,e.set(n,a),u=!0}var f=a.get(o);if(m(f)){if(!i)return;if(f=new d,a.set(o,f),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return f}}(l);function w(t,e,r){if(_(t,e,r))return!0;var n=K(e);return!P(n)&&w(t,n,r)}function _(t,e,r){var n=G(e,r,!1);return!m(n)&&R(n.OrdinaryHasOwnMetadata(t,e,r))}function g(t,e,r){if(_(t,e,r))return O(t,e,r);var n=K(e);return P(n)?void 0:g(t,n,r)}function O(t,e,r){var n=G(e,r,!1);if(!m(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function M(t,e,r,n){G(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function E(t,e){var r=T(t,e),n=K(t);if(null===n)return r;var o=E(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new h,a=[],u=0,f=r;u<f.length;u++){var c=f[u];i.has(c)||(i.add(c),a.push(c))}for(var s=0,d=o;s<d.length;s++)c=d[s],i.has(c)||(i.add(c),a.push(c));return a}function T(t,e){var r=G(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function b(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function m(t){return void 0===t}function P(t){return null===t}function k(t){return"object"==typeof t?null!==t:"function"==typeof t}function R(t){return!!t}function S(t){var e=function(t){switch(b(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=A(t,o);if(void 0!==r){var n=r.call(t,e);if(k(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(x(n)&&!k(r=n.call(t)))return r;if(x(e=t.valueOf)&&!k(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function j(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function x(t){return"function"==typeof t}function H(t){return"function"==typeof t}function C(t,e){return t===e||t!=t&&e!=e}function A(t,e){var r=t[e];if(null!=r){if(!x(r))throw new TypeError;return r}}function D(t){var e=A(t,i);if(!x(e))throw new TypeError;var r=e.call(t);if(!k(r))throw new TypeError;return r}function I(t){return t.value}function U(t){var e=t.next();return!e.done&&e}function N(t){var e=t.return;e&&e.call(t)}function K(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function G(t,e,r){var n=l.getProvider(t,e);if(!m(n))return n;if(r){if(l.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function F(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(m(r)){if(!j(t))throw new TypeError;if(!H(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!m(n)&&!P(n)){if(!H(n))throw new TypeError;e=n}}return e}(t,e)}if(!j(t))throw new TypeError;if(!k(e))throw new TypeError;if(!k(n)&&!m(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!m(i)&&!P(i)){if(!k(i))throw new TypeError;n=i}}return n}(t,e,r=S(r),n)}),t("metadata",function(t,e){return function(r,n){if(!k(r))throw new TypeError;if(!m(n)&&!function(t){switch(b(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;M(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!k(r))throw new TypeError;return m(n)||(n=S(n)),M(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=S(r)),w(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=S(r)),_(t,e,r)}),t("getMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=S(r)),g(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=S(r)),O(t,e,r)}),t("getMetadataKeys",function(t,e){if(!k(t))throw new TypeError;return m(e)||(e=S(e)),E(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!k(t))throw new TypeError;return m(e)||(e=S(e)),T(t,e)}),t("deleteMetadata",function(t,e,r){if(!k(e))throw new TypeError;if(m(r)||(r=S(r)),!k(e))throw new TypeError;m(r)||(r=S(r));var n=G(e,r,!1);return!m(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,u={};i.d(u,{d:()=>a}),i(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const f=u.d},5118:(t,e,r)=>{"use strict";var n;r.d(e,{HttpMethod:()=>n}),function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t.CONNECT="CONNECT"}(n||(n={}))},9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,f=!a&&!u,c={create:a?function(){return L(Object.create(null))}:u?function(){return L({__proto__:null})}:function(){return L({})},has:f?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:f?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,A(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!A(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(A(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),h="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),y=n?Symbol.for("@reflect-metadata:registry"):void 0,l=function(){var t;return!m(y)&&k(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[y]),m(t)&&(t=function(){var t,r,n,o;m(y)||void 0===e.Reflect||y in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(m(r)||!r.has(e))||!!o(t,e).length&&(m(r)&&(r=new h,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:c,setProvider:l};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case m(r):r=e;break;case r===e:break;case m(n):n=e;break;case n===e:break;default:void 0===o&&(o=new h),o.add(e)}}function f(e,i){if(!m(r)){if(r.isProviderFor(e,i))return r;if(!m(n)){if(n.isProviderFor(e,i))return r;if(!m(o))for(var a=I(o);;){var u=N(a);if(!u)return;var f=U(u);if(f.isProviderFor(e,i))return K(a),f}}}if(!m(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return m(n)||(r=n.get(e)),m(r)?(m(r=f(t,e))||(m(n)&&(n=new d,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(m(t))throw new TypeError;return r===t||n===t||!m(o)&&o.has(t)}function l(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!m(n))return!1;var o=i.get(t);m(o)&&(o=new d,i.set(t,o)),o.set(e,r)}return!0}}()),!m(y)&&k(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,y,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!m(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!m(o)&&S(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!m(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(m(o))return r;for(var i=I(o.keys()),a=0;;){var u=N(i);if(!u)return r.length=a,r;var f=U(u);try{r[a]=f}catch(t){try{K(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(m(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);m(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return l.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(m(a)){if(!i)return;a=new d,e.set(n,a),u=!0}var f=a.get(o);if(m(f)){if(!i)return;if(f=new d,a.set(o,f),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return f}}(l);function w(t,e,r){if(_(t,e,r))return!0;var n=G(e);return!P(n)&&w(t,n,r)}function _(t,e,r){var n=F(e,r,!1);return!m(n)&&S(n.OrdinaryHasOwnMetadata(t,e,r))}function g(t,e,r){if(_(t,e,r))return O(t,e,r);var n=G(e);return P(n)?void 0:g(t,n,r)}function O(t,e,r){var n=F(e,r,!1);if(!m(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function M(t,e,r,n){F(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function E(t,e){var r=T(t,e),n=G(t);if(null===n)return r;var o=E(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new h,a=[],u=0,f=r;u<f.length;u++){var c=f[u];i.has(c)||(i.add(c),a.push(c))}for(var s=0,d=o;s<d.length;s++)c=d[s],i.has(c)||(i.add(c),a.push(c));return a}function T(t,e){var r=F(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function b(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function m(t){return void 0===t}function P(t){return null===t}function k(t){return"object"==typeof t?null!==t:"function"==typeof t}function R(t,e){switch(b(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=D(t,o);if(void 0!==n){var i=n.call(t,r);if(k(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(H(r)&&!k(o=r.call(t)))return o;if(H(n=t.valueOf)&&!k(o=n.call(t)))return o}else{var n;if(H(n=t.valueOf)&&!k(o=n.call(t)))return o;var o,i=t.toString;if(H(i)&&!k(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function S(t){return!!t}function j(t){var e=R(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function x(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function H(t){return"function"==typeof t}function C(t){return"function"==typeof t}function A(t,e){return t===e||t!=t&&e!=e}function D(t,e){var r=t[e];if(null!=r){if(!H(r))throw new TypeError;return r}}function I(t){var e=D(t,i);if(!H(e))throw new TypeError;var r=e.call(t);if(!k(r))throw new TypeError;return r}function U(t){return t.value}function N(t){var e=t.next();return!e.done&&e}function K(t){var e=t.return;e&&e.call(t)}function G(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function F(t,e,r){var n=l.getProvider(t,e);if(!m(n))return n;if(r){if(l.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function L(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(m(r)){if(!x(t))throw new TypeError;if(!C(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!m(n)&&!P(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!x(t))throw new TypeError;if(!k(e))throw new TypeError;if(!k(n)&&!m(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!m(i)&&!P(i)){if(!k(i))throw new TypeError;n=i}}return n}(t,e,r=j(r),n)}),t("metadata",function(t,e){return function(r,n){if(!k(r))throw new TypeError;if(!m(n)&&!function(t){switch(b(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;M(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!k(r))throw new TypeError;return m(n)||(n=j(n)),M(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=j(r)),w(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=j(r)),_(t,e,r)}),t("getMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=j(r)),g(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!k(e))throw new TypeError;return m(r)||(r=j(r)),O(t,e,r)}),t("getMetadataKeys",function(t,e){if(!k(t))throw new TypeError;return m(e)||(e=j(e)),E(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!k(t))throw new TypeError;return m(e)||(e=j(e)),T(t,e)}),t("deleteMetadata",function(t,e,r){if(!k(e))throw new TypeError;if(m(r)||(r=j(r)),!k(e))throw new TypeError;m(r)||(r=j(r));var n=F(e,r,!1);return!m(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{CONNECT:()=>A,DELETE:()=>v,GET:()=>s,HEAD:()=>R,OPTIONS:()=>m,PATCH:()=>E,POST:()=>p,PUT:()=>g,TRACE:()=>x,UrlMapping:()=>u,UrlMappingSituationType:()=>t,getCONNECT:()=>D,getCONNECTS:()=>I,getDELETE:()=>w,getDELETES:()=>_,getGET:()=>d,getGETS:()=>h,getHEAD:()=>S,getHEADS:()=>j,getOPTIONS:()=>P,getOPTIONSS:()=>k,getPATCH:()=>T,getPATCHS:()=>b,getPOST:()=>y,getPOSTS:()=>l,getPUT:()=>O,getPUTS:()=>M,getTRACE:()=>H,getTRACES:()=>C,getUrlMapping:()=>f,getUrlMappings:()=>c}),r(9771);var t,e=r(5053),o=r(5118);!function(t){t.REQ_JSON_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY",t.REQ_FORM_URL_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY"}(t||(t={}));const i=Symbol("MappingMetadataKey"),a=(t,r,n,o)=>{const a=e.d.getMetadata(i,r.constructor)??[];a.push({propertyKey:n,config:t}),e.d.defineMetadata(i,a,r.constructor),e.d.defineMetadata(i,t,r,n)};function u(t,e,r){if(!e||!r)return(e,r,n)=>{a(t,e,r,n)};a({method:o.HttpMethod.GET},t,e,r)}const f=(t,r)=>e.d.getMetadata(i,t,r),c=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),e.d.getMetadata(i,t));function s(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.GET,a(t,e,r,n)};a({method:o.HttpMethod.GET},t,e,r)}const d=(t,e)=>f(t,e),h=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.GET);function p(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.POST,a(t,e,r,n)};a({method:o.HttpMethod.POST},t,e,r)}const y=(t,e)=>f(t,e),l=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.POST);function v(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.DELETE,a(t,e,r,n)};a({method:o.HttpMethod.DELETE},t,e,r)}const w=(t,e)=>f(t,e),_=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.DELETE);function g(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.PUT,a(t,e,r,n)};a({method:o.HttpMethod.PUT},t,e,r)}const O=(t,e)=>f(t,e),M=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.PUT);function E(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.PATCH,a(t,e,r,n)};a({method:o.HttpMethod.PATCH},t,e,r)}const T=(t,e)=>f(t,e),b=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.GET);function m(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.OPTIONS,a(t,e,r,n)};a({method:o.HttpMethod.OPTIONS},t,e,r)}const P=(t,e)=>f(t,e),k=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.OPTIONS);function R(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.HEAD,a(t,e,r,n)};a({method:o.HttpMethod.HEAD},t,e,r)}const S=(t,e)=>f(t,e),j=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.GET);function x(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.TRACE,a(t,e,r,n)};a({method:o.HttpMethod.TRACE},t,e,r)}const H=(t,e)=>f(t,e),C=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.TRACE);function A(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=o.HttpMethod.CONNECT,a(t,e,r,n)};a({method:o.HttpMethod.CONNECT},t,e,r)}const D=(t,e)=>f(t,e),I=t=>c(t)?.filter(t=>t.config?.method.toUpperCase()===o.HttpMethod.CONNECT)})(),module.exports=n})();
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var MethodMapping_exports = {};
|
|
19
|
+
__export(MethodMapping_exports, {
|
|
20
|
+
CONNECT: () => CONNECT,
|
|
21
|
+
DELETE: () => DELETE,
|
|
22
|
+
GET: () => GET,
|
|
23
|
+
HEAD: () => HEAD,
|
|
24
|
+
OPTIONS: () => OPTIONS,
|
|
25
|
+
PATCH: () => PATCH,
|
|
26
|
+
POST: () => POST,
|
|
27
|
+
PUT: () => PUT,
|
|
28
|
+
TRACE: () => TRACE,
|
|
29
|
+
UrlMapping: () => UrlMapping,
|
|
30
|
+
UrlMappingSituationType: () => UrlMappingSituationType,
|
|
31
|
+
getCONNECT: () => getCONNECT,
|
|
32
|
+
getCONNECTS: () => getCONNECTS,
|
|
33
|
+
getDELETE: () => getDELETE,
|
|
34
|
+
getDELETES: () => getDELETES,
|
|
35
|
+
getGET: () => getGET,
|
|
36
|
+
getGETS: () => getGETS,
|
|
37
|
+
getHEAD: () => getHEAD,
|
|
38
|
+
getHEADS: () => getHEADS,
|
|
39
|
+
getOPTIONS: () => getOPTIONS,
|
|
40
|
+
getOPTIONSS: () => getOPTIONSS,
|
|
41
|
+
getPATCH: () => getPATCH,
|
|
42
|
+
getPATCHS: () => getPATCHS,
|
|
43
|
+
getPOST: () => getPOST,
|
|
44
|
+
getPOSTS: () => getPOSTS,
|
|
45
|
+
getPUT: () => getPUT,
|
|
46
|
+
getPUTS: () => getPUTS,
|
|
47
|
+
getTRACE: () => getTRACE,
|
|
48
|
+
getTRACES: () => getTRACES,
|
|
49
|
+
getUrlMapping: () => getUrlMapping,
|
|
50
|
+
getUrlMappings: () => getUrlMappings
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(MethodMapping_exports);
|
|
53
|
+
var import_ReflectUtils = require("@dooboostore/core/reflect/ReflectUtils");
|
|
54
|
+
var import_HttpMethod = require("../codes/HttpMethod");
|
|
55
|
+
var UrlMappingSituationType = /* @__PURE__ */ ((UrlMappingSituationType2) => {
|
|
56
|
+
UrlMappingSituationType2["REQ_JSON_BODY"] = "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY";
|
|
57
|
+
UrlMappingSituationType2["REQ_FORM_URL_BODY"] = "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY";
|
|
58
|
+
return UrlMappingSituationType2;
|
|
59
|
+
})(UrlMappingSituationType || {});
|
|
60
|
+
const MappingMetadataKey = Symbol("MappingMetadataKey");
|
|
61
|
+
const process = (config, target, propertyKey, descriptor) => {
|
|
62
|
+
const saveMappingConfigs = import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target.constructor) ?? [];
|
|
63
|
+
saveMappingConfigs.push({ propertyKey, config });
|
|
64
|
+
import_ReflectUtils.ReflectUtils.defineMetadata(MappingMetadataKey, saveMappingConfigs, target.constructor);
|
|
65
|
+
import_ReflectUtils.ReflectUtils.defineMetadata(MappingMetadataKey, config, target, propertyKey);
|
|
66
|
+
};
|
|
67
|
+
function UrlMapping(configOrtarget, propertyKey, descriptor) {
|
|
68
|
+
if (propertyKey && descriptor) {
|
|
69
|
+
process({ method: import_HttpMethod.HttpMethod.GET }, configOrtarget, propertyKey, descriptor);
|
|
70
|
+
} else {
|
|
71
|
+
return (target, propertyKey2, descriptor2) => {
|
|
72
|
+
process(configOrtarget, target, propertyKey2, descriptor2);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const getUrlMapping = (target, propertyKey) => {
|
|
77
|
+
return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target, propertyKey);
|
|
78
|
+
};
|
|
79
|
+
const getUrlMappings = (target) => {
|
|
80
|
+
if (target !== null && void 0 !== target && typeof target === "object") {
|
|
81
|
+
target = target.constructor;
|
|
82
|
+
}
|
|
83
|
+
return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target);
|
|
84
|
+
};
|
|
85
|
+
function GET(configOrTarget, propertyKey, descriptor) {
|
|
86
|
+
if (propertyKey && descriptor) {
|
|
87
|
+
process({ method: import_HttpMethod.HttpMethod.GET }, configOrTarget, propertyKey, descriptor);
|
|
88
|
+
} else {
|
|
89
|
+
return (target, propertyKey2, descriptor2) => {
|
|
90
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.GET;
|
|
91
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const getGET = (target, propertyKey) => {
|
|
96
|
+
return getUrlMapping(target, propertyKey);
|
|
97
|
+
};
|
|
98
|
+
const getGETS = (target) => {
|
|
99
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.GET);
|
|
100
|
+
};
|
|
101
|
+
function POST(configOrTarget, propertyKey, descriptor) {
|
|
102
|
+
if (propertyKey && descriptor) {
|
|
103
|
+
process({ method: import_HttpMethod.HttpMethod.POST }, configOrTarget, propertyKey, descriptor);
|
|
104
|
+
} else {
|
|
105
|
+
return (target, propertyKey2, descriptor2) => {
|
|
106
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.POST;
|
|
107
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const getPOST = (target, propertyKey) => {
|
|
112
|
+
return getUrlMapping(target, propertyKey);
|
|
113
|
+
};
|
|
114
|
+
const getPOSTS = (target) => {
|
|
115
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.POST);
|
|
116
|
+
};
|
|
117
|
+
function DELETE(configOrTarget, propertyKey, descriptor) {
|
|
118
|
+
if (propertyKey && descriptor) {
|
|
119
|
+
process({ method: import_HttpMethod.HttpMethod.DELETE }, configOrTarget, propertyKey, descriptor);
|
|
120
|
+
} else {
|
|
121
|
+
return (target, propertyKey2, descriptor2) => {
|
|
122
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.DELETE;
|
|
123
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const getDELETE = (target, propertyKey) => {
|
|
128
|
+
return getUrlMapping(target, propertyKey);
|
|
129
|
+
};
|
|
130
|
+
const getDELETES = (target) => {
|
|
131
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.DELETE);
|
|
132
|
+
};
|
|
133
|
+
function PUT(configOrTarget, propertyKey, descriptor) {
|
|
134
|
+
if (propertyKey && descriptor) {
|
|
135
|
+
process({ method: import_HttpMethod.HttpMethod.PUT }, configOrTarget, propertyKey, descriptor);
|
|
136
|
+
} else {
|
|
137
|
+
return (target, propertyKey2, descriptor2) => {
|
|
138
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.PUT;
|
|
139
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const getPUT = (target, propertyKey) => {
|
|
144
|
+
return getUrlMapping(target, propertyKey);
|
|
145
|
+
};
|
|
146
|
+
const getPUTS = (target) => {
|
|
147
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.PUT);
|
|
148
|
+
};
|
|
149
|
+
function PATCH(configOrTarget, propertyKey, descriptor) {
|
|
150
|
+
if (propertyKey && descriptor) {
|
|
151
|
+
process({ method: import_HttpMethod.HttpMethod.PATCH }, configOrTarget, propertyKey, descriptor);
|
|
152
|
+
} else {
|
|
153
|
+
return (target, propertyKey2, descriptor2) => {
|
|
154
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.PATCH;
|
|
155
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const getPATCH = (target, propertyKey) => {
|
|
160
|
+
return getUrlMapping(target, propertyKey);
|
|
161
|
+
};
|
|
162
|
+
const getPATCHS = (target) => {
|
|
163
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.GET);
|
|
164
|
+
};
|
|
165
|
+
function OPTIONS(configOrTarget, propertyKey, descriptor) {
|
|
166
|
+
if (propertyKey && descriptor) {
|
|
167
|
+
process({ method: import_HttpMethod.HttpMethod.OPTIONS }, configOrTarget, propertyKey, descriptor);
|
|
168
|
+
} else {
|
|
169
|
+
return (target, propertyKey2, descriptor2) => {
|
|
170
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.OPTIONS;
|
|
171
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const getOPTIONS = (target, propertyKey) => {
|
|
176
|
+
return getUrlMapping(target, propertyKey);
|
|
177
|
+
};
|
|
178
|
+
const getOPTIONSS = (target) => {
|
|
179
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.OPTIONS);
|
|
180
|
+
};
|
|
181
|
+
function HEAD(configOrTarget, propertyKey, descriptor) {
|
|
182
|
+
if (propertyKey && descriptor) {
|
|
183
|
+
process({ method: import_HttpMethod.HttpMethod.HEAD }, configOrTarget, propertyKey, descriptor);
|
|
184
|
+
} else {
|
|
185
|
+
return (target, propertyKey2, descriptor2) => {
|
|
186
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.HEAD;
|
|
187
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const getHEAD = (target, propertyKey) => {
|
|
192
|
+
return getUrlMapping(target, propertyKey);
|
|
193
|
+
};
|
|
194
|
+
const getHEADS = (target) => {
|
|
195
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.GET);
|
|
196
|
+
};
|
|
197
|
+
function TRACE(configOrTarget, propertyKey, descriptor) {
|
|
198
|
+
if (propertyKey && descriptor) {
|
|
199
|
+
process({ method: import_HttpMethod.HttpMethod.TRACE }, configOrTarget, propertyKey, descriptor);
|
|
200
|
+
} else {
|
|
201
|
+
return (target, propertyKey2, descriptor2) => {
|
|
202
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.TRACE;
|
|
203
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
const getTRACE = (target, propertyKey) => {
|
|
208
|
+
return getUrlMapping(target, propertyKey);
|
|
209
|
+
};
|
|
210
|
+
const getTRACES = (target) => {
|
|
211
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.TRACE);
|
|
212
|
+
};
|
|
213
|
+
function CONNECT(configOrTarget, propertyKey, descriptor) {
|
|
214
|
+
if (propertyKey && descriptor) {
|
|
215
|
+
process({ method: import_HttpMethod.HttpMethod.CONNECT }, configOrTarget, propertyKey, descriptor);
|
|
216
|
+
} else {
|
|
217
|
+
return (target, propertyKey2, descriptor2) => {
|
|
218
|
+
configOrTarget.method = import_HttpMethod.HttpMethod.CONNECT;
|
|
219
|
+
process(configOrTarget, target, propertyKey2, descriptor2);
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const getCONNECT = (target, propertyKey) => {
|
|
224
|
+
return getUrlMapping(target, propertyKey);
|
|
225
|
+
};
|
|
226
|
+
const getCONNECTS = (target) => {
|
|
227
|
+
return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === import_HttpMethod.HttpMethod.CONNECT);
|
|
228
|
+
};
|
|
229
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
230
|
+
0 && (module.exports = {
|
|
231
|
+
CONNECT,
|
|
232
|
+
DELETE,
|
|
233
|
+
GET,
|
|
234
|
+
HEAD,
|
|
235
|
+
OPTIONS,
|
|
236
|
+
PATCH,
|
|
237
|
+
POST,
|
|
238
|
+
PUT,
|
|
239
|
+
TRACE,
|
|
240
|
+
UrlMapping,
|
|
241
|
+
UrlMappingSituationType,
|
|
242
|
+
getCONNECT,
|
|
243
|
+
getCONNECTS,
|
|
244
|
+
getDELETE,
|
|
245
|
+
getDELETES,
|
|
246
|
+
getGET,
|
|
247
|
+
getGETS,
|
|
248
|
+
getHEAD,
|
|
249
|
+
getHEADS,
|
|
250
|
+
getOPTIONS,
|
|
251
|
+
getOPTIONSS,
|
|
252
|
+
getPATCH,
|
|
253
|
+
getPATCHS,
|
|
254
|
+
getPOST,
|
|
255
|
+
getPOSTS,
|
|
256
|
+
getPUT,
|
|
257
|
+
getPUTS,
|
|
258
|
+
getTRACE,
|
|
259
|
+
getTRACES,
|
|
260
|
+
getUrlMapping,
|
|
261
|
+
getUrlMappings
|
|
262
|
+
});
|
|
263
|
+
//# sourceMappingURL=MethodMapping.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/decorators/MethodMapping.ts"],
|
|
4
|
+
"sourcesContent": ["import { ConstructorType } from '@dooboostore/core/types';\nimport { ReflectMethod } from '@dooboostore/simple-boot/types/Types';\nimport { ReflectUtils } from '@dooboostore/core/reflect/ReflectUtils';\nimport { Resolver } from '../resolvers/Resolver';\nimport { Mimes } from '../codes/Mimes';\nimport { HttpMethod } from '../codes/HttpMethod';\n\nexport enum UrlMappingSituationType {\n REQ_JSON_BODY = 'SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY',\n REQ_FORM_URL_BODY = 'SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY'\n}\nexport type MappingConfig = {\n method: HttpMethod | string,\n description?: {\n name?: string;\n detail?: string;\n };\n\n req?: {\n contentType?: (Mimes|string)[];\n accept?: (Mimes|string)[];\n };\n\n res?: {\n status?: number;\n header?: {[key: string]: string};\n contentType?: Mimes | string;\n }\n resolver?: Resolver|ConstructorType<Resolver>;\n}\nexport type SaveMappingConfig = {propertyKey: string | symbol; config: MappingConfig}\nconst MappingMetadataKey = Symbol('MappingMetadataKey');\n// const GETSMappingMetadataKey = Symbol('GET_METHODS');\n// const GETMappingMetadataKey = Symbol('GET_METHOD');\n\nconst process = (config: MappingConfig, target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n const saveMappingConfigs = (ReflectUtils.getMetadata(MappingMetadataKey, target.constructor) ?? []) as SaveMappingConfig[];\n saveMappingConfigs.push({propertyKey, config});\n ReflectUtils.defineMetadata(MappingMetadataKey, saveMappingConfigs, target.constructor);\n ReflectUtils.defineMetadata(MappingMetadataKey, config, target, propertyKey);\n}\nexport function UrlMapping(config: MappingConfig): ReflectMethod;\nexport function UrlMapping(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function UrlMapping(configOrtarget?: MappingConfig | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.GET}, configOrtarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n process(configOrtarget, target, propertyKey, descriptor);\n }\n }\n}\nexport const getUrlMapping = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return ReflectUtils.getMetadata(MappingMetadataKey, target, propertyKey);\n}\n\nexport const getUrlMappings = (target: any): SaveMappingConfig[] => {\n if (target !== null && undefined !== target && typeof target === 'object') {\n target = target.constructor;\n }\n return ReflectUtils.getMetadata(MappingMetadataKey, target);\n}\nexport function GET(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function GET(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function GET(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.GET}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.GET;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getGET = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getGETS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.GET);\n}\nexport function POST(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function POST(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function POST(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.POST}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.POST;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getPOST = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getPOSTS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.POST);\n}\nexport function DELETE(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function DELETE(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function DELETE(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.DELETE}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.DELETE;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getDELETE = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getDELETES = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.DELETE);\n}\nexport function PUT(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function PUT(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function PUT(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.PUT}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.PUT;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getPUT = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getPUTS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.PUT);\n}\nexport function PATCH(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function PATCH(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function PATCH(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.PATCH}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.PATCH;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getPATCH = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getPATCHS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.GET);\n}\nexport function OPTIONS(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function OPTIONS(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function OPTIONS(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.OPTIONS}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.OPTIONS;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getOPTIONS = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getOPTIONSS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.OPTIONS);\n}\nexport function HEAD(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function HEAD(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function HEAD(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.HEAD}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.HEAD;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getHEAD = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getHEADS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.GET);\n}\nexport function TRACE(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function TRACE(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function TRACE(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.TRACE}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.TRACE;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getTRACE = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getTRACES = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.TRACE);\n}\nexport function CONNECT(config: Omit<MappingConfig, 'method'>): ReflectMethod;\nexport function CONNECT(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor): void;\nexport function CONNECT(configOrTarget?: Omit<MappingConfig, 'method'> | any, propertyKey?: string | symbol, descriptor?: PropertyDescriptor): ReflectMethod | void {\n if (propertyKey && descriptor) {\n process({method: HttpMethod.CONNECT}, configOrTarget, propertyKey, descriptor);\n } else {\n return (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {\n configOrTarget.method = HttpMethod.CONNECT;\n process(configOrTarget, target, propertyKey, descriptor);\n }\n }\n}\n\nexport const getCONNECT = (target: any, propertyKey: string | symbol): MappingConfig | undefined => {\n return getUrlMapping(target, propertyKey);\n}\nexport const getCONNECTS = (target: any): SaveMappingConfig[] => {\n return getUrlMappings(target)?.filter(it => it.config?.method.toUpperCase() === HttpMethod.CONNECT);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,0BAA6B;AAG7B,wBAA2B;AAEpB,IAAK,0BAAL,kBAAKA,6BAAL;AACH,EAAAA,yBAAA,mBAAgB;AAChB,EAAAA,yBAAA,uBAAoB;AAFZ,SAAAA;AAAA,GAAA;AAwBZ,MAAM,qBAAqB,OAAO,oBAAoB;AAItD,MAAM,UAAU,CAAC,QAAuB,QAAa,aAA8B,eAAmC;AAClH,QAAM,qBAAsB,iCAAa,YAAY,oBAAoB,OAAO,WAAW,KAAK,CAAC;AACjG,qBAAmB,KAAK,EAAC,aAAa,OAAM,CAAC;AAC7C,mCAAa,eAAe,oBAAoB,oBAAoB,OAAO,WAAW;AACtF,mCAAa,eAAe,oBAAoB,QAAQ,QAAQ,WAAW;AAC/E;AAGO,SAAS,WAAW,gBAAsC,aAA+B,YAAuD;AACnJ,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,IAAG,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC7E,OAAO;AACH,WAAO,CAAC,QAAaC,cAA8BC,gBAAmC;AAClF,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AACO,MAAM,gBAAgB,CAAC,QAAa,gBAA4D;AACnG,SAAO,iCAAa,YAAY,oBAAoB,QAAQ,WAAW;AAC3E;AAEO,MAAM,iBAAiB,CAAC,WAAqC;AAChE,MAAI,WAAW,QAAQ,WAAc,UAAU,OAAO,WAAW,UAAU;AACvE,aAAS,OAAO;AAAA,EACpB;AACA,SAAO,iCAAa,YAAY,oBAAoB,MAAM;AAC9D;AAGO,SAAS,IAAI,gBAAsD,aAA+B,YAAuD;AAC5J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,IAAG,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC7E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,SAAS,CAAC,QAAa,gBAA4D;AAC5F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,UAAU,CAAC,WAAqC;AACzD,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,GAAG;AAClG;AAGO,SAAS,KAAK,gBAAsD,aAA+B,YAAuD;AAC7J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,KAAI,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC9E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,UAAU,CAAC,QAAa,gBAA4D;AAC7F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,WAAW,CAAC,WAAqC;AAC1D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,IAAI;AACnG;AAGO,SAAS,OAAO,gBAAsD,aAA+B,YAAuD;AAC/J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,OAAM,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAChF,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,YAAY,CAAC,QAAa,gBAA4D;AAC/F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,aAAa,CAAC,WAAqC;AAC5D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,MAAM;AACrG;AAGO,SAAS,IAAI,gBAAsD,aAA+B,YAAuD;AAC5J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,IAAG,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC7E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,SAAS,CAAC,QAAa,gBAA4D;AAC5F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,UAAU,CAAC,WAAqC;AACzD,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,GAAG;AAClG;AAGO,SAAS,MAAM,gBAAsD,aAA+B,YAAuD;AAC9J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,MAAK,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC/E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,WAAW,CAAC,QAAa,gBAA4D;AAC9F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,YAAY,CAAC,WAAqC;AAC3D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,GAAG;AAClG;AAGO,SAAS,QAAQ,gBAAsD,aAA+B,YAAuD;AAChK,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,QAAO,GAAG,gBAAgB,aAAa,UAAU;AAAA,EACjF,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,aAAa,CAAC,QAAa,gBAA4D;AAChG,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,cAAc,CAAC,WAAqC;AAC7D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,OAAO;AACtG;AAGO,SAAS,KAAK,gBAAsD,aAA+B,YAAuD;AAC7J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,KAAI,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC9E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,UAAU,CAAC,QAAa,gBAA4D;AAC7F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,WAAW,CAAC,WAAqC;AAC1D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,GAAG;AAClG;AAGO,SAAS,MAAM,gBAAsD,aAA+B,YAAuD;AAC9J,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,MAAK,GAAG,gBAAgB,aAAa,UAAU;AAAA,EAC/E,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,WAAW,CAAC,QAAa,gBAA4D;AAC9F,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,YAAY,CAAC,WAAqC;AAC3D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,KAAK;AACpG;AAGO,SAAS,QAAQ,gBAAsD,aAA+B,YAAuD;AAChK,MAAI,eAAe,YAAY;AAC3B,YAAQ,EAAC,QAAQ,6BAAW,QAAO,GAAG,gBAAgB,aAAa,UAAU;AAAA,EACjF,OAAO;AACH,WAAO,CAAC,QAAaD,cAA8BC,gBAAmC;AAClF,qBAAe,SAAS,6BAAW;AACnC,cAAQ,gBAAgB,QAAQD,cAAaC,WAAU;AAAA,IAC3D;AAAA,EACJ;AACJ;AAEO,MAAM,aAAa,CAAC,QAAa,gBAA4D;AAChG,SAAO,cAAc,QAAQ,WAAW;AAC5C;AACO,MAAM,cAAc,CAAC,WAAqC;AAC7D,SAAO,eAAe,MAAM,GAAG,OAAO,QAAM,GAAG,QAAQ,OAAO,YAAY,MAAM,6BAAW,OAAO;AACtG;",
|
|
6
|
+
"names": ["UrlMappingSituationType", "propertyKey", "descriptor"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
(()=>{var t={5053:(t,e,r)=>{"use strict";r.d(e,{d:()=>f});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,f=!a&&!u,c={create:a?function(){return L(Object.create(null))}:u?function(){return L({__proto__:null})}:function(){return L({})},has:f?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:f?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,j(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!j(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(j(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),h="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):i(t,16),t}return i(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),y=n?Symbol.for("@reflect-metadata:registry"):void 0,l=function(){var t;return!P(y)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[y]),P(t)&&(t=function(){var t,r,n,o;P(y)||void 0===e.Reflect||y in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(P(r)||!r.has(e))||!!o(t,e).length&&(P(r)&&(r=new h,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new h),o.add(e)}},getProvider:f,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new d,i.set(t,o)),o.set(e,r)}return!0}};return a;function u(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var a=N(o);;){var u=U(a);if(!u)return;var f=D(u);if(f.isProviderFor(e,i))return I(a),f}}}if(!P(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=u(t,e))||(P(n)&&(n=new d,i.set(t,n)),n.set(e,r)),r):r}function c(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}}()),!P(y)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,y,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&k(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=N(o.keys()),a=0;;){var u=U(i);if(!u)return r.length=a,r;var f=D(u);try{r[a]=f}catch(t){try{I(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);P(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return l.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(P(a)){if(!i)return;a=new d,e.set(n,a),u=!0}var f=a.get(o);if(P(f)){if(!i)return;if(f=new d,a.set(o,f),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return f}}(l);function g(t,e,r){if(w(t,e,r))return!0;var n=K(e);return!m(n)&&g(t,n,r)}function w(t,e,r){var n=G(e,r,!1);return!P(n)&&k(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(w(t,e,r))return O(t,e,r);var n=K(e);return m(n)?void 0:_(t,n,r)}function O(t,e,r){var n=G(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function T(t,e,r,n){G(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function E(t,e){var r=M(t,e),n=K(t);if(null===n)return r;var o=E(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new h,a=[],u=0,f=r;u<f.length;u++){var c=f[u];i.has(c)||(i.add(c),a.push(c))}for(var s=0,d=o;s<d.length;s++)c=d[s],i.has(c)||(i.add(c),a.push(c));return a}function M(t,e){var r=G(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function b(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function P(t){return void 0===t}function m(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function k(t){return!!t}function R(t){var e=function(t){switch(b(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=x(t,o);if(void 0!==r){var n=r.call(t,e);if(S(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(H(n)&&!S(r=n.call(t)))return r;if(H(e=t.valueOf)&&!S(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function C(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function H(t){return"function"==typeof t}function A(t){return"function"==typeof t}function j(t,e){return t===e||t!=t&&e!=e}function x(t,e){var r=t[e];if(null!=r){if(!H(r))throw new TypeError;return r}}function N(t){var e=x(t,i);if(!H(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function D(t){return t.value}function U(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function K(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function G(t,e,r){var n=l.getProvider(t,e);if(!P(n))return n;if(r){if(l.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function L(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(P(r)){if(!C(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!m(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!C(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(n)&&!P(n)&&!m(n))throw new TypeError;return m(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!P(i)&&!m(i)){if(!S(i))throw new TypeError;n=i}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!S(r))throw new TypeError;if(!P(n)&&!function(t){switch(b(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;T(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!S(r))throw new TypeError;return P(n)||(n=R(n)),T(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=R(r)),g(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=R(r)),_(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=R(r)),O(t,e,r)}),t("getMetadataKeys",function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=R(e)),E(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!S(e))throw new TypeError;if(P(r)||(r=R(r)),!S(e))throw new TypeError;P(r)||(r=R(r));var n=G(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,u={};i.d(u,{d:()=>a}),i(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const f=u.d},5118:(t,e,r)=>{"use strict";var n;r.d(e,{HttpMethod:()=>n}),function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t.CONNECT="CONNECT"}(n||(n={}))},9108:(t,e,r)=>{"use strict";r.d(e,{CONNECT:()=>N,DELETE:()=>g,GET:()=>d,HEAD:()=>R,OPTIONS:()=>m,PATCH:()=>M,POST:()=>y,PUT:()=>O,TRACE:()=>A,UrlMapping:()=>f,UrlMappingSituationType:()=>n,getCONNECT:()=>D,getCONNECTS:()=>U,getDELETE:()=>w,getDELETES:()=>_,getGET:()=>h,getGETS:()=>p,getHEAD:()=>C,getHEADS:()=>H,getOPTIONS:()=>S,getOPTIONSS:()=>k,getPATCH:()=>b,getPATCHS:()=>P,getPOST:()=>l,getPOSTS:()=>v,getPUT:()=>T,getPUTS:()=>E,getTRACE:()=>j,getTRACES:()=>x,getUrlMapping:()=>c,getUrlMappings:()=>s}),r(9771);var n,o=r(5053),i=r(5118);!function(t){t.REQ_JSON_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY",t.REQ_FORM_URL_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY"}(n||(n={}));const a=Symbol("MappingMetadataKey"),u=(t,e,r,n)=>{const i=o.d.getMetadata(a,e.constructor)??[];i.push({propertyKey:r,config:t}),o.d.defineMetadata(a,i,e.constructor),o.d.defineMetadata(a,t,e,r)};function f(t,e,r){if(!e||!r)return(e,r,n)=>{u(t,e,r,n)};u({method:i.HttpMethod.GET},t,e,r)}const c=(t,e)=>o.d.getMetadata(a,t,e),s=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),o.d.getMetadata(a,t));function d(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.GET,u(t,e,r,n)};u({method:i.HttpMethod.GET},t,e,r)}const h=(t,e)=>c(t,e),p=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.GET);function y(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.POST,u(t,e,r,n)};u({method:i.HttpMethod.POST},t,e,r)}const l=(t,e)=>c(t,e),v=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.POST);function g(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.DELETE,u(t,e,r,n)};u({method:i.HttpMethod.DELETE},t,e,r)}const w=(t,e)=>c(t,e),_=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.DELETE);function O(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.PUT,u(t,e,r,n)};u({method:i.HttpMethod.PUT},t,e,r)}const T=(t,e)=>c(t,e),E=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.PUT);function M(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.PATCH,u(t,e,r,n)};u({method:i.HttpMethod.PATCH},t,e,r)}const b=(t,e)=>c(t,e),P=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.GET);function m(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.OPTIONS,u(t,e,r,n)};u({method:i.HttpMethod.OPTIONS},t,e,r)}const S=(t,e)=>c(t,e),k=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.OPTIONS);function R(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.HEAD,u(t,e,r,n)};u({method:i.HttpMethod.HEAD},t,e,r)}const C=(t,e)=>c(t,e),H=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.GET);function A(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.TRACE,u(t,e,r,n)};u({method:i.HttpMethod.TRACE},t,e,r)}const j=(t,e)=>c(t,e),x=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.TRACE);function N(t,e,r){if(!e||!r)return(e,r,n)=>{t.method=i.HttpMethod.CONNECT,u(t,e,r,n)};u({method:i.HttpMethod.CONNECT},t,e,r)}const D=(t,e)=>c(t,e),U=t=>s(t)?.filter(t=>t.config?.method.toUpperCase()===i.HttpMethod.CONNECT)},9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,f=!a&&!u,c={create:a?function(){return F(Object.create(null))}:u?function(){return F({__proto__:null})}:function(){return F({})},has:f?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:f?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,x(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!x(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(x(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),h="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),y=n?Symbol.for("@reflect-metadata:registry"):void 0,l=function(){var t;return!P(y)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[y]),P(t)&&(t=function(){var t,r,n,o;P(y)||void 0===e.Reflect||y in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(P(r)||!r.has(e))||!!o(t,e).length&&(P(r)&&(r=new h,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:c,setProvider:l};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new h),o.add(e)}}function f(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var a=D(o);;){var u=I(a);if(!u)return;var f=U(u);if(f.isProviderFor(e,i))return K(a),f}}}if(!P(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=f(t,e))||(P(n)&&(n=new d,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}function l(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new d,i.set(t,o)),o.set(e,r)}return!0}}()),!P(y)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,y,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&R(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=D(o.keys()),a=0;;){var u=I(i);if(!u)return r.length=a,r;var f=U(u);try{r[a]=f}catch(t){try{K(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);P(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return l.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(P(a)){if(!i)return;a=new d,e.set(n,a),u=!0}var f=a.get(o);if(P(f)){if(!i)return;if(f=new d,a.set(o,f),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return f}}(l);function g(t,e,r){if(w(t,e,r))return!0;var n=G(e);return!m(n)&&g(t,n,r)}function w(t,e,r){var n=L(e,r,!1);return!P(n)&&R(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(w(t,e,r))return O(t,e,r);var n=G(e);return m(n)?void 0:_(t,n,r)}function O(t,e,r){var n=L(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function T(t,e,r,n){L(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function E(t,e){var r=M(t,e),n=G(t);if(null===n)return r;var o=E(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new h,a=[],u=0,f=r;u<f.length;u++){var c=f[u];i.has(c)||(i.add(c),a.push(c))}for(var s=0,d=o;s<d.length;s++)c=d[s],i.has(c)||(i.add(c),a.push(c));return a}function M(t,e){var r=L(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function b(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function P(t){return void 0===t}function m(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function k(t,e){switch(b(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=N(t,o);if(void 0!==n){var i=n.call(t,r);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(A(r)&&!S(o=r.call(t)))return o;if(A(n=t.valueOf)&&!S(o=n.call(t)))return o}else{var n;if(A(n=t.valueOf)&&!S(o=n.call(t)))return o;var o,i=t.toString;if(A(i)&&!S(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function R(t){return!!t}function C(t){var e=k(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function H(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function j(t){return"function"==typeof t}function x(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function D(t){var e=N(t,i);if(!A(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function U(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function K(t){var e=t.return;e&&e.call(t)}function G(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function L(t,e,r){var n=l.getProvider(t,e);if(!P(n))return n;if(r){if(l.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function F(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(P(r)){if(!H(t))throw new TypeError;if(!j(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!m(n)){if(!j(n))throw new TypeError;e=n}}return e}(t,e)}if(!H(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(n)&&!P(n)&&!m(n))throw new TypeError;return m(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!P(i)&&!m(i)){if(!S(i))throw new TypeError;n=i}}return n}(t,e,r=C(r),n)}),t("metadata",function(t,e){return function(r,n){if(!S(r))throw new TypeError;if(!P(n)&&!function(t){switch(b(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;T(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!S(r))throw new TypeError;return P(n)||(n=C(n)),T(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=C(r)),g(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=C(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=C(r)),_(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=C(r)),O(t,e,r)}),t("getMetadataKeys",function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=C(e)),E(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=C(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!S(e))throw new TypeError;if(P(r)||(r=C(r)),!S(e))throw new TypeError;P(r)||(r=C(r));var n=L(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{CONNECT:()=>t.CONNECT,DELETE:()=>t.DELETE,GET:()=>t.GET,HEAD:()=>t.HEAD,OPTIONS:()=>t.OPTIONS,PATCH:()=>t.PATCH,POST:()=>t.POST,PUT:()=>t.PUT,TRACE:()=>t.TRACE,UrlMapping:()=>t.UrlMapping,UrlMappingSituationType:()=>t.UrlMappingSituationType,getCONNECT:()=>t.getCONNECT,getCONNECTS:()=>t.getCONNECTS,getDELETE:()=>t.getDELETE,getDELETES:()=>t.getDELETES,getGET:()=>t.getGET,getGETS:()=>t.getGETS,getHEAD:()=>t.getHEAD,getHEADS:()=>t.getHEADS,getOPTIONS:()=>t.getOPTIONS,getOPTIONSS:()=>t.getOPTIONSS,getPATCH:()=>t.getPATCH,getPATCHS:()=>t.getPATCHS,getPOST:()=>t.getPOST,getPOSTS:()=>t.getPOSTS,getPUT:()=>t.getPUT,getPUTS:()=>t.getPUTS,getTRACE:()=>t.getTRACE,getTRACES:()=>t.getTRACES,getUrlMapping:()=>t.getUrlMapping,getUrlMappings:()=>t.getUrlMappings});var t=r(9108)})(),module.exports=n})();
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var decorators_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(decorators_exports);
|
|
17
|
+
__reExport(decorators_exports, require("./MethodMapping"), module.exports);
|
|
18
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
19
|
+
0 && (module.exports = {
|
|
20
|
+
...require("./MethodMapping")
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var CrossDomainHeaderEndPoint_exports = {};
|
|
19
|
+
__export(CrossDomainHeaderEndPoint_exports, {
|
|
20
|
+
CrossDomainHeaderEndPoint: () => CrossDomainHeaderEndPoint
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(CrossDomainHeaderEndPoint_exports);
|
|
23
|
+
var import_HttpHeaders = require("../codes/HttpHeaders");
|
|
24
|
+
class CrossDomainHeaderEndPoint {
|
|
25
|
+
constructor(config) {
|
|
26
|
+
this.config = config;
|
|
27
|
+
}
|
|
28
|
+
/*
|
|
29
|
+
rr.resSetHeader("Access-Control-Allow-Origin", "*")
|
|
30
|
+
rr.resSetHeader("Access-Control-Allow-Methods", "DELETE, POST, GET, OPTIONS")
|
|
31
|
+
rr.resSetHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With")
|
|
32
|
+
*/
|
|
33
|
+
async endPoint(rr, app) {
|
|
34
|
+
if (this.config?.accessControlAllowOrigin) {
|
|
35
|
+
rr.resSetHeader(import_HttpHeaders.HttpHeaders.AccessControlAllowOrigin, Array.isArray(this.config.accessControlAllowOrigin) ? this.config.accessControlAllowOrigin.join(", ") : this.config.accessControlAllowOrigin);
|
|
36
|
+
}
|
|
37
|
+
if (this.config?.accessControlAllowMethods) {
|
|
38
|
+
rr.resSetHeader(import_HttpHeaders.HttpHeaders.AccessControlAllowMethods, Array.isArray(this.config.accessControlAllowMethods) ? this.config.accessControlAllowMethods.join(", ") : this.config.accessControlAllowMethods);
|
|
39
|
+
}
|
|
40
|
+
if (this.config?.accessControlAllowHeaders) {
|
|
41
|
+
rr.resSetHeader(import_HttpHeaders.HttpHeaders.AccessControlAllowHeaders, Array.isArray(this.config.accessControlAllowHeaders) ? this.config.accessControlAllowHeaders.join(", ") : this.config.accessControlAllowHeaders);
|
|
42
|
+
}
|
|
43
|
+
if (this.config?.accessControlExposeHeaders) {
|
|
44
|
+
rr.resSetHeader(import_HttpHeaders.HttpHeaders.AccessControlExposeHeaders, Array.isArray(this.config.accessControlExposeHeaders) ? this.config.accessControlExposeHeaders.join(", ") : this.config.accessControlExposeHeaders);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async onInit(app) {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
CrossDomainHeaderEndPoint
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=CrossDomainHeaderEndPoint.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/endpoints/CrossDomainHeaderEndPoint.ts"],
|
|
4
|
+
"sourcesContent": ["import {EndPoint} from './EndPoint';\nimport {SimpleBootHttpServer} from '../SimpleBootHttpServer';\nimport {RequestResponse} from '../models/RequestResponse';\nimport { HttpHeaders } from '../codes/HttpHeaders';\n\nexport type CrossDomainHeaderEndPointConfig = {\n accessControlAllowOrigin?: string | string[],\n accessControlAllowMethods?: string | string[],\n accessControlAllowHeaders?: string | string[],\n accessControlExposeHeaders?: string | string[]\n}\nexport class CrossDomainHeaderEndPoint implements EndPoint {\n constructor(private config?: CrossDomainHeaderEndPointConfig) {\n }\n\n /*\n rr.resSetHeader(\"Access-Control-Allow-Origin\", \"*\")\n rr.resSetHeader(\"Access-Control-Allow-Methods\", \"DELETE, POST, GET, OPTIONS\")\n rr.resSetHeader(\"Access-Control-Allow-Headers\", \"Content-Type, Authorization, X-Requested-With\")\n */\n async endPoint(rr: RequestResponse, app: SimpleBootHttpServer) {\n if (this.config?.accessControlAllowOrigin) {\n rr.resSetHeader(HttpHeaders.AccessControlAllowOrigin, Array.isArray(this.config.accessControlAllowOrigin) ? this.config.accessControlAllowOrigin.join(', ') : this.config.accessControlAllowOrigin);\n }\n if (this.config?.accessControlAllowMethods) {\n rr.resSetHeader(HttpHeaders.AccessControlAllowMethods, Array.isArray(this.config.accessControlAllowMethods) ? this.config.accessControlAllowMethods.join(', ') : this.config.accessControlAllowMethods);\n }\n if (this.config?.accessControlAllowHeaders) {\n rr.resSetHeader(HttpHeaders.AccessControlAllowHeaders, Array.isArray(this.config.accessControlAllowHeaders) ? this.config.accessControlAllowHeaders.join(', ') : this.config.accessControlAllowHeaders);\n }\n if (this.config?.accessControlExposeHeaders) {\n rr.resSetHeader(HttpHeaders.AccessControlExposeHeaders, Array.isArray(this.config.accessControlExposeHeaders) ? this.config.accessControlExposeHeaders.join(', ') : this.config.accessControlExposeHeaders);\n }\n }\n\n async onInit(app: SimpleBootHttpServer) {\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,yBAA4B;AAQrB,MAAM,0BAA8C;AAAA,EACvD,YAAoB,QAA0C;AAA1C;AAAA,EACpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,SAAS,IAAqB,KAA2B;AAC3D,QAAI,KAAK,QAAQ,0BAA0B;AACvC,SAAG,aAAa,+BAAY,0BAA0B,MAAM,QAAQ,KAAK,OAAO,wBAAwB,IAAI,KAAK,OAAO,yBAAyB,KAAK,IAAI,IAAI,KAAK,OAAO,wBAAwB;AAAA,IACtM;AACA,QAAI,KAAK,QAAQ,2BAA2B;AACxC,SAAG,aAAa,+BAAY,2BAA2B,MAAM,QAAQ,KAAK,OAAO,yBAAyB,IAAI,KAAK,OAAO,0BAA0B,KAAK,IAAI,IAAI,KAAK,OAAO,yBAAyB;AAAA,IAC1M;AACA,QAAI,KAAK,QAAQ,2BAA2B;AACxC,SAAG,aAAa,+BAAY,2BAA2B,MAAM,QAAQ,KAAK,OAAO,yBAAyB,IAAI,KAAK,OAAO,0BAA0B,KAAK,IAAI,IAAI,KAAK,OAAO,yBAAyB;AAAA,IAC1M;AACA,QAAI,KAAK,QAAQ,4BAA4B;AACzC,SAAG,aAAa,+BAAY,4BAA4B,MAAM,QAAQ,KAAK,OAAO,0BAA0B,IAAI,KAAK,OAAO,2BAA2B,KAAK,IAAI,IAAI,KAAK,OAAO,0BAA0B;AAAA,IAC9M;AAAA,EACJ;AAAA,EAEA,MAAM,OAAO,KAA2B;AAAA,EACxC;AACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var EndPoint_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(EndPoint_exports);
|
|
16
|
+
//# sourceMappingURL=EndPoint.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/endpoints/EndPoint.ts"],
|
|
4
|
+
"sourcesContent": ["import {RequestResponse} from '../models/RequestResponse';\nimport {SimpleBootHttpServer} from '../SimpleBootHttpServer';\nimport {OnInit} from '../lifecycle/OnInit';\n\nexport interface EndPoint extends OnInit {\n endPoint(rr: RequestResponse, app: SimpleBootHttpServer): Promise<any>;\n}"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var HeaderEndPoint_exports = {};
|
|
19
|
+
__export(HeaderEndPoint_exports, {
|
|
20
|
+
HeaderEndPoint: () => HeaderEndPoint
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(HeaderEndPoint_exports);
|
|
23
|
+
class HeaderEndPoint {
|
|
24
|
+
constructor(headers) {
|
|
25
|
+
this.headers = headers;
|
|
26
|
+
}
|
|
27
|
+
async endPoint(rr, app) {
|
|
28
|
+
if (this.headers) {
|
|
29
|
+
rr.resSetHeaders(this.headers);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
async onInit(app) {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
HeaderEndPoint
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=HeaderEndPoint.js.map
|