@digitraffic/common 2024.8.14-1 → 2024.8.27-1
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/{test/asserter.mjs → __test__/asserter.js} +3 -3
- package/dist/{test/db-testutils.d.mts → __test__/db-testutils.d.ts} +1 -1
- package/dist/{test/db-testutils.mjs → __test__/db-testutils.js} +4 -3
- package/dist/__test__/{dependencies.test.mjs → dependencies.test.js} +1 -1
- package/dist/__test__/{imports.test.mjs → imports.test.js} +79 -79
- package/dist/__test__/infra/{acl-builder.test.mjs → acl-builder.test.js} +4 -4
- package/dist/__test__/infra/api/{handler-factory.test.mjs → handler-factory.test.js} +3 -4
- package/dist/__test__/infra/api/{response.test.mjs → response.test.js} +3 -11
- package/dist/__test__/infra/api/{static-integration.test.mjs → static-integration.test.js} +3 -3
- package/dist/__test__/infra/{documentation.test.mjs → documentation.test.js} +2 -2
- package/dist/__test__/infra/{scheduler.test.mjs → scheduler.test.js} +2 -2
- package/dist/__test__/infra/{security-rule.test.mjs → security-rule.test.js} +2 -2
- package/dist/__test__/marine/{id_utils.test.mjs → id_utils.test.js} +3 -3
- package/dist/{test/mock-ky.mjs → __test__/mock-ky.js} +1 -1
- package/dist/__test__/promise/{promise.test.mjs → promise.test.js} +9 -13
- package/dist/__test__/runtime/{dt-logger.test.mjs → dt-logger.test.js} +7 -7
- package/dist/__test__/secrets/{secret-holder.test.mjs → secret-holder.test.js} +6 -4
- package/dist/__test__/secrets/{secret.test.mjs → secret.test.js} +4 -2
- package/dist/__test__/stack/{rest-apis.test.mjs → rest-apis.test.js} +4 -4
- package/dist/__test__/test/{mock-ky.test.mjs → mock-ky.test.js} +3 -3
- package/dist/{test/testutils.mjs → __test__/testutils.js} +1 -2
- package/dist/__test__/types/{lambda-response.test.mjs → lambda-response.test.js} +2 -2
- package/dist/__test__/utils/{date-utils.test.mjs → date-utils.test.js} +3 -3
- package/dist/__test__/utils/{geometry.test.mjs → geometry.test.js} +3 -3
- package/dist/__test__/utils/{logging.test.mjs → logging.test.js} +4 -4
- package/dist/__test__/utils/{utils.test.mjs → utils.test.js} +2 -3
- package/dist/aws/infra/acl-builder.d.ts +41 -0
- package/dist/aws/infra/{acl-builder.mjs → acl-builder.js} +82 -57
- package/dist/aws/infra/api/{handler-factory.d.mts → handler-factory.d.ts} +4 -4
- package/dist/aws/infra/api/{handler-factory.mjs → handler-factory.js} +7 -5
- package/dist/aws/infra/api/{integration.d.mts → integration.d.ts} +3 -1
- package/dist/aws/infra/api/{integration.mjs → integration.js} +34 -13
- package/dist/aws/infra/api/{response.d.mts → response.d.ts} +2 -2
- package/dist/aws/infra/api/{response.mjs → response.js} +4 -4
- package/dist/aws/infra/api/{responses.d.mts → responses.d.ts} +3 -3
- package/dist/aws/infra/api/{responses.mjs → responses.js} +4 -6
- package/dist/aws/infra/api/{static-integration.d.mts → static-integration.d.ts} +2 -2
- package/dist/aws/infra/api/{static-integration.mjs → static-integration.js} +3 -3
- package/dist/aws/infra/canaries/canary-alarm.d.ts +6 -0
- package/dist/aws/infra/canaries/{canary-alarm.mjs → canary-alarm.js} +1 -3
- package/dist/aws/infra/canaries/{canary-keys.mjs → canary-keys.js} +1 -1
- package/dist/aws/infra/canaries/{canary-parameters.d.mts → canary-parameters.d.ts} +1 -1
- package/dist/aws/infra/canaries/canary-parameters.js +2 -0
- package/dist/aws/infra/canaries/{canary-role.d.mts → canary-role.d.ts} +1 -1
- package/dist/aws/infra/canaries/{canary-role.mjs → canary-role.js} +2 -5
- package/dist/aws/infra/canaries/{canary.d.mts → canary.d.ts} +4 -4
- package/dist/aws/infra/canaries/{canary.mjs → canary.js} +3 -4
- package/dist/aws/infra/canaries/{database-canary.d.mts → database-canary.d.ts} +4 -5
- package/dist/aws/infra/canaries/{database-canary.mjs → database-canary.js} +4 -11
- package/dist/aws/infra/canaries/{database-checker.d.mts → database-checker.d.ts} +5 -5
- package/dist/aws/infra/canaries/{database-checker.mjs → database-checker.js} +15 -12
- package/dist/aws/infra/canaries/{url-canary.d.mts → url-canary.d.ts} +5 -5
- package/dist/aws/infra/canaries/{url-canary.mjs → url-canary.js} +7 -12
- package/dist/aws/infra/canaries/{url-checker.d.mts → url-checker.d.ts} +2 -2
- package/dist/aws/infra/canaries/{url-checker.mjs → url-checker.js} +12 -21
- package/dist/aws/infra/{documentation.d.mts → documentation.d.ts} +2 -2
- package/dist/aws/infra/{documentation.mjs → documentation.js} +4 -3
- package/dist/aws/infra/{import-util.d.mts → import-util.d.ts} +2 -2
- package/dist/aws/infra/{import-util.mjs → import-util.js} +3 -3
- package/dist/aws/infra/{scheduler.d.mts → scheduler.d.ts} +2 -2
- package/dist/aws/infra/{scheduler.mjs → scheduler.js} +1 -3
- package/dist/aws/infra/{security-rule.d.mts → security-rule.d.ts} +1 -1
- package/dist/aws/infra/{security-rule.mjs → security-rule.js} +1 -2
- package/dist/aws/infra/{sqs-integration.d.mts → sqs-integration.d.ts} +3 -3
- package/dist/aws/infra/{sqs-integration.mjs → sqs-integration.js} +3 -7
- package/dist/aws/infra/{sqs-queue.d.mts → sqs-queue.d.ts} +1 -1
- package/dist/aws/infra/{sqs-queue.mjs → sqs-queue.js} +19 -19
- package/dist/aws/infra/stack/{lambda-configs.d.mts → lambda-configs.d.ts} +4 -4
- package/dist/aws/infra/stack/{lambda-configs.mjs → lambda-configs.js} +3 -7
- package/dist/aws/infra/stack/{monitoredfunction.d.mts → monitoredfunction.d.ts} +15 -15
- package/dist/aws/infra/stack/{monitoredfunction.mjs → monitoredfunction.js} +42 -43
- package/dist/aws/infra/stack/{parameters.mjs → parameters.js} +1 -1
- package/dist/aws/infra/stack/{rest_apis.d.mts → rest_apis.d.ts} +12 -6
- package/dist/aws/infra/stack/{rest_apis.mjs → rest_apis.js} +26 -24
- package/dist/aws/infra/stack/{stack-checking-aspect.mjs → stack-checking-aspect.js} +7 -2
- package/dist/aws/infra/stack/{stack.d.mts → stack.d.ts} +4 -4
- package/dist/aws/infra/stack/{stack.mjs → stack.js} +2 -5
- package/dist/aws/infra/stack/{subscription.d.mts → subscription.d.ts} +4 -4
- package/dist/aws/infra/stack/{subscription.mjs → subscription.js} +2 -6
- package/dist/aws/infra/stacks/{db-dns-stack.d.mts → db-dns-stack.d.ts} +1 -1
- package/dist/aws/infra/stacks/{db-dns-stack.mjs → db-dns-stack.js} +4 -4
- package/dist/aws/infra/stacks/{db-proxy-stack.d.mts → db-proxy-stack.d.ts} +2 -2
- package/dist/aws/infra/stacks/{db-proxy-stack.mjs → db-proxy-stack.js} +5 -6
- package/dist/aws/infra/stacks/{db-stack.d.mts → db-stack.d.ts} +4 -4
- package/dist/aws/infra/stacks/{db-stack.mjs → db-stack.js} +7 -10
- package/dist/aws/infra/stacks/intra-stack-configuration.js +2 -0
- package/dist/aws/infra/stacks/{network-stack.d.mts → network-stack.d.ts} +2 -2
- package/dist/aws/infra/stacks/{network-stack.mjs → network-stack.js} +4 -7
- package/dist/aws/infra/{usage-plans.d.mts → usage-plans.d.ts} +1 -1
- package/dist/aws/infra/{usage-plans.mjs → usage-plans.js} +1 -2
- package/dist/aws/runtime/{apikey.mjs → apikey.js} +1 -1
- package/dist/aws/runtime/{digitraffic-integration-response.d.mts → digitraffic-integration-response.d.ts} +1 -1
- package/dist/aws/runtime/{digitraffic-integration-response.mjs → digitraffic-integration-response.js} +4 -6
- package/dist/aws/runtime/{dt-logger-default.d.mts → dt-logger-default.d.ts} +2 -2
- package/dist/aws/runtime/{dt-logger-default.mjs → dt-logger-default.js} +2 -2
- package/dist/aws/runtime/{dt-logger.mjs → dt-logger.js} +9 -4
- package/dist/aws/runtime/{environment.mjs → environment.js} +2 -2
- package/dist/aws/runtime/{s3.d.mts → s3.d.ts} +1 -1
- package/dist/aws/runtime/{s3.mjs → s3.js} +3 -3
- package/dist/aws/runtime/secrets/{dbsecret.d.mts → dbsecret.d.ts} +1 -1
- package/dist/aws/runtime/secrets/{dbsecret.mjs → dbsecret.js} +6 -2
- package/dist/aws/runtime/secrets/proxy-holder.js +25 -0
- package/dist/aws/runtime/secrets/rds-holder.js +25 -0
- package/dist/aws/runtime/secrets/{secret-holder.d.mts → secret-holder.d.ts} +6 -5
- package/dist/aws/runtime/secrets/{secret-holder.mjs → secret-holder.js} +11 -12
- package/dist/aws/runtime/secrets/{secret.mjs → secret.js} +7 -3
- package/dist/aws/types/{errors.mjs → errors.js} +1 -1
- package/dist/aws/types/{lambda-response.mjs → lambda-response.js} +1 -1
- package/dist/aws/types/{mediatypes.mjs → mediatypes.js} +1 -1
- package/dist/aws/types/{model-with-reference.d.mts → model-with-reference.d.ts} +1 -1
- package/dist/aws/types/model-with-reference.js +2 -0
- package/dist/aws/types/proxytypes.js +2 -0
- package/dist/aws/types/tags.js +4 -0
- package/dist/database/{cached.d.mts → cached.d.ts} +1 -1
- package/dist/database/{cached.mjs → cached.js} +2 -4
- package/dist/database/{database.mjs → database.js} +4 -8
- package/dist/database/{last-updated.d.mts → last-updated.d.ts} +1 -1
- package/dist/database/{last-updated.mjs → last-updated.js} +3 -1
- package/dist/database/models.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/marine/{id_utils.mjs → id_utils.js} +2 -2
- package/dist/marine/rtz.js +2 -0
- package/dist/types/{async-timeout-error.mjs → async-timeout-error.js} +1 -1
- package/dist/types/aws-env.js +2 -0
- package/dist/types/either.js +2 -0
- package/dist/types/{http-error.mjs → http-error.js} +1 -1
- package/dist/types/{input-error.mjs → input-error.js} +1 -1
- package/dist/types/{language.mjs → language.js} +1 -1
- package/dist/types/{nullable.d.mts → nullable.d.ts} +1 -1
- package/dist/types/nullable.js +2 -0
- package/dist/types/{traffictype.mjs → traffictype.js} +1 -1
- package/dist/types/urn.js +2 -0
- package/dist/types/util-types.js +2 -0
- package/dist/types/{validator.mjs → validator.js} +1 -1
- package/dist/utils/{api-model.d.mts → api-model.d.ts} +6 -5
- package/dist/utils/{api-model.mjs → api-model.js} +14 -15
- package/dist/utils/{base64.mjs → base64.js} +3 -3
- package/dist/utils/{date-utils.mjs → date-utils.js} +1 -1
- package/dist/utils/{geojson-types.d.mts → geojson-types.d.ts} +2 -2
- package/dist/utils/{geojson-types.mjs → geojson-types.js} +1 -1
- package/dist/utils/{geometry.d.mts → geometry.d.ts} +4 -3
- package/dist/utils/{geometry.mjs → geometry.js} +7 -4
- package/dist/utils/{logging.d.mts → logging.d.ts} +1 -1
- package/dist/utils/{logging.mjs → logging.js} +5 -8
- package/dist/utils/{retry.mjs → retry.js} +6 -8
- package/dist/utils/{slack.mjs → slack.js} +3 -3
- package/dist/utils/{utils.d.mts → utils.d.ts} +2 -3
- package/dist/utils/{utils.mjs → utils.js} +9 -5
- package/package.json +132 -129
- package/dist/aws/infra/acl-builder.d.mts +0 -31
- package/dist/aws/infra/canaries/canary-alarm.d.mts +0 -6
- package/dist/aws/infra/canaries/canary-parameters.mjs +0 -2
- package/dist/aws/infra/stacks/intra-stack-configuration.mjs +0 -2
- package/dist/aws/runtime/secrets/proxy-holder.mjs +0 -25
- package/dist/aws/runtime/secrets/rds-holder.mjs +0 -25
- package/dist/aws/types/model-with-reference.mjs +0 -2
- package/dist/aws/types/proxytypes.mjs +0 -2
- package/dist/aws/types/tags.mjs +0 -4
- package/dist/database/models.mjs +0 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +0 -2
- package/dist/marine/rtz.mjs +0 -2
- package/dist/types/aws-env.mjs +0 -2
- package/dist/types/either.mjs +0 -2
- package/dist/types/nullable.mjs +0 -2
- package/dist/types/urn.mjs +0 -2
- package/dist/types/util-types.mjs +0 -2
- /package/dist/{test/asserter.d.mts → __test__/asserter.d.ts} +0 -0
- /package/dist/__test__/{dependencies.test.d.mts → dependencies.test.d.ts} +0 -0
- /package/dist/__test__/{imports.test.d.mts → imports.test.d.ts} +0 -0
- /package/dist/__test__/infra/{acl-builder.test.d.mts → acl-builder.test.d.ts} +0 -0
- /package/dist/__test__/infra/api/{handler-factory.test.d.mts → handler-factory.test.d.ts} +0 -0
- /package/dist/__test__/infra/api/{response.test.d.mts → response.test.d.ts} +0 -0
- /package/dist/__test__/infra/api/{static-integration.test.d.mts → static-integration.test.d.ts} +0 -0
- /package/dist/__test__/infra/{documentation.test.d.mts → documentation.test.d.ts} +0 -0
- /package/dist/__test__/infra/{scheduler.test.d.mts → scheduler.test.d.ts} +0 -0
- /package/dist/__test__/infra/{security-rule.test.d.mts → security-rule.test.d.ts} +0 -0
- /package/dist/__test__/marine/{id_utils.test.d.mts → id_utils.test.d.ts} +0 -0
- /package/dist/{test/mock-ky.d.mts → __test__/mock-ky.d.ts} +0 -0
- /package/dist/__test__/promise/{promise.test.d.mts → promise.test.d.ts} +0 -0
- /package/dist/__test__/runtime/{dt-logger.test.d.mts → dt-logger.test.d.ts} +0 -0
- /package/dist/__test__/secrets/{secret-holder.test.d.mts → secret-holder.test.d.ts} +0 -0
- /package/dist/__test__/secrets/{secret.test.d.mts → secret.test.d.ts} +0 -0
- /package/dist/__test__/stack/{rest-apis.test.d.mts → rest-apis.test.d.ts} +0 -0
- /package/dist/__test__/test/{mock-ky.test.d.mts → mock-ky.test.d.ts} +0 -0
- /package/dist/{test/testutils.d.mts → __test__/testutils.d.ts} +0 -0
- /package/dist/__test__/types/{lambda-response.test.d.mts → lambda-response.test.d.ts} +0 -0
- /package/dist/__test__/utils/{date-utils.test.d.mts → date-utils.test.d.ts} +0 -0
- /package/dist/__test__/utils/{geometry.test.d.mts → geometry.test.d.ts} +0 -0
- /package/dist/__test__/utils/{logging.test.d.mts → logging.test.d.ts} +0 -0
- /package/dist/__test__/utils/{utils.test.d.mts → utils.test.d.ts} +0 -0
- /package/dist/aws/infra/canaries/{canary-keys.d.mts → canary-keys.d.ts} +0 -0
- /package/dist/aws/infra/stack/{parameters.d.mts → parameters.d.ts} +0 -0
- /package/dist/aws/infra/stack/{stack-checking-aspect.d.mts → stack-checking-aspect.d.ts} +0 -0
- /package/dist/aws/infra/stacks/{intra-stack-configuration.d.mts → intra-stack-configuration.d.ts} +0 -0
- /package/dist/aws/runtime/{apikey.d.mts → apikey.d.ts} +0 -0
- /package/dist/aws/runtime/{dt-logger.d.mts → dt-logger.d.ts} +0 -0
- /package/dist/aws/runtime/{environment.d.mts → environment.d.ts} +0 -0
- /package/dist/aws/runtime/secrets/{proxy-holder.d.mts → proxy-holder.d.ts} +0 -0
- /package/dist/aws/runtime/secrets/{rds-holder.d.mts → rds-holder.d.ts} +0 -0
- /package/dist/aws/runtime/secrets/{secret.d.mts → secret.d.ts} +0 -0
- /package/dist/aws/types/{errors.d.mts → errors.d.ts} +0 -0
- /package/dist/aws/types/{lambda-response.d.mts → lambda-response.d.ts} +0 -0
- /package/dist/aws/types/{mediatypes.d.mts → mediatypes.d.ts} +0 -0
- /package/dist/aws/types/{proxytypes.d.mts → proxytypes.d.ts} +0 -0
- /package/dist/aws/types/{tags.d.mts → tags.d.ts} +0 -0
- /package/dist/database/{database.d.mts → database.d.ts} +0 -0
- /package/dist/database/{models.d.mts → models.d.ts} +0 -0
- /package/dist/marine/{id_utils.d.mts → id_utils.d.ts} +0 -0
- /package/dist/marine/{rtz.d.mts → rtz.d.ts} +0 -0
- /package/dist/types/{async-timeout-error.d.mts → async-timeout-error.d.ts} +0 -0
- /package/dist/types/{aws-env.d.mts → aws-env.d.ts} +0 -0
- /package/dist/types/{either.d.mts → either.d.ts} +0 -0
- /package/dist/types/{http-error.d.mts → http-error.d.ts} +0 -0
- /package/dist/types/{input-error.d.mts → input-error.d.ts} +0 -0
- /package/dist/types/{language.d.mts → language.d.ts} +0 -0
- /package/dist/types/{traffictype.d.mts → traffictype.d.ts} +0 -0
- /package/dist/types/{urn.d.mts → urn.d.ts} +0 -0
- /package/dist/types/{util-types.d.mts → util-types.d.ts} +0 -0
- /package/dist/types/{validator.d.mts → validator.d.ts} +0 -0
- /package/dist/utils/{base64.d.mts → base64.d.ts} +0 -0
- /package/dist/utils/{date-utils.d.mts → date-utils.d.ts} +0 -0
- /package/dist/utils/{retry.d.mts → retry.d.ts} +0 -0
- /package/dist/utils/{slack.d.mts → slack.d.ts} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digitraffic/common",
|
3
|
-
"version": "2024.8.
|
3
|
+
"version": "2024.8.27-1",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -13,172 +13,175 @@
|
|
13
13
|
"license": "EUPL-1.2",
|
14
14
|
"private": false,
|
15
15
|
"files": [
|
16
|
-
"dist/**/*.
|
17
|
-
"dist/**/*.d.
|
16
|
+
"dist/**/*.js",
|
17
|
+
"dist/**/*.d.ts"
|
18
18
|
],
|
19
19
|
"exports": {
|
20
|
-
".": "./dist/index.
|
21
|
-
"./dist/database/database": "./dist/database/database.
|
22
|
-
"./dist/database/cached": "./dist/database/cached.
|
23
|
-
"./dist/database/models": "./dist/database/models.
|
24
|
-
"./dist/database/last-updated": "./dist/database/last-updated.
|
25
|
-
"./dist/types/urn": "./dist/types/urn.
|
26
|
-
"./dist/types/util-types": "./dist/types/util-types.
|
27
|
-
"./dist/types/either": "./dist/types/either.
|
28
|
-
"./dist/types/validator": "./dist/types/validator.
|
29
|
-
"./dist/types/nullable": "./dist/types/nullable.
|
30
|
-
"./dist/types/aws-env": "./dist/types/aws-env.
|
31
|
-
"./dist/types/async-timeout-error": "./dist/types/async-timeout-error.
|
32
|
-
"./dist/types/input-error": "./dist/types/input-error.
|
33
|
-
"./dist/types/http-error": "./dist/types/http-error.
|
34
|
-
"./dist/types/language": "./dist/types/language.
|
35
|
-
"./dist/types/traffictype": "./dist/types/traffictype.
|
36
|
-
"./dist/test/testutils": "./dist/
|
37
|
-
"./dist/test/db-testutils": "./dist/
|
38
|
-
"./dist/test/httpserver": "./dist/
|
39
|
-
"./dist/test/asserter": "./dist/
|
40
|
-
"./dist/test/mock-ky": "./dist/
|
41
|
-
"./dist/marine/rtz": "./dist/marine/rtz.
|
42
|
-
"./dist/marine/id_utils": "./dist/marine/id_utils.
|
43
|
-
"./dist/index": "./dist/index.
|
44
|
-
"./dist/utils/api-model": "./dist/utils/api-model.
|
45
|
-
"./dist/utils/logging": "./dist/utils/logging.
|
46
|
-
"./dist/utils/base64": "./dist/utils/base64.
|
47
|
-
"./dist/utils/date-utils": "./dist/utils/date-utils.
|
48
|
-
"./dist/utils/geojson-types": "./dist/utils/geojson-types.
|
49
|
-
"./dist/utils/slack": "./dist/utils/slack.
|
50
|
-
"./dist/utils/utils": "./dist/utils/utils.
|
51
|
-
"./dist/utils/retry": "./dist/utils/retry.
|
52
|
-
"./dist/utils/geometry": "./dist/utils/geometry.
|
53
|
-
"./dist/aws/infra/sqs-integration": "./dist/aws/infra/sqs-integration.
|
54
|
-
"./dist/aws/infra/stacks/network-stack": "./dist/aws/infra/stacks/network-stack.
|
55
|
-
"./dist/aws/infra/stacks/db-stack": "./dist/aws/infra/stacks/db-stack.
|
56
|
-
"./dist/aws/infra/stacks/db-proxy-stack": "./dist/aws/infra/stacks/db-proxy-stack.
|
57
|
-
"./dist/aws/infra/stacks/intra-stack-configuration": "./dist/aws/infra/stacks/intra-stack-configuration.
|
58
|
-
"./dist/aws/infra/stacks/db-dns-stack": "./dist/aws/infra/stacks/db-dns-stack.
|
59
|
-
"./dist/aws/infra/acl-builder": "./dist/aws/infra/acl-builder.
|
60
|
-
"./dist/aws/infra/documentation": "./dist/aws/infra/documentation.
|
61
|
-
"./dist/aws/infra/usage-plans": "./dist/aws/infra/usage-plans.
|
62
|
-
"./dist/aws/infra/scheduler": "./dist/aws/infra/scheduler.
|
63
|
-
"./dist/aws/infra/import-util": "./dist/aws/infra/import-util.
|
64
|
-
"./dist/aws/infra/sqs-queue": "./dist/aws/infra/sqs-queue.
|
65
|
-
"./dist/aws/infra/api/response": "./dist/aws/infra/api/response.
|
66
|
-
"./dist/aws/infra/api/static-integration": "./dist/aws/infra/api/static-integration.
|
67
|
-
"./dist/aws/infra/api/responses": "./dist/aws/infra/api/responses.
|
68
|
-
"./dist/aws/infra/api/handler-factory": "./dist/aws/infra/api/handler-factory.
|
69
|
-
"./dist/aws/infra/api/integration": "./dist/aws/infra/api/integration.
|
70
|
-
"./dist/aws/infra/stack/stack-checking-aspect": "./dist/aws/infra/stack/stack-checking-aspect.
|
71
|
-
"./dist/aws/infra/stack/rest_apis": "./dist/aws/infra/stack/rest_apis.
|
72
|
-
"./dist/aws/infra/stack/lambda-configs": "./dist/aws/infra/stack/lambda-configs.
|
73
|
-
"./dist/aws/infra/stack/monitoredfunction": "./dist/aws/infra/stack/monitoredfunction.
|
74
|
-
"./dist/aws/infra/stack/subscription": "./dist/aws/infra/stack/subscription.
|
75
|
-
"./dist/aws/infra/stack/parameters": "./dist/aws/infra/stack/parameters.
|
76
|
-
"./dist/aws/infra/stack/stack": "./dist/aws/infra/stack/stack.
|
77
|
-
"./dist/aws/infra/security-rule": "./dist/aws/infra/security-rule.
|
78
|
-
"./dist/aws/infra/canaries/database-checker": "./dist/aws/infra/canaries/database-checker.
|
79
|
-
"./dist/aws/infra/canaries/canary": "./dist/aws/infra/canaries/canary.
|
80
|
-
"./dist/aws/infra/canaries/url-checker": "./dist/aws/infra/canaries/url-checker.
|
81
|
-
"./dist/aws/infra/canaries/database-canary": "./dist/aws/infra/canaries/database-canary.
|
82
|
-
"./dist/aws/infra/canaries/canary-alarm": "./dist/aws/infra/canaries/canary-alarm.
|
83
|
-
"./dist/aws/infra/canaries/canary-role": "./dist/aws/infra/canaries/canary-role.
|
84
|
-
"./dist/aws/infra/canaries/url-canary": "./dist/aws/infra/canaries/url-canary.
|
85
|
-
"./dist/aws/infra/canaries/canary-parameters": "./dist/aws/infra/canaries/canary-parameters.
|
86
|
-
"./dist/aws/infra/canaries/canary-keys": "./dist/aws/infra/canaries/canary-keys.
|
87
|
-
"./dist/aws/types/proxytypes": "./dist/aws/types/proxytypes.
|
88
|
-
"./dist/aws/types/tags": "./dist/aws/types/tags.
|
89
|
-
"./dist/aws/types/mediatypes": "./dist/aws/types/mediatypes.
|
90
|
-
"./dist/aws/types/model-with-reference": "./dist/aws/types/model-with-reference.
|
91
|
-
"./dist/aws/types/errors": "./dist/aws/types/errors.
|
92
|
-
"./dist/aws/types/lambda-response": "./dist/aws/types/lambda-response.
|
93
|
-
"./dist/aws/runtime/dt-logger-default": "./dist/aws/runtime/dt-logger-default.
|
94
|
-
"./dist/aws/runtime/secrets/secret": "./dist/aws/runtime/secrets/secret.
|
95
|
-
"./dist/aws/runtime/secrets/proxy-holder": "./dist/aws/runtime/secrets/proxy-holder.
|
96
|
-
"./dist/aws/runtime/secrets/dbsecret": "./dist/aws/runtime/secrets/dbsecret.
|
97
|
-
"./dist/aws/runtime/secrets/rds-holder": "./dist/aws/runtime/secrets/rds-holder.
|
98
|
-
"./dist/aws/runtime/secrets/secret-holder": "./dist/aws/runtime/secrets/secret-holder.
|
99
|
-
"./dist/aws/runtime/dt-logger": "./dist/aws/runtime/dt-logger.
|
100
|
-
"./dist/aws/runtime/s3": "./dist/aws/runtime/s3.
|
101
|
-
"./dist/aws/runtime/apikey": "./dist/aws/runtime/apikey.
|
102
|
-
"./dist/aws/runtime/environment": "./dist/aws/runtime/environment.
|
103
|
-
"./dist/aws/runtime/digitraffic-integration-response": "./dist/aws/runtime/digitraffic-integration-response.
|
20
|
+
".": "./dist/index.js",
|
21
|
+
"./dist/database/database": "./dist/database/database.js",
|
22
|
+
"./dist/database/cached": "./dist/database/cached.js",
|
23
|
+
"./dist/database/models": "./dist/database/models.js",
|
24
|
+
"./dist/database/last-updated": "./dist/database/last-updated.js",
|
25
|
+
"./dist/types/urn": "./dist/types/urn.js",
|
26
|
+
"./dist/types/util-types": "./dist/types/util-types.js",
|
27
|
+
"./dist/types/either": "./dist/types/either.js",
|
28
|
+
"./dist/types/validator": "./dist/types/validator.js",
|
29
|
+
"./dist/types/nullable": "./dist/types/nullable.js",
|
30
|
+
"./dist/types/aws-env": "./dist/types/aws-env.js",
|
31
|
+
"./dist/types/async-timeout-error": "./dist/types/async-timeout-error.js",
|
32
|
+
"./dist/types/input-error": "./dist/types/input-error.js",
|
33
|
+
"./dist/types/http-error": "./dist/types/http-error.js",
|
34
|
+
"./dist/types/language": "./dist/types/language.js",
|
35
|
+
"./dist/types/traffictype": "./dist/types/traffictype.js",
|
36
|
+
"./dist/test/testutils": "./dist/__test__/testutils.js",
|
37
|
+
"./dist/test/db-testutils": "./dist/__test__/db-testutils.js",
|
38
|
+
"./dist/test/httpserver": "./dist/__test__/httpserver.js",
|
39
|
+
"./dist/test/asserter": "./dist/__test__/asserter.js",
|
40
|
+
"./dist/test/mock-ky": "./dist/__test__/mock-ky.js",
|
41
|
+
"./dist/marine/rtz": "./dist/marine/rtz.js",
|
42
|
+
"./dist/marine/id_utils": "./dist/marine/id_utils.js",
|
43
|
+
"./dist/index": "./dist/index.js",
|
44
|
+
"./dist/utils/api-model": "./dist/utils/api-model.js",
|
45
|
+
"./dist/utils/logging": "./dist/utils/logging.js",
|
46
|
+
"./dist/utils/base64": "./dist/utils/base64.js",
|
47
|
+
"./dist/utils/date-utils": "./dist/utils/date-utils.js",
|
48
|
+
"./dist/utils/geojson-types": "./dist/utils/geojson-types.js",
|
49
|
+
"./dist/utils/slack": "./dist/utils/slack.js",
|
50
|
+
"./dist/utils/utils": "./dist/utils/utils.js",
|
51
|
+
"./dist/utils/retry": "./dist/utils/retry.js",
|
52
|
+
"./dist/utils/geometry": "./dist/utils/geometry.js",
|
53
|
+
"./dist/aws/infra/sqs-integration": "./dist/aws/infra/sqs-integration.js",
|
54
|
+
"./dist/aws/infra/stacks/network-stack": "./dist/aws/infra/stacks/network-stack.js",
|
55
|
+
"./dist/aws/infra/stacks/db-stack": "./dist/aws/infra/stacks/db-stack.js",
|
56
|
+
"./dist/aws/infra/stacks/db-proxy-stack": "./dist/aws/infra/stacks/db-proxy-stack.js",
|
57
|
+
"./dist/aws/infra/stacks/intra-stack-configuration": "./dist/aws/infra/stacks/intra-stack-configuration.js",
|
58
|
+
"./dist/aws/infra/stacks/db-dns-stack": "./dist/aws/infra/stacks/db-dns-stack.js",
|
59
|
+
"./dist/aws/infra/acl-builder": "./dist/aws/infra/acl-builder.js",
|
60
|
+
"./dist/aws/infra/documentation": "./dist/aws/infra/documentation.js",
|
61
|
+
"./dist/aws/infra/usage-plans": "./dist/aws/infra/usage-plans.js",
|
62
|
+
"./dist/aws/infra/scheduler": "./dist/aws/infra/scheduler.js",
|
63
|
+
"./dist/aws/infra/import-util": "./dist/aws/infra/import-util.js",
|
64
|
+
"./dist/aws/infra/sqs-queue": "./dist/aws/infra/sqs-queue.js",
|
65
|
+
"./dist/aws/infra/api/response": "./dist/aws/infra/api/response.js",
|
66
|
+
"./dist/aws/infra/api/static-integration": "./dist/aws/infra/api/static-integration.js",
|
67
|
+
"./dist/aws/infra/api/responses": "./dist/aws/infra/api/responses.js",
|
68
|
+
"./dist/aws/infra/api/handler-factory": "./dist/aws/infra/api/handler-factory.js",
|
69
|
+
"./dist/aws/infra/api/integration": "./dist/aws/infra/api/integration.js",
|
70
|
+
"./dist/aws/infra/stack/stack-checking-aspect": "./dist/aws/infra/stack/stack-checking-aspect.js",
|
71
|
+
"./dist/aws/infra/stack/rest_apis": "./dist/aws/infra/stack/rest_apis.js",
|
72
|
+
"./dist/aws/infra/stack/lambda-configs": "./dist/aws/infra/stack/lambda-configs.js",
|
73
|
+
"./dist/aws/infra/stack/monitoredfunction": "./dist/aws/infra/stack/monitoredfunction.js",
|
74
|
+
"./dist/aws/infra/stack/subscription": "./dist/aws/infra/stack/subscription.js",
|
75
|
+
"./dist/aws/infra/stack/parameters": "./dist/aws/infra/stack/parameters.js",
|
76
|
+
"./dist/aws/infra/stack/stack": "./dist/aws/infra/stack/stack.js",
|
77
|
+
"./dist/aws/infra/security-rule": "./dist/aws/infra/security-rule.js",
|
78
|
+
"./dist/aws/infra/canaries/database-checker": "./dist/aws/infra/canaries/database-checker.js",
|
79
|
+
"./dist/aws/infra/canaries/canary": "./dist/aws/infra/canaries/canary.js",
|
80
|
+
"./dist/aws/infra/canaries/url-checker": "./dist/aws/infra/canaries/url-checker.js",
|
81
|
+
"./dist/aws/infra/canaries/database-canary": "./dist/aws/infra/canaries/database-canary.js",
|
82
|
+
"./dist/aws/infra/canaries/canary-alarm": "./dist/aws/infra/canaries/canary-alarm.js",
|
83
|
+
"./dist/aws/infra/canaries/canary-role": "./dist/aws/infra/canaries/canary-role.js",
|
84
|
+
"./dist/aws/infra/canaries/url-canary": "./dist/aws/infra/canaries/url-canary.js",
|
85
|
+
"./dist/aws/infra/canaries/canary-parameters": "./dist/aws/infra/canaries/canary-parameters.js",
|
86
|
+
"./dist/aws/infra/canaries/canary-keys": "./dist/aws/infra/canaries/canary-keys.js",
|
87
|
+
"./dist/aws/types/proxytypes": "./dist/aws/types/proxytypes.js",
|
88
|
+
"./dist/aws/types/tags": "./dist/aws/types/tags.js",
|
89
|
+
"./dist/aws/types/mediatypes": "./dist/aws/types/mediatypes.js",
|
90
|
+
"./dist/aws/types/model-with-reference": "./dist/aws/types/model-with-reference.js",
|
91
|
+
"./dist/aws/types/errors": "./dist/aws/types/errors.js",
|
92
|
+
"./dist/aws/types/lambda-response": "./dist/aws/types/lambda-response.js",
|
93
|
+
"./dist/aws/runtime/dt-logger-default": "./dist/aws/runtime/dt-logger-default.js",
|
94
|
+
"./dist/aws/runtime/secrets/secret": "./dist/aws/runtime/secrets/secret.js",
|
95
|
+
"./dist/aws/runtime/secrets/proxy-holder": "./dist/aws/runtime/secrets/proxy-holder.js",
|
96
|
+
"./dist/aws/runtime/secrets/dbsecret": "./dist/aws/runtime/secrets/dbsecret.js",
|
97
|
+
"./dist/aws/runtime/secrets/rds-holder": "./dist/aws/runtime/secrets/rds-holder.js",
|
98
|
+
"./dist/aws/runtime/secrets/secret-holder": "./dist/aws/runtime/secrets/secret-holder.js",
|
99
|
+
"./dist/aws/runtime/dt-logger": "./dist/aws/runtime/dt-logger.js",
|
100
|
+
"./dist/aws/runtime/s3": "./dist/aws/runtime/s3.js",
|
101
|
+
"./dist/aws/runtime/apikey": "./dist/aws/runtime/apikey.js",
|
102
|
+
"./dist/aws/runtime/environment": "./dist/aws/runtime/environment.js",
|
103
|
+
"./dist/aws/runtime/digitraffic-integration-response": "./dist/aws/runtime/digitraffic-integration-response.js"
|
104
104
|
},
|
105
105
|
"peerDependencies": {
|
106
106
|
"@aws-sdk/client-api-gateway": "^3.624.0",
|
107
|
-
"@aws-sdk/client-s3": "^3.
|
107
|
+
"@aws-sdk/client-s3": "^3.627.0",
|
108
108
|
"@aws-sdk/client-secrets-manager": "^3.624.0",
|
109
109
|
"@aws-sdk/client-sns": "^3.624.0",
|
110
|
-
"@aws-sdk/lib-storage": "^3.
|
111
|
-
"aws-sdk": "^2.1670.0",
|
110
|
+
"@aws-sdk/lib-storage": "^3.627.0",
|
112
111
|
"aws-cdk-lib": "^2.151.0",
|
112
|
+
"aws-sdk": "^2.1670.0",
|
113
113
|
"change-case": "^5.4.4",
|
114
|
-
"constructs": "
|
115
|
-
"date-fns": "
|
116
|
-
"date-fns-tz": "
|
114
|
+
"constructs": "~10.3.0",
|
115
|
+
"date-fns": "~3.6.0",
|
116
|
+
"date-fns-tz": "~3.1.3",
|
117
117
|
"etag": "^1.8.1",
|
118
118
|
"geojson-validation": "^1.0.2",
|
119
119
|
"ky": "^1.5.0",
|
120
|
-
"lodash-es": "
|
120
|
+
"lodash-es": "~4.17.21",
|
121
121
|
"node-ttl": "^0.2.0",
|
122
122
|
"pg-native": "^3.1.0",
|
123
123
|
"pg-promise": "^11.9.1"
|
124
124
|
},
|
125
125
|
"devDependencies": {
|
126
|
-
"@aws-sdk/client-api-gateway": "^3.
|
127
|
-
"@aws-sdk/client-s3": "^3.
|
128
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
129
|
-
"@aws-sdk/client-sns": "^3.
|
130
|
-
"@aws-sdk/lib-storage": "^3.
|
131
|
-
"
|
132
|
-
"change-case": "^5.4.4",
|
133
|
-
"constructs": "^10.3.0",
|
134
|
-
"date-fns": "^3.6.0",
|
135
|
-
"date-fns-tz": "^3.1.3",
|
136
|
-
"etag": "^1.8.1",
|
137
|
-
"geojson-validation": "^1.0.2",
|
138
|
-
"ky": "^1.5.0",
|
139
|
-
"lodash-es": "^4.17.21",
|
140
|
-
"node-ttl": "^0.2.0",
|
141
|
-
"pg-promise": "^11.9.1",
|
126
|
+
"@aws-sdk/client-api-gateway": "^3.637.0",
|
127
|
+
"@aws-sdk/client-s3": "^3.637.0",
|
128
|
+
"@aws-sdk/client-secrets-manager": "^3.637.0",
|
129
|
+
"@aws-sdk/client-sns": "^3.637.0",
|
130
|
+
"@aws-sdk/lib-storage": "^3.637.0",
|
131
|
+
"@digitraffic/eslint-config": "^2.1.0",
|
142
132
|
"@jest/globals": "^29.7.0",
|
143
133
|
"@rushstack/eslint-config": "^3.7.1",
|
144
|
-
"@rushstack/heft": "^0.
|
145
|
-
"@rushstack/heft-jest-plugin": "^0.12.
|
146
|
-
"@rushstack/heft-lint-plugin": "^0.
|
147
|
-
"@rushstack/heft-typescript-plugin": "^0.5.
|
134
|
+
"@rushstack/heft": "^0.67.0",
|
135
|
+
"@rushstack/heft-jest-plugin": "^0.12.9",
|
136
|
+
"@rushstack/heft-lint-plugin": "^0.4.1",
|
137
|
+
"@rushstack/heft-typescript-plugin": "^0.5.25",
|
148
138
|
"@smithy/types": "^3.3.0",
|
149
|
-
"@types/aws-lambda": "
|
139
|
+
"@types/aws-lambda": "8.10.143",
|
150
140
|
"@types/etag": "^1.8.3",
|
151
|
-
"@types/geojson": "
|
141
|
+
"@types/geojson": "7946.0.14",
|
152
142
|
"@types/geojson-validation": "^1.0.3",
|
153
|
-
"@types/jest": "
|
154
|
-
"@types/lodash-es": "
|
155
|
-
"@types/madge": "
|
156
|
-
"@types/node": "
|
157
|
-
"@typescript-eslint/eslint-plugin": "
|
143
|
+
"@types/jest": "29.5.12",
|
144
|
+
"@types/lodash-es": "4.17.7",
|
145
|
+
"@types/madge": "5.0.3",
|
146
|
+
"@types/node": "20.14.9",
|
147
|
+
"@typescript-eslint/eslint-plugin": "~7.14.1",
|
158
148
|
"@typescript-eslint/parser": "^7.18.0",
|
159
|
-
"aws-
|
149
|
+
"aws-cdk-lib": "^2.154.1",
|
150
|
+
"aws-sdk": "^2.1682.0",
|
151
|
+
"change-case": "^5.4.4",
|
152
|
+
"constructs": "~10.3.0",
|
153
|
+
"date-fns": "~3.6.0",
|
154
|
+
"date-fns-tz": "~3.1.3",
|
160
155
|
"eslint": "^8.57.0",
|
161
156
|
"eslint-config-prettier": "^9.1.0",
|
162
|
-
"eslint-plugin-deprecation": "
|
157
|
+
"eslint-plugin-deprecation": "~3.0.0",
|
158
|
+
"etag": "^1.8.1",
|
159
|
+
"geojson-validation": "^1.0.2",
|
163
160
|
"jest": "^29.7.0",
|
164
161
|
"jest-junit": "^16.0.0",
|
162
|
+
"ky": "^1.7.1",
|
163
|
+
"lodash": "^4.17.21",
|
164
|
+
"lodash-es": "~4.17.21",
|
165
165
|
"madge": "^8.0.0",
|
166
|
+
"node-ttl": "^0.2.0",
|
167
|
+
"pg-native": "^3.1.0",
|
168
|
+
"pg-promise": "^11.9.1",
|
166
169
|
"prettier": "^3.3.3",
|
167
170
|
"rimraf": "^6.0.1",
|
168
|
-
"ts-jest": "^29.2.
|
169
|
-
"typescript": "
|
171
|
+
"ts-jest": "^29.2.5",
|
172
|
+
"typescript": "~5.5.4",
|
170
173
|
"velocityjs": "^2.0.6"
|
171
174
|
},
|
172
175
|
"scripts": {
|
173
|
-
"build": "
|
174
|
-
"build:watch": "
|
176
|
+
"build": "heft build --clean",
|
177
|
+
"build:watch": "heft build-watch",
|
175
178
|
"lint": "eslint --cache .",
|
176
179
|
"eslint-report": "eslint . --format html",
|
177
180
|
"ci:eslint-report": "eslint . --format html -o report.html || true",
|
178
|
-
"clean": "rimraf dist output",
|
179
181
|
"test": "NODE_OPTIONS='--experimental-vm-modules' heft test --clean --max-workers=1",
|
180
182
|
"test:jest": "node --trace-warnings --experimental-vm-modules --max-old-space-size=1536 --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand --verbose",
|
181
183
|
"test:inspect": "node --inspect-brk --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand",
|
182
|
-
"test:watch": "
|
184
|
+
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --max-workers=1",
|
185
|
+
"test:watch:no-coverage": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --disable-code-coverage --max-workers=1"
|
183
186
|
}
|
184
187
|
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { CfnWebACL } from "aws-cdk-lib/aws-wafv2";
|
2
|
-
import type { Construct } from "constructs";
|
3
|
-
export type AWSManagedWafRule = "CommonRuleSet" | "AmazonIpReputationList" | "KnownBadInputsRuleSet" | "SQLiRuleSet";
|
4
|
-
/**
|
5
|
-
* Builder class for building CfnWebACL.
|
6
|
-
*
|
7
|
-
* Currently supports:
|
8
|
-
* * Some AWS managed WAF rules
|
9
|
-
* * IP blacklisting
|
10
|
-
*/
|
11
|
-
export declare class AclBuilder {
|
12
|
-
readonly _construct: Construct;
|
13
|
-
readonly _rules: CfnWebACL.RuleProperty[];
|
14
|
-
readonly _name: string;
|
15
|
-
_scope: string;
|
16
|
-
_customResponseBodies: Record<string, CfnWebACL.CustomResponseBodyProperty>;
|
17
|
-
constructor(construct: Construct, name?: string);
|
18
|
-
isRuleDefined(rules: AWSManagedWafRule[] | "all", rule: AWSManagedWafRule): boolean;
|
19
|
-
withAWSManagedRules(rules?: AWSManagedWafRule[] | "all"): AclBuilder;
|
20
|
-
withIpRestrictionRule(addresses: string[]): AclBuilder;
|
21
|
-
withThrottleRule(name: string, priority: number, limit: number, customResponseBodyKey: string, isHeaderRequired: boolean, isBasedOnIpAndUriPath: boolean): AclBuilder;
|
22
|
-
withCustomResponseBody(key: string, customResponseBody: CfnWebACL.CustomResponseBodyProperty): this;
|
23
|
-
withThrottleDigitrafficUserIp(limit: number | null | undefined): AclBuilder;
|
24
|
-
withThrottleDigitrafficUserIpAndUriPath(limit: number | null | undefined): AclBuilder;
|
25
|
-
withThrottleAnonymousUserIp(limit: number | null | undefined): AclBuilder;
|
26
|
-
withThrottleAnonymousUserIpAndUriPath(limit: number | null | undefined): AclBuilder;
|
27
|
-
_isCustomResponseBodyKeySet(key: string): boolean;
|
28
|
-
_addThrottleResponseBody(customResponseBodyKey: string, limit: number): void;
|
29
|
-
_logMissingLimit(method: string): void;
|
30
|
-
build(): CfnWebACL;
|
31
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { Construct } from "constructs";
|
2
|
-
import type { CanaryParameters } from "./canary-parameters.mjs";
|
3
|
-
import { Canary } from "aws-cdk-lib/aws-synthetics";
|
4
|
-
export declare class CanaryAlarm {
|
5
|
-
constructor(stack: Construct, canary: Canary, params: CanaryParameters);
|
6
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { SecretHolder } from "./secret-holder.mjs";
|
2
|
-
import { RdsProxySecretKey } from "./dbsecret.mjs";
|
3
|
-
import { getEnvVariable } from "../../../utils/utils.mjs";
|
4
|
-
import { DatabaseEnvironmentKeys } from "../../../database/database.mjs";
|
5
|
-
const RDS_PROXY_SECRET_KEYS = Object.values(RdsProxySecretKey);
|
6
|
-
/**
|
7
|
-
* Holds credentials for RDS Proxy access.
|
8
|
-
*/
|
9
|
-
export class ProxyHolder {
|
10
|
-
secretHolder;
|
11
|
-
constructor(secretId) {
|
12
|
-
this.secretHolder = new SecretHolder(secretId, "", RDS_PROXY_SECRET_KEYS);
|
13
|
-
}
|
14
|
-
static create() {
|
15
|
-
return new ProxyHolder(getEnvVariable("SECRET_ID"));
|
16
|
-
}
|
17
|
-
async setCredentials() {
|
18
|
-
const secret = await this.secretHolder.get();
|
19
|
-
process.env[DatabaseEnvironmentKeys.DB_USER] = secret.username;
|
20
|
-
process.env[DatabaseEnvironmentKeys.DB_PASS] = secret.password;
|
21
|
-
process.env[DatabaseEnvironmentKeys.DB_URI] = secret.proxy_host;
|
22
|
-
process.env[DatabaseEnvironmentKeys.DB_RO_URI] = secret.proxy_ro_host;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=proxy-holder.mjs.map
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { SecretHolder } from "./secret-holder.mjs";
|
2
|
-
import { RdsSecretKey } from "./dbsecret.mjs";
|
3
|
-
import { getEnvVariable } from "../../../utils/utils.mjs";
|
4
|
-
import { DatabaseEnvironmentKeys } from "../../../database/database.mjs";
|
5
|
-
const RDS_SECRET_KEYS = Object.values(RdsSecretKey);
|
6
|
-
/**
|
7
|
-
* Holds credentials for RDS access.
|
8
|
-
*/
|
9
|
-
export class RdsHolder {
|
10
|
-
secretHolder;
|
11
|
-
constructor(secretId) {
|
12
|
-
this.secretHolder = new SecretHolder(secretId, "", RDS_SECRET_KEYS);
|
13
|
-
}
|
14
|
-
static create() {
|
15
|
-
return new RdsHolder(getEnvVariable("SECRET_ID"));
|
16
|
-
}
|
17
|
-
async setCredentials() {
|
18
|
-
const secret = await this.secretHolder.get();
|
19
|
-
process.env[DatabaseEnvironmentKeys.DB_USER] = secret.username;
|
20
|
-
process.env[DatabaseEnvironmentKeys.DB_PASS] = secret.password;
|
21
|
-
process.env[DatabaseEnvironmentKeys.DB_URI] = secret.host;
|
22
|
-
process.env[DatabaseEnvironmentKeys.DB_RO_URI] = secret.ro_host;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=rds-holder.mjs.map
|
package/dist/aws/types/tags.mjs
DELETED
package/dist/database/models.mjs
DELETED
package/dist/index.d.mts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { DigitrafficStack } from "./aws/infra/stack/stack.mjs";
|
package/dist/index.mjs
DELETED
package/dist/marine/rtz.mjs
DELETED
package/dist/types/aws-env.mjs
DELETED
package/dist/types/either.mjs
DELETED
package/dist/types/nullable.mjs
DELETED
package/dist/types/urn.mjs
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/__test__/infra/api/{static-integration.test.d.mts → static-integration.test.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/aws/infra/stacks/{intra-stack-configuration.d.mts → intra-stack-configuration.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|