@digitraffic/common 2024.10.4-1 → 2024.10.9-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.
@@ -4,7 +4,7 @@ import { CanaryAlarm } from "./canary-alarm.js";
|
|
4
4
|
export class DigitrafficCanary extends Canary {
|
5
5
|
constructor(scope, canaryName, role, params, environmentVariables) {
|
6
6
|
super(scope, canaryName, {
|
7
|
-
runtime: params.runtime ?? Runtime.
|
7
|
+
runtime: params.runtime ?? Runtime.SYNTHETICS_NODEJS_PUPPETEER_9_0,
|
8
8
|
role,
|
9
9
|
test: Test.custom({
|
10
10
|
code: new AssetCode("dist", {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type
|
2
|
-
export declare function getApiKeyFromAPIGateway(keyId: string): Promise<
|
1
|
+
import { type GetApiKeyCommandOutput } from "@aws-sdk/client-api-gateway";
|
2
|
+
export declare function getApiKeyFromAPIGateway(keyId: string): Promise<GetApiKeyCommandOutput>;
|
@@ -1,10 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { APIGatewayClient, GetApiKeyCommand } from "@aws-sdk/client-api-gateway";
|
2
|
+
import { FetchHttpHandler } from "@smithy/fetch-http-handler";
|
2
3
|
export async function getApiKeyFromAPIGateway(keyId) {
|
3
|
-
const
|
4
|
-
|
5
|
-
|
4
|
+
const client = new APIGatewayClient({
|
5
|
+
requestHandler: new FetchHttpHandler()
|
6
|
+
});
|
7
|
+
const command = new GetApiKeyCommand({
|
6
8
|
apiKey: keyId,
|
7
|
-
includeValue: true
|
8
|
-
})
|
9
|
+
includeValue: true
|
10
|
+
});
|
11
|
+
return (await client.send(command));
|
9
12
|
}
|
10
13
|
//# sourceMappingURL=apikey.js.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digitraffic/common",
|
3
|
-
"version": "2024.10.
|
3
|
+
"version": "2024.10.9-1",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -104,13 +104,13 @@
|
|
104
104
|
"./dist/aws/runtime/digitraffic-integration-response": "./dist/aws/runtime/digitraffic-integration-response.js"
|
105
105
|
},
|
106
106
|
"peerDependencies": {
|
107
|
-
"@aws-sdk/client-api-gateway": "^3.
|
108
|
-
"@aws-sdk/client-s3": "^3.
|
109
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
110
|
-
"@aws-sdk/client-sns": "^3.
|
111
|
-
"@aws-sdk/lib-storage": "^3.
|
112
|
-
"
|
113
|
-
"aws-
|
107
|
+
"@aws-sdk/client-api-gateway": "^3.667.0",
|
108
|
+
"@aws-sdk/client-s3": "^3.667.0",
|
109
|
+
"@aws-sdk/client-secrets-manager": "^3.667.0",
|
110
|
+
"@aws-sdk/client-sns": "^3.667.0",
|
111
|
+
"@aws-sdk/lib-storage": "^3.667.0",
|
112
|
+
"@smithy/fetch-http-handler": "3.2.9",
|
113
|
+
"aws-cdk-lib": "^2.161.1",
|
114
114
|
"change-case": "^5.4.4",
|
115
115
|
"constructs": "~10.3.0",
|
116
116
|
"date-fns": "3.6.0",
|
@@ -125,31 +125,31 @@
|
|
125
125
|
"zod": "~3.23.8"
|
126
126
|
},
|
127
127
|
"devDependencies": {
|
128
|
-
"@aws-sdk/client-api-gateway": "^3.
|
129
|
-
"@aws-sdk/client-s3": "^3.
|
130
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
131
|
-
"@aws-sdk/client-sns": "^3.
|
132
|
-
"@aws-sdk/lib-storage": "^3.
|
133
|
-
"@digitraffic/eslint-config": "^
|
128
|
+
"@aws-sdk/client-api-gateway": "^3.667.0",
|
129
|
+
"@aws-sdk/client-s3": "^3.667.0",
|
130
|
+
"@aws-sdk/client-secrets-manager": "^3.667.0",
|
131
|
+
"@aws-sdk/client-sns": "^3.667.0",
|
132
|
+
"@aws-sdk/lib-storage": "^3.667.0",
|
133
|
+
"@digitraffic/eslint-config": "^3.0.1",
|
134
134
|
"@jest/globals": "^29.7.0",
|
135
135
|
"@rushstack/eslint-config": "^3.7.1",
|
136
136
|
"@rushstack/heft": "^0.67.2",
|
137
137
|
"@rushstack/heft-jest-plugin": "^0.12.14",
|
138
138
|
"@rushstack/heft-lint-plugin": "^0.4.6",
|
139
139
|
"@rushstack/heft-typescript-plugin": "^0.5.30",
|
140
|
+
"@smithy/fetch-http-handler": "3.2.9",
|
140
141
|
"@smithy/types": "^3.5.0",
|
141
142
|
"@types/aws-lambda": "8.10.145",
|
142
143
|
"@types/etag": "^1.8.3",
|
143
144
|
"@types/geojson": "7946.0.14",
|
144
145
|
"@types/geojson-validation": "^1.0.3",
|
145
146
|
"@types/jest": "29.5.13",
|
146
|
-
"@types/lodash-es": "4.17.
|
147
|
+
"@types/lodash-es": "4.17.12",
|
147
148
|
"@types/madge": "5.0.3",
|
148
149
|
"@types/node": "20.14.9",
|
149
150
|
"@typescript-eslint/eslint-plugin": "~7.14.1",
|
150
151
|
"@typescript-eslint/parser": "^7.18.0",
|
151
|
-
"aws-cdk-lib": "^2.161.
|
152
|
-
"aws-sdk": "^2.1691.0",
|
152
|
+
"aws-cdk-lib": "^2.161.1",
|
153
153
|
"change-case": "^5.4.4",
|
154
154
|
"constructs": "~10.3.0",
|
155
155
|
"date-fns": "3.6.0",
|