@awsless/awsless 0.0.480 → 0.0.482

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
 
@@ -4452,7 +4456,6 @@ var siteFeature = defineFeature({
4452
4456
  const result = createLambdaFunction(group, ctx, `site`, id, props.ssr);
4453
4457
  versions.push(result.code.sourceHash);
4454
4458
  ctx.onBind((name2, value) => {
4455
- console.log("--BIND--", name2, value);
4456
4459
  result.setEnvironment(name2, value);
4457
4460
  });
4458
4461
  new $15.aws.lambda.Permission(group, "ssr-permission", {
@@ -4533,7 +4536,8 @@ var siteFeature = defineFeature({
4533
4536
  ctx.onReady(() => {
4534
4537
  if (typeof props.static === "string") {
4535
4538
  const files = glob2.sync("**", {
4536
- cwd: join11(directories.root, props.static),
4539
+ // cwd: join(directories.root, props.static),
4540
+ cwd: props.static,
4537
4541
  nodir: true
4538
4542
  });
4539
4543
  for (const file of files) {
@@ -4542,8 +4546,8 @@ var siteFeature = defineFeature({
4542
4546
  key: file,
4543
4547
  cacheControl: getCacheControl(file),
4544
4548
  contentType: getContentType(file),
4545
- source: join11(directories.root, props.static, file),
4546
- sourceHash: $hash(join11(directories.root, props.static, file))
4549
+ source: join11(props.static, file),
4550
+ sourceHash: $hash(join11(props.static, file))
4547
4551
  });
4548
4552
  versions.push(object.key);
4549
4553
  versions.push(object.sourceHash);
@@ -4776,10 +4780,9 @@ var siteFeature = defineFeature({
4776
4780
  }
4777
4781
  });
4778
4782
  }
4779
- ctx.bind(
4780
- `SITE_${constantCase10(ctx.stack.name)}_${constantCase10(id)}_ENDPOINT`,
4781
- domainName ? domainName : distribution.domainName
4782
- );
4783
+ if (domainName) {
4784
+ ctx.bind(`SITE_${constantCase10(ctx.stack.name)}_${constantCase10(id)}_ENDPOINT`, domainName);
4785
+ }
4783
4786
  }
4784
4787
  }
4785
4788
  });
@@ -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.480",
3
+ "version": "0.0.482",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,16 +31,16 @@
31
31
  "@awsless/dynamodb": "^0.1.5",
32
32
  "@awsless/lambda": "^0.0.32",
33
33
  "@awsless/json": "^0.0.8",
34
- "@awsless/open-search": "^0.0.17",
34
+ "@awsless/iot": "^0.0.3",
35
35
  "@awsless/mqtt": "^0.0.2",
36
- "@awsless/redis": "^0.0.14",
36
+ "@awsless/sns": "^0.0.10",
37
+ "@awsless/open-search": "^0.0.17",
37
38
  "@awsless/sqs": "^0.0.8",
38
- "@awsless/iot": "^0.0.3",
39
+ "@awsless/redis": "^0.0.14",
39
40
  "@awsless/validate": "^0.0.19",
40
41
  "@awsless/s3": "^0.0.20",
41
- "@awsless/sns": "^0.0.10",
42
- "@awsless/weak-cache": "^0.0.1",
43
- "@awsless/ssm": "^0.0.7"
42
+ "@awsless/ssm": "^0.0.7",
43
+ "@awsless/weak-cache": "^0.0.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -119,14 +119,14 @@
119
119
  "zip-a-folder": "^3.1.6",
120
120
  "zod": "^3.24.2",
121
121
  "zod-to-json-schema": "^3.24.3",
122
+ "@awsless/duration": "^0.0.3",
123
+ "@awsless/formation": "^0.0.74",
122
124
  "@awsless/graphql": "^0.0.9",
123
- "@awsless/code": "^0.0.10",
124
- "@awsless/ts-file-cache": "^0.0.12",
125
- "@awsless/size": "^0.0.2",
126
125
  "@awsless/json": "^0.0.8",
126
+ "@awsless/code": "^0.0.10",
127
127
  "@awsless/validate": "^0.0.19",
128
- "@awsless/duration": "^0.0.3",
129
- "@awsless/formation": "^0.0.74"
128
+ "@awsless/size": "^0.0.2",
129
+ "@awsless/ts-file-cache": "^0.0.12"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@node-rs/bcrypt": "^1.10.5"