@bitblit/ratchet-epsilon-common 4.0.99-alpha → 4.0.102-alpha
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/{types/background → background}/background-dynamo-log-table-handler.d.ts +3 -3
- package/dist/{es/background → background}/background-dynamo-log-table-handler.js +6 -2
- package/dist/{types/background → background}/background-execution-event.d.ts +1 -1
- package/dist/{types/background → background}/background-execution-listener.d.ts +1 -1
- package/dist/{types/background → background}/background-handler.d.ts +5 -9
- package/dist/{es/background → background}/background-handler.js +15 -7
- package/dist/{types/background → background}/background-http-adapter-handler.d.ts +7 -11
- package/dist/{es/background → background}/background-http-adapter-handler.js +13 -8
- package/dist/{types/background → background}/background-queue-response-internal.d.ts +1 -1
- package/dist/{types/background → background}/background-validator.d.ts +5 -8
- package/dist/{es/background → background}/background-validator.js +5 -3
- package/dist/{es/background → background}/epsilon-background-process-error.js +6 -1
- package/dist/{types/background → background}/internal-background-entry.d.ts +1 -1
- package/dist/{types/background → background}/manager/abstract-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/abstract-background-manager.js +5 -4
- package/dist/{types/background → background}/manager/aws-sqs-sns-background-manager.d.ts +4 -11
- package/dist/{es/background → background}/manager/aws-sqs-sns-background-manager.js +9 -5
- package/dist/{types/background → background}/manager/background-manager-like.d.ts +2 -9
- package/dist/background/manager/background-manager.spec.js +73 -0
- package/dist/{types/background → background}/manager/single-thread-local-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/single-thread-local-background-manager.js +6 -6
- package/dist/{types/background → background}/s3-background-transaction-logger.d.ts +2 -2
- package/dist/{es/background → background}/s3-background-transaction-logger.js +6 -3
- package/dist/{types/build → build}/ratchet-epsilon-common-info.d.ts +1 -1
- package/dist/{types/built-in → built-in}/background/echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/echo-processor.js +4 -3
- package/dist/{types/built-in → built-in}/background/log-and-enqueue-echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-and-enqueue-echo-processor.js +2 -2
- package/dist/{types/built-in → built-in}/background/log-message-background-error-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-message-background-error-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/no-op-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/no-op-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/retry-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/retry-processor.js +8 -4
- package/dist/{types/built-in → built-in}/background/sample-delay-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/sample-delay-processor.js +2 -1
- package/dist/{types/built-in → built-in}/background/sample-input-validated-processor.d.ts +3 -3
- package/dist/{es/built-in → built-in}/background/sample-input-validated-processor.js +1 -1
- package/dist/{es/built-in → built-in}/built-in-trace-id-generators.js +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-authorizer-function.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-config.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-group-selection-function.d.ts +1 -1
- package/dist/{types/built-in → built-in}/daemon/daemon-handler.d.ts +6 -12
- package/dist/{es/built-in → built-in}/daemon/daemon-handler.js +9 -8
- package/dist/built-in/daemon/daemon-process-state-list.d.ts +5 -0
- package/dist/{types/built-in → built-in}/http/apollo-filter.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/apollo-filter.js +6 -5
- package/dist/{types/built-in → built-in}/http/built-in-auth-filters.d.ts +3 -3
- package/dist/{es/built-in → built-in}/http/built-in-auth-filters.js +5 -5
- package/dist/{types/built-in → built-in}/http/built-in-authorizers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-authorizers.js +1 -1
- package/dist/{types/built-in → built-in}/http/built-in-filters.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-filters.js +9 -9
- package/dist/{types/built-in → built-in}/http/built-in-handlers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-handlers.js +10 -10
- package/dist/{types/built-in → built-in}/http/log-level-manipulation-filter.d.ts +1 -4
- package/dist/{es/built-in → built-in}/http/log-level-manipulation-filter.js +2 -2
- package/dist/{types/built-in → built-in}/http/run-handler-as-filter.d.ts +5 -5
- package/dist/{es/built-in → built-in}/http/run-handler-as-filter.js +8 -8
- package/dist/built-in/http/run-handler-as-filter.spec.js +40 -0
- package/dist/{types/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.d.ts +2 -2
- package/dist/{es/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.js +6 -6
- package/dist/cli-bootstrap/run-background-process-from-command-line.d.ts +3 -0
- package/dist/{es/cli-bootstrap → cli-bootstrap}/run-background-process-from-command-line.js +2 -2
- package/dist/{types/config → config}/background/background-config.d.ts +4 -4
- package/dist/{types/config → config}/background/background-error-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-log.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-logger.d.ts +1 -1
- package/dist/config/cron/cron-background-entry.d.ts +6 -0
- package/dist/{types/config → config}/cron/cron-config.d.ts +1 -1
- package/dist/{types/config → config}/dynamo-db-config.d.ts +1 -1
- package/dist/{types/config → config}/epsilon-config.d.ts +8 -8
- package/dist/{types/config → config}/epsilon-logger-config.d.ts +3 -2
- package/dist/{types/config → config}/http/authorizer-function.d.ts +3 -3
- package/dist/{types/config → config}/http/extended-api-gateway-event.d.ts +1 -1
- package/dist/{types/config → config}/http/filter-chain-context.d.ts +4 -4
- package/dist/{types/config → config}/http/filter-function.d.ts +1 -1
- package/dist/{types/config → config}/http/handler-function.d.ts +1 -1
- package/dist/{types/config → config}/http/http-config.d.ts +5 -5
- package/dist/{types/config → config}/http/http-processing-config.d.ts +2 -2
- package/dist/{types/config → config}/http/mapped-http-processing-config.d.ts +1 -1
- package/dist/{types/config → config}/inter-api/inter-api-config.d.ts +2 -2
- package/dist/config/inter-api/inter-api-process-mapping.d.ts +6 -0
- package/dist/{types/config → config}/open-api/open-api-document.d.ts +2 -2
- package/dist/{types/config → config}/s3-config.d.ts +1 -1
- package/dist/{types/config → config}/sns-config.d.ts +1 -1
- package/dist/{es/epsilon-build-properties.js → epsilon-build-properties.js} +1 -1
- package/dist/{types/epsilon-constants.d.ts → epsilon-constants.d.ts} +1 -1
- package/dist/{es/epsilon-constants.js → epsilon-constants.js} +14 -13
- package/dist/{types/epsilon-global-handler.d.ts → epsilon-global-handler.d.ts} +3 -6
- package/dist/{es/epsilon-global-handler.js → epsilon-global-handler.js} +29 -24
- package/dist/{types/epsilon-instance.d.ts → epsilon-instance.d.ts} +6 -11
- package/dist/epsilon-logging-extension-processor.d.ts +6 -0
- package/dist/{es/epsilon-logging-extension-processor.js → epsilon-logging-extension-processor.js} +1 -1
- package/dist/{types/http → http}/auth/api-gateway-adapter-authentication-handler.d.ts +0 -10
- package/dist/{es/http → http}/auth/api-gateway-adapter-authentication-handler.js +4 -3
- package/dist/{types/http → http}/auth/auth0-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/auth0-web-token-manipulator.js +6 -1
- package/dist/{types/http → http}/auth/basic-auth-token.d.ts +0 -3
- package/dist/{types/http → http}/auth/google-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/google-web-token-manipulator.js +6 -3
- package/dist/http/auth/google-web-token-manipulator.spec.js +10 -0
- package/dist/{types/http → http}/auth/jwt-ratchet-local-web-token-manipulator.d.ts +3 -5
- package/dist/{es/http → http}/auth/jwt-ratchet-local-web-token-manipulator.js +5 -3
- package/dist/{types/http → http}/auth/local-web-token-manipulator.d.ts +4 -5
- package/dist/{es/http → http}/auth/local-web-token-manipulator.js +9 -5
- package/dist/http/auth/local-web-token-manipulator.spec.js +24 -0
- package/dist/{types/http → http}/auth/web-token-manipulator.d.ts +1 -4
- package/dist/{types/http → http}/error/bad-gateway.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-gateway.js +2 -2
- package/dist/{types/http → http}/error/bad-request-error.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-request-error.js +2 -2
- package/dist/{types/http → http}/error/conflict-error.d.ts +1 -1
- package/dist/{es/http → http}/error/conflict-error.js +2 -2
- package/dist/{es/http → http}/error/epsilon-http-error.js +9 -3
- package/dist/http/error/epsilon-http-error.spec.js +11 -0
- package/dist/{types/http → http}/error/forbidden-error.d.ts +1 -1
- package/dist/{es/http → http}/error/forbidden-error.js +2 -2
- package/dist/{types/http → http}/error/gateway-timeout.d.ts +1 -1
- package/dist/{es/http → http}/error/gateway-timeout.js +2 -2
- package/dist/{types/http → http}/error/method-not-allowed-error.d.ts +1 -1
- package/dist/{es/http → http}/error/method-not-allowed-error.js +2 -2
- package/dist/{types/http → http}/error/misconfigured-error.d.ts +1 -1
- package/dist/{es/http → http}/error/misconfigured-error.js +2 -2
- package/dist/{types/http → http}/error/not-found-error.d.ts +1 -1
- package/dist/{es/http → http}/error/not-found-error.js +2 -2
- package/dist/{types/http → http}/error/not-implemented.d.ts +1 -1
- package/dist/{es/http → http}/error/not-implemented.js +2 -2
- package/dist/{types/http → http}/error/request-timeout-error.d.ts +1 -1
- package/dist/{es/http → http}/error/request-timeout-error.js +2 -2
- package/dist/{types/http → http}/error/service-unavailable.d.ts +1 -1
- package/dist/{es/http → http}/error/service-unavailable.js +2 -2
- package/dist/{types/http → http}/error/too-many-requests-error.d.ts +1 -1
- package/dist/{es/http → http}/error/too-many-requests-error.js +2 -2
- package/dist/{types/http → http}/error/unauthorized-error.d.ts +1 -1
- package/dist/{es/http → http}/error/unauthorized-error.js +2 -2
- package/dist/{types/http → http}/event-util.d.ts +3 -25
- package/dist/{es/http → http}/event-util.js +9 -8
- package/dist/http/event-util.spec.js +157 -0
- package/dist/{types/http → http}/response-util.d.ts +2 -2
- package/dist/{es/http → http}/response-util.js +2 -2
- package/dist/http/response-util.spec.d.ts +1 -0
- package/dist/http/response-util.spec.js +88 -0
- package/dist/http/route/epsilon-router.d.ts +8 -0
- package/dist/http/route/epsilon-router.js +1 -0
- package/dist/http/route/extended-auth-response-context.js +1 -0
- package/dist/{types/http → http}/route/route-mapping.d.ts +3 -3
- package/dist/http/route/route-mapping.js +1 -0
- package/dist/http/route/route-validator-config.js +1 -0
- package/dist/{types/http → http}/route/router-util.d.ts +9 -12
- package/dist/{es/http → http}/route/router-util.js +10 -10
- package/dist/http/route/router-util.spec.d.ts +1 -0
- package/dist/http/route/router-util.spec.js +23 -0
- package/dist/{types/http → http}/web-handler.d.ts +4 -7
- package/dist/{es/http → http}/web-handler.js +11 -10
- package/dist/http/web-handler.spec.d.ts +1 -0
- package/dist/http/web-handler.spec.js +32 -0
- package/dist/{types/http → http}/web-v2-handler.d.ts +2 -5
- package/dist/{es/http → http}/web-v2-handler.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/inter-api/inter-api-entry.js +1 -0
- package/dist/{types/inter-api → inter-api}/inter-api-util.d.ts +3 -3
- package/dist/{es/inter-api → inter-api}/inter-api-util.js +6 -5
- package/dist/inter-api/inter-api-util.spec.d.ts +1 -0
- package/dist/inter-api/inter-api-util.spec.js +61 -0
- package/dist/{types/inter-api-manager.d.ts → inter-api-manager.d.ts} +2 -5
- package/dist/{es/inter-api-manager.js → inter-api-manager.js} +5 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.d.ts +5 -5
- package/dist/{es/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.js +5 -4
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.js +50 -0
- package/dist/{types/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.js +2 -1
- package/dist/{types/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/local-container-server.d.ts → local-container-server.d.ts} +1 -4
- package/dist/{es/local-container-server.js → local-container-server.js} +8 -4
- package/dist/local-server-cert.js +67 -0
- package/dist/{types/local-server.d.ts → local-server.d.ts} +2 -5
- package/dist/{es/local-server.js → local-server.js} +11 -8
- package/dist/open-api-util/open-api-doc-modifications.js +1 -0
- package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifier.d.ts +1 -4
- package/dist/{es/open-api-util → open-api-util}/open-api-doc-modifier.js +2 -1
- package/dist/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
- package/dist/open-api-util/open-api-doc-modifier.spec.js +16 -0
- package/dist/{es/open-api-util → open-api-util}/yaml-combiner.js +2 -2
- package/dist/open-api-util/yaml-combiner.spec.d.ts +1 -0
- package/dist/open-api-util/yaml-combiner.spec.js +22 -0
- package/dist/{types/sample → sample}/sample-server-components.d.ts +2 -2
- package/dist/{es/sample → sample}/sample-server-components.js +25 -24
- package/dist/sample/sample-server-static-files.js +593 -0
- package/dist/{types/sample → sample}/test-error-server.d.ts +1 -4
- package/dist/{es/sample → sample}/test-error-server.js +4 -2
- package/dist/{types/util → util}/context-util.d.ts +3 -3
- package/dist/{es/util → util}/context-util.js +11 -5
- package/dist/{types/util → util}/cron-util.d.ts +2 -2
- package/dist/{es/util → util}/cron-util.js +3 -3
- package/dist/util/cron-util.spec.d.ts +1 -0
- package/dist/util/cron-util.spec.js +124 -0
- package/dist/{types/util → util}/epsilon-config-parser.d.ts +6 -6
- package/dist/{es/util → util}/epsilon-config-parser.js +9 -9
- package/includes/cli.js +8 -10
- package/package.json +12 -15
- package/dist/cjs/background/background-dynamo-log-table-handler.js +0 -38
- package/dist/cjs/background/background-entry.js +0 -2
- package/dist/cjs/background/background-execution-event-type.js +0 -11
- package/dist/cjs/background/background-execution-event.js +0 -2
- package/dist/cjs/background/background-execution-listener.js +0 -2
- package/dist/cjs/background/background-handler.js +0 -269
- package/dist/cjs/background/background-http-adapter-handler.js +0 -127
- package/dist/cjs/background/background-meta-response-internal.js +0 -2
- package/dist/cjs/background/background-process-handling.js +0 -8
- package/dist/cjs/background/background-process-log-table-entry.js +0 -2
- package/dist/cjs/background/background-queue-response-internal.js +0 -2
- package/dist/cjs/background/background-validator.js +0 -88
- package/dist/cjs/background/epsilon-background-process-error.js +0 -93
- package/dist/cjs/background/internal-background-entry.js +0 -2
- package/dist/cjs/background/manager/abstract-background-manager.js +0 -92
- package/dist/cjs/background/manager/aws-sqs-sns-background-manager.js +0 -153
- package/dist/cjs/background/manager/background-manager-like.js +0 -2
- package/dist/cjs/background/manager/single-thread-local-background-manager.js +0 -49
- package/dist/cjs/background/s3-background-transaction-logger.js +0 -54
- package/dist/cjs/build/ratchet-epsilon-common-info.js +0 -18
- package/dist/cjs/built-in/background/echo-processor.js +0 -18
- package/dist/cjs/built-in/background/log-and-enqueue-echo-processor.js +0 -16
- package/dist/cjs/built-in/background/log-message-background-error-processor.js +0 -10
- package/dist/cjs/built-in/background/no-op-processor.js +0 -13
- package/dist/cjs/built-in/background/retry-processor.js +0 -41
- package/dist/cjs/built-in/background/sample-delay-processor.js +0 -16
- package/dist/cjs/built-in/background/sample-input-validated-processor-data.js +0 -2
- package/dist/cjs/built-in/background/sample-input-validated-processor.js +0 -16
- package/dist/cjs/built-in/built-in-trace-id-generators.js +0 -25
- package/dist/cjs/built-in/daemon/daemon-authorizer-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-config.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-group-selection-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-handler.js +0 -62
- package/dist/cjs/built-in/daemon/daemon-process-state-list.js +0 -2
- package/dist/cjs/built-in/http/apollo-filter.js +0 -63
- package/dist/cjs/built-in/http/built-in-auth-filters.js +0 -115
- package/dist/cjs/built-in/http/built-in-authorizers.js +0 -43
- package/dist/cjs/built-in/http/built-in-filters.js +0 -222
- package/dist/cjs/built-in/http/built-in-handlers.js +0 -73
- package/dist/cjs/built-in/http/log-level-manipulation-filter.js +0 -20
- package/dist/cjs/built-in/http/run-handler-as-filter.js +0 -64
- package/dist/cjs/cli-bootstrap/ratchet-cli-handler.js +0 -24
- package/dist/cjs/cli-bootstrap/run-background-process-from-command-line.js +0 -26
- package/dist/cjs/config/background/background-aws-config.js +0 -2
- package/dist/cjs/config/background/background-config.js +0 -2
- package/dist/cjs/config/background/background-error-processor.js +0 -2
- package/dist/cjs/config/background/background-processor.js +0 -2
- package/dist/cjs/config/background/background-transaction-log.js +0 -2
- package/dist/cjs/config/background/background-transaction-logger.js +0 -2
- package/dist/cjs/config/cron/abstract-cron-entry.js +0 -2
- package/dist/cjs/config/cron/cron-background-entry.js +0 -2
- package/dist/cjs/config/cron/cron-config.js +0 -2
- package/dist/cjs/config/dynamo-db-config.js +0 -2
- package/dist/cjs/config/epsilon-config.js +0 -2
- package/dist/cjs/config/epsilon-lambda-event-handler.js +0 -2
- package/dist/cjs/config/epsilon-logger-config.js +0 -2
- package/dist/cjs/config/generic-aws-event-handler-function.js +0 -2
- package/dist/cjs/config/http/authorizer-function.js +0 -2
- package/dist/cjs/config/http/epsilon-authorization-context.js +0 -2
- package/dist/cjs/config/http/extended-api-gateway-event.js +0 -2
- package/dist/cjs/config/http/filter-chain-context.js +0 -2
- package/dist/cjs/config/http/filter-function.js +0 -2
- package/dist/cjs/config/http/handler-function.js +0 -2
- package/dist/cjs/config/http/http-config.js +0 -2
- package/dist/cjs/config/http/http-processing-config.js +0 -2
- package/dist/cjs/config/http/mapped-http-processing-config.js +0 -2
- package/dist/cjs/config/http/null-returned-object-handling.js +0 -9
- package/dist/cjs/config/inter-api/inter-api-aws-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-process-mapping.js +0 -2
- package/dist/cjs/config/logging-trace-id-generator.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-components.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-path.js +0 -2
- package/dist/cjs/config/open-api/open-api-document.js +0 -2
- package/dist/cjs/config/s3-config.js +0 -2
- package/dist/cjs/config/sns-config.js +0 -2
- package/dist/cjs/epsilon-build-properties.js +0 -28
- package/dist/cjs/epsilon-constants.js +0 -49
- package/dist/cjs/epsilon-global-handler.js +0 -155
- package/dist/cjs/epsilon-instance.js +0 -2
- package/dist/cjs/epsilon-logging-extension-processor.js +0 -19
- package/dist/cjs/http/auth/api-gateway-adapter-authentication-handler.js +0 -75
- package/dist/cjs/http/auth/auth0-web-token-manipulator.js +0 -62
- package/dist/cjs/http/auth/basic-auth-token.js +0 -2
- package/dist/cjs/http/auth/google-web-token-manipulator.js +0 -72
- package/dist/cjs/http/auth/jwt-ratchet-local-web-token-manipulator.js +0 -29
- package/dist/cjs/http/auth/local-web-token-manipulator.js +0 -74
- package/dist/cjs/http/auth/web-token-manipulator.js +0 -2
- package/dist/cjs/http/error/bad-gateway.js +0 -12
- package/dist/cjs/http/error/bad-request-error.js +0 -12
- package/dist/cjs/http/error/conflict-error.js +0 -12
- package/dist/cjs/http/error/epsilon-http-error.js +0 -132
- package/dist/cjs/http/error/forbidden-error.js +0 -12
- package/dist/cjs/http/error/gateway-timeout.js +0 -12
- package/dist/cjs/http/error/method-not-allowed-error.js +0 -12
- package/dist/cjs/http/error/misconfigured-error.js +0 -12
- package/dist/cjs/http/error/not-found-error.js +0 -12
- package/dist/cjs/http/error/not-implemented.js +0 -12
- package/dist/cjs/http/error/request-timeout-error.js +0 -12
- package/dist/cjs/http/error/service-unavailable.js +0 -12
- package/dist/cjs/http/error/too-many-requests-error.js +0 -12
- package/dist/cjs/http/error/unauthorized-error.js +0 -12
- package/dist/cjs/http/event-util.js +0 -180
- package/dist/cjs/http/response-util.js +0 -146
- package/dist/cjs/http/route/epsilon-router.js +0 -2
- package/dist/cjs/http/route/extended-auth-response-context.js +0 -2
- package/dist/cjs/http/route/route-mapping.js +0 -2
- package/dist/cjs/http/route/route-validator-config.js +0 -2
- package/dist/cjs/http/route/router-util.js +0 -238
- package/dist/cjs/http/web-handler.js +0 -122
- package/dist/cjs/http/web-v2-handler.js +0 -25
- package/dist/cjs/index.js +0 -135
- package/dist/cjs/inter-api/inter-api-entry.js +0 -2
- package/dist/cjs/inter-api/inter-api-util.js +0 -62
- package/dist/cjs/inter-api-manager.js +0 -67
- package/dist/cjs/lambda-event-handler/cron-epsilon-lambda-event-handler.js +0 -76
- package/dist/cjs/lambda-event-handler/dynamo-epsilon-lambda-event-handler.js +0 -36
- package/dist/cjs/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.js +0 -32
- package/dist/cjs/lambda-event-handler/inter-api-epsilon-lambda-event-handler.js +0 -26
- package/dist/cjs/lambda-event-handler/s3-epsilon-lambda-event-handler.js +0 -44
- package/dist/cjs/local-container-server.js +0 -77
- package/dist/cjs/local-server-cert.js +0 -71
- package/dist/cjs/local-server.js +0 -164
- package/dist/cjs/open-api-util/open-api-doc-modifications.js +0 -2
- package/dist/cjs/open-api-util/open-api-doc-modifier.js +0 -83
- package/dist/cjs/open-api-util/yaml-combiner.js +0 -32
- package/dist/cjs/sample/sample-server-components.js +0 -188
- package/dist/cjs/sample/sample-server-static-files.js +0 -597
- package/dist/cjs/sample/test-error-server.js +0 -47
- package/dist/cjs/util/aws-util.js +0 -69
- package/dist/cjs/util/context-util.js +0 -104
- package/dist/cjs/util/cron-util.js +0 -72
- package/dist/cjs/util/epsilon-config-parser.js +0 -71
- package/dist/es/index.js +0 -132
- package/dist/es/local-server-cert.js +0 -67
- package/dist/es/sample/sample-server-static-files.js +0 -593
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/tsconfig.es.tsbuildinfo +0 -1
- package/dist/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/built-in/daemon/daemon-process-state-list.d.ts +0 -8
- package/dist/types/cli-bootstrap/run-background-process-from-command-line.d.ts +0 -12
- package/dist/types/config/cron/cron-background-entry.d.ts +0 -15
- package/dist/types/config/inter-api/inter-api-process-mapping.d.ts +0 -11
- package/dist/types/epsilon-logging-extension-processor.d.ts +0 -5
- package/dist/types/http/route/epsilon-router.d.ts +0 -8
- package/dist/types/index.d.ts +0 -135
- /package/dist/{types/background → background}/background-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-entry.js +0 -0
- /package/dist/{types/background → background}/background-execution-event-type.d.ts +0 -0
- /package/dist/{es/background → background}/background-execution-event-type.js +0 -0
- /package/dist/{es/background → background}/background-execution-event.js +0 -0
- /package/dist/{es/background → background}/background-execution-listener.js +0 -0
- /package/dist/{types/background → background}/background-meta-response-internal.d.ts +0 -0
- /package/dist/{es/background → background}/background-meta-response-internal.js +0 -0
- /package/dist/{types/background → background}/background-process-handling.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-handling.js +0 -0
- /package/dist/{types/background → background}/background-process-log-table-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-log-table-entry.js +0 -0
- /package/dist/{es/background → background}/background-queue-response-internal.js +0 -0
- /package/dist/{types/background → background}/epsilon-background-process-error.d.ts +0 -0
- /package/dist/{es/background → background}/internal-background-entry.js +0 -0
- /package/dist/{es/background → background}/manager/background-manager-like.js +0 -0
- /package/dist/{es/built-in/background/sample-input-validated-processor-data.js → background/manager/background-manager.spec.d.ts} +0 -0
- /package/dist/{es/build → build}/ratchet-epsilon-common-info.js +0 -0
- /package/dist/{types/built-in → built-in}/background/sample-input-validated-processor-data.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-authorizer-function.js → built-in/background/sample-input-validated-processor-data.js} +0 -0
- /package/dist/{types/built-in → built-in}/built-in-trace-id-generators.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-config.js → built-in/daemon/daemon-authorizer-function.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-group-selection-function.js → built-in/daemon/daemon-config.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-process-state-list.js → built-in/daemon/daemon-group-selection-function.js} +0 -0
- /package/dist/{es/config/background/background-aws-config.js → built-in/daemon/daemon-process-state-list.js} +0 -0
- /package/dist/{es/config/background/background-config.js → built-in/http/run-handler-as-filter.spec.d.ts} +0 -0
- /package/dist/{types/config → config}/background/background-aws-config.d.ts +0 -0
- /package/dist/{es/config/background/background-error-processor.js → config/background/background-aws-config.js} +0 -0
- /package/dist/{es/config/background/background-processor.js → config/background/background-config.js} +0 -0
- /package/dist/{es/config/background/background-transaction-log.js → config/background/background-error-processor.js} +0 -0
- /package/dist/{es/config/background/background-transaction-logger.js → config/background/background-processor.js} +0 -0
- /package/dist/{es/config/cron/abstract-cron-entry.js → config/background/background-transaction-log.js} +0 -0
- /package/dist/{es/config/cron/cron-background-entry.js → config/background/background-transaction-logger.js} +0 -0
- /package/dist/{types/config → config}/cron/abstract-cron-entry.d.ts +0 -0
- /package/dist/{es/config/cron/cron-config.js → config/cron/abstract-cron-entry.js} +0 -0
- /package/dist/{es/config/dynamo-db-config.js → config/cron/cron-background-entry.js} +0 -0
- /package/dist/{es/config/epsilon-config.js → config/cron/cron-config.js} +0 -0
- /package/dist/{es/config/epsilon-lambda-event-handler.js → config/dynamo-db-config.js} +0 -0
- /package/dist/{es/config/epsilon-logger-config.js → config/epsilon-config.js} +0 -0
- /package/dist/{types/config → config}/epsilon-lambda-event-handler.d.ts +0 -0
- /package/dist/{es/config/generic-aws-event-handler-function.js → config/epsilon-lambda-event-handler.js} +0 -0
- /package/dist/{es/config/http/authorizer-function.js → config/epsilon-logger-config.js} +0 -0
- /package/dist/{types/config → config}/generic-aws-event-handler-function.d.ts +0 -0
- /package/dist/{es/config/http/epsilon-authorization-context.js → config/generic-aws-event-handler-function.js} +0 -0
- /package/dist/{es/config/http/extended-api-gateway-event.js → config/http/authorizer-function.js} +0 -0
- /package/dist/{types/config → config}/http/epsilon-authorization-context.d.ts +0 -0
- /package/dist/{es/config/http/filter-chain-context.js → config/http/epsilon-authorization-context.js} +0 -0
- /package/dist/{es/config/http/filter-function.js → config/http/extended-api-gateway-event.js} +0 -0
- /package/dist/{es/config/http/handler-function.js → config/http/filter-chain-context.js} +0 -0
- /package/dist/{es/config/http/http-config.js → config/http/filter-function.js} +0 -0
- /package/dist/{es/config/http/http-processing-config.js → config/http/handler-function.js} +0 -0
- /package/dist/{es/config/http/mapped-http-processing-config.js → config/http/http-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-aws-config.js → config/http/http-processing-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-config.js → config/http/mapped-http-processing-config.js} +0 -0
- /package/dist/{types/config → config}/http/null-returned-object-handling.d.ts +0 -0
- /package/dist/{es/config → config}/http/null-returned-object-handling.js +0 -0
- /package/dist/{types/config → config}/inter-api/inter-api-aws-config.d.ts +0 -0
- /package/dist/{es/config/inter-api/inter-api-process-mapping.js → config/inter-api/inter-api-aws-config.js} +0 -0
- /package/dist/{es/config/logging-trace-id-generator.js → config/inter-api/inter-api-config.js} +0 -0
- /package/dist/{es/config/open-api/open-api-document-components.js → config/inter-api/inter-api-process-mapping.js} +0 -0
- /package/dist/{types/config → config}/logging-trace-id-generator.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document-path.js → config/logging-trace-id-generator.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-components.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document.js → config/open-api/open-api-document-components.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-path.d.ts +0 -0
- /package/dist/{es/config/s3-config.js → config/open-api/open-api-document-path.js} +0 -0
- /package/dist/{es/config/sns-config.js → config/open-api/open-api-document.js} +0 -0
- /package/dist/{es/epsilon-instance.js → config/s3-config.js} +0 -0
- /package/dist/{es/http/auth/basic-auth-token.js → config/sns-config.js} +0 -0
- /package/dist/{types/epsilon-build-properties.d.ts → epsilon-build-properties.d.ts} +0 -0
- /package/dist/{es/http/auth/web-token-manipulator.js → epsilon-instance.js} +0 -0
- /package/dist/{es/http/route/epsilon-router.js → http/auth/basic-auth-token.js} +0 -0
- /package/dist/{es/http/route/extended-auth-response-context.js → http/auth/google-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-mapping.js → http/auth/local-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-validator-config.js → http/auth/web-token-manipulator.js} +0 -0
- /package/dist/{types/http → http}/error/epsilon-http-error.d.ts +0 -0
- /package/dist/{es/inter-api/inter-api-entry.js → http/error/epsilon-http-error.spec.d.ts} +0 -0
- /package/dist/{es/open-api-util/open-api-doc-modifications.js → http/event-util.spec.d.ts} +0 -0
- /package/dist/{types/http → http}/route/extended-auth-response-context.d.ts +0 -0
- /package/dist/{types/http → http}/route/route-validator-config.d.ts +0 -0
- /package/dist/{types/inter-api → inter-api}/inter-api-entry.d.ts +0 -0
- /package/dist/{types/local-server-cert.d.ts → local-server-cert.d.ts} +0 -0
- /package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifications.d.ts +0 -0
- /package/dist/{types/open-api-util → open-api-util}/yaml-combiner.d.ts +0 -0
- /package/dist/{types/sample → sample}/sample-server-static-files.d.ts +0 -0
- /package/dist/{types/util → util}/aws-util.d.ts +0 -0
- /package/dist/{es/util → util}/aws-util.js +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BackgroundHttpAdapterHandler = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
6
|
-
const background_process_handling_1 = require("./background-process-handling");
|
|
7
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
8
|
-
const bad_request_error_1 = require("../http/error/bad-request-error");
|
|
9
|
-
const not_found_error_1 = require("../http/error/not-found-error");
|
|
10
|
-
const ratchet_common_4 = require("@bitblit/ratchet-common");
|
|
11
|
-
class BackgroundHttpAdapterHandler {
|
|
12
|
-
constructor(backgroundConfig, modelValidator, backgroundManager, maxWaitInMsForBackgroundJobToStart = 10000) {
|
|
13
|
-
this.backgroundConfig = backgroundConfig;
|
|
14
|
-
this.modelValidator = modelValidator;
|
|
15
|
-
this.backgroundManager = backgroundManager;
|
|
16
|
-
this.maxWaitInMsForBackgroundJobToStart = maxWaitInMsForBackgroundJobToStart;
|
|
17
|
-
}
|
|
18
|
-
get httpMetaEndpoint() {
|
|
19
|
-
return this.backgroundConfig.httpMetaEndpoint;
|
|
20
|
-
}
|
|
21
|
-
get httpSubmissionPath() {
|
|
22
|
-
return this.backgroundConfig.httpSubmissionPath;
|
|
23
|
-
}
|
|
24
|
-
get httpStatusPath() {
|
|
25
|
-
return this.backgroundConfig.httpStatusEndpoint;
|
|
26
|
-
}
|
|
27
|
-
get implyTypeFromPathSuffix() {
|
|
28
|
-
return this.backgroundConfig.implyTypeFromPathSuffix;
|
|
29
|
-
}
|
|
30
|
-
async handleBackgroundStatusRequest(evt, context) {
|
|
31
|
-
ratchet_common_1.Logger.info('handleBackgroundStatusRequest called');
|
|
32
|
-
if (!this.backgroundConfig.transactionLogger) {
|
|
33
|
-
throw new bad_request_error_1.BadRequestError('Process logging not enabled');
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
const guid = ratchet_common_3.StringRatchet.trimToNull(evt.pathParameters['guid']) || ratchet_common_3.StringRatchet.trimToNull(evt.queryStringParameters['guid']);
|
|
37
|
-
if (guid) {
|
|
38
|
-
const sw = new ratchet_common_1.StopWatch();
|
|
39
|
-
let log = null;
|
|
40
|
-
while (!log && sw.elapsedMS() < this.maxWaitInMsForBackgroundJobToStart) {
|
|
41
|
-
log = await this.backgroundConfig.transactionLogger.readTransactionLog(guid);
|
|
42
|
-
if (!log) {
|
|
43
|
-
ratchet_common_1.Logger.debug('No log found yet, waiting 500 ms and retrying (%s of %d waited so far)', sw.dump(), this.maxWaitInMsForBackgroundJobToStart);
|
|
44
|
-
await ratchet_common_4.PromiseRatchet.wait(500);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (!log) {
|
|
48
|
-
throw new not_found_error_1.NotFoundError().withFormattedErrorMessage('No background result found for guid %s', guid);
|
|
49
|
-
}
|
|
50
|
-
return log;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
throw new bad_request_error_1.BadRequestError('No guid specified');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async handleBackgroundMetaRequest(evt, context) {
|
|
58
|
-
ratchet_common_1.Logger.info('handleBackgroundMetaRequest called');
|
|
59
|
-
const currentCount = await this.backgroundManager.fetchApproximateNumberOfQueueEntries();
|
|
60
|
-
const valid = this.backgroundConfig.processors.map((b) => b.typeName).filter((a) => !!a);
|
|
61
|
-
valid.sort((a, b) => a.localeCompare(b));
|
|
62
|
-
const rval = {
|
|
63
|
-
currentQueueLength: currentCount,
|
|
64
|
-
validTypes: valid,
|
|
65
|
-
backgroundManagerName: this.backgroundManager.backgroundManagerName,
|
|
66
|
-
};
|
|
67
|
-
return rval;
|
|
68
|
-
}
|
|
69
|
-
async handleBackgroundSubmission(evt, context) {
|
|
70
|
-
ratchet_common_1.Logger.info('handleBackgroundSubmission : %j (mgr:%s)', evt.parsedBody, this.backgroundManager.backgroundManagerName);
|
|
71
|
-
let rval = null;
|
|
72
|
-
const startIdx = evt.path.indexOf(this.httpSubmissionPath) + this.httpSubmissionPath.length;
|
|
73
|
-
let pathSuppliedBackgroundType = this.backgroundConfig.implyTypeFromPathSuffix
|
|
74
|
-
? evt.path.substring(startIdx).split('-').join('').toLowerCase()
|
|
75
|
-
: '';
|
|
76
|
-
if (pathSuppliedBackgroundType.includes('?')) {
|
|
77
|
-
pathSuppliedBackgroundType = pathSuppliedBackgroundType.substring(0, pathSuppliedBackgroundType.indexOf('?'));
|
|
78
|
-
}
|
|
79
|
-
if (pathSuppliedBackgroundType.includes('#')) {
|
|
80
|
-
pathSuppliedBackgroundType = pathSuppliedBackgroundType.substring(0, pathSuppliedBackgroundType.indexOf('#'));
|
|
81
|
-
}
|
|
82
|
-
const entry = evt.parsedBody || {};
|
|
83
|
-
if (ratchet_common_3.StringRatchet.trimToNull(pathSuppliedBackgroundType)) {
|
|
84
|
-
if (ratchet_common_3.StringRatchet.trimToNull(entry === null || entry === void 0 ? void 0 : entry.type) && entry.type.toLocaleLowerCase() !== pathSuppliedBackgroundType.toLocaleLowerCase()) {
|
|
85
|
-
throw new bad_request_error_1.BadRequestError('Background submission has type but does not match path supplied type');
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
entry.type = pathSuppliedBackgroundType;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
if (!ratchet_common_3.StringRatchet.trimToNull(entry === null || entry === void 0 ? void 0 : entry.type)) {
|
|
93
|
-
throw new bad_request_error_1.BadRequestError('Background submission missing type and not configured in pathed mode');
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
const foundProc = this.backgroundConfig.processors.find((s) => s.typeName.toLowerCase() === entry.type.toLowerCase());
|
|
97
|
-
const immediate = ratchet_common_2.BooleanRatchet.parseBool(evt.queryStringParameters['immediate']);
|
|
98
|
-
const startProcessor = ratchet_common_2.BooleanRatchet.parseBool(evt.queryStringParameters['startProcessor']);
|
|
99
|
-
if (foundProc) {
|
|
100
|
-
if (ratchet_common_3.StringRatchet.trimToNull(foundProc.dataSchemaName)) {
|
|
101
|
-
const errors = this.modelValidator.validate(foundProc.dataSchemaName, entry.data, false, false);
|
|
102
|
-
if (errors.length > 0) {
|
|
103
|
-
throw new bad_request_error_1.BadRequestError().withErrors(errors);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
let result = null;
|
|
107
|
-
if (immediate) {
|
|
108
|
-
result = await this.backgroundManager.fireImmediateProcessRequest(entry);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
result = await this.backgroundManager.addEntryToQueue(entry, startProcessor);
|
|
112
|
-
}
|
|
113
|
-
rval = {
|
|
114
|
-
processHandling: immediate ? background_process_handling_1.BackgroundProcessHandling.Immediate : background_process_handling_1.BackgroundProcessHandling.Queued,
|
|
115
|
-
startProcessorRequested: startProcessor,
|
|
116
|
-
success: true,
|
|
117
|
-
resultId: result,
|
|
118
|
-
error: null,
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
throw new bad_request_error_1.BadRequestError().withFormattedErrorMessage('Could not find target background processor : %s', entry.type);
|
|
123
|
-
}
|
|
124
|
-
return rval;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.BackgroundHttpAdapterHandler = BackgroundHttpAdapterHandler;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BackgroundProcessHandling = void 0;
|
|
4
|
-
var BackgroundProcessHandling;
|
|
5
|
-
(function (BackgroundProcessHandling) {
|
|
6
|
-
BackgroundProcessHandling["Queued"] = "Queued";
|
|
7
|
-
BackgroundProcessHandling["Immediate"] = "Immediate";
|
|
8
|
-
})(BackgroundProcessHandling = exports.BackgroundProcessHandling || (exports.BackgroundProcessHandling = {}));
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BackgroundValidator = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
6
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
7
|
-
class BackgroundValidator {
|
|
8
|
-
constructor(cfg, modelValidator) {
|
|
9
|
-
this.cfg = cfg;
|
|
10
|
-
this.modelValidator = modelValidator;
|
|
11
|
-
}
|
|
12
|
-
findProcessor(typeName) {
|
|
13
|
-
const rval = this.cfg.processors.find((s) => s.typeName === typeName);
|
|
14
|
-
return rval;
|
|
15
|
-
}
|
|
16
|
-
validType(type) {
|
|
17
|
-
return !!this.findProcessor(type);
|
|
18
|
-
}
|
|
19
|
-
validateEntry(entry) {
|
|
20
|
-
const rval = [];
|
|
21
|
-
if (!entry) {
|
|
22
|
-
rval.push('Entry is null');
|
|
23
|
-
}
|
|
24
|
-
else if (!ratchet_common_3.StringRatchet.trimToNull(entry.type)) {
|
|
25
|
-
rval.push('Entry type is null or empty');
|
|
26
|
-
const proc = this.findProcessor(entry.type);
|
|
27
|
-
if (!proc) {
|
|
28
|
-
rval.push('Entry type is invalid');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return rval;
|
|
32
|
-
}
|
|
33
|
-
validateEntryAndThrowException(entry) {
|
|
34
|
-
const errors = this.validateEntry(entry);
|
|
35
|
-
if (errors.length > 0) {
|
|
36
|
-
ratchet_common_1.Logger.warn('Invalid entry %j : errors : %j', entry, errors);
|
|
37
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Invalid entry %j : errors : %j', entry, errors);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static validateAndMapProcessors(processorInput, modelValidator) {
|
|
41
|
-
const rval = new Map();
|
|
42
|
-
processorInput.forEach((p, idx) => {
|
|
43
|
-
if (!p) {
|
|
44
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Null processor provided at index %d', idx);
|
|
45
|
-
}
|
|
46
|
-
if (!ratchet_common_3.StringRatchet.trimToNull(p.typeName)) {
|
|
47
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Processor at index %d defines no name', idx);
|
|
48
|
-
}
|
|
49
|
-
if (rval.has(p.typeName)) {
|
|
50
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('More than one processor defined for type %s', p.typeName);
|
|
51
|
-
}
|
|
52
|
-
rval.set(p.typeName, p);
|
|
53
|
-
});
|
|
54
|
-
return rval;
|
|
55
|
-
}
|
|
56
|
-
static validateAwsConfig(cfg) {
|
|
57
|
-
const rval = [];
|
|
58
|
-
if (!cfg) {
|
|
59
|
-
rval.push('Null config');
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
if (!cfg.notificationArn) {
|
|
63
|
-
rval.push('AWS config missing notificationArn');
|
|
64
|
-
}
|
|
65
|
-
if (!cfg.queueUrl) {
|
|
66
|
-
rval.push('AWS config missing queueUrl');
|
|
67
|
-
}
|
|
68
|
-
if ((cfg.sendNotificationOnBackgroundError || cfg.sendNotificationOnBackgroundValidationFailure) &&
|
|
69
|
-
!cfg.backgroundProcessFailureSnsArn) {
|
|
70
|
-
rval.push('At least one send notification flag set to true but no sns arn set');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return rval;
|
|
74
|
-
}
|
|
75
|
-
static validateConfig(cfg) {
|
|
76
|
-
const rval = [];
|
|
77
|
-
if (!cfg) {
|
|
78
|
-
rval.push('Null config');
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
if (!cfg.processors || cfg.processors.length === 0) {
|
|
82
|
-
rval.push('No processes specified');
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return rval;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.BackgroundValidator = BackgroundValidator;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EpsilonBackgroundProcessError = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const util_1 = tslib_1.__importDefault(require("util"));
|
|
6
|
-
class EpsilonBackgroundProcessError extends Error {
|
|
7
|
-
constructor(...errors) {
|
|
8
|
-
super(EpsilonBackgroundProcessError.combineErrorStringsWithDefault(errors));
|
|
9
|
-
Object.setPrototypeOf(this, EpsilonBackgroundProcessError.prototype);
|
|
10
|
-
this._errors = errors;
|
|
11
|
-
this[EpsilonBackgroundProcessError.EPSILON_BACKGROUND_PROCESS_ERROR_FLAG_KEY] = true;
|
|
12
|
-
}
|
|
13
|
-
static combineErrorStringsWithDefault(errors, defMessage = 'Internal Server Error') {
|
|
14
|
-
return errors && errors.length > 0 ? errors.join(',') : defMessage;
|
|
15
|
-
}
|
|
16
|
-
setFormattedErrorMessage(format, ...input) {
|
|
17
|
-
const msg = util_1.default.format(format, ...input);
|
|
18
|
-
this.errors = [msg];
|
|
19
|
-
}
|
|
20
|
-
withFormattedErrorMessage(format, ...input) {
|
|
21
|
-
this.setFormattedErrorMessage(format, ...input);
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
withErrors(errors) {
|
|
25
|
-
this.errors = errors;
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
withDetailErrorCode(detailErrorCode) {
|
|
29
|
-
this._detailErrorCode = detailErrorCode;
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
withDetails(details) {
|
|
33
|
-
this._details = details;
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
withRequestId(requestId) {
|
|
37
|
-
this._requestId = requestId;
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
withWrappedError(err) {
|
|
41
|
-
this._wrappedError = err;
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
isWrappedError() {
|
|
45
|
-
return !!this._wrappedError;
|
|
46
|
-
}
|
|
47
|
-
static wrapError(err) {
|
|
48
|
-
let rval = null;
|
|
49
|
-
if (EpsilonBackgroundProcessError.objectIsEpsilonBackgroundProcessError(err)) {
|
|
50
|
-
rval = err;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
rval = new EpsilonBackgroundProcessError(err.message).withWrappedError(err);
|
|
54
|
-
}
|
|
55
|
-
return rval;
|
|
56
|
-
}
|
|
57
|
-
static objectIsEpsilonBackgroundProcessError(obj) {
|
|
58
|
-
return obj && obj['__epsilonHttpErrorFlag'] === true;
|
|
59
|
-
}
|
|
60
|
-
set errors(value) {
|
|
61
|
-
this._errors = value || ['Internal Server Error'];
|
|
62
|
-
this.message = EpsilonBackgroundProcessError.combineErrorStringsWithDefault(this._errors);
|
|
63
|
-
}
|
|
64
|
-
get errors() {
|
|
65
|
-
return this._errors;
|
|
66
|
-
}
|
|
67
|
-
set detailErrorCode(value) {
|
|
68
|
-
this._detailErrorCode = value;
|
|
69
|
-
}
|
|
70
|
-
get detailErrorCode() {
|
|
71
|
-
return this._detailErrorCode;
|
|
72
|
-
}
|
|
73
|
-
set details(value) {
|
|
74
|
-
this._details = value;
|
|
75
|
-
}
|
|
76
|
-
get details() {
|
|
77
|
-
return this._details;
|
|
78
|
-
}
|
|
79
|
-
set requestId(value) {
|
|
80
|
-
this._requestId = value || 'MISSING';
|
|
81
|
-
}
|
|
82
|
-
get requestId() {
|
|
83
|
-
return this._requestId;
|
|
84
|
-
}
|
|
85
|
-
set wrappedError(value) {
|
|
86
|
-
this._wrappedError = value;
|
|
87
|
-
}
|
|
88
|
-
get wrappedError() {
|
|
89
|
-
return this._wrappedError;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.EpsilonBackgroundProcessError = EpsilonBackgroundProcessError;
|
|
93
|
-
EpsilonBackgroundProcessError.EPSILON_BACKGROUND_PROCESS_ERROR_FLAG_KEY = '__epsilonBackgroundProcessErrorFlag';
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractBackgroundManager = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
6
|
-
const luxon_1 = require("luxon");
|
|
7
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
8
|
-
const context_util_1 = require("../../util/context-util");
|
|
9
|
-
class AbstractBackgroundManager {
|
|
10
|
-
createEntry(type, data) {
|
|
11
|
-
const rval = {
|
|
12
|
-
type: type,
|
|
13
|
-
data: data,
|
|
14
|
-
};
|
|
15
|
-
return rval;
|
|
16
|
-
}
|
|
17
|
-
wrapEntryForInternal(entry, overrideTraceId, overrideTraceDepth) {
|
|
18
|
-
const rval = Object.assign({}, entry, {
|
|
19
|
-
createdEpochMS: new Date().getTime(),
|
|
20
|
-
guid: AbstractBackgroundManager.generateBackgroundGuid(),
|
|
21
|
-
traceId: overrideTraceId || context_util_1.ContextUtil.currentTraceId(),
|
|
22
|
-
traceDepth: overrideTraceDepth || context_util_1.ContextUtil.currentTraceDepth() + 1,
|
|
23
|
-
});
|
|
24
|
-
return rval;
|
|
25
|
-
}
|
|
26
|
-
async addEntryToQueueByParts(type, data, fireStartMessage) {
|
|
27
|
-
let rval = null;
|
|
28
|
-
const entry = this.createEntry(type, data);
|
|
29
|
-
if (entry) {
|
|
30
|
-
rval = await this.addEntryToQueue(entry, fireStartMessage);
|
|
31
|
-
}
|
|
32
|
-
return rval;
|
|
33
|
-
}
|
|
34
|
-
async addEntriesToQueue(entries, fireStartMessage) {
|
|
35
|
-
const rval = [];
|
|
36
|
-
for (let i = 0; i < entries.length; i++) {
|
|
37
|
-
try {
|
|
38
|
-
const tmp = await this.addEntryToQueue(entries[i], false);
|
|
39
|
-
rval.push(tmp);
|
|
40
|
-
}
|
|
41
|
-
catch (err) {
|
|
42
|
-
ratchet_common_1.Logger.error('Error processing %j : %s', entries[i], err);
|
|
43
|
-
rval.push(err['message']);
|
|
44
|
-
}
|
|
45
|
-
if (fireStartMessage) {
|
|
46
|
-
const fireResult = await this.fireStartProcessingRequest();
|
|
47
|
-
ratchet_common_1.Logger.silly('FireResult : %s', fireResult);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return rval;
|
|
51
|
-
}
|
|
52
|
-
async fireImmediateProcessRequestByParts(type, data) {
|
|
53
|
-
let rval = null;
|
|
54
|
-
const entry = this.createEntry(type, data);
|
|
55
|
-
if (entry) {
|
|
56
|
-
rval = await this.fireImmediateProcessRequest(entry);
|
|
57
|
-
}
|
|
58
|
-
return rval;
|
|
59
|
-
}
|
|
60
|
-
static generateBackgroundGuid(targetEpochMS = new Date().getTime()) {
|
|
61
|
-
const dt = luxon_1.DateTime.fromMillis(targetEpochMS);
|
|
62
|
-
return dt.toFormat('yyyy-MM-dd-HH-mm-ss-') + ratchet_common_2.StringRatchet.createType4Guid();
|
|
63
|
-
}
|
|
64
|
-
static backgroundGuidToPath(prefix, guid) {
|
|
65
|
-
let path = ratchet_common_2.StringRatchet.trimToEmpty(prefix);
|
|
66
|
-
if (path.length && !path.endsWith('/')) {
|
|
67
|
-
path += '/';
|
|
68
|
-
}
|
|
69
|
-
path += guid.substring(0, 4) + '/' + guid.substring(5, 7) + '/' + guid.substring(8, 10) + '/';
|
|
70
|
-
path += guid + '.json';
|
|
71
|
-
return path;
|
|
72
|
-
}
|
|
73
|
-
static pathToBackgroundGuid(prefix, path) {
|
|
74
|
-
ratchet_common_3.RequireRatchet.notNullOrUndefined(path, 'path');
|
|
75
|
-
let start = 0;
|
|
76
|
-
if (!path.endsWith('.json')) {
|
|
77
|
-
ratchet_common_1.ErrorRatchet.throwFormattedErr('Cannot extract guid, does not end with .json : %s : %s', path, prefix);
|
|
78
|
-
}
|
|
79
|
-
if (ratchet_common_2.StringRatchet.trimToNull(prefix)) {
|
|
80
|
-
if (!path.startsWith(prefix)) {
|
|
81
|
-
ratchet_common_1.ErrorRatchet.throwFormattedErr('Cannot extract guid, does not start with prefix : %s : %s', path, prefix);
|
|
82
|
-
}
|
|
83
|
-
start = prefix.length;
|
|
84
|
-
if (!prefix.endsWith('/')) {
|
|
85
|
-
start++;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
start += 11;
|
|
89
|
-
return path.substring(start, path.length - 5);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.AbstractBackgroundManager = AbstractBackgroundManager;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AwsSqsSnsBackgroundManager = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
6
|
-
const epsilon_constants_1 = require("../../epsilon-constants");
|
|
7
|
-
const abstract_background_manager_1 = require("./abstract-background-manager");
|
|
8
|
-
const background_validator_1 = require("../background-validator");
|
|
9
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
10
|
-
const client_sns_1 = require("@aws-sdk/client-sns");
|
|
11
|
-
class AwsSqsSnsBackgroundManager extends abstract_background_manager_1.AbstractBackgroundManager {
|
|
12
|
-
constructor(_awsConfig, _sqs, _sns) {
|
|
13
|
-
super();
|
|
14
|
-
this._awsConfig = _awsConfig;
|
|
15
|
-
this._sqs = _sqs;
|
|
16
|
-
this._sns = _sns;
|
|
17
|
-
const cfgErrors = background_validator_1.BackgroundValidator.validateAwsConfig(_awsConfig);
|
|
18
|
-
if (cfgErrors.length) {
|
|
19
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Cannot start - invalid AWS config : %j', cfgErrors);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
get backgroundManagerName() {
|
|
23
|
-
return 'AwsSqsSnsBackgroundManager';
|
|
24
|
-
}
|
|
25
|
-
get awsConfig() {
|
|
26
|
-
return this._awsConfig;
|
|
27
|
-
}
|
|
28
|
-
get sqs() {
|
|
29
|
-
return this._sqs;
|
|
30
|
-
}
|
|
31
|
-
get sns() {
|
|
32
|
-
return this._sns;
|
|
33
|
-
}
|
|
34
|
-
async addEntryToQueue(entry, fireStartMessage) {
|
|
35
|
-
try {
|
|
36
|
-
const wrapped = this.wrapEntryForInternal(entry);
|
|
37
|
-
const rval = wrapped.guid;
|
|
38
|
-
const params = {
|
|
39
|
-
DelaySeconds: 0,
|
|
40
|
-
MessageBody: JSON.stringify(wrapped),
|
|
41
|
-
MessageGroupId: entry.type,
|
|
42
|
-
QueueUrl: this.awsConfig.queueUrl,
|
|
43
|
-
};
|
|
44
|
-
ratchet_common_1.Logger.info('Add entry to queue (remote) : %j : Start : %s', params, fireStartMessage);
|
|
45
|
-
const result = await this.sqs.send(new client_sqs_1.SendMessageCommand(params));
|
|
46
|
-
if (fireStartMessage) {
|
|
47
|
-
const fireResult = await this.fireStartProcessingRequest();
|
|
48
|
-
ratchet_common_1.Logger.silly('FireResult : %s', fireResult);
|
|
49
|
-
}
|
|
50
|
-
ratchet_common_1.Logger.info('Background process %s using message id %s', rval, result.MessageId);
|
|
51
|
-
return rval;
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
ratchet_common_1.Logger.error('Error inserting background entry into SQS queue : %j', error);
|
|
55
|
-
throw new Error('Error inserting background entry into SQS queue : ' + error['code'] + ' : ' + error['name']);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async fireImmediateProcessRequest(entry) {
|
|
59
|
-
let rval = null;
|
|
60
|
-
const wrapped = this.wrapEntryForInternal(entry);
|
|
61
|
-
rval = wrapped.guid;
|
|
62
|
-
try {
|
|
63
|
-
ratchet_common_1.Logger.info('Fire immediately (remote) : %j ', entry);
|
|
64
|
-
const toWrite = {
|
|
65
|
-
type: epsilon_constants_1.EpsilonConstants.BACKGROUND_SNS_IMMEDIATE_RUN_FLAG,
|
|
66
|
-
backgroundEntry: wrapped,
|
|
67
|
-
};
|
|
68
|
-
const msg = JSON.stringify(toWrite);
|
|
69
|
-
const snsId = await this.writeMessageToSnsTopic(msg);
|
|
70
|
-
ratchet_common_1.Logger.debug('Background guid %s Wrote message : %s to SNS : %s', rval, msg, snsId);
|
|
71
|
-
}
|
|
72
|
-
catch (err) {
|
|
73
|
-
ratchet_common_1.Logger.error('Failed to fireImmediateProcessRequest : %s', err, err);
|
|
74
|
-
}
|
|
75
|
-
return rval;
|
|
76
|
-
}
|
|
77
|
-
async fireStartProcessingRequest() {
|
|
78
|
-
let rval = null;
|
|
79
|
-
try {
|
|
80
|
-
ratchet_common_1.Logger.info('Fire start processing request (remote)');
|
|
81
|
-
rval = await this.writeMessageToSnsTopic(epsilon_constants_1.EpsilonConstants.BACKGROUND_SNS_START_MARKER);
|
|
82
|
-
}
|
|
83
|
-
catch (err) {
|
|
84
|
-
ratchet_common_1.Logger.error('Failed to fireStartProcessingRequest : %s', err, err);
|
|
85
|
-
}
|
|
86
|
-
return rval;
|
|
87
|
-
}
|
|
88
|
-
async fetchApproximateNumberOfQueueEntries() {
|
|
89
|
-
let rval = null;
|
|
90
|
-
const all = await this.fetchCurrentQueueAttributes();
|
|
91
|
-
rval = ratchet_common_1.NumberRatchet.safeNumber(all.Attributes['ApproximateNumberOfMessages']);
|
|
92
|
-
return rval;
|
|
93
|
-
}
|
|
94
|
-
async fetchCurrentQueueAttributes() {
|
|
95
|
-
let rval = null;
|
|
96
|
-
const req = {
|
|
97
|
-
AttributeNames: ['All'],
|
|
98
|
-
QueueUrl: this.awsConfig.queueUrl,
|
|
99
|
-
};
|
|
100
|
-
rval = await this.sqs.send(new client_sqs_1.GetQueueAttributesCommand(req));
|
|
101
|
-
return rval;
|
|
102
|
-
}
|
|
103
|
-
async writeMessageToSnsTopic(message) {
|
|
104
|
-
let rval = null;
|
|
105
|
-
const params = {
|
|
106
|
-
Message: message,
|
|
107
|
-
TopicArn: this.awsConfig.notificationArn,
|
|
108
|
-
};
|
|
109
|
-
ratchet_common_1.Logger.debug('Writing message to SNS topic : j', params);
|
|
110
|
-
const result = await this.sns.send(new client_sns_1.PublishCommand(params));
|
|
111
|
-
rval = result.MessageId;
|
|
112
|
-
return rval;
|
|
113
|
-
}
|
|
114
|
-
async takeEntryFromBackgroundQueue() {
|
|
115
|
-
const rval = [];
|
|
116
|
-
const params = {
|
|
117
|
-
MaxNumberOfMessages: 1,
|
|
118
|
-
QueueUrl: this.awsConfig.queueUrl,
|
|
119
|
-
VisibilityTimeout: 300,
|
|
120
|
-
WaitTimeSeconds: 0,
|
|
121
|
-
};
|
|
122
|
-
const message = await this.sqs.send(new client_sqs_1.ReceiveMessageCommand(params));
|
|
123
|
-
if (message && message.Messages && message.Messages.length > 0) {
|
|
124
|
-
for (let i = 0; i < message.Messages.length; i++) {
|
|
125
|
-
const m = message.Messages[i];
|
|
126
|
-
try {
|
|
127
|
-
const parsedBody = JSON.parse(m.Body);
|
|
128
|
-
if (!parsedBody.type) {
|
|
129
|
-
ratchet_common_1.Logger.warn('Dropping invalid background entry : %j', parsedBody);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
rval.push(parsedBody);
|
|
133
|
-
}
|
|
134
|
-
ratchet_common_1.Logger.debug('Removing message from queue');
|
|
135
|
-
const delParams = {
|
|
136
|
-
QueueUrl: this.awsConfig.queueUrl,
|
|
137
|
-
ReceiptHandle: m.ReceiptHandle,
|
|
138
|
-
};
|
|
139
|
-
const delResult = await this.sqs.send(new client_sqs_1.DeleteMessageCommand(delParams));
|
|
140
|
-
ratchet_common_1.Logger.silly('Delete result : %j', delResult);
|
|
141
|
-
}
|
|
142
|
-
catch (err) {
|
|
143
|
-
ratchet_common_1.Logger.warn('Error parsing message, dropping : %j', m);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
ratchet_common_1.Logger.debug('No messages found (likely end of recursion)');
|
|
149
|
-
}
|
|
150
|
-
return rval;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
exports.AwsSqsSnsBackgroundManager = AwsSqsSnsBackgroundManager;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SingleThreadLocalBackgroundManager = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
6
|
-
const abstract_background_manager_1 = require("./abstract-background-manager");
|
|
7
|
-
class SingleThreadLocalBackgroundManager extends abstract_background_manager_1.AbstractBackgroundManager {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this._localBus = new rxjs_1.Subject();
|
|
11
|
-
}
|
|
12
|
-
get backgroundManagerName() {
|
|
13
|
-
return 'SingleThreadLocalBackgroundManager';
|
|
14
|
-
}
|
|
15
|
-
immediateProcessQueue() {
|
|
16
|
-
return this._localBus;
|
|
17
|
-
}
|
|
18
|
-
async addEntryToQueue(entry, fireStartMessage) {
|
|
19
|
-
const wrapped = this.wrapEntryForInternal(entry);
|
|
20
|
-
const rval = wrapped.guid;
|
|
21
|
-
ratchet_common_1.Logger.info('Add entry to queue (local) : %j : Start : %s', entry, fireStartMessage);
|
|
22
|
-
this._localBus.next(wrapped);
|
|
23
|
-
return rval;
|
|
24
|
-
}
|
|
25
|
-
async fireImmediateProcessRequest(entry) {
|
|
26
|
-
let rval = null;
|
|
27
|
-
const wrapped = this.wrapEntryForInternal(entry);
|
|
28
|
-
rval = wrapped.guid;
|
|
29
|
-
ratchet_common_1.Logger.info('Fire immediately (local) : %j ', entry);
|
|
30
|
-
this._localBus.next(wrapped);
|
|
31
|
-
return rval;
|
|
32
|
-
}
|
|
33
|
-
async fireStartProcessingRequest() {
|
|
34
|
-
let rval = null;
|
|
35
|
-
ratchet_common_1.Logger.info('Fire start processing request (local, ignored)');
|
|
36
|
-
rval = 'NO-OP';
|
|
37
|
-
return rval;
|
|
38
|
-
}
|
|
39
|
-
async fetchApproximateNumberOfQueueEntries() {
|
|
40
|
-
let rval = null;
|
|
41
|
-
rval = 0;
|
|
42
|
-
return rval;
|
|
43
|
-
}
|
|
44
|
-
async takeEntryFromBackgroundQueue() {
|
|
45
|
-
ratchet_common_1.Logger.info('Called takeEntryFromBackgroundQueue on SingleThreadedLocal - returning empty');
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.SingleThreadLocalBackgroundManager = SingleThreadLocalBackgroundManager;
|