@awsless/awsless 0.0.556 → 0.0.557

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
@@ -1665,7 +1665,7 @@ var SitesSchema = z34.record(
1665
1665
  cacheKey: z34.union([LocalEntrySchema.transform((v) => [v]), LocalEntrySchema.array()]).describe(
1666
1666
  `Specifies the files and directories to generate the cache key for your custom build command.`
1667
1667
  ),
1668
- configs: z34.string().array().describe("Define the config values for your build command.")
1668
+ configs: z34.string().array().optional().describe("Define the config values for your build command.")
1669
1669
  }).optional().describe(`Specifies the build process for sites that need a build step.`),
1670
1670
  static: z34.union([LocalDirectorySchema, z34.boolean()]).optional().describe(
1671
1671
  "Specifies the path to the static files directory. Additionally you can also pass `true` when you don't have local static files, but still want to make an S3 bucket."
@@ -1721,10 +1721,10 @@ var SitesSchema = z34.record(
1721
1721
  origins: z34.string().array().default(["*"]),
1722
1722
  methods: z34.enum(["GET", "DELETE", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "ALL"]).array().default(["ALL"])
1723
1723
  }).optional().describe("Specify the cors headers."),
1724
- auth: z34.object({
1725
- username: z34.string().describe("Basic auth username"),
1726
- password: z34.string().describe("Basic auth password")
1727
- }).optional().describe("Enable basic authentication for the site"),
1724
+ basicAuth: z34.object({
1725
+ username: z34.string().describe("Basic auth username."),
1726
+ password: z34.string().describe("Basic auth password.")
1727
+ }).optional().describe("Enable basic authentication for the site."),
1728
1728
  security: z34.object({
1729
1729
  // contentSecurityPolicy: z.object({
1730
1730
  // override: z.boolean().default(false),
@@ -5305,7 +5305,7 @@ var siteFeature = defineFeature({
5305
5305
  runtime: `cloudfront-js-2.0`,
5306
5306
  comment: `Viewer Request - ${name}`,
5307
5307
  publish: true,
5308
- code: getViewerRequestFunctionCode(domainName, bucket, functionUrl, props.auth),
5308
+ code: getViewerRequestFunctionCode(domainName, bucket, functionUrl, props.basicAuth),
5309
5309
  keyValueStoreAssociations: kvs ? [kvs.arn] : void 0
5310
5310
  });
5311
5311
  const distribution = new $15.aws.cloudfront.Distribution(group, "distribution", {
@@ -5946,7 +5946,8 @@ var testFeature = defineFeature({
5946
5946
  ctx.addWarning({
5947
5947
  message: [
5948
5948
  `Stack ${color.info(ctx.stack.name)} has no tests defined.`,
5949
- `Consider adding test cases to ensure stability.`
5949
+ `Consider adding test cases to ensure stability.`,
5950
+ `If your stack doesn't need tests you can set the tests field to \`false\``
5950
5951
  ].join(" ")
5951
5952
  });
5952
5953
  }
@@ -1057,7 +1057,7 @@ var SitesSchema = z31.record(
1057
1057
  cacheKey: z31.union([LocalEntrySchema.transform((v) => [v]), LocalEntrySchema.array()]).describe(
1058
1058
  `Specifies the files and directories to generate the cache key for your custom build command.`
1059
1059
  ),
1060
- configs: z31.string().array().describe("Define the config values for your build command.")
1060
+ configs: z31.string().array().optional().describe("Define the config values for your build command.")
1061
1061
  }).optional().describe(`Specifies the build process for sites that need a build step.`),
1062
1062
  static: z31.union([LocalDirectorySchema, z31.boolean()]).optional().describe(
1063
1063
  "Specifies the path to the static files directory. Additionally you can also pass `true` when you don't have local static files, but still want to make an S3 bucket."
@@ -1113,10 +1113,10 @@ var SitesSchema = z31.record(
1113
1113
  origins: z31.string().array().default(["*"]),
1114
1114
  methods: z31.enum(["GET", "DELETE", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "ALL"]).array().default(["ALL"])
1115
1115
  }).optional().describe("Specify the cors headers."),
1116
- auth: z31.object({
1117
- username: z31.string().describe("Basic auth username"),
1118
- password: z31.string().describe("Basic auth password")
1119
- }).optional().describe("Enable basic authentication for the site"),
1116
+ basicAuth: z31.object({
1117
+ username: z31.string().describe("Basic auth username."),
1118
+ password: z31.string().describe("Basic auth password.")
1119
+ }).optional().describe("Enable basic authentication for the site."),
1120
1120
  security: z31.object({
1121
1121
  // contentSecurityPolicy: z.object({
1122
1122
  // override: z.boolean().default(false),
Binary file
Binary file
@@ -1 +1 @@
1
- 355b49989570d95758c09af3e91d59c93fcf2284
1
+ e4e6754c9211e7052132876e9d5853a8fca5bafe
Binary file