@jaypie/constructs 1.1.41 → 1.1.42

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
- export declare function envHostname({ component, domain, env, subdomain, }: {
1
+ export declare function envHostname({ component, domain, env, subdomain, }?: {
2
2
  component?: string;
3
3
  domain?: string;
4
4
  env?: string;
@@ -1,6 +1,6 @@
1
1
  import { Construct } from "constructs";
2
2
  import * as route53 from "aws-cdk-lib/aws-route53";
3
- export declare function resolveHostedZone(scope: Construct, { name, zone, }: {
3
+ export declare function resolveHostedZone(scope: Construct, { name, zone, }?: {
4
4
  name?: string;
5
5
  zone?: string | route53.IHostedZone;
6
6
  }): route53.IHostedZone;
@@ -212,7 +212,7 @@ function constructTagger(construct, { name } = {}) {
212
212
  return true;
213
213
  }
214
214
 
215
- function envHostname({ component, domain, env, subdomain, }) {
215
+ function envHostname({ component, domain, env, subdomain, } = {}) {
216
216
  const resolvedDomain = domain || process.env.CDK_ENV_DOMAIN || process.env.CDK_ENV_HOSTED_ZONE;
217
217
  if (!resolvedDomain) {
218
218
  throw new cdk$1.ConfigurationError("No hostname `domain` provided. Set CDK_ENV_DOMAIN or CDK_ENV_HOSTED_ZONE to use environment domain");
@@ -302,7 +302,7 @@ function jaypieLambdaEnv(options = {}) {
302
302
  return environment;
303
303
  }
304
304
 
305
- function resolveHostedZone(scope, { name = "HostedZone", zone = process.env.CDK_ENV_HOSTED_ZONE, }) {
305
+ function resolveHostedZone(scope, { name = "HostedZone", zone = process.env.CDK_ENV_HOSTED_ZONE, } = {}) {
306
306
  if (!zone) {
307
307
  throw new cdk$1.ConfigurationError("No `zone` provided. Set CDK_ENV_HOSTED_ZONE to use environment zone");
308
308
  }