@awsless/awsless 0.0.219 → 0.0.221

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/README.MD CHANGED
@@ -12,9 +12,14 @@
12
12
 
13
13
  # Features
14
14
 
15
+ - VPC
16
+ - Tests
17
+ - Auth
18
+ - Config
15
19
  - Domains
16
20
  - Sites
17
21
  - Functions
22
+ - Tasks
18
23
  - Database
19
24
  - Tables
20
25
  - Stores
@@ -22,12 +27,12 @@
22
27
  - Searchs
23
28
  - Queues
24
29
  - Topics
25
- - Pubsub
30
+ - Realtime
26
31
  - Crons
27
32
  - API
28
33
  - HTTP
29
34
  - GraphQL
30
-
35
+ - Process Failure Capture
31
36
 
32
37
  ## Domains
33
38
 
@@ -60,6 +65,19 @@ We use AWS Lambda to provide serverless functions.
60
65
  }
61
66
  ```
62
67
 
68
+ ## Tasks
69
+
70
+ We use AWS Async Lambda to provide serverless async tasks.
71
+ Tasks are an lower cost alternative to queues.
72
+
73
+ ```json
74
+ {
75
+ "tasks": {
76
+ "TASK_NAME": "task.ts"
77
+ }
78
+ }
79
+ ```
80
+
63
81
  ## Tables
64
82
 
65
83
  We use AWS DynamoDB to provide serverless tables.
@@ -140,7 +158,7 @@ We use AWS SNS to provide serverless pubsub topics.
140
158
  }
141
159
  ```
142
160
 
143
- ## Pubsub
161
+ ## Realtime
144
162
 
145
163
  We use AWS IoT to provide a serverless mqtt pubsub channel.
146
164
 
package/dist/bin.js CHANGED
@@ -709,7 +709,7 @@ var TopicNameSchema = z22.string().min(3).max(256).regex(/^[a-z0-9\-]+$/i, "Inva
709
709
  var TopicsSchema = z22.array(TopicNameSchema).refine((topics) => {
710
710
  return topics.length === new Set(topics).size;
711
711
  }, "Must be a list of unique topic names").optional().describe("Define the event topics to publish too in your stack.");
712
- var SubscribersSchema = z22.record(TopicNameSchema, z22.union([EmailSchema, FunctionSchema])).optional().describe("Define the events to subscribe too in your stack.");
712
+ var SubscribersSchema = z22.record(TopicNameSchema, z22.union([EmailSchema, FunctionSchema])).optional().describe("Define the event topics to subscribe too in your stack.");
713
713
 
714
714
  // src/feature/cron/schema/index.ts
715
715
  import { z as z24 } from "zod";
@@ -2604,7 +2604,7 @@ var fingerprintFromDirectory = async (dir) => {
2604
2604
  const hashes = /* @__PURE__ */ new Map();
2605
2605
  const files = await readdir2(dir, { recursive: true });
2606
2606
  for (const file of files) {
2607
- if (extensions2.includes(extname3(file).substring(1))) {
2607
+ if (extensions2.includes(extname3(file).substring(1)) && file.at(0) !== "_") {
2608
2608
  await generateFileHashes2(join7(dir, file), hashes);
2609
2609
  }
2610
2610
  }
@@ -4081,6 +4081,7 @@ var taskFeature = defineFeature({
4081
4081
  for (const [id, props] of Object.entries(ctx.stackConfig.tasks ?? {})) {
4082
4082
  const group = new Node19(ctx.stack, "task", id);
4083
4083
  const { lambda, policy } = createLambdaFunction(group, ctx, "task", id, props.consumer);
4084
+ lambda.addEnvironment("LOG_VIEWABLE_ERROR", "1");
4084
4085
  const invokeConfig = new aws19.lambda.EventInvokeConfig(group, "config", {
4085
4086
  functionArn: lambda.arn,
4086
4087
  retryAttempts: props.retryAttempts,
@@ -448,7 +448,7 @@ var TopicNameSchema = z17.string().min(3).max(256).regex(/^[a-z0-9\-]+$/i, "Inva
448
448
  var TopicsSchema = z17.array(TopicNameSchema).refine((topics) => {
449
449
  return topics.length === new Set(topics).size;
450
450
  }, "Must be a list of unique topic names").optional().describe("Define the event topics to publish too in your stack.");
451
- var SubscribersSchema = z17.record(TopicNameSchema, z17.union([EmailSchema, FunctionSchema])).optional().describe("Define the events to subscribe too in your stack.");
451
+ var SubscribersSchema = z17.record(TopicNameSchema, z17.union([EmailSchema, FunctionSchema])).optional().describe("Define the event topics to subscribe too in your stack.");
452
452
 
453
453
  // src/feature/cron/schema/index.ts
454
454
  import { z as z19 } from "zod";