@awsless/awsless 0.0.532 → 0.0.533

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
@@ -108,6 +108,9 @@ var createCloudFrontKvsProvider = ({ profile, region }) => {
108
108
  let result;
109
109
  let ifMatch = prev.ETag;
110
110
  for (const mutations of batches) {
111
+ if (mutations.length === 0) {
112
+ continue;
113
+ }
111
114
  result = await client.send(
112
115
  new UpdateKeysCommand({
113
116
  KvsARN: props.arn,
@@ -4894,15 +4897,6 @@ var siteFeature = defineFeature({
4894
4897
  });
4895
4898
  });
4896
4899
  }
4897
- const kvs = new $15.aws.cloudfront.KeyValueStore(group, "kvs", {
4898
- name,
4899
- comment: "Store for static assets"
4900
- });
4901
- const keys = [];
4902
- new ImportKeys(group, "keys", {
4903
- kvsArn: kvs.arn,
4904
- keys
4905
- });
4906
4900
  const versions = [];
4907
4901
  let functionUrl;
4908
4902
  if (props.ssr) {
@@ -4923,6 +4917,7 @@ var siteFeature = defineFeature({
4923
4917
  authorizationType: "AWS_IAM"
4924
4918
  });
4925
4919
  }
4920
+ let kvs;
4926
4921
  let bucket;
4927
4922
  if (props.static) {
4928
4923
  bucket = new $15.aws.s3.Bucket(group, "bucket", {
@@ -4964,6 +4959,15 @@ var siteFeature = defineFeature({
4964
4959
  bucket.arn.pipe((arn) => `${arn}/*`)
4965
4960
  ]
4966
4961
  });
4962
+ kvs = new $15.aws.cloudfront.KeyValueStore(group, "kvs", {
4963
+ name,
4964
+ comment: "Store for static assets"
4965
+ });
4966
+ const keys = [];
4967
+ new ImportKeys(group, "keys", {
4968
+ kvsArn: kvs.arn,
4969
+ keys
4970
+ });
4967
4971
  ctx.onReady(() => {
4968
4972
  if (typeof props.static === "string" && bucket) {
4969
4973
  const files = glob2.sync("**", {
@@ -5079,13 +5083,10 @@ var siteFeature = defineFeature({
5079
5083
  comment: `Viewer Request - ${name}`,
5080
5084
  publish: true,
5081
5085
  code: getViewerRequestFunctionCode(domainName, bucket, functionUrl),
5082
- keyValueStoreAssociations: [kvs.arn]
5086
+ keyValueStoreAssociations: kvs ? [kvs.arn] : void 0
5083
5087
  });
5084
5088
  const distribution = new $15.aws.cloudfront.Distribution(group, "distribution", {
5085
- // name,
5086
- // tags: {
5087
- // Name: name,
5088
- // },
5089
+ waitForDeployment: false,
5089
5090
  comment: name,
5090
5091
  enabled: true,
5091
5092
  aliases: domainName ? [domainName] : void 0,
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.532",
3
+ "version": "0.0.533",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,14 +35,14 @@
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.0.6",
37
37
  "@awsless/clui": "^0.0.7",
38
- "@awsless/dynamodb": "^0.1.5",
39
38
  "@awsless/json": "^0.0.10",
40
- "@awsless/mqtt": "^0.0.2",
41
39
  "@awsless/lambda": "^0.0.33",
42
- "@awsless/s3": "^0.0.21",
43
40
  "@awsless/open-search": "^0.0.21",
44
- "@awsless/ssm": "^0.0.7",
41
+ "@awsless/dynamodb": "^0.1.5",
45
42
  "@awsless/redis": "^0.0.14",
43
+ "@awsless/mqtt": "^0.0.2",
44
+ "@awsless/s3": "^0.0.21",
45
+ "@awsless/ssm": "^0.0.7",
46
46
  "@awsless/validate": "^0.0.19",
47
47
  "@awsless/weak-cache": "^0.0.1",
48
48
  "@awsless/sns": "^0.0.10",
@@ -130,14 +130,14 @@
130
130
  "zip-a-folder": "^3.1.6",
131
131
  "zod": "^3.24.2",
132
132
  "zod-to-json-schema": "^3.24.3",
133
+ "@awsless/code": "^0.0.10",
133
134
  "@awsless/big-float": "^0.0.6",
134
135
  "@awsless/formation": "^0.0.77",
135
136
  "@awsless/duration": "^0.0.3",
136
- "@awsless/code": "^0.0.10",
137
137
  "@awsless/graphql": "^0.0.9",
138
+ "@awsless/validate": "^0.0.19",
138
139
  "@awsless/size": "^0.0.2",
139
140
  "@awsless/json": "^0.0.10",
140
- "@awsless/validate": "^0.0.19",
141
141
  "@awsless/clui": "^0.0.7",
142
142
  "@awsless/ts-file-cache": "^0.0.12"
143
143
  },