@awsless/awsless 0.0.481 → 0.0.483

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
@@ -638,7 +638,9 @@ var LocalDirectorySchema = z10.union([
638
638
  }
639
639
  }, `Directory doesn't exist`),
640
640
  z10.object({
641
- nocheck: z10.string().describe("Specifies a local directory without checking if the directory exists.")
641
+ nocheck: RelativePathSchema.describe(
642
+ "Specifies a local directory without checking if the directory exists."
643
+ )
642
644
  }).transform((v) => v.nocheck)
643
645
  ]);
644
646
 
@@ -655,7 +657,7 @@ var LocalFileSchema = z11.union([
655
657
  }
656
658
  }, `File doesn't exist`),
657
659
  z11.object({
658
- nocheck: z11.string().describe("Specifies a local file without checking if the file exists.")
660
+ nocheck: RelativePathSchema.describe("Specifies a local file without checking if the file exists.")
659
661
  }).transform((v) => v.nocheck)
660
662
  ]);
661
663
 
@@ -1328,7 +1330,9 @@ var LocalEntrySchema = z30.union([
1328
1330
  }
1329
1331
  }, `File or directory doesn't exist`),
1330
1332
  z30.object({
1331
- nocheck: z30.string().describe("Specifies a local file or directory without checking if the file or directory exists.")
1333
+ nocheck: RelativePathSchema.describe(
1334
+ "Specifies a local file or directory without checking if the file or directory exists."
1335
+ )
1332
1336
  }).transform((v) => v.nocheck)
1333
1337
  ]);
1334
1338
 
@@ -4532,7 +4536,8 @@ var siteFeature = defineFeature({
4532
4536
  ctx.onReady(() => {
4533
4537
  if (typeof props.static === "string") {
4534
4538
  const files = glob2.sync("**", {
4535
- cwd: join11(directories.root, props.static),
4539
+ // cwd: join(directories.root, props.static),
4540
+ cwd: props.static,
4536
4541
  nodir: true
4537
4542
  });
4538
4543
  for (const file of files) {
@@ -4541,8 +4546,8 @@ var siteFeature = defineFeature({
4541
4546
  key: file,
4542
4547
  cacheControl: getCacheControl(file),
4543
4548
  contentType: getContentType(file),
4544
- source: join11(directories.root, props.static, file),
4545
- sourceHash: $hash(join11(directories.root, props.static, file))
4549
+ source: join11(props.static, file),
4550
+ sourceHash: $hash(join11(props.static, file))
4546
4551
  });
4547
4552
  versions.push(object.key);
4548
4553
  versions.push(object.sourceHash);
@@ -4716,7 +4721,7 @@ var siteFeature = defineFeature({
4716
4721
  cachePolicyId: cache.id,
4717
4722
  responseHeadersPolicyId: responseHeaders.id,
4718
4723
  viewerProtocolPolicy: "redirect-to-https",
4719
- allowedMethods: ["GET", "HEAD", "OPTIONS"],
4724
+ allowedMethods: ["GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"],
4720
4725
  cachedMethods: ["GET", "HEAD"]
4721
4726
  }
4722
4727
  });
@@ -148,7 +148,9 @@ var LocalDirectorySchema = z8.union([
148
148
  }
149
149
  }, `Directory doesn't exist`),
150
150
  z8.object({
151
- nocheck: z8.string().describe("Specifies a local directory without checking if the directory exists.")
151
+ nocheck: RelativePathSchema.describe(
152
+ "Specifies a local directory without checking if the directory exists."
153
+ )
152
154
  }).transform((v) => v.nocheck)
153
155
  ]);
154
156
 
@@ -165,7 +167,7 @@ var LocalFileSchema = z9.union([
165
167
  }
166
168
  }, `File doesn't exist`),
167
169
  z9.object({
168
- nocheck: z9.string().describe("Specifies a local file without checking if the file exists.")
170
+ nocheck: RelativePathSchema.describe("Specifies a local file without checking if the file exists.")
169
171
  }).transform((v) => v.nocheck)
170
172
  ]);
171
173
 
@@ -838,7 +840,9 @@ var LocalEntrySchema = z28.union([
838
840
  }
839
841
  }, `File or directory doesn't exist`),
840
842
  z28.object({
841
- nocheck: z28.string().describe("Specifies a local file or directory without checking if the file or directory exists.")
843
+ nocheck: RelativePathSchema.describe(
844
+ "Specifies a local file or directory without checking if the file or directory exists."
845
+ )
842
846
  }).transform((v) => v.nocheck)
843
847
  ]);
844
848
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.481",
3
+ "version": "0.0.483",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@awsless/dynamodb": "^0.1.5",
32
- "@awsless/json": "^0.0.8",
33
- "@awsless/iot": "^0.0.3",
34
32
  "@awsless/lambda": "^0.0.32",
35
33
  "@awsless/mqtt": "^0.0.2",
36
- "@awsless/open-search": "^0.0.17",
37
- "@awsless/s3": "^0.0.20",
38
- "@awsless/sns": "^0.0.10",
34
+ "@awsless/json": "^0.0.8",
39
35
  "@awsless/redis": "^0.0.14",
40
- "@awsless/sqs": "^0.0.8",
36
+ "@awsless/open-search": "^0.0.17",
37
+ "@awsless/ssm": "^0.0.7",
41
38
  "@awsless/validate": "^0.0.19",
39
+ "@awsless/iot": "^0.0.3",
40
+ "@awsless/sns": "^0.0.10",
42
41
  "@awsless/weak-cache": "^0.0.1",
43
- "@awsless/ssm": "^0.0.7"
42
+ "@awsless/s3": "^0.0.20",
43
+ "@awsless/sqs": "^0.0.8"
44
44
  },
45
45
  "dependencies": {
46
46
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -120,13 +120,13 @@
120
120
  "zod": "^3.24.2",
121
121
  "zod-to-json-schema": "^3.24.3",
122
122
  "@awsless/code": "^0.0.10",
123
+ "@awsless/duration": "^0.0.3",
123
124
  "@awsless/formation": "^0.0.74",
124
- "@awsless/json": "^0.0.8",
125
125
  "@awsless/graphql": "^0.0.9",
126
126
  "@awsless/size": "^0.0.2",
127
- "@awsless/ts-file-cache": "^0.0.12",
127
+ "@awsless/json": "^0.0.8",
128
128
  "@awsless/validate": "^0.0.19",
129
- "@awsless/duration": "^0.0.3"
129
+ "@awsless/ts-file-cache": "^0.0.12"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@node-rs/bcrypt": "^1.10.5"