@awsless/awsless 0.0.419 → 0.0.421

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
@@ -13740,7 +13740,7 @@ var alertFeature = defineFeature({
13740
13740
  },
13741
13741
  onApp(ctx) {
13742
13742
  for (const [id, emails] of Object.entries(ctx.appConfig.defaults.alerts ?? {})) {
13743
- const group = new Node25(ctx.base, "topic", id);
13743
+ const group = new Node25(ctx.base, "alert", id);
13744
13744
  const name = formatGlobalResourceName({
13745
13745
  appName: ctx.appConfig.name,
13746
13746
  resourceType: "alert",
@@ -15247,6 +15247,12 @@ var resource = (program2) => {
15247
15247
  };
15248
15248
 
15249
15249
  // src/cli/command/run.ts
15250
+ import { DynamoDBClient, dynamoDBClient } from "@awsless/dynamodb";
15251
+ import { iotClient, IoTDataPlaneClient } from "@awsless/iot";
15252
+ import { LambdaClient, lambdaClient } from "@awsless/lambda";
15253
+ import { S3Client as S3Client2, s3Client } from "@awsless/s3";
15254
+ import { SNSClient, snsClient } from "@awsless/sns";
15255
+ import { SQSClient, sqsClient } from "@awsless/sqs";
15250
15256
  import { isCancel as isCancel7, select as select2 } from "@clack/prompts";
15251
15257
  import { tsImport } from "tsx/esm/api";
15252
15258
  var run = (program2) => {
@@ -15280,6 +15286,8 @@ var run = (program2) => {
15280
15286
  throw new ExpectedError(`The provided command doesn't exist.`);
15281
15287
  }
15282
15288
  process.env.APP = appConfig.name;
15289
+ process.env.AWS_REGION = region;
15290
+ process.env.AWS_ACCOUNT_ID = accountId;
15283
15291
  const module = await tsImport(command.file, {
15284
15292
  parentURL: import.meta.url
15285
15293
  });
@@ -15287,6 +15295,12 @@ var run = (program2) => {
15287
15295
  if (!handler) {
15288
15296
  throw new ExpectedError(`No "${command.handler}" handler found.`);
15289
15297
  }
15298
+ dynamoDBClient.set(new DynamoDBClient({ region, credentials }));
15299
+ lambdaClient.set(new LambdaClient({ region, credentials }));
15300
+ snsClient.set(new SNSClient({ region, credentials }));
15301
+ iotClient.set(new IoTDataPlaneClient({ region, credentials }));
15302
+ sqsClient.set(new SQSClient({ region, credentials }));
15303
+ s3Client.set(new S3Client2({ region, credentials }));
15290
15304
  const result = await task("Running", (update) => {
15291
15305
  const options = new CommandOptions(program2.args);
15292
15306
  return handler(options, {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.419",
3
+ "version": "0.0.421",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,18 +28,19 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/iot": "^0.0.2",
31
+ "@awsless/iot": "^0.0.3",
32
+ "@awsless/lambda": "^0.0.30",
32
33
  "@awsless/json": "^0.0.6",
34
+ "@awsless/mqtt": "^0.0.2",
35
+ "@awsless/sqs": "^0.0.8",
36
+ "@awsless/s3": "^0.0.20",
37
+ "@awsless/dynamodb": "^0.1.4",
33
38
  "@awsless/open-search": "^0.0.15",
34
- "@awsless/lambda": "^0.0.30",
35
- "@awsless/s3": "^0.0.18",
36
- "@awsless/sns": "^0.0.9",
39
+ "@awsless/redis": "^0.0.13",
37
40
  "@awsless/ssm": "^0.0.7",
38
- "@awsless/sqs": "^0.0.7",
39
- "@awsless/validate": "^0.0.16",
41
+ "@awsless/sns": "^0.0.10",
40
42
  "@awsless/weak-cache": "^0.0.1",
41
- "@awsless/redis": "^0.0.13",
42
- "@awsless/mqtt": "^0.0.2"
43
+ "@awsless/validate": "^0.0.16"
43
44
  },
44
45
  "dependencies": {
45
46
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -116,13 +117,13 @@
116
117
  "zod": "^3.21.4",
117
118
  "zod-to-json-schema": "^3.22.3",
118
119
  "@awsless/duration": "^0.0.1",
119
- "@awsless/code": "^0.0.10",
120
- "@awsless/graphql": "^0.0.9",
120
+ "@awsless/formation": "^0.0.58",
121
+ "@awsless/size": "^0.0.1",
121
122
  "@awsless/json": "^0.0.6",
122
- "@awsless/ts-file-cache": "^0.0.10",
123
123
  "@awsless/validate": "^0.0.16",
124
- "@awsless/formation": "^0.0.58",
125
- "@awsless/size": "^0.0.1"
124
+ "@awsless/graphql": "^0.0.9",
125
+ "@awsless/ts-file-cache": "^0.0.10",
126
+ "@awsless/code": "^0.0.10"
126
127
  },
127
128
  "devDependencies": {
128
129
  "@node-rs/bcrypt": "^1.10.5"