@fy-stack/cdn-construct 0.0.144 → 0.0.145

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 +1 @@
1
- {"version":3,"file":"cdn-construct.d.ts","sourceRoot":"","sources":["../../src/lib/cdn-construct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAE/D,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,YAAa,SAAQ,SAAU,YAAW,UAAU;IACxD,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;IACtC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE1B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB;IAuHlE,OAAO,CAAC,WAAW;IAKnB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAKrC"}
1
+ {"version":3,"file":"cdn-construct.d.ts","sourceRoot":"","sources":["../../src/lib/cdn-construct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAE/D,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,YAAa,SAAQ,SAAU,YAAW,UAAU;IACxD,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;IACtC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE1B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB;IA2HlE,OAAO,CAAC,WAAW;IAKnB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAKrC"}
@@ -26,12 +26,14 @@ class CDNConstruct extends constructs_1.Construct {
26
26
  const { '/*': base, ...otherRoutes } = routes;
27
27
  if (!base)
28
28
  throw new Error('no base route');
29
- const { '/*': defaultBehavior, ...additionalBehaviors } = base.cloudfront('');
29
+ const { '/*': defaultBehavior, ...additionalDefaultBehaviors } = base.cloudfront('');
30
30
  if (!defaultBehavior)
31
31
  throw new Error('no default behaviour');
32
+ const additionalBehaviors = {};
32
33
  for (const i in otherRoutes) {
33
34
  Object.assign(additionalBehaviors, otherRoutes[i]?.cloudfront(i));
34
35
  }
36
+ Object.assign(additionalBehaviors, additionalDefaultBehaviors);
35
37
  let certificate;
36
38
  const subjectAlternativeNames = [];
37
39
  const zones = {};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@fy-stack/cdn-construct",
3
- "version": "0.0.144",
3
+ "version": "0.0.145",
4
4
  "repository": "https://github.com/festusyuma/fy-stack",
5
5
  "dependencies": {
6
- "@fy-stack/types": "0.0.144",
6
+ "@fy-stack/types": "0.0.145",
7
7
  "tslib": "^2.3.0"
8
8
  },
9
9
  "peerDependencies": {