@awsless/awsless 0.0.586 → 0.0.588

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
@@ -298,6 +298,9 @@ var createCloudFrontKvsProvider = ({ profile, region }) => {
298
298
  };
299
299
  },
300
300
  async updateResource(props) {
301
+ if (props.priorState.kvsArn !== props.proposedState.kvsArn) {
302
+ throw new Error(`kvsArn can't be changed.`);
303
+ }
301
304
  const priorState = validateInput(props.priorState);
302
305
  const proposedState = validateInput(props.proposedState);
303
306
  const puts = proposedState.keys.filter((a) => {
@@ -4160,7 +4163,7 @@ var onFailureFeature = defineFeature({
4160
4163
  resourceType: "on-failure",
4161
4164
  resourceName: "failure"
4162
4165
  }),
4163
- redrivePolicy: $resolve([deadletter.arn], (deadLetterTargetArn) => {
4166
+ redrivePolicy: deadletter.arn.pipe((deadLetterTargetArn) => {
4164
4167
  return JSON.stringify({
4165
4168
  deadLetterTargetArn,
4166
4169
  maxReceiveCount: 100
@@ -7252,7 +7255,7 @@ var routerFeature = defineFeature({
7252
7255
  }
7253
7256
  const importKeys = new ImportKeys(
7254
7257
  group2,
7255
- name2,
7258
+ [id, name2].join("-"),
7256
7259
  {
7257
7260
  kvsArn: routeStore.arn,
7258
7261
  keys: $resolve([routes], (routes2) => {
@@ -9401,7 +9404,6 @@ import { LambdaClient as LambdaClient3, lambdaClient } from "@awsless/lambda";
9401
9404
  import { S3Client as S3Client2, s3Client } from "@awsless/s3";
9402
9405
  import { SNSClient, snsClient } from "@awsless/sns";
9403
9406
  import { SQSClient, sqsClient } from "@awsless/sqs";
9404
- import { tsImport } from "tsx/esm/api";
9405
9407
  var run = (program2) => {
9406
9408
  program2.command("run").allowUnknownOption(true).argument("[command]", "The command you want to run").description("Run one of your defined commands.").action(async (selected) => {
9407
9409
  await layout(`run ${selected ?? ""}`, async ({ appConfig, stackConfigs }) => {
@@ -9432,17 +9434,7 @@ var run = (program2) => {
9432
9434
  process.env.APP_ID = appId;
9433
9435
  process.env.AWS_REGION = region;
9434
9436
  process.env.AWS_ACCOUNT_ID = accountId;
9435
- let module;
9436
- try {
9437
- module = await tsImport(command.file, {
9438
- parentURL: import.meta.url
9439
- });
9440
- } catch (error) {
9441
- if (typeof error === "object" && error !== null && "message" in error) {
9442
- throw error.message;
9443
- }
9444
- throw new ExpectedError(`Failed to import: ${command.file}`);
9445
- }
9437
+ const module = await import(command.file);
9446
9438
  const handler = module[command.handler];
9447
9439
  if (!handler) {
9448
9440
  throw new ExpectedError(`No "${command.handler}" handler found.`);
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.586",
3
+ "version": "0.0.588",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -34,22 +34,22 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.5",
37
- "@awsless/cloudwatch": "^0.0.1",
38
37
  "@awsless/clui": "^0.0.8",
39
- "@awsless/duration": "^0.0.4",
40
- "@awsless/dynamodb": "^0.3.6",
38
+ "@awsless/cloudwatch": "^0.0.1",
39
+ "@awsless/dynamodb": "^0.3.8",
41
40
  "@awsless/iot": "^0.0.3",
42
41
  "@awsless/json": "^0.0.10",
43
- "@awsless/open-search": "^0.0.21",
42
+ "@awsless/duration": "^0.0.4",
43
+ "@awsless/s3": "^0.0.21",
44
44
  "@awsless/lambda": "^0.0.35",
45
- "@awsless/redis": "^0.0.14",
45
+ "@awsless/open-search": "^0.0.21",
46
46
  "@awsless/sns": "^0.0.10",
47
- "@awsless/s3": "^0.0.21",
47
+ "@awsless/redis": "^0.0.14",
48
+ "@awsless/sqs": "^0.0.16",
48
49
  "@awsless/validate": "^0.1.3",
50
+ "@awsless/mqtt": "^0.0.2",
49
51
  "@awsless/ssm": "^0.0.7",
50
- "@awsless/sqs": "^0.0.16",
51
- "@awsless/weak-cache": "^0.0.1",
52
- "@awsless/mqtt": "^0.0.2"
52
+ "@awsless/weak-cache": "^0.0.1"
53
53
  },
54
54
  "dependencies": {
55
55
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -139,16 +139,16 @@
139
139
  "zip-a-folder": "^3.1.6",
140
140
  "zod": "^3.24.2",
141
141
  "zod-to-json-schema": "^3.24.3",
142
- "@awsless/cloudwatch": "^0.0.1",
143
142
  "@awsless/big-float": "^0.1.5",
144
- "@awsless/json": "^0.0.10",
143
+ "@awsless/cloudwatch": "^0.0.1",
145
144
  "@awsless/duration": "^0.0.4",
145
+ "@awsless/graphql": "^0.0.9",
146
+ "@awsless/json": "^0.0.10",
146
147
  "@awsless/size": "^0.0.2",
147
148
  "@awsless/scheduler": "^0.0.4",
148
- "@awsless/graphql": "^0.0.9",
149
- "@awsless/ts-file-cache": "^0.0.12",
150
149
  "@awsless/validate": "^0.1.3",
151
- "@awsless/clui": "^0.0.8"
150
+ "@awsless/clui": "^0.0.8",
151
+ "@awsless/ts-file-cache": "^0.0.12"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@node-rs/bcrypt": "^1.10.5",