@digitraffic/common 2024.3.11-1 → 2024.3.13-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.
@@ -1,4 +1,4 @@
1
- import { Schedule } from "aws-cdk-lib/aws-synthetics";
1
+ import { Runtime, Schedule } from "aws-cdk-lib/aws-synthetics";
2
2
  /** Optional env parameters for canary */
3
3
  type CanaryEnv = Record<string, string>;
4
4
  export interface CanaryParameters {
@@ -14,5 +14,6 @@ export interface CanaryParameters {
14
14
  readonly topicArn?: string;
15
15
  };
16
16
  readonly canaryEnv?: CanaryEnv;
17
+ readonly runtime?: Runtime;
17
18
  }
18
19
  export {};
@@ -1,2 +1,2 @@
1
- import { Schedule } from "aws-cdk-lib/aws-synthetics";
1
+ import { Runtime, Schedule } from "aws-cdk-lib/aws-synthetics";
2
2
  //# sourceMappingURL=canary-parameters.mjs.map
@@ -1,12 +1,12 @@
1
1
  import { Duration } from "aws-cdk-lib";
2
- import { AssetCode, Canary, Runtime, Schedule, Test, } from "aws-cdk-lib/aws-synthetics";
2
+ import { AssetCode, Canary, Runtime, Schedule, Test } from "aws-cdk-lib/aws-synthetics";
3
3
  import { Role } from "aws-cdk-lib/aws-iam";
4
4
  import { CanaryAlarm } from "./canary-alarm.mjs";
5
5
  import { Construct } from "constructs";
6
6
  export class DigitrafficCanary extends Canary {
7
7
  constructor(scope, canaryName, role, params, environmentVariables) {
8
8
  super(scope, canaryName, {
9
- runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0,
9
+ runtime: params.runtime ?? Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2,
10
10
  role,
11
11
  test: Test.custom({
12
12
  code: new AssetCode("dist", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2024.3.11-1",
3
+ "version": "2024.3.13-1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "repository": {
@@ -110,7 +110,7 @@
110
110
  "@aws-sdk/client-api-gateway": "^3.496.0",
111
111
  "@aws-sdk/client-sns": "^3.496.0",
112
112
  "@types/geojson": "^7946.0.12",
113
- "aws-cdk-lib": "^2.132.0",
113
+ "aws-cdk-lib": "^2.132.1",
114
114
  "change-case": "5.0.0",
115
115
  "constructs": "^10.3.0",
116
116
  "date-fns": "~2.30.0",
@@ -145,7 +145,7 @@
145
145
  "@types/sinon": "17.0.2",
146
146
  "@typescript-eslint/eslint-plugin": "~6.18.1",
147
147
  "@typescript-eslint/parser": "^6.20.0",
148
- "aws-cdk-lib": "~2.132.0",
148
+ "aws-cdk-lib": "~2.132.1",
149
149
  "change-case": "5.3.0",
150
150
  "constructs": "10.3.0",
151
151
  "date-fns": "~2.30.0",