@digitraffic/common 2022.11.1-1 → 2022.11.2-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.
@@ -7,7 +7,7 @@ const canary_alarm_1 = require("./canary-alarm");
7
7
  class DigitrafficCanary extends aws_synthetics_alpha_1.Canary {
8
8
  constructor(scope, canaryName, role, params, environmentVariables) {
9
9
  super(scope, canaryName, {
10
- runtime: aws_synthetics_alpha_1.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_6,
10
+ runtime: aws_synthetics_alpha_1.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_8,
11
11
  role,
12
12
  test: aws_synthetics_alpha_1.Test.custom({
13
13
  code: new aws_synthetics_alpha_1.AssetCode("dist", {
@@ -90,7 +90,7 @@ class UrlChecker {
90
90
  headers: baseHeaders,
91
91
  },
92
92
  };
93
- return synthetics.executeHttpStep(`Verify 403 for ${url}`, requestOptions, validateStatusCodeAndContentType(403, mediaType || mediatypes_1.MediaType.APPLICATION_JSON));
93
+ return synthetics.executeHttpStep(`Verify 403 for ${url}`, requestOptions, validateStatusCodeAndContentType(403, mediaType ?? mediatypes_1.MediaType.APPLICATION_JSON));
94
94
  }
95
95
  done() {
96
96
  return "Canary successful";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2022.11.1-1",
3
+ "version": "2022.11.2-1",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "src/**/*.ts"
27
27
  ],
28
28
  "dependencies": {
29
- "@aws-cdk/aws-synthetics-alpha": "2.47.0-alpha.0",
29
+ "@aws-cdk/aws-synthetics-alpha": "2.50.0-alpha.0",
30
30
  "@types/geojson": "^7946.0.10",
31
- "aws-cdk-lib": "2.47.0",
31
+ "aws-cdk-lib": "2.50.0",
32
32
  "aws-sdk": "2.1241.0",
33
33
  "axios": "^0.21.1",
34
34
  "change-case": "4.1.2",
@@ -21,7 +21,7 @@ export class DigitrafficCanary extends Canary {
21
21
  environmentVariables: LambdaEnvironment
22
22
  ) {
23
23
  super(scope, canaryName, {
24
- runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_6,
24
+ runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_8,
25
25
  role,
26
26
  test: Test.custom({
27
27
  code: new AssetCode("dist", {
@@ -152,7 +152,7 @@ export class UrlChecker {
152
152
  requestOptions,
153
153
  validateStatusCodeAndContentType(
154
154
  403,
155
- mediaType || MediaType.APPLICATION_JSON
155
+ mediaType ?? MediaType.APPLICATION_JSON
156
156
  )
157
157
  );
158
158
  }