qlara 0.1.7 → 0.1.8

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/aws.cjs CHANGED
@@ -764,8 +764,9 @@ async function updateCloudFrontEdgeVersion(cf, distributionId, newVersionArn) {
764
764
  const lambdaAssociations = config.DefaultCacheBehavior?.LambdaFunctionAssociations;
765
765
  if (lambdaAssociations?.Items) {
766
766
  for (const assoc of lambdaAssociations.Items) {
767
- if (assoc.EventType === "origin-request") {
767
+ if (assoc.EventType === "origin-request" || assoc.EventType === "origin-response") {
768
768
  assoc.LambdaFunctionARN = newVersionArn;
769
+ assoc.EventType = "origin-request";
769
770
  }
770
771
  }
771
772
  }
package/dist/aws.js CHANGED
@@ -760,8 +760,9 @@ async function updateCloudFrontEdgeVersion(cf, distributionId, newVersionArn) {
760
760
  const lambdaAssociations = config.DefaultCacheBehavior?.LambdaFunctionAssociations;
761
761
  if (lambdaAssociations?.Items) {
762
762
  for (const assoc of lambdaAssociations.Items) {
763
- if (assoc.EventType === "origin-request") {
763
+ if (assoc.EventType === "origin-request" || assoc.EventType === "origin-response") {
764
764
  assoc.LambdaFunctionARN = newVersionArn;
765
+ assoc.EventType = "origin-request";
765
766
  }
766
767
  }
767
768
  }
package/dist/cli.js CHANGED
@@ -768,8 +768,9 @@ async function updateCloudFrontEdgeVersion(cf, distributionId, newVersionArn) {
768
768
  const lambdaAssociations = config.DefaultCacheBehavior?.LambdaFunctionAssociations;
769
769
  if (lambdaAssociations?.Items) {
770
770
  for (const assoc of lambdaAssociations.Items) {
771
- if (assoc.EventType === "origin-request") {
771
+ if (assoc.EventType === "origin-request" || assoc.EventType === "origin-response") {
772
772
  assoc.LambdaFunctionARN = newVersionArn;
773
+ assoc.EventType = "origin-request";
773
774
  }
774
775
  }
775
776
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlara",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Runtime ISR for static React apps — dynamic routing and SEO metadata for statically exported Next.js apps on AWS",
5
5
  "license": "MIT",
6
6
  "keywords": [