effortless-aws 0.14.0 → 0.14.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.
package/dist/cli/index.js CHANGED
@@ -72314,7 +72314,13 @@ var findDistributionByTags = (project2, stage, handlerName) => Effect_exports.ge
72314
72314
  });
72315
72315
  if (!dist?.ResourceARN) return void 0;
72316
72316
  const distributionId = dist.ResourceARN.split("/").pop();
72317
- const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId });
72317
+ const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId }).pipe(
72318
+ Effect_exports.catchIf(
72319
+ (e) => e._tag === "CloudFrontError" && e.is("NoSuchDistribution"),
72320
+ () => Effect_exports.succeed(void 0)
72321
+ )
72322
+ );
72323
+ if (!result) return void 0;
72318
72324
  return {
72319
72325
  Id: distributionId,
72320
72326
  DomainName: result.Distribution.DomainName