@n1k1t/mock-server 0.1.1 → 0.1.2
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/lib/package.json +3 -2
- package/lib/src/client/helpers/expectations.d.ts +91 -0
- package/lib/src/client/helpers/expectations.d.ts.map +1 -0
- package/lib/src/client/helpers/expectations.js +66 -0
- package/lib/src/client/helpers/expectations.js.map +1 -0
- package/lib/src/client/helpers/index.d.ts +2 -0
- package/lib/src/client/helpers/index.d.ts.map +1 -0
- package/lib/src/client/helpers/index.js +18 -0
- package/lib/src/client/helpers/index.js.map +1 -0
- package/lib/src/client/index.d.ts +1 -0
- package/lib/src/client/index.d.ts.map +1 -1
- package/lib/src/client/index.js +1 -0
- package/lib/src/client/index.js.map +1 -1
- package/lib/src/client/methods/expectations.create.method.d.ts +1 -3
- package/lib/src/client/methods/expectations.create.method.d.ts.map +1 -1
- package/lib/src/client/methods/expectations.create.method.js +2 -2
- package/lib/src/client/methods/expectations.create.method.js.map +1 -1
- package/lib/src/client/methods/expectations.update.method.d.ts +2 -2
- package/lib/src/client/methods/expectations.update.method.js +5 -5
- package/lib/src/client/methods/expectations.update.method.js.map +1 -1
- package/lib/src/client/methods/ping.method.d.ts +1 -1
- package/lib/src/client/methods/ping.method.js.map +1 -1
- package/lib/src/client/models/client.d.ts +40 -0
- package/lib/src/client/models/client.d.ts.map +1 -0
- package/lib/src/client/models/client.js +33 -0
- package/lib/src/client/models/client.js.map +1 -0
- package/lib/src/client/models/client.spec.d.ts +2 -0
- package/lib/src/client/models/client.spec.d.ts.map +1 -0
- package/lib/src/client/models/client.spec.js +219 -0
- package/lib/src/client/models/client.spec.js.map +1 -0
- package/lib/src/client/models/index.d.ts +1 -0
- package/lib/src/client/models/index.d.ts.map +1 -1
- package/lib/src/client/models/index.js +1 -0
- package/lib/src/client/models/index.js.map +1 -1
- package/lib/src/client/models/method.d.ts +4 -4
- package/lib/src/client/models/method.d.ts.map +1 -1
- package/lib/src/client/models/method.js.map +1 -1
- package/lib/src/client/onsite.d.ts +4 -3
- package/lib/src/client/onsite.d.ts.map +1 -1
- package/lib/src/client/onsite.js +8 -6
- package/lib/src/client/onsite.js.map +1 -1
- package/lib/src/client/remote.d.ts +4 -4
- package/lib/src/client/remote.d.ts.map +1 -1
- package/lib/src/client/remote.js +11 -10
- package/lib/src/client/remote.js.map +1 -1
- package/lib/src/client/types.d.ts +2 -0
- package/lib/src/client/types.d.ts.map +1 -1
- package/lib/src/client/utils.d.ts +2 -2
- package/lib/src/client/utils.d.ts.map +1 -1
- package/lib/src/client/utils.js +25 -12
- package/lib/src/client/utils.js.map +1 -1
- package/lib/src/expectations/__utils__/index.d.ts +2 -2
- package/lib/src/expectations/__utils__/index.d.ts.map +1 -1
- package/lib/src/expectations/__utils__/index.js +31 -23
- package/lib/src/expectations/__utils__/index.js.map +1 -1
- package/lib/src/expectations/index.d.ts +1 -2
- package/lib/src/expectations/index.d.ts.map +1 -1
- package/lib/src/expectations/index.js +1 -2
- package/lib/src/expectations/index.js.map +1 -1
- package/lib/src/expectations/models/expectation.d.ts +35 -0
- package/lib/src/expectations/models/expectation.d.ts.map +1 -0
- package/lib/src/expectations/models/expectation.js +113 -0
- package/lib/src/expectations/models/expectation.js.map +1 -0
- package/lib/src/expectations/models/index.d.ts +4 -0
- package/lib/src/expectations/models/index.d.ts.map +1 -0
- package/lib/src/expectations/models/index.js +20 -0
- package/lib/src/expectations/models/index.js.map +1 -0
- package/lib/src/expectations/models/operator.d.ts +20 -0
- package/lib/src/expectations/models/operator.d.ts.map +1 -0
- package/lib/src/expectations/models/operator.js +41 -0
- package/lib/src/expectations/models/operator.js.map +1 -0
- package/lib/src/expectations/models/storage.d.ts +15 -0
- package/lib/src/expectations/models/storage.d.ts.map +1 -0
- package/lib/src/expectations/{storage.js → models/storage.js} +4 -14
- package/lib/src/expectations/models/storage.js.map +1 -0
- package/lib/src/expectations/models/storage.spec.d.ts +2 -0
- package/lib/src/expectations/models/storage.spec.d.ts.map +1 -0
- package/lib/src/expectations/models/storage.spec.js +111 -0
- package/lib/src/expectations/models/storage.spec.js.map +1 -0
- package/lib/src/expectations/operators/and.operator.d.ts +7 -2
- package/lib/src/expectations/operators/and.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/and.operator.js +21 -2
- package/lib/src/expectations/operators/and.operator.js.map +1 -1
- package/lib/src/expectations/operators/and.operator.spec.js +57 -39
- package/lib/src/expectations/operators/and.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/exec.operator.d.ts +7 -2
- package/lib/src/expectations/operators/exec.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/exec.operator.js +13 -18
- package/lib/src/expectations/operators/exec.operator.js.map +1 -1
- package/lib/src/expectations/operators/exec.operator.spec.js +49 -18
- package/lib/src/expectations/operators/exec.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/has.operator.d.ts +27 -2
- package/lib/src/expectations/operators/has.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/has.operator.js +106 -70
- package/lib/src/expectations/operators/has.operator.js.map +1 -1
- package/lib/src/expectations/operators/has.operator.spec.js +422 -161
- package/lib/src/expectations/operators/has.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/if.operator.d.ts +15 -2
- package/lib/src/expectations/operators/if.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/if.operator.js +44 -10
- package/lib/src/expectations/operators/if.operator.js.map +1 -1
- package/lib/src/expectations/operators/if.operator.spec.js +89 -65
- package/lib/src/expectations/operators/if.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/index.d.ts +2 -0
- package/lib/src/expectations/operators/index.d.ts.map +1 -1
- package/lib/src/expectations/operators/index.js +5 -1
- package/lib/src/expectations/operators/index.js.map +1 -1
- package/lib/src/expectations/operators/merge.operator.d.ts +13 -2
- package/lib/src/expectations/operators/merge.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/merge.operator.js +23 -19
- package/lib/src/expectations/operators/merge.operator.js.map +1 -1
- package/lib/src/expectations/operators/merge.operator.spec.js +43 -33
- package/lib/src/expectations/operators/merge.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/not.operator.d.ts +7 -2
- package/lib/src/expectations/operators/not.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/not.operator.js +21 -2
- package/lib/src/expectations/operators/not.operator.js.map +1 -1
- package/lib/src/expectations/operators/not.operator.spec.js +28 -9
- package/lib/src/expectations/operators/not.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/or.operator.d.ts +7 -2
- package/lib/src/expectations/operators/or.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/or.operator.js +21 -6
- package/lib/src/expectations/operators/or.operator.js.map +1 -1
- package/lib/src/expectations/operators/or.operator.spec.js +58 -39
- package/lib/src/expectations/operators/or.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/remove.operator.d.ts +12 -2
- package/lib/src/expectations/operators/remove.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/remove.operator.js +22 -17
- package/lib/src/expectations/operators/remove.operator.js.map +1 -1
- package/lib/src/expectations/operators/remove.operator.spec.js +40 -28
- package/lib/src/expectations/operators/remove.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/root.operator.d.ts +8 -0
- package/lib/src/expectations/operators/root.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/root.operator.js +36 -0
- package/lib/src/expectations/operators/root.operator.js.map +1 -0
- package/lib/src/expectations/operators/set.operator.d.ts +20 -2
- package/lib/src/expectations/operators/set.operator.d.ts.map +1 -1
- package/lib/src/expectations/operators/set.operator.js +40 -23
- package/lib/src/expectations/operators/set.operator.js.map +1 -1
- package/lib/src/expectations/operators/set.operator.spec.js +87 -43
- package/lib/src/expectations/operators/set.operator.spec.js.map +1 -1
- package/lib/src/expectations/operators/switch.operator.d.ts +25 -0
- package/lib/src/expectations/operators/switch.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/switch.operator.js +68 -0
- package/lib/src/expectations/operators/switch.operator.js.map +1 -0
- package/lib/src/expectations/operators/switch.operator.spec.d.ts +2 -0
- package/lib/src/expectations/operators/switch.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/switch.operator.spec.js +129 -0
- package/lib/src/expectations/operators/switch.operator.spec.js.map +1 -0
- package/lib/src/expectations/types.d.ts +55 -56
- package/lib/src/expectations/types.d.ts.map +1 -1
- package/lib/src/expectations/types.js +13 -2
- package/lib/src/expectations/types.js.map +1 -1
- package/lib/src/expectations/utils.d.ts +19 -7
- package/lib/src/expectations/utils.d.ts.map +1 -1
- package/lib/src/expectations/utils.js +77 -50
- package/lib/src/expectations/utils.js.map +1 -1
- package/lib/src/server/endpoints/config.get.endpoint.d.ts +8 -3
- package/lib/src/server/endpoints/config.get.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/config.get.endpoint.js +2 -4
- package/lib/src/server/endpoints/config.get.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.create.endpoint.d.ts +9 -11
- package/lib/src/server/endpoints/expectations.create.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.create.endpoint.js +2 -3
- package/lib/src/server/endpoints/expectations.create.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.delete.endpoint.d.ts +8 -5
- package/lib/src/server/endpoints/expectations.delete.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.delete.endpoint.js +2 -2
- package/lib/src/server/endpoints/expectations.delete.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts +8 -3
- package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.get-list.endpoint.js +2 -2
- package/lib/src/server/endpoints/expectations.get-list.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.update.endpoint.d.ts +13 -11
- package/lib/src/server/endpoints/expectations.update.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.update.endpoint.js +4 -6
- package/lib/src/server/endpoints/expectations.update.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/history.get-list.endpoint.d.ts +27 -0
- package/lib/src/server/endpoints/history.get-list.endpoint.d.ts.map +1 -0
- package/lib/src/server/endpoints/history.get-list.endpoint.js +11 -0
- package/lib/src/server/endpoints/history.get-list.endpoint.js.map +1 -0
- package/lib/src/server/endpoints/index.d.ts +1 -1
- package/lib/src/server/endpoints/index.d.ts.map +1 -1
- package/lib/src/server/endpoints/index.js +3 -3
- package/lib/src/server/endpoints/index.js.map +1 -1
- package/lib/src/server/endpoints/ping.endpoint.d.ts +8 -3
- package/lib/src/server/endpoints/ping.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/ping.endpoint.js +1 -1
- package/lib/src/server/endpoints/ping.endpoint.js.map +1 -1
- package/lib/src/server/history/model.d.ts +16 -16
- package/lib/src/server/history/model.d.ts.map +1 -1
- package/lib/src/server/history/model.js +21 -6
- package/lib/src/server/history/model.js.map +1 -1
- package/lib/src/server/history/storage.d.ts +3 -4
- package/lib/src/server/history/storage.d.ts.map +1 -1
- package/lib/src/server/history/storage.js +2 -2
- package/lib/src/server/history/storage.js.map +1 -1
- package/lib/src/server/index.d.ts +10 -6
- package/lib/src/server/index.d.ts.map +1 -1
- package/lib/src/server/index.js +9 -18
- package/lib/src/server/index.js.map +1 -1
- package/lib/src/server/middlewares/add-history.middleware.d.ts +14 -4
- package/lib/src/server/middlewares/add-history.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/add-history.middleware.js +5 -6
- package/lib/src/server/middlewares/add-history.middleware.js.map +1 -1
- package/lib/src/server/middlewares/destroy-request.midleware.d.ts +14 -4
- package/lib/src/server/middlewares/destroy-request.midleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/destroy-request.midleware.js +4 -5
- package/lib/src/server/middlewares/destroy-request.midleware.js.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.d.ts +14 -4
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.js +1 -2
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.js.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.d.ts +14 -4
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.js +31 -45
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.js.map +1 -1
- package/lib/src/server/middlewares/index.d.ts +4 -4
- package/lib/src/server/middlewares/index.d.ts.map +1 -1
- package/lib/src/server/middlewares/index.js +9 -9
- package/lib/src/server/middlewares/index.js.map +1 -1
- package/lib/src/server/middlewares/internal-route.middleware.d.ts +14 -2
- package/lib/src/server/middlewares/internal-route.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/internal-route.middleware.js +4 -3
- package/lib/src/server/middlewares/internal-route.middleware.js.map +1 -1
- package/lib/src/server/middlewares/match-expectation.middleware.d.ts +18 -0
- package/lib/src/server/middlewares/match-expectation.middleware.d.ts.map +1 -0
- package/lib/src/server/middlewares/match-expectation.middleware.js +20 -0
- package/lib/src/server/middlewares/match-expectation.middleware.js.map +1 -0
- package/lib/src/server/middlewares/reply.middleware.d.ts +15 -5
- package/lib/src/server/middlewares/reply.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/reply.middleware.js +34 -25
- package/lib/src/server/middlewares/reply.middleware.js.map +1 -1
- package/lib/src/server/middlewares/resolve-public.middleware.d.ts +14 -2
- package/lib/src/server/middlewares/resolve-public.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/resolve-public.middleware.js +11 -11
- package/lib/src/server/middlewares/resolve-public.middleware.js.map +1 -1
- package/lib/src/server/models/endpoint.d.ts +19 -13
- package/lib/src/server/models/endpoint.d.ts.map +1 -1
- package/lib/src/server/models/endpoint.js +2 -2
- package/lib/src/server/models/endpoint.js.map +1 -1
- package/lib/src/server/models/middleware.d.ts +18 -20
- package/lib/src/server/models/middleware.d.ts.map +1 -1
- package/lib/src/server/models/middleware.js +6 -10
- package/lib/src/server/models/middleware.js.map +1 -1
- package/lib/src/server/models/reply-service/index.d.ts +6 -6
- package/lib/src/server/models/reply-service/index.d.ts.map +1 -1
- package/lib/src/server/models/reply-service/index.js +24 -24
- package/lib/src/server/models/reply-service/index.js.map +1 -1
- package/lib/src/server/models/request-context/http.d.ts +42 -0
- package/lib/src/server/models/request-context/http.d.ts.map +1 -0
- package/lib/src/server/models/request-context/http.js +51 -0
- package/lib/src/server/models/request-context/http.js.map +1 -0
- package/lib/src/server/models/request-context/index.d.ts +4 -57
- package/lib/src/server/models/request-context/index.d.ts.map +1 -1
- package/lib/src/server/models/request-context/index.js +4 -57
- package/lib/src/server/models/request-context/index.js.map +1 -1
- package/lib/src/server/models/request-context/model.d.ts +13 -0
- package/lib/src/server/models/request-context/model.d.ts.map +1 -0
- package/lib/src/server/models/request-context/model.js +14 -0
- package/lib/src/server/models/request-context/model.js.map +1 -0
- package/lib/src/server/models/request-context/types.d.ts +14 -18
- package/lib/src/server/models/request-context/types.d.ts.map +1 -1
- package/lib/src/server/models/request-context/utils.d.ts +7 -3
- package/lib/src/server/models/request-context/utils.d.ts.map +1 -1
- package/lib/src/server/models/request-context/utils.js +48 -25
- package/lib/src/server/models/request-context/utils.js.map +1 -1
- package/lib/src/server/models/request-context/ws.d.ts +21 -0
- package/lib/src/server/models/request-context/ws.d.ts.map +1 -0
- package/lib/src/server/models/request-context/ws.js +22 -0
- package/lib/src/server/models/request-context/ws.js.map +1 -0
- package/lib/src/server/models/server-context.d.ts +4 -4
- package/lib/src/server/models/server-context.d.ts.map +1 -1
- package/lib/src/server/models/server-context.js +5 -5
- package/lib/src/server/models/server-context.js.map +1 -1
- package/lib/src/server/router.d.ts +4 -7
- package/lib/src/server/router.d.ts.map +1 -1
- package/lib/src/server/router.js +5 -12
- package/lib/src/server/router.js.map +1 -1
- package/lib/src/server/ws-exchange/index.d.ts +5 -0
- package/lib/src/server/ws-exchange/index.d.ts.map +1 -0
- package/lib/src/server/{web-socket-exchange → ws-exchange}/index.js +3 -3
- package/lib/src/server/ws-exchange/index.js.map +1 -0
- package/lib/src/server/ws-exchange/types.d.ts +12 -0
- package/lib/src/server/ws-exchange/types.d.ts.map +1 -0
- package/lib/src/server/ws-exchange/types.js.map +1 -0
- package/lib/src/types.d.ts +0 -1
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/index.js +1 -0
- package/lib/src/utils/index.js.map +1 -1
- package/lib/src/utils/json.d.ts +1 -1
- package/lib/src/utils/json.d.ts.map +1 -1
- package/lib/src/utils/json.js +3 -3
- package/lib/src/utils/json.js.map +1 -1
- package/lib/src/utils/regexp.d.ts +2 -0
- package/lib/src/utils/regexp.d.ts.map +1 -0
- package/lib/src/utils/regexp.js +9 -0
- package/lib/src/utils/regexp.js.map +1 -0
- package/lib/test/index.js +105 -137
- package/lib/test/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/common.global.d.ts +13 -6
- package/lib/types/common.global.d.ts.map +1 -1
- package/lib/types/lib.d.ts +1 -0
- package/lib/types/lib.d.ts.map +1 -1
- package/lib/types/lib.js +1 -0
- package/lib/types/lib.js.map +1 -1
- package/package.json +3 -2
- package/types/common.global.ts +21 -2
- package/types/lib.ts +1 -0
- package/lib/src/expectations/model.d.ts +0 -39
- package/lib/src/expectations/model.d.ts.map +0 -1
- package/lib/src/expectations/model.js +0 -90
- package/lib/src/expectations/model.js.map +0 -1
- package/lib/src/expectations/operators/utils.d.ts +0 -20
- package/lib/src/expectations/operators/utils.d.ts.map +0 -1
- package/lib/src/expectations/operators/utils.js +0 -67
- package/lib/src/expectations/operators/utils.js.map +0 -1
- package/lib/src/expectations/storage.d.ts +0 -19
- package/lib/src/expectations/storage.d.ts.map +0 -1
- package/lib/src/expectations/storage.js.map +0 -1
- package/lib/src/expectations/utils.spec.d.ts +0 -2
- package/lib/src/expectations/utils.spec.d.ts.map +0 -1
- package/lib/src/expectations/utils.spec.js +0 -59
- package/lib/src/expectations/utils.spec.js.map +0 -1
- package/lib/src/expectations/validation-schemas.d.ts +0 -14
- package/lib/src/expectations/validation-schemas.d.ts.map +0 -1
- package/lib/src/expectations/validation-schemas.js +0 -36
- package/lib/src/expectations/validation-schemas.js.map +0 -1
- package/lib/src/server/endpoints/history-records.get-list.endpoint.d.ts +0 -16
- package/lib/src/server/endpoints/history-records.get-list.endpoint.d.ts.map +0 -1
- package/lib/src/server/endpoints/history-records.get-list.endpoint.js +0 -9
- package/lib/src/server/endpoints/history-records.get-list.endpoint.js.map +0 -1
- package/lib/src/server/middlewares/validate-expectation-request.middleware.d.ts +0 -6
- package/lib/src/server/middlewares/validate-expectation-request.middleware.d.ts.map +0 -1
- package/lib/src/server/middlewares/validate-expectation-request.middleware.js +0 -20
- package/lib/src/server/middlewares/validate-expectation-request.middleware.js.map +0 -1
- package/lib/src/server/types.d.ts +0 -6
- package/lib/src/server/types.d.ts.map +0 -1
- package/lib/src/server/types.js.map +0 -1
- package/lib/src/server/web-socket-exchange/index.d.ts +0 -5
- package/lib/src/server/web-socket-exchange/index.d.ts.map +0 -1
- package/lib/src/server/web-socket-exchange/index.js.map +0 -1
- package/lib/src/server/web-socket-exchange/types.d.ts +0 -12
- package/lib/src/server/web-socket-exchange/types.d.ts.map +0 -1
- package/lib/src/server/web-socket-exchange/types.js +0 -3
- package/lib/src/server/web-socket-exchange/types.js.map +0 -1
- /package/lib/src/server/{types.js → ws-exchange/types.js} +0 -0
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
query?: object | void;
|
|
6
|
-
headers?: Record<string, string>;
|
|
7
|
-
}
|
|
8
|
-
export interface IRequestPlainContext<T extends IHttpRequestIncommingContext = IHttpRequestIncommingContext> {
|
|
1
|
+
import { TRequestPayloadType } from '../../../types';
|
|
2
|
+
export type TRequestContextType = 'http' | 'ws';
|
|
3
|
+
export interface IRequestContextIncoming {
|
|
4
|
+
type: TRequestPayloadType;
|
|
9
5
|
path: string;
|
|
10
|
-
method:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
headers: T['headers'];
|
|
6
|
+
method: string;
|
|
7
|
+
headers: Record<string, string | string[]>;
|
|
8
|
+
query?: Record<string, unknown>;
|
|
9
|
+
body?: unknown;
|
|
10
|
+
bodyRaw?: string;
|
|
16
11
|
}
|
|
17
|
-
export interface
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
export interface IRequestContextOutgoing {
|
|
13
|
+
type: TRequestPayloadType;
|
|
14
|
+
status: number;
|
|
15
|
+
headers: Record<string, string | string[]>;
|
|
16
|
+
data?: unknown;
|
|
21
17
|
dataRaw?: string;
|
|
22
18
|
}
|
|
23
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/request-context/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/request-context/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,IAAI,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,mBAAmB,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAE3C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,mBAAmB,CAAC;IAE1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAE3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IncomingMessage } from 'http';
|
|
2
|
+
import { IRequestContextIncoming } from './types';
|
|
2
3
|
import { TRequestPayloadType } from '../../../types';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const extractPayloadType: (headers: IncomingMessage["headers"]) => TRequestPayloadType;
|
|
5
|
+
export declare const parsePayload: (type: TRequestPayloadType, raw: string) => object | undefined;
|
|
6
|
+
export declare const serializePayload: (type: TRequestPayloadType, payload: object | null) => string;
|
|
7
|
+
export declare const extractHttpIncommingParameters: (request: IncomingMessage & {
|
|
8
|
+
incomingBodyRaw: string;
|
|
9
|
+
}) => IRequestContextIncoming;
|
|
6
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/request-context/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/request-context/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAsBrD,eAAO,MAAM,kBAAkB,YAAa,eAAe,CAAC,SAAS,CAAC,KAAG,mBAYxE,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,mBAAmB,OAAO,MAAM,KAAG,MAAM,GAAG,SAU9E,CAAA;AAED,eAAO,MAAM,gBAAgB,SAAU,mBAAmB,WAAW,MAAM,GAAG,IAAI,KAAG,MASpF,CAAA;AAED,eAAO,MAAM,8BAA8B,YAChC,eAAe,GAAG;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,KACrD,uBAyBF,CAAA"}
|
|
@@ -3,46 +3,69 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.extractHttpIncommingParameters = exports.
|
|
7
|
-
const url_1 = require("url");
|
|
6
|
+
exports.extractHttpIncommingParameters = exports.serializePayload = exports.parsePayload = exports.extractPayloadType = void 0;
|
|
8
7
|
const querystring_1 = require("querystring");
|
|
8
|
+
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
9
|
+
const url_1 = require("url");
|
|
9
10
|
const lodash_1 = __importDefault(require("lodash"));
|
|
10
11
|
const utils_1 = require("../../../utils");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const xmlParser = new fast_xml_parser_1.XMLParser({
|
|
13
|
+
ignoreAttributes: false,
|
|
14
|
+
});
|
|
15
|
+
const xmlBuilder = new fast_xml_parser_1.XMLBuilder({
|
|
16
|
+
ignoreAttributes: false,
|
|
17
|
+
});
|
|
18
|
+
const parseQuerySearch = (queryString) => Object.entries((0, querystring_1.parse)(queryString)).reduce((acc, [key, value]) => {
|
|
19
|
+
const valueAsJson = lodash_1.default.flatten([value]).map(arrValue => {
|
|
20
|
+
const parsingArrayValueAsJsonResult = (0, utils_1.parseJsonSafe)(arrValue ?? '');
|
|
21
|
+
return parsingArrayValueAsJsonResult.status === 'OK' ? parsingArrayValueAsJsonResult.result : arrValue;
|
|
22
|
+
});
|
|
23
|
+
return lodash_1.default.set(acc, key, valueAsJson?.length === 1 ? valueAsJson[0] : valueAsJson);
|
|
24
|
+
}, {});
|
|
25
|
+
const extractPayloadType = (headers) => {
|
|
21
26
|
const contentTypeKey = Object.keys(headers).find((key) => key.toLowerCase() === 'content-type');
|
|
22
27
|
const contextType = lodash_1.default.flatten([lodash_1.default.get(headers, contentTypeKey ?? '', '')]).join(',').toLowerCase();
|
|
23
28
|
if (contextType.includes('application/json')) {
|
|
24
29
|
return 'json';
|
|
25
30
|
}
|
|
26
|
-
if (contextType.includes('
|
|
31
|
+
if (contextType.includes('/xml')) {
|
|
27
32
|
return 'xml';
|
|
28
33
|
}
|
|
29
34
|
return 'plain';
|
|
30
35
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
exports.extractPayloadType = extractPayloadType;
|
|
37
|
+
const parsePayload = (type, raw) => {
|
|
38
|
+
if (type === 'json') {
|
|
39
|
+
const parsed = (0, utils_1.parseJsonSafe)(raw);
|
|
40
|
+
return parsed.status === 'OK' ? parsed.result : undefined;
|
|
41
|
+
}
|
|
42
|
+
if (type === 'xml') {
|
|
43
|
+
return xmlParser.parse(raw) ?? undefined;
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
};
|
|
47
|
+
exports.parsePayload = parsePayload;
|
|
48
|
+
const serializePayload = (type, payload) => {
|
|
49
|
+
if (type === 'json') {
|
|
50
|
+
return JSON.stringify(payload);
|
|
51
|
+
}
|
|
52
|
+
if (type === 'xml') {
|
|
53
|
+
return xmlBuilder.build(payload ?? {});
|
|
54
|
+
}
|
|
55
|
+
return '';
|
|
56
|
+
};
|
|
57
|
+
exports.serializePayload = serializePayload;
|
|
58
|
+
const extractHttpIncommingParameters = (request) => {
|
|
59
|
+
const { pathname, query: rawQuery } = (0, url_1.parse)(request.url ?? '');
|
|
60
|
+
const type = (0, exports.extractPayloadType)(request.headers);
|
|
61
|
+
const query = parseQuerySearch(rawQuery ?? '');
|
|
39
62
|
return {
|
|
40
|
-
|
|
41
|
-
method: request.method ?? 'GET',
|
|
63
|
+
type,
|
|
64
|
+
method: String(request.method ?? 'GET').toUpperCase(),
|
|
42
65
|
path: pathname ?? '/',
|
|
43
66
|
query,
|
|
44
|
-
|
|
45
|
-
|
|
67
|
+
bodyRaw: request.incomingBodyRaw,
|
|
68
|
+
body: (0, exports.parsePayload)(type, request.incomingBodyRaw),
|
|
46
69
|
headers: Object
|
|
47
70
|
.entries(request.headers)
|
|
48
71
|
.map(([name, values]) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/server/models/request-context/utils.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/server/models/request-context/utils.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAwD;AACxD,qDAAwD;AACxD,6BAAwC;AAExC,oDAAuB;AAIvB,0CAA+C;AAE/C,MAAM,SAAS,GAAG,IAAI,2BAAS,CAAC;IAC9B,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,IAAI,4BAAU,CAAC;IAChC,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,WAAmB,EAA2B,EAAE,CACxE,MAAM,CAAC,OAAO,CAAC,IAAA,mBAAgB,EAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;IACzE,MAAM,WAAW,GAAG,gBAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACpD,MAAM,6BAA6B,GAAG,IAAA,qBAAa,EAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QACpE,OAAO,6BAA6B,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;IACzG,CAAC,CAAC,CAAC;IAEH,OAAO,gBAAC,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AACnF,CAAC,EAAE,EAAE,CAAC,CAAC;AAGF,MAAM,kBAAkB,GAAG,CAAC,OAAmC,EAAuB,EAAE;IAC7F,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC,CAAC;IAChG,MAAM,WAAW,GAAG,gBAAC,CAAC,OAAO,CAAC,CAAC,gBAAC,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAElG,IAAI,WAAW,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;QAC7C,OAAO,MAAM,CAAA;IACf,CAAC;IACD,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAA;AAZY,QAAA,kBAAkB,sBAY9B;AAEM,MAAM,YAAY,GAAG,CAAC,IAAyB,EAAE,GAAW,EAAsB,EAAE;IACzF,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,IAAA,qBAAa,EAAC,GAAG,CAAC,CAAC;QAClC,OAAO,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5D,CAAC;IACD,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC;IAC3C,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAA;AAVY,QAAA,YAAY,gBAUxB;AAEM,MAAM,gBAAgB,GAAG,CAAC,IAAyB,EAAE,OAAsB,EAAU,EAAE;IAC5F,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAA;AATY,QAAA,gBAAgB,oBAS5B;AAEM,MAAM,8BAA8B,GAAG,CAC5C,OAAsD,EAC7B,EAAE;IAC3B,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAA,WAAQ,EAAC,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAElE,MAAM,IAAI,GAAG,IAAA,0BAAkB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,gBAAgB,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;IAE/C,OAAO;QACL,IAAI;QAEJ,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE;QACrD,IAAI,EAAE,QAAQ,IAAI,GAAG;QAErB,KAAK;QAEL,OAAO,EAAE,OAAO,CAAC,eAAe;QAChC,IAAI,EAAE,IAAA,oBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC;QAEjD,OAAO,EAAE,MAAM;aACZ,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;aACxB,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,EAAE;YAClB,gBAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;SACnE,CAAC;aACD,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,gBAAC,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;KAC/D,CAAA;AACH,CAAC,CAAA;AA3BY,QAAA,8BAA8B,kCA2B1C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestContext } from './model';
|
|
2
|
+
import { ServerContext } from '../server-context';
|
|
3
|
+
import { ReplyService } from '../reply-service';
|
|
4
|
+
export declare class WsRequestContext<TResponse = unknown> extends RequestContext<'ws'> {
|
|
5
|
+
server: ServerContext;
|
|
6
|
+
request: {
|
|
7
|
+
body: unknown;
|
|
8
|
+
callback: TFunction<void>;
|
|
9
|
+
};
|
|
10
|
+
reply: ReplyService<TResponse>;
|
|
11
|
+
incoming: {
|
|
12
|
+
body: unknown;
|
|
13
|
+
query: {};
|
|
14
|
+
};
|
|
15
|
+
constructor(server: ServerContext, request: {
|
|
16
|
+
body: unknown;
|
|
17
|
+
callback: TFunction<void>;
|
|
18
|
+
});
|
|
19
|
+
static build(server: ServerContext, request: WsRequestContext['request']): WsRequestContext<unknown>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ws.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/request-context/ws.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBAAa,gBAAgB,CAAC,SAAS,GAAG,OAAO,CAAE,SAAQ,cAAc,CAAC,IAAI,CAAC;IASpE,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE;QACd,IAAI,EAAE,OAAO,CAAC;QACd,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;KAC3B;IAZI,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,CAAuC;IAErE,QAAQ;;;MAGb;gBAGO,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE;QACd,IAAI,EAAE,OAAO,CAAC;QACd,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;KAC3B;IAKH,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC;CAGzE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WsRequestContext = void 0;
|
|
4
|
+
const model_1 = require("./model");
|
|
5
|
+
const reply_service_1 = require("../reply-service");
|
|
6
|
+
class WsRequestContext extends model_1.RequestContext {
|
|
7
|
+
constructor(server, request) {
|
|
8
|
+
super('ws', server);
|
|
9
|
+
this.server = server;
|
|
10
|
+
this.request = request;
|
|
11
|
+
this.reply = reply_service_1.ReplyService.build(this);
|
|
12
|
+
this.incoming = {
|
|
13
|
+
body: this.request.body,
|
|
14
|
+
query: {},
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static build(server, request) {
|
|
18
|
+
return new WsRequestContext(server, request);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.WsRequestContext = WsRequestContext;
|
|
22
|
+
//# sourceMappingURL=ws.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.js","sourceRoot":"","sources":["../../../../../src/server/models/request-context/ws.ts"],"names":[],"mappings":";;;AAAA,mCAAyC;AAEzC,oDAAgD;AAEhD,MAAa,gBAAsC,SAAQ,sBAAoB;IAQ7E,YACS,MAAqB,EACrB,OAGN;QAED,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QANb,WAAM,GAAN,MAAM,CAAe;QACrB,YAAO,GAAP,OAAO,CAGb;QAZI,UAAK,GAA4B,4BAAY,CAAC,KAAK,CAAY,IAAI,CAAC,CAAC;QAErE,aAAQ,GAAG;YAChB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,KAAK,EAAE,EAAE;SACV,CAAC;IAUF,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAqB,EAAE,OAAoC;QACtE,OAAO,IAAI,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;CACF;AArBD,4CAqBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Server } from 'socket.io';
|
|
2
|
-
import { ExpectationsStorage } from '../../expectations/storage';
|
|
2
|
+
import { ExpectationsStorage } from '../../expectations/models/storage';
|
|
3
3
|
import { HistoryStorage } from '../history/storage';
|
|
4
4
|
import { OnsiteClient } from '../../client';
|
|
5
5
|
export declare class ServerContext {
|
|
6
|
-
client: OnsiteClient
|
|
6
|
+
client: OnsiteClient;
|
|
7
7
|
config: {
|
|
8
8
|
client: {
|
|
9
9
|
publicDirPath: string;
|
|
@@ -18,9 +18,9 @@ export declare class ServerContext {
|
|
|
18
18
|
history: HistoryStorage;
|
|
19
19
|
};
|
|
20
20
|
exchange: {
|
|
21
|
-
ws: import("../
|
|
21
|
+
ws: import("../ws-exchange").IWsExchangeService;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
assignWsExchange(io: Server): this;
|
|
24
24
|
static build(): ServerContext;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=server-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-context.d.ts","sourceRoot":"","sources":["../../../../src/server/models/server-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"server-context.d.ts","sourceRoot":"","sources":["../../../../src/server/models/server-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,qBAAa,aAAa;IACjB,MAAM,eAA4B;IAClC,MAAM;;;;;;;;MAAU;IAEhB,OAAO;;;MAGZ;IAEK,QAAQ;;MAEb;IAEK,gBAAgB,CAAC,EAAE,EAAE,MAAM;IAKlC,MAAM,CAAC,KAAK;CAGb"}
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ServerContext = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const storage_1 = require("../../expectations/models/storage");
|
|
8
|
+
const ws_exchange_1 = require("../ws-exchange");
|
|
9
9
|
const storage_2 = require("../history/storage");
|
|
10
10
|
const client_1 = require("../../client");
|
|
11
11
|
const config_1 = __importDefault(require("../../config"));
|
|
@@ -18,11 +18,11 @@ class ServerContext {
|
|
|
18
18
|
history: new storage_2.HistoryStorage(),
|
|
19
19
|
};
|
|
20
20
|
this.exchange = {
|
|
21
|
-
ws: (0,
|
|
21
|
+
ws: (0, ws_exchange_1.buildWsExchange)({ emit: () => false }),
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
this.exchange.ws = (0,
|
|
24
|
+
assignWsExchange(io) {
|
|
25
|
+
this.exchange.ws = (0, ws_exchange_1.buildWsExchange)(io);
|
|
26
26
|
return this;
|
|
27
27
|
}
|
|
28
28
|
static build() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-context.js","sourceRoot":"","sources":["../../../../src/server/models/server-context.ts"],"names":[],"mappings":";;;;;;AAEA
|
|
1
|
+
{"version":3,"file":"server-context.js","sourceRoot":"","sources":["../../../../src/server/models/server-context.ts"],"names":[],"mappings":";;;;;;AAEA,+DAAwE;AACxE,gDAAiD;AACjD,gDAAoD;AACpD,yCAA4C;AAE5C,0DAAkC;AAElC,MAAa,aAAa;IAA1B;QACS,WAAM,GAAG,qBAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,WAAM,GAAG,gBAAM,CAAC;QAEhB,YAAO,GAAG;YACf,YAAY,EAAE,IAAI,6BAAmB,EAAE;YACvC,OAAO,EAAE,IAAI,wBAAc,EAAE;SAC9B,CAAC;QAEK,aAAQ,GAAG;YAChB,EAAE,EAAE,IAAA,6BAAe,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;SAC3C,CAAC;IAUJ,CAAC;IARQ,gBAAgB,CAAC,EAAU;QAChC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,IAAA,6BAAe,EAAC,EAAE,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO,IAAI,aAAa,EAAE,CAAC;IAC7B,CAAC;CACF;AArBD,sCAqBC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
interface
|
|
1
|
+
import type { Endpoint } from './models';
|
|
2
|
+
interface IRoutes {
|
|
3
3
|
http: Record<string, SetRequiredKeys<Endpoint, 'http'>>;
|
|
4
|
-
ws: Record<string, SetRequiredKeys<Endpoint, '
|
|
4
|
+
ws: Record<string, SetRequiredKeys<Endpoint, 'ws'>>;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const resolveInternalEndpoint: (requestContext: SetRequiredKeys<RequestContext, "flow">) => {
|
|
8
|
-
handle: TFunction;
|
|
9
|
-
} | null;
|
|
6
|
+
export declare const routes: IRoutes;
|
|
10
7
|
export {};
|
|
11
8
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/server/router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/server/router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,MAAM,SASc,CAAC"}
|
package/lib/src/server/router.js
CHANGED
|
@@ -26,24 +26,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.routes = void 0;
|
|
30
30
|
const lodash_1 = __importDefault(require("lodash"));
|
|
31
31
|
const endpoints = __importStar(require("./endpoints"));
|
|
32
|
-
|
|
32
|
+
;
|
|
33
|
+
exports.routes = Object.values(endpoints).reduce((acc, endpoint) => {
|
|
33
34
|
if (endpoint.http) {
|
|
34
35
|
lodash_1.default.set(acc, ['http', `${endpoint.http.method}:${endpoint.http.path}`], endpoint);
|
|
35
36
|
}
|
|
36
|
-
if (endpoint.
|
|
37
|
-
lodash_1.default.set(acc, ['ws', endpoint.
|
|
37
|
+
if (endpoint.ws) {
|
|
38
|
+
lodash_1.default.set(acc, ['ws', endpoint.ws.path], endpoint);
|
|
38
39
|
}
|
|
39
40
|
return acc;
|
|
40
41
|
}, { http: {}, ws: {} });
|
|
41
|
-
const resolveInternalEndpoint = (requestContext) => {
|
|
42
|
-
const key = [requestContext.method, requestContext.path].filter(Boolean).join(':');
|
|
43
|
-
const endpoint = exports.internalEndpointsMap[requestContext.flow][key];
|
|
44
|
-
return endpoint?.handler
|
|
45
|
-
? { handle: () => (endpoint.handler)(requestContext) }
|
|
46
|
-
: null;
|
|
47
|
-
};
|
|
48
|
-
exports.resolveInternalEndpoint = resolveInternalEndpoint;
|
|
49
42
|
//# sourceMappingURL=router.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/server/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AAGvB,uDAAyC;
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/server/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AAGvB,uDAAyC;AAKxC,CAAC;AAEW,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;IACtE,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;QAClB,gBAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;IAClF,CAAC;IACD,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;QAChB,gBAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,EAAW,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/ws-exchange/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,eAAe,OAAQ,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,kBAEzD,CAAC"}
|
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.buildWsExchange = void 0;
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
-
const
|
|
19
|
+
const buildWsExchange = (io) => ({
|
|
20
20
|
publish: (eventName, ...payload) => io.emit(eventName, ...payload),
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.buildWsExchange = buildWsExchange;
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/server/ws-exchange/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,0CAAwB;AAEjB,MAAM,eAAe,GAAG,CAAC,EAAwB,EAAsB,EAAE,CAAC,CAAC;IAChF,OAAO,EAAE,CAAC,SAAiB,EAAE,GAAG,OAAkB,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,OAAO,CAAC;CACtF,CAAC,CAAC;AAFU,QAAA,eAAe,mBAEzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Expectation } from '../../expectations';
|
|
2
|
+
import type { History } from '../history';
|
|
3
|
+
export interface IWsExchangeEventToPayloadMap {
|
|
4
|
+
'expectation:added': Expectation['TPlain'];
|
|
5
|
+
'expectation:updated': Expectation['TPlain'];
|
|
6
|
+
'history:added': History['TPlain'];
|
|
7
|
+
'history:updated': History['TPlain'];
|
|
8
|
+
}
|
|
9
|
+
export interface IWsExchangeService {
|
|
10
|
+
publish: <K extends keyof IWsExchangeEventToPayloadMap>(channel: K, payload: IWsExchangeEventToPayloadMap[K]) => unknown;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/server/ws-exchange/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,4BAA4B;IAC3C,mBAAmB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,qBAAqB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE7C,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,iBAAiB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,CAAC,SAAS,MAAM,4BAA4B,EACpD,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,KACrC,OAAO,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/server/ws-exchange/types.ts"],"names":[],"mappings":""}
|
package/lib/src/types.d.ts
CHANGED
package/lib/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC"}
|
package/lib/src/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/lib/src/utils/index.js
CHANGED
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./validation"), exports);
|
|
18
18
|
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./regexp"), exports);
|
|
19
20
|
__exportStar(require("./json"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB"}
|
package/lib/src/utils/json.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface IJsonPathExtractionResult {
|
|
|
5
5
|
pointer: string;
|
|
6
6
|
parentProperty: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const extractWithJsonPathSafe: (params: Omit<JSONPathOptions, "resultType">) => {
|
|
9
9
|
readonly status: "OK";
|
|
10
10
|
readonly results: IJsonPathExtractionResult[];
|
|
11
11
|
readonly error?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,WAAY,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC;;;;;;;;CAYlF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,MAAM;;qBAIxE,CAAC;;;;;;CAQf,CAAC"}
|
package/lib/src/utils/json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseJsonSafe = exports.
|
|
3
|
+
exports.parseJsonSafe = exports.extractWithJsonPathSafe = void 0;
|
|
4
4
|
const jsonpath_plus_1 = require("jsonpath-plus");
|
|
5
5
|
;
|
|
6
|
-
const
|
|
6
|
+
const extractWithJsonPathSafe = (params) => {
|
|
7
7
|
try {
|
|
8
8
|
return {
|
|
9
9
|
status: 'OK',
|
|
@@ -17,7 +17,7 @@ const extractByJsonPathSafe = (params) => {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.extractWithJsonPathSafe = extractWithJsonPathSafe;
|
|
21
21
|
const parseJsonSafe = (serializedJson) => {
|
|
22
22
|
try {
|
|
23
23
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":";;;AAAA,iDAA0D;AAOzD,CAAC;AAEK,MAAM,
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":";;;AAAA,iDAA0D;AAOzD,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,MAA2C,EAAE,EAAE;IACrF,IAAI,CAAC;QACH,OAAc;YACZ,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,IAAA,wBAAQ,EAA8B,MAAM,CAAC,MAAM,CAAC,MAAM,EAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;SACpG,CAAC;IACJ,CAAC;IAAC,OAAM,KAAK,EAAE,CAAC;QACd,OAAc;YACZ,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;SAC7D,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,uBAAuB,2BAYlC;AAEK,MAAM,aAAa,GAAG,CAAoC,cAAsB,EAAE,EAAE;IACzF,IAAI,CAAC;QACH,OAAc;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAK,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;SACtC,CAAC;IACJ,CAAC;IAAC,OAAM,KAAK,EAAE,CAAC;QACd,OAAc;YACZ,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;SAC7D,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,aAAa,iBAYxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/utils/regexp.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAS,MAAM,KAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAG3E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serializeRegExp = void 0;
|
|
4
|
+
const serializeRegExp = (exp) => ({
|
|
5
|
+
source: exp.source,
|
|
6
|
+
flags: exp.flags,
|
|
7
|
+
});
|
|
8
|
+
exports.serializeRegExp = serializeRegExp;
|
|
9
|
+
//# sourceMappingURL=regexp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexp.js","sourceRoot":"","sources":["../../../src/utils/regexp.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,CAAC,GAAW,EAAoC,EAAE,CAAC,CAAC;IACjF,MAAM,EAAE,GAAG,CAAC,MAAM;IAClB,KAAK,EAAE,GAAG,CAAC,KAAK;CACjB,CAAC,CAAC;AAHU,QAAA,eAAe,mBAGzB"}
|