@awsless/awsless 0.0.140 → 0.0.142

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/bin.js CHANGED
@@ -2252,15 +2252,13 @@ var HostedZone = class extends Resource {
2252
2252
  constructor(logicalId, props = {}) {
2253
2253
  super("AWS::Route53::HostedZone", logicalId);
2254
2254
  this.props = props;
2255
- this.name = this.props.domainName || logicalId;
2256
2255
  }
2257
- name;
2258
2256
  get id() {
2259
2257
  return ref(this.logicalId);
2260
2258
  }
2261
2259
  properties() {
2262
2260
  return {
2263
- Name: this.name + "."
2261
+ Name: this.props.domainName + "."
2264
2262
  };
2265
2263
  }
2266
2264
  };
@@ -2473,7 +2471,9 @@ var domainPlugin = definePlugin({
2473
2471
  });
2474
2472
  bootstrap2.add(configurationSet);
2475
2473
  for (const [id, props] of domains) {
2476
- const hostedZone = new HostedZone(id);
2474
+ const hostedZone = new HostedZone(id, {
2475
+ domainName: props.domain
2476
+ });
2477
2477
  const usEastCertificate = new Certificate(id, {
2478
2478
  domainName: props.domain,
2479
2479
  hostedZoneId: hostedZone.id,
@@ -4098,7 +4098,7 @@ var restPlugin = definePlugin({
4098
4098
  }).dependsOn(api);
4099
4099
  bootstrap2.add(api, stage).export(`rest-${id}-id`, api.id);
4100
4100
  if (props.domain) {
4101
- const domainName = props.subDomain ? `${props.subDomain}.${props.domain}` : props.domain;
4101
+ const domainName = formatFullDomainName(config2, props.domain, props.subDomain);
4102
4102
  const hostedZoneId = bootstrap2.import(`hosted-zone-${props.domain}-id`);
4103
4103
  const certificateArn = bootstrap2.import(`certificate-${props.domain}-arn`);
4104
4104
  const domain = new DomainName2(id, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.140",
3
+ "version": "0.0.142",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,12 +28,12 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/lambda": "^0.0.15",
32
31
  "@awsless/sns": "^0.0.7",
33
32
  "@awsless/redis": "^0.0.10",
34
- "@awsless/ssm": "^0.0.7",
33
+ "@awsless/lambda": "^0.0.15",
35
34
  "@awsless/sqs": "^0.0.7",
36
35
  "@awsless/validate": "^0.0.10",
36
+ "@awsless/ssm": "^0.0.7",
37
37
  "@awsless/weak-cache": "^0.0.1"
38
38
  },
39
39
  "dependencies": {
@@ -87,8 +87,8 @@
87
87
  "wrap-ansi": "^8.1.0",
88
88
  "zod": "^3.21.4",
89
89
  "zod-to-json-schema": "^3.22.3",
90
- "@awsless/graphql": "^0.0.6",
91
- "@awsless/code": "^0.0.10"
90
+ "@awsless/code": "^0.0.10",
91
+ "@awsless/graphql": "^0.0.6"
92
92
  },
93
93
  "scripts": {
94
94
  "test": "pnpm code test",