@awsless/awsless 0.0.651 → 0.0.653
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 +4 -5
- package/dist/build-json-schema.js +2 -3
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/HASH +1 -1
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/stack.json +1 -1
- package/dist/stack.stage.json +1 -1
- package/package.json +11 -11
package/dist/bin.js
CHANGED
|
@@ -1415,7 +1415,7 @@ var QueueDefaultSchema = z20.object({
|
|
|
1415
1415
|
maxBatchingWindow: MaxBatchingWindow.optional()
|
|
1416
1416
|
}).default({});
|
|
1417
1417
|
var QueueSchema = z20.object({
|
|
1418
|
-
consumer: FunctionSchema.describe("The consuming lambda function properties."),
|
|
1418
|
+
consumer: FunctionSchema.optional().describe("The consuming lambda function properties."),
|
|
1419
1419
|
retentionPeriod: RetentionPeriodSchema.optional(),
|
|
1420
1420
|
visibilityTimeout: VisibilityTimeoutSchema.optional(),
|
|
1421
1421
|
deliveryDelay: DeliveryDelaySchema.optional(),
|
|
@@ -1431,8 +1431,7 @@ var QueuesSchema = z20.record(
|
|
|
1431
1431
|
LocalFileSchema.transform((consumer) => ({
|
|
1432
1432
|
consumer
|
|
1433
1433
|
})).pipe(QueueSchema),
|
|
1434
|
-
QueueSchema
|
|
1435
|
-
z20.literal(true)
|
|
1434
|
+
QueueSchema
|
|
1436
1435
|
])
|
|
1437
1436
|
).optional().describe("Define the queues in your stack.");
|
|
1438
1437
|
|
|
@@ -4667,7 +4666,7 @@ var queueFeature = defineFeature({
|
|
|
4667
4666
|
resourceType: "queue",
|
|
4668
4667
|
resourceName: name
|
|
4669
4668
|
});
|
|
4670
|
-
if (typeof props === "object" && "file" in props.consumer.code) {
|
|
4669
|
+
if (typeof props === "object" && props.consumer && "file" in props.consumer.code) {
|
|
4671
4670
|
const relFile = relative5(directories.types, props.consumer.code.file);
|
|
4672
4671
|
gen.addImport(varName, relFile);
|
|
4673
4672
|
mock.addType(name, `MockBuilder<typeof ${varName}>`);
|
|
@@ -4714,7 +4713,7 @@ var queueFeature = defineFeature({
|
|
|
4714
4713
|
})
|
|
4715
4714
|
)
|
|
4716
4715
|
});
|
|
4717
|
-
if (
|
|
4716
|
+
if (local.consumer) {
|
|
4718
4717
|
const lambdaConsumer = createLambdaFunction(group, ctx, `queue`, id, local.consumer);
|
|
4719
4718
|
lambdaConsumer.setEnvironment("THROW_EXPECTED_ERRORS", "1");
|
|
4720
4719
|
new aws11.lambda.EventSourceMapping(
|
|
@@ -477,7 +477,7 @@ var QueueDefaultSchema = z16.object({
|
|
|
477
477
|
maxBatchingWindow: MaxBatchingWindow.optional()
|
|
478
478
|
}).default({});
|
|
479
479
|
var QueueSchema = z16.object({
|
|
480
|
-
consumer: FunctionSchema.describe("The consuming lambda function properties."),
|
|
480
|
+
consumer: FunctionSchema.optional().describe("The consuming lambda function properties."),
|
|
481
481
|
retentionPeriod: RetentionPeriodSchema.optional(),
|
|
482
482
|
visibilityTimeout: VisibilityTimeoutSchema.optional(),
|
|
483
483
|
deliveryDelay: DeliveryDelaySchema.optional(),
|
|
@@ -493,8 +493,7 @@ var QueuesSchema = z16.record(
|
|
|
493
493
|
LocalFileSchema.transform((consumer) => ({
|
|
494
494
|
consumer
|
|
495
495
|
})).pipe(QueueSchema),
|
|
496
|
-
QueueSchema
|
|
497
|
-
z16.literal(true)
|
|
496
|
+
QueueSchema
|
|
498
497
|
])
|
|
499
498
|
).optional().describe("Define the queues in your stack.");
|
|
500
499
|
|
|
Binary file
|
package/dist/prebuild/image/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a8a0c621098150215b693d66e3304f6d4ae1db1b
|
|
Binary file
|
|
Binary file
|