@awsless/awsless 0.0.429 → 0.0.430

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
@@ -7594,7 +7594,6 @@ import { z as z8 } from "zod";
7594
7594
  import { paramCase as paramCase2 } from "change-case";
7595
7595
  import { z as z3 } from "zod";
7596
7596
  var ResourceIdSchema = z3.string().min(3).max(24).regex(/^[a-z0-9\-]+$/i, "Invalid resource ID").transform((value) => paramCase2(value));
7597
- var LayerIdSchema = z3.string().min(2).max(214).transform((value) => paramCase2(value));
7598
7597
 
7599
7598
  // src/feature/function/schema.ts
7600
7599
  import { days, minutes as minutes2, seconds, toDays } from "@awsless/duration";
@@ -7734,7 +7733,7 @@ var LogSchema = z7.union([
7734
7733
  ).optional()
7735
7734
  })
7736
7735
  ]).describe("Enable logging to a CloudWatch log group. Providing a duration value will set the log retention time.");
7737
- var LayersSchema = LayerIdSchema.array().describe(
7736
+ var LayersSchema = z7.string().array().describe(
7738
7737
  `A list of function layers to add to the function's execution environment.`
7739
7738
  // `A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.`
7740
7739
  );
@@ -8032,7 +8031,7 @@ var Schema = z15.object({
8032
8031
  )
8033
8032
  });
8034
8033
  var LayerSchema = z15.record(
8035
- LayerIdSchema,
8034
+ z15.string(),
8036
8035
  z15.union([
8037
8036
  LocalFileSchema.transform((file) => ({
8038
8037
  file,
@@ -11,7 +11,6 @@ import { z as z7 } from "zod";
11
11
  import { paramCase } from "change-case";
12
12
  import { z } from "zod";
13
13
  var ResourceIdSchema = z.string().min(3).max(24).regex(/^[a-z0-9\-]+$/i, "Invalid resource ID").transform((value) => paramCase(value));
14
- var LayerIdSchema = z.string().min(2).max(214).transform((value) => paramCase(value));
15
14
 
16
15
  // src/feature/function/schema.ts
17
16
  import { days, minutes, seconds, toDays } from "@awsless/duration";
@@ -181,7 +180,7 @@ var LogSchema = z5.union([
181
180
  ).optional()
182
181
  })
183
182
  ]).describe("Enable logging to a CloudWatch log group. Providing a duration value will set the log retention time.");
184
- var LayersSchema = LayerIdSchema.array().describe(
183
+ var LayersSchema = z5.string().array().describe(
185
184
  `A list of function layers to add to the function's execution environment.`
186
185
  // `A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.`
187
186
  );
@@ -1162,7 +1161,7 @@ var Schema = z34.object({
1162
1161
  )
1163
1162
  });
1164
1163
  var LayerSchema = z34.record(
1165
- LayerIdSchema,
1164
+ z34.string(),
1166
1165
  z34.union([
1167
1166
  LocalFileSchema.transform((file) => ({
1168
1167
  file,
Binary file