@awsless/cli 0.0.46-next.4 → 0.0.46-next.6

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.
@@ -237,7 +237,7 @@ var CodeSchema = z10.union([
237
237
  var FnSchema = z10.object({
238
238
  code: CodeSchema,
239
239
  handler: HandlerSchema.optional()
240
- });
240
+ }).strict();
241
241
  var FunctionSchema = z10.union([
242
242
  LocalFileSchema.transform((code) => ({
243
243
  code
@@ -511,7 +511,7 @@ var ErrorResponseSchema = z16.union([
511
511
  minTTL: MinTTLSchema.optional()
512
512
  })
513
513
  ]).optional();
514
- var RouteSchema = z16.string().regex(/^\//, "Route must start with a slash (/)");
514
+ var RouteSchema = z16.string().regex(/^\//, "Route must start with a slash (/)").regex(/^\/([^/*.]+)?$/, 'Router paths mount a single segment without dots, like "/api".');
515
515
  var VisibilitySchema = z16.boolean().default(false).describe("Whether to enable CloudWatch metrics for the WAF rule.");
516
516
  var WafSettingsSchema = z16.object({
517
517
  rateLimiter: z16.object({
@@ -1009,8 +1009,8 @@ var AppSchema = z25.object({
1009
1009
  layers: LayerSchema,
1010
1010
  router: RouterDefaultSchema
1011
1011
  // dataRetention: z.boolean().describe('Configure how your resources are handled on delete.').default(false),
1012
- }).default({}).describe("Default properties")
1013
- });
1012
+ }).strict().default({}).describe("Default properties")
1013
+ }).strict();
1014
1014
 
1015
1015
  // src/config/stack.ts
1016
1016
  import { z as z41 } from "zod";
@@ -1066,7 +1066,7 @@ var CommandsSchema = z27.record(ResourceIdSchema, CommandSchema).optional().desc
1066
1066
 
1067
1067
  // src/feature/config/schema.ts
1068
1068
  import { z as z28 } from "zod";
1069
- var ConfigNameSchema = z28.string().regex(/[a-z0-9\-]/g, "Invalid config name");
1069
+ var ConfigNameSchema = z28.string().regex(/^[a-z0-9-]+$/, "Invalid config name");
1070
1070
  var ConfigsSchema = z28.array(ConfigNameSchema).optional().describe("Define the config values for your stack.");
1071
1071
 
1072
1072
  // src/feature/cron/schema/index.ts
@@ -1652,7 +1652,7 @@ var StackSchema = z41.object({
1652
1652
  images: ImagesSchema,
1653
1653
  icons: IconsSchema,
1654
1654
  metrics: MetricsSchema
1655
- });
1655
+ }).strict();
1656
1656
 
1657
1657
  // src/config/stage-patch-json-schema.ts
1658
1658
  var clone = (value) => {