@bitblit/ratchet-epsilon-common 4.0.99-alpha → 4.0.103-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/bin/cli.js +10 -0
- package/{dist/types → lib}/background/background-dynamo-log-table-handler.d.ts +3 -3
- package/{dist/es → lib}/background/background-dynamo-log-table-handler.js +6 -2
- package/{dist/types → lib}/background/background-execution-event.d.ts +1 -1
- package/{dist/types → lib}/background/background-execution-listener.d.ts +1 -1
- package/{dist/types → lib}/background/background-handler.d.ts +5 -9
- package/{dist/es → lib}/background/background-handler.js +15 -7
- package/{dist/types → lib}/background/background-http-adapter-handler.d.ts +7 -11
- package/{dist/es → lib}/background/background-http-adapter-handler.js +13 -8
- package/{dist/types → lib}/background/background-queue-response-internal.d.ts +1 -1
- package/{dist/types → lib}/background/background-validator.d.ts +5 -8
- package/{dist/es → lib}/background/background-validator.js +5 -3
- package/{dist/es → lib}/background/epsilon-background-process-error.js +6 -1
- package/{dist/types → lib}/background/internal-background-entry.d.ts +1 -1
- package/{dist/types → lib}/background/manager/abstract-background-manager.d.ts +3 -10
- package/{dist/es → lib}/background/manager/abstract-background-manager.js +5 -4
- package/{dist/types → lib}/background/manager/aws-sqs-sns-background-manager.d.ts +4 -11
- package/{dist/es → lib}/background/manager/aws-sqs-sns-background-manager.js +9 -5
- package/{dist/types → lib}/background/manager/background-manager-like.d.ts +2 -9
- package/lib/background/manager/background-manager.spec.js +73 -0
- package/{dist/types → lib}/background/manager/single-thread-local-background-manager.d.ts +3 -10
- package/{dist/es → lib}/background/manager/single-thread-local-background-manager.js +6 -6
- package/{dist/types → lib}/background/s3-background-transaction-logger.d.ts +2 -2
- package/{dist/es → lib}/background/s3-background-transaction-logger.js +6 -3
- package/{dist/types → lib}/build/ratchet-epsilon-common-info.d.ts +1 -1
- package/{dist/types → lib}/built-in/background/echo-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/echo-processor.js +4 -3
- package/{dist/types → lib}/built-in/background/log-and-enqueue-echo-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/log-and-enqueue-echo-processor.js +2 -2
- package/{dist/types → lib}/built-in/background/log-message-background-error-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/log-message-background-error-processor.js +1 -1
- package/{dist/types → lib}/built-in/background/no-op-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/no-op-processor.js +1 -1
- package/{dist/types → lib}/built-in/background/retry-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/retry-processor.js +8 -4
- package/{dist/types → lib}/built-in/background/sample-delay-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/sample-delay-processor.js +2 -1
- package/{dist/types → lib}/built-in/background/sample-input-validated-processor.d.ts +3 -3
- package/{dist/es → lib}/built-in/background/sample-input-validated-processor.js +1 -1
- package/{dist/es → lib}/built-in/built-in-trace-id-generators.js +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-authorizer-function.d.ts +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-config.d.ts +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-group-selection-function.d.ts +1 -1
- package/{dist/types → lib}/built-in/daemon/daemon-handler.d.ts +6 -12
- package/{dist/es → lib}/built-in/daemon/daemon-handler.js +9 -8
- package/lib/built-in/daemon/daemon-process-state-list.d.ts +5 -0
- package/{dist/types → lib}/built-in/http/apollo-filter.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/apollo-filter.js +6 -5
- package/{dist/types → lib}/built-in/http/built-in-auth-filters.d.ts +3 -3
- package/{dist/es → lib}/built-in/http/built-in-auth-filters.js +5 -5
- package/{dist/types → lib}/built-in/http/built-in-authorizers.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-authorizers.js +1 -1
- package/{dist/types → lib}/built-in/http/built-in-filters.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-filters.js +9 -9
- package/{dist/types → lib}/built-in/http/built-in-handlers.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-handlers.js +10 -10
- package/{dist/types → lib}/built-in/http/log-level-manipulation-filter.d.ts +1 -4
- package/{dist/es → lib}/built-in/http/log-level-manipulation-filter.js +2 -2
- package/{dist/types → lib}/built-in/http/run-handler-as-filter.d.ts +5 -5
- package/{dist/es → lib}/built-in/http/run-handler-as-filter.js +8 -8
- package/lib/built-in/http/run-handler-as-filter.spec.js +40 -0
- package/{dist/types → lib}/cli-bootstrap/ratchet-cli-handler.d.ts +2 -2
- package/{dist/es → lib}/cli-bootstrap/ratchet-cli-handler.js +6 -6
- package/lib/cli-bootstrap/run-background-process-from-command-line.d.ts +3 -0
- package/{dist/es → lib}/cli-bootstrap/run-background-process-from-command-line.js +2 -2
- package/{dist/types → lib}/config/background/background-config.d.ts +4 -4
- package/{dist/types → lib}/config/background/background-error-processor.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-processor.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-transaction-log.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-transaction-logger.d.ts +1 -1
- package/lib/config/cron/cron-background-entry.d.ts +6 -0
- package/{dist/types → lib}/config/cron/cron-config.d.ts +1 -1
- package/{dist/types → lib}/config/dynamo-db-config.d.ts +1 -1
- package/{dist/types → lib}/config/epsilon-config.d.ts +8 -8
- package/{dist/types → lib}/config/epsilon-logger-config.d.ts +3 -2
- package/{dist/types → lib}/config/http/authorizer-function.d.ts +3 -3
- package/{dist/types → lib}/config/http/extended-api-gateway-event.d.ts +1 -1
- package/{dist/types → lib}/config/http/filter-chain-context.d.ts +4 -4
- package/{dist/types → lib}/config/http/filter-function.d.ts +1 -1
- package/{dist/types → lib}/config/http/handler-function.d.ts +1 -1
- package/{dist/types → lib}/config/http/http-config.d.ts +5 -5
- package/{dist/types → lib}/config/http/http-processing-config.d.ts +2 -2
- package/{dist/types → lib}/config/http/mapped-http-processing-config.d.ts +1 -1
- package/{dist/types → lib}/config/inter-api/inter-api-config.d.ts +2 -2
- package/lib/config/inter-api/inter-api-process-mapping.d.ts +6 -0
- package/{dist/types → lib}/config/open-api/open-api-document.d.ts +2 -2
- package/{dist/types → lib}/config/s3-config.d.ts +1 -1
- package/{dist/types → lib}/config/sns-config.d.ts +1 -1
- package/{dist/es → lib}/epsilon-build-properties.js +1 -1
- package/{dist/types → lib}/epsilon-constants.d.ts +1 -1
- package/{dist/es → lib}/epsilon-constants.js +14 -13
- package/{dist/types → lib}/epsilon-global-handler.d.ts +3 -6
- package/{dist/es → lib}/epsilon-global-handler.js +29 -24
- package/{dist/types → lib}/epsilon-instance.d.ts +6 -11
- package/lib/epsilon-logging-extension-processor.d.ts +6 -0
- package/{dist/es → lib}/epsilon-logging-extension-processor.js +1 -1
- package/{dist/types → lib}/http/auth/api-gateway-adapter-authentication-handler.d.ts +0 -10
- package/{dist/es → lib}/http/auth/api-gateway-adapter-authentication-handler.js +4 -3
- package/{dist/types → lib}/http/auth/auth0-web-token-manipulator.d.ts +2 -2
- package/{dist/es → lib}/http/auth/auth0-web-token-manipulator.js +6 -1
- package/{dist/types → lib}/http/auth/basic-auth-token.d.ts +0 -3
- package/{dist/types → lib}/http/auth/google-web-token-manipulator.d.ts +2 -2
- package/{dist/es → lib}/http/auth/google-web-token-manipulator.js +6 -3
- package/lib/http/auth/google-web-token-manipulator.spec.js +10 -0
- package/{dist/types → lib}/http/auth/jwt-ratchet-local-web-token-manipulator.d.ts +3 -5
- package/{dist/es → lib}/http/auth/jwt-ratchet-local-web-token-manipulator.js +5 -3
- package/{dist/types → lib}/http/auth/local-web-token-manipulator.d.ts +4 -5
- package/{dist/es → lib}/http/auth/local-web-token-manipulator.js +9 -5
- package/lib/http/auth/local-web-token-manipulator.spec.js +24 -0
- package/{dist/types → lib}/http/auth/web-token-manipulator.d.ts +1 -4
- package/{dist/types → lib}/http/error/bad-gateway.d.ts +1 -1
- package/{dist/es → lib}/http/error/bad-gateway.js +2 -2
- package/{dist/types → lib}/http/error/bad-request-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/bad-request-error.js +2 -2
- package/{dist/types → lib}/http/error/conflict-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/conflict-error.js +2 -2
- package/{dist/es → lib}/http/error/epsilon-http-error.js +9 -3
- package/lib/http/error/epsilon-http-error.spec.js +11 -0
- package/{dist/types → lib}/http/error/forbidden-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/forbidden-error.js +2 -2
- package/{dist/types → lib}/http/error/gateway-timeout.d.ts +1 -1
- package/{dist/es → lib}/http/error/gateway-timeout.js +2 -2
- package/{dist/types → lib}/http/error/method-not-allowed-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/method-not-allowed-error.js +2 -2
- package/{dist/types → lib}/http/error/misconfigured-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/misconfigured-error.js +2 -2
- package/{dist/types → lib}/http/error/not-found-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/not-found-error.js +2 -2
- package/{dist/types → lib}/http/error/not-implemented.d.ts +1 -1
- package/{dist/es → lib}/http/error/not-implemented.js +2 -2
- package/{dist/types → lib}/http/error/request-timeout-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/request-timeout-error.js +2 -2
- package/{dist/types → lib}/http/error/service-unavailable.d.ts +1 -1
- package/{dist/es → lib}/http/error/service-unavailable.js +2 -2
- package/{dist/types → lib}/http/error/too-many-requests-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/too-many-requests-error.js +2 -2
- package/{dist/types → lib}/http/error/unauthorized-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/unauthorized-error.js +2 -2
- package/{dist/types → lib}/http/event-util.d.ts +3 -25
- package/{dist/es → lib}/http/event-util.js +9 -8
- package/lib/http/event-util.spec.js +157 -0
- package/{dist/types → lib}/http/response-util.d.ts +2 -2
- package/{dist/es → lib}/http/response-util.js +2 -2
- package/lib/http/response-util.spec.d.ts +1 -0
- package/lib/http/response-util.spec.js +88 -0
- package/lib/http/route/epsilon-router.d.ts +8 -0
- package/lib/http/route/epsilon-router.js +1 -0
- package/lib/http/route/extended-auth-response-context.js +1 -0
- package/{dist/types → lib}/http/route/route-mapping.d.ts +3 -3
- package/lib/http/route/route-mapping.js +1 -0
- package/lib/http/route/route-validator-config.js +1 -0
- package/{dist/types → lib}/http/route/router-util.d.ts +9 -12
- package/{dist/es → lib}/http/route/router-util.js +10 -10
- package/lib/http/route/router-util.spec.d.ts +1 -0
- package/lib/http/route/router-util.spec.js +23 -0
- package/{dist/types → lib}/http/web-handler.d.ts +4 -7
- package/{dist/es → lib}/http/web-handler.js +11 -10
- package/lib/http/web-handler.spec.d.ts +1 -0
- package/lib/http/web-handler.spec.js +32 -0
- package/{dist/types → lib}/http/web-v2-handler.d.ts +2 -5
- package/{dist/es → lib}/http/web-v2-handler.js +3 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/inter-api/inter-api-entry.js +1 -0
- package/{dist/types → lib}/inter-api/inter-api-util.d.ts +3 -3
- package/{dist/es → lib}/inter-api/inter-api-util.js +6 -5
- package/lib/inter-api/inter-api-util.spec.d.ts +1 -0
- package/lib/inter-api/inter-api-util.spec.js +61 -0
- package/{dist/types → lib}/inter-api-manager.d.ts +2 -5
- package/{dist/es → lib}/inter-api-manager.js +5 -3
- package/{dist/types → lib}/lambda-event-handler/cron-epsilon-lambda-event-handler.d.ts +5 -5
- package/{dist/es → lib}/lambda-event-handler/cron-epsilon-lambda-event-handler.js +5 -4
- package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
- package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.js +50 -0
- package/{dist/types → lib}/lambda-event-handler/dynamo-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/dynamo-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/lambda-event-handler/inter-api-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/inter-api-epsilon-lambda-event-handler.js +2 -1
- package/{dist/types → lib}/lambda-event-handler/s3-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/s3-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/local-container-server.d.ts +1 -4
- package/{dist/es → lib}/local-container-server.js +8 -4
- package/lib/local-server-cert.js +67 -0
- package/{dist/types → lib}/local-server.d.ts +2 -5
- package/{dist/es → lib}/local-server.js +11 -8
- package/lib/open-api-util/open-api-doc-modifications.js +1 -0
- package/{dist/types → lib}/open-api-util/open-api-doc-modifier.d.ts +1 -4
- package/{dist/es → lib}/open-api-util/open-api-doc-modifier.js +2 -1
- package/lib/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
- package/lib/open-api-util/open-api-doc-modifier.spec.js +16 -0
- package/{dist/es → lib}/open-api-util/yaml-combiner.js +2 -2
- package/lib/open-api-util/yaml-combiner.spec.d.ts +1 -0
- package/lib/open-api-util/yaml-combiner.spec.js +22 -0
- package/{dist/types → lib}/sample/sample-server-components.d.ts +2 -2
- package/{dist/es → lib}/sample/sample-server-components.js +25 -24
- package/lib/sample/sample-server-static-files.js +593 -0
- package/{dist/types → lib}/sample/test-error-server.d.ts +1 -4
- package/{dist/es → lib}/sample/test-error-server.js +4 -2
- package/{dist/types → lib}/util/context-util.d.ts +3 -3
- package/{dist/es → lib}/util/context-util.js +11 -5
- package/{dist/types → lib}/util/cron-util.d.ts +2 -2
- package/{dist/es → lib}/util/cron-util.js +3 -3
- package/lib/util/cron-util.spec.d.ts +1 -0
- package/lib/util/cron-util.spec.js +124 -0
- package/{dist/types → lib}/util/epsilon-config-parser.d.ts +6 -6
- package/{dist/es → lib}/util/epsilon-config-parser.js +9 -9
- package/package.json +16 -19
- 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/includes/cli.js +0 -12
- /package/{dist/types → lib}/background/background-entry.d.ts +0 -0
- /package/{dist/es → lib}/background/background-entry.js +0 -0
- /package/{dist/types → lib}/background/background-execution-event-type.d.ts +0 -0
- /package/{dist/es → lib}/background/background-execution-event-type.js +0 -0
- /package/{dist/es → lib}/background/background-execution-event.js +0 -0
- /package/{dist/es → lib}/background/background-execution-listener.js +0 -0
- /package/{dist/types → lib}/background/background-meta-response-internal.d.ts +0 -0
- /package/{dist/es → lib}/background/background-meta-response-internal.js +0 -0
- /package/{dist/types → lib}/background/background-process-handling.d.ts +0 -0
- /package/{dist/es → lib}/background/background-process-handling.js +0 -0
- /package/{dist/types → lib}/background/background-process-log-table-entry.d.ts +0 -0
- /package/{dist/es → lib}/background/background-process-log-table-entry.js +0 -0
- /package/{dist/es → lib}/background/background-queue-response-internal.js +0 -0
- /package/{dist/types → lib}/background/epsilon-background-process-error.d.ts +0 -0
- /package/{dist/es → lib}/background/internal-background-entry.js +0 -0
- /package/{dist/es → lib}/background/manager/background-manager-like.js +0 -0
- /package/{dist/es/built-in/background/sample-input-validated-processor-data.js → lib/background/manager/background-manager.spec.d.ts} +0 -0
- /package/{dist/es → lib}/build/ratchet-epsilon-common-info.js +0 -0
- /package/{dist/types → lib}/built-in/background/sample-input-validated-processor-data.d.ts +0 -0
- /package/{dist/es/built-in/daemon/daemon-authorizer-function.js → lib/built-in/background/sample-input-validated-processor-data.js} +0 -0
- /package/{dist/types → lib}/built-in/built-in-trace-id-generators.d.ts +0 -0
- /package/{dist/es/built-in/daemon/daemon-config.js → lib/built-in/daemon/daemon-authorizer-function.js} +0 -0
- /package/{dist/es/built-in/daemon/daemon-group-selection-function.js → lib/built-in/daemon/daemon-config.js} +0 -0
- /package/{dist/es/built-in/daemon/daemon-process-state-list.js → lib/built-in/daemon/daemon-group-selection-function.js} +0 -0
- /package/{dist/es/config/background/background-aws-config.js → lib/built-in/daemon/daemon-process-state-list.js} +0 -0
- /package/{dist/es/config/background/background-config.js → lib/built-in/http/run-handler-as-filter.spec.d.ts} +0 -0
- /package/{dist/types → lib}/config/background/background-aws-config.d.ts +0 -0
- /package/{dist/es/config/background/background-error-processor.js → lib/config/background/background-aws-config.js} +0 -0
- /package/{dist/es/config/background/background-processor.js → lib/config/background/background-config.js} +0 -0
- /package/{dist/es/config/background/background-transaction-log.js → lib/config/background/background-error-processor.js} +0 -0
- /package/{dist/es/config/background/background-transaction-logger.js → lib/config/background/background-processor.js} +0 -0
- /package/{dist/es/config/cron/abstract-cron-entry.js → lib/config/background/background-transaction-log.js} +0 -0
- /package/{dist/es/config/cron/cron-background-entry.js → lib/config/background/background-transaction-logger.js} +0 -0
- /package/{dist/types → lib}/config/cron/abstract-cron-entry.d.ts +0 -0
- /package/{dist/es/config/cron/cron-config.js → lib/config/cron/abstract-cron-entry.js} +0 -0
- /package/{dist/es/config/dynamo-db-config.js → lib/config/cron/cron-background-entry.js} +0 -0
- /package/{dist/es/config/epsilon-config.js → lib/config/cron/cron-config.js} +0 -0
- /package/{dist/es/config/epsilon-lambda-event-handler.js → lib/config/dynamo-db-config.js} +0 -0
- /package/{dist/es/config/epsilon-logger-config.js → lib/config/epsilon-config.js} +0 -0
- /package/{dist/types → lib}/config/epsilon-lambda-event-handler.d.ts +0 -0
- /package/{dist/es/config/generic-aws-event-handler-function.js → lib/config/epsilon-lambda-event-handler.js} +0 -0
- /package/{dist/es/config/http/authorizer-function.js → lib/config/epsilon-logger-config.js} +0 -0
- /package/{dist/types → lib}/config/generic-aws-event-handler-function.d.ts +0 -0
- /package/{dist/es/config/http/epsilon-authorization-context.js → lib/config/generic-aws-event-handler-function.js} +0 -0
- /package/{dist/es/config/http/extended-api-gateway-event.js → lib/config/http/authorizer-function.js} +0 -0
- /package/{dist/types → lib}/config/http/epsilon-authorization-context.d.ts +0 -0
- /package/{dist/es/config/http/filter-chain-context.js → lib/config/http/epsilon-authorization-context.js} +0 -0
- /package/{dist/es/config/http/filter-function.js → lib/config/http/extended-api-gateway-event.js} +0 -0
- /package/{dist/es/config/http/handler-function.js → lib/config/http/filter-chain-context.js} +0 -0
- /package/{dist/es/config/http/http-config.js → lib/config/http/filter-function.js} +0 -0
- /package/{dist/es/config/http/http-processing-config.js → lib/config/http/handler-function.js} +0 -0
- /package/{dist/es/config/http/mapped-http-processing-config.js → lib/config/http/http-config.js} +0 -0
- /package/{dist/es/config/inter-api/inter-api-aws-config.js → lib/config/http/http-processing-config.js} +0 -0
- /package/{dist/es/config/inter-api/inter-api-config.js → lib/config/http/mapped-http-processing-config.js} +0 -0
- /package/{dist/types → lib}/config/http/null-returned-object-handling.d.ts +0 -0
- /package/{dist/es → lib}/config/http/null-returned-object-handling.js +0 -0
- /package/{dist/types → lib}/config/inter-api/inter-api-aws-config.d.ts +0 -0
- /package/{dist/es/config/inter-api/inter-api-process-mapping.js → lib/config/inter-api/inter-api-aws-config.js} +0 -0
- /package/{dist/es/config/logging-trace-id-generator.js → lib/config/inter-api/inter-api-config.js} +0 -0
- /package/{dist/es/config/open-api/open-api-document-components.js → lib/config/inter-api/inter-api-process-mapping.js} +0 -0
- /package/{dist/types → lib}/config/logging-trace-id-generator.d.ts +0 -0
- /package/{dist/es/config/open-api/open-api-document-path.js → lib/config/logging-trace-id-generator.js} +0 -0
- /package/{dist/types → lib}/config/open-api/open-api-document-components.d.ts +0 -0
- /package/{dist/es/config/open-api/open-api-document.js → lib/config/open-api/open-api-document-components.js} +0 -0
- /package/{dist/types → lib}/config/open-api/open-api-document-path.d.ts +0 -0
- /package/{dist/es/config/s3-config.js → lib/config/open-api/open-api-document-path.js} +0 -0
- /package/{dist/es/config/sns-config.js → lib/config/open-api/open-api-document.js} +0 -0
- /package/{dist/es/epsilon-instance.js → lib/config/s3-config.js} +0 -0
- /package/{dist/es/http/auth/basic-auth-token.js → lib/config/sns-config.js} +0 -0
- /package/{dist/types → lib}/epsilon-build-properties.d.ts +0 -0
- /package/{dist/es/http/auth/web-token-manipulator.js → lib/epsilon-instance.js} +0 -0
- /package/{dist/es/http/route/epsilon-router.js → lib/http/auth/basic-auth-token.js} +0 -0
- /package/{dist/es/http/route/extended-auth-response-context.js → lib/http/auth/google-web-token-manipulator.spec.d.ts} +0 -0
- /package/{dist/es/http/route/route-mapping.js → lib/http/auth/local-web-token-manipulator.spec.d.ts} +0 -0
- /package/{dist/es/http/route/route-validator-config.js → lib/http/auth/web-token-manipulator.js} +0 -0
- /package/{dist/types → lib}/http/error/epsilon-http-error.d.ts +0 -0
- /package/{dist/es/inter-api/inter-api-entry.js → lib/http/error/epsilon-http-error.spec.d.ts} +0 -0
- /package/{dist/es/open-api-util/open-api-doc-modifications.js → lib/http/event-util.spec.d.ts} +0 -0
- /package/{dist/types → lib}/http/route/extended-auth-response-context.d.ts +0 -0
- /package/{dist/types → lib}/http/route/route-validator-config.d.ts +0 -0
- /package/{dist/types → lib}/inter-api/inter-api-entry.d.ts +0 -0
- /package/{dist/types → lib}/local-server-cert.d.ts +0 -0
- /package/{dist/types → lib}/open-api-util/open-api-doc-modifications.d.ts +0 -0
- /package/{dist/types → lib}/open-api-util/yaml-combiner.d.ts +0 -0
- /package/{dist/types → lib}/sample/sample-server-static-files.d.ts +0 -0
- /package/{dist/types → lib}/util/aws-util.d.ts +0 -0
- /package/{dist/es → lib}/util/aws-util.js +0 -0
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SampleServerComponents = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const apollo_server_lambda_1 = require("apollo-server-lambda");
|
|
6
|
-
const apollo_server_core_1 = require("apollo-server-core");
|
|
7
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
8
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
9
|
-
const ratchet_common_4 = require("@bitblit/ratchet-common");
|
|
10
|
-
const epsilon_global_handler_1 = require("../epsilon-global-handler");
|
|
11
|
-
const built_in_handlers_1 = require("../built-in/http/built-in-handlers");
|
|
12
|
-
const local_web_token_manipulator_1 = require("../http/auth/local-web-token-manipulator");
|
|
13
|
-
const echo_processor_1 = require("../built-in/background/echo-processor");
|
|
14
|
-
const no_op_processor_1 = require("../built-in/background/no-op-processor");
|
|
15
|
-
const sample_delay_processor_1 = require("../built-in/background/sample-delay-processor");
|
|
16
|
-
const log_and_enqueue_echo_processor_1 = require("../built-in/background/log-and-enqueue-echo-processor");
|
|
17
|
-
const epsilon_config_parser_1 = require("../util/epsilon-config-parser");
|
|
18
|
-
const router_util_1 = require("../http/route/router-util");
|
|
19
|
-
const sample_input_validated_processor_1 = require("../built-in/background/sample-input-validated-processor");
|
|
20
|
-
const built_in_authorizers_1 = require("../built-in/http/built-in-authorizers");
|
|
21
|
-
const apollo_filter_1 = require("../built-in/http/apollo-filter");
|
|
22
|
-
const ratchet_common_5 = require("@bitblit/ratchet-common");
|
|
23
|
-
const ratchet_common_6 = require("@bitblit/ratchet-common");
|
|
24
|
-
const built_in_filters_1 = require("../built-in/http/built-in-filters");
|
|
25
|
-
const event_util_1 = require("../http/event-util");
|
|
26
|
-
const log_message_background_error_processor_1 = require("../built-in/background/log-message-background-error-processor");
|
|
27
|
-
const single_thread_local_background_manager_1 = require("../background/manager/single-thread-local-background-manager");
|
|
28
|
-
const sample_server_static_files_1 = require("./sample-server-static-files");
|
|
29
|
-
class SampleServerComponents {
|
|
30
|
-
constructor() { }
|
|
31
|
-
static async createSampleApollo() {
|
|
32
|
-
const gqlString = sample_server_static_files_1.SampleServerStaticFiles.SAMPLE_SERVER_GRAPHQL;
|
|
33
|
-
ratchet_common_1.Logger.silly('Creating apollo from : %s', gqlString);
|
|
34
|
-
const typeDefs = (0, apollo_server_lambda_1.gql)(gqlString);
|
|
35
|
-
const resolvers = {
|
|
36
|
-
RootQueryType: {
|
|
37
|
-
serverMeta: async (root) => {
|
|
38
|
-
return { version: 'A1', serverTime: new Date().toISOString() };
|
|
39
|
-
},
|
|
40
|
-
forceTimeout: async (root) => {
|
|
41
|
-
await ratchet_common_4.PromiseRatchet.wait(1000 * 60 * 30);
|
|
42
|
-
return { placeholder: 'A1' };
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const server = new apollo_server_lambda_1.ApolloServer({
|
|
47
|
-
debug: false,
|
|
48
|
-
introspection: true,
|
|
49
|
-
typeDefs,
|
|
50
|
-
resolvers,
|
|
51
|
-
plugins: [(0, apollo_server_core_1.ApolloServerPluginLandingPageGraphQLPlayground)({ endpoint: '/graphql' })],
|
|
52
|
-
context: async ({ event, context, express }) => {
|
|
53
|
-
const authTokenSt = event_util_1.EventUtil.extractBearerTokenFromEvent(event);
|
|
54
|
-
const token = null;
|
|
55
|
-
if (!!authTokenSt && authTokenSt.startsWith('Bearer')) {
|
|
56
|
-
ratchet_common_1.Logger.info('Got : %s', authTokenSt);
|
|
57
|
-
}
|
|
58
|
-
const rval = {
|
|
59
|
-
user: token,
|
|
60
|
-
headers: event.headers,
|
|
61
|
-
functionName: context.functionName,
|
|
62
|
-
event,
|
|
63
|
-
context,
|
|
64
|
-
};
|
|
65
|
-
return rval;
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
return server;
|
|
69
|
-
}
|
|
70
|
-
static async createSampleEpsilonConfig(label) {
|
|
71
|
-
const yamlString = sample_server_static_files_1.SampleServerStaticFiles.SAMPLE_OPEN_API_DOC;
|
|
72
|
-
const authorizers = new Map();
|
|
73
|
-
authorizers.set('SampleAuthorizer', (token, evt) => built_in_authorizers_1.BuiltInAuthorizers.simpleLoggedInAuth(token, evt));
|
|
74
|
-
authorizers.set('LogAuthorizer', (token, evt) => built_in_authorizers_1.BuiltInAuthorizers.simpleNoAuthenticationLogAccess(token, evt));
|
|
75
|
-
const handlers = new Map();
|
|
76
|
-
handlers.set('get /', (event, context) => built_in_handlers_1.BuiltInHandlers.sample(event, null, context));
|
|
77
|
-
handlers.set('get /meta/server', (event) => built_in_handlers_1.BuiltInHandlers.sample(event));
|
|
78
|
-
handlers.set('get /meta/user', (event) => built_in_handlers_1.BuiltInHandlers.sample(event));
|
|
79
|
-
handlers.set('get /meta/item/{itemId}', (event) => built_in_handlers_1.BuiltInHandlers.sample(event));
|
|
80
|
-
handlers.set('post /secure/access-token', (event) => built_in_handlers_1.BuiltInHandlers.sample(event));
|
|
81
|
-
handlers.set('get /multi/fixed', (event) => built_in_handlers_1.BuiltInHandlers.sample(event, 'fixed'));
|
|
82
|
-
handlers.set('get /multi/{v}', (event) => built_in_handlers_1.BuiltInHandlers.sample(event, 'variable'));
|
|
83
|
-
handlers.set('get /err/{code}', (event) => {
|
|
84
|
-
const err = ratchet_common_2.ErrorRatchet.fErr('Fake Err : %j', event);
|
|
85
|
-
err['statusCode'] = ratchet_common_3.NumberRatchet.safeNumber(event.pathParameters['code']);
|
|
86
|
-
throw err;
|
|
87
|
-
});
|
|
88
|
-
handlers.set('get /meta/sample-item', async (event) => {
|
|
89
|
-
const numberToUse = ratchet_common_3.NumberRatchet.safeNumber(event.queryStringParameters['num']) || 5;
|
|
90
|
-
const rval = {
|
|
91
|
-
numberParam: numberToUse,
|
|
92
|
-
nameParam: 'Test-String',
|
|
93
|
-
};
|
|
94
|
-
return rval;
|
|
95
|
-
});
|
|
96
|
-
handlers.set('post /meta/sample-item', async (event) => {
|
|
97
|
-
const parsed = event.parsedBody;
|
|
98
|
-
const forceFail = ratchet_common_5.BooleanRatchet.parseBool(ratchet_common_6.StringRatchet.trimToNull(event.queryStringParameters['forceFail'])) === true;
|
|
99
|
-
if (forceFail) {
|
|
100
|
-
parsed['numberParam'] = 'test';
|
|
101
|
-
}
|
|
102
|
-
return parsed;
|
|
103
|
-
});
|
|
104
|
-
const tokenManipulator = new local_web_token_manipulator_1.LocalWebTokenManipulator(['abcd1234'], 'sample.erigir.com')
|
|
105
|
-
.withParseFailureLogLevel(ratchet_common_4.LoggerLevelName.debug)
|
|
106
|
-
.withExtraDecryptionKeys(['abcdefabcdef'])
|
|
107
|
-
.withOldKeyUseLogLevel(ratchet_common_4.LoggerLevelName.info);
|
|
108
|
-
const meta = router_util_1.RouterUtil.defaultHttpMetaProcessingConfigWithAuthenticationHeaderParsing(tokenManipulator);
|
|
109
|
-
meta.timeoutMS = 10000;
|
|
110
|
-
apollo_filter_1.ApolloFilter.addApolloFilterToList(meta.preFilters, new RegExp('.*graphql.*'), await SampleServerComponents.createSampleApollo(), {
|
|
111
|
-
cors: {
|
|
112
|
-
origin: '*',
|
|
113
|
-
credentials: true,
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
meta.errorFilters.push((fCtx) => built_in_filters_1.BuiltInFilters.secureOutboundServerErrorForProduction(fCtx, 'Clean Internal Server Error', 500));
|
|
117
|
-
const preFiltersAllowingNull = Object.assign({}, meta);
|
|
118
|
-
preFiltersAllowingNull.preFilters = Object.assign([], preFiltersAllowingNull.preFilters);
|
|
119
|
-
preFiltersAllowingNull.preFilters.splice(8, 1);
|
|
120
|
-
const cfg = {
|
|
121
|
-
defaultMetaHandling: meta,
|
|
122
|
-
handlers: handlers,
|
|
123
|
-
authorizers: authorizers,
|
|
124
|
-
overrideMetaHandling: [
|
|
125
|
-
{
|
|
126
|
-
pathRegex: '/background',
|
|
127
|
-
methods: null,
|
|
128
|
-
config: Object.assign({}, meta, { overrideAuthorizerName: 'LogAuthorizer' }),
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
pathRegex: '/meta/server',
|
|
132
|
-
methods: ['GET'],
|
|
133
|
-
config: preFiltersAllowingNull,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
prefixesToStripBeforeRouteMatch: ['v0'],
|
|
137
|
-
filterHandledRouteMatches: ['options .*'],
|
|
138
|
-
};
|
|
139
|
-
const background = {
|
|
140
|
-
httpMetaEndpoint: '/background/meta',
|
|
141
|
-
httpSubmissionPath: '/background',
|
|
142
|
-
implyTypeFromPathSuffix: false,
|
|
143
|
-
processors: [
|
|
144
|
-
new echo_processor_1.EchoProcessor(),
|
|
145
|
-
new no_op_processor_1.NoOpProcessor(),
|
|
146
|
-
new sample_delay_processor_1.SampleDelayProcessor(),
|
|
147
|
-
new sample_input_validated_processor_1.SampleInputValidatedProcessor(),
|
|
148
|
-
new log_and_enqueue_echo_processor_1.LogAndEnqueueEchoProcessor(),
|
|
149
|
-
],
|
|
150
|
-
errorProcessor: new log_message_background_error_processor_1.LogMessageBackgroundErrorProcessor(),
|
|
151
|
-
};
|
|
152
|
-
const epsilonConfig = {
|
|
153
|
-
label: label,
|
|
154
|
-
openApiYamlString: yamlString,
|
|
155
|
-
httpConfig: cfg,
|
|
156
|
-
backgroundConfig: background,
|
|
157
|
-
};
|
|
158
|
-
return epsilonConfig;
|
|
159
|
-
}
|
|
160
|
-
static async createSampleEpsilonGlobalHandler(label) {
|
|
161
|
-
const epsilonConfig = await SampleServerComponents.createSampleEpsilonConfig(label);
|
|
162
|
-
const backgroundManager = new single_thread_local_background_manager_1.SingleThreadLocalBackgroundManager();
|
|
163
|
-
const epsilonInstance = epsilon_config_parser_1.EpsilonConfigParser.epsilonConfigToEpsilonInstance(epsilonConfig, backgroundManager);
|
|
164
|
-
const rval = new epsilon_global_handler_1.EpsilonGlobalHandler(epsilonInstance);
|
|
165
|
-
return rval;
|
|
166
|
-
}
|
|
167
|
-
static async createSampleBatchOnlyEpsilonGlobalHandler(label) {
|
|
168
|
-
const epsilonConfig = await SampleServerComponents.createSampleEpsilonConfig(label);
|
|
169
|
-
epsilonConfig.httpConfig.handlers = new Map();
|
|
170
|
-
const byPassCfg = Object.assign({}, epsilonConfig.httpConfig.defaultMetaHandling);
|
|
171
|
-
byPassCfg.preFilters = byPassCfg.preFilters.concat([
|
|
172
|
-
(fCtx) => built_in_filters_1.BuiltInFilters.autoRespond(fCtx, { message: 'Background Processing Only' }),
|
|
173
|
-
]);
|
|
174
|
-
epsilonConfig.httpConfig.overrideMetaHandling = [
|
|
175
|
-
{
|
|
176
|
-
pathRegex: '.*background.*',
|
|
177
|
-
invertPathMatching: true,
|
|
178
|
-
config: byPassCfg,
|
|
179
|
-
},
|
|
180
|
-
];
|
|
181
|
-
epsilonConfig.httpConfig.filterHandledRouteMatches = ['.*'];
|
|
182
|
-
const backgroundManager = new single_thread_local_background_manager_1.SingleThreadLocalBackgroundManager();
|
|
183
|
-
const epsilonInstance = epsilon_config_parser_1.EpsilonConfigParser.epsilonConfigToEpsilonInstance(epsilonConfig, backgroundManager);
|
|
184
|
-
const rval = new epsilon_global_handler_1.EpsilonGlobalHandler(epsilonInstance);
|
|
185
|
-
return rval;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
exports.SampleServerComponents = SampleServerComponents;
|