@awsless/cli 0.0.19 → 0.0.21

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
@@ -3185,16 +3185,10 @@ import { aws as aws3 } from "@terraforge/aws";
3185
3185
  import { constantCase as constantCase3 } from "change-case";
3186
3186
  import { toGibibytes } from "@awsless/size";
3187
3187
  var typeGenCode = `
3188
- import { Cluster, CommandOptions } from '@awsless/redis'
3188
+ import { RedisClient } from '@awsless/redis'
3189
3189
 
3190
- type Callback<T> = (redis: Cluster) => T
3191
-
3192
- type Command = {
3193
- readonly host: string
3194
- readonly port: number
3195
- <T>(callback: Callback<T>): T
3196
- <T>(options:Omit<CommandOptions, 'cluster'>, callback: Callback<T>): T
3197
- }`;
3190
+ type RedisClientFactory = (db?: number) => RedisClient
3191
+ `;
3198
3192
  var cacheFeature = defineFeature({
3199
3193
  name: "cache",
3200
3194
  async onTypeGen(ctx) {
@@ -3203,7 +3197,7 @@ var cacheFeature = defineFeature({
3203
3197
  for (const stack of ctx.stackConfigs) {
3204
3198
  const resource = new TypeObject(2);
3205
3199
  for (const name of Object.keys(stack.caches || {})) {
3206
- resource.addType(name, `Command`);
3200
+ resource.addType(name, `RedisClientFactory`);
3207
3201
  }
3208
3202
  resources2.addType(stack.name, resource);
3209
3203
  }
@@ -10101,11 +10095,12 @@ var del2 = (program2) => {
10101
10095
  return "Disable the protect flag and try again.";
10102
10096
  } else {
10103
10097
  const confirmation = await prompt6.text({
10104
- message: `Type ${color.error("delete")} to confirm deletion:`,
10098
+ message: `Type "${color.error("delete")}" to confirm deletion:`,
10105
10099
  validate(value) {
10106
10100
  if (value !== "delete") {
10107
10101
  return 'Please type "delete" to confirm.';
10108
10102
  }
10103
+ return;
10109
10104
  }
10110
10105
  });
10111
10106
  if (confirmation !== "delete") {
Binary file
Binary file
Binary file
@@ -1 +1 @@
1
- c54103a5753560af7e66b318c01ded26d2bb3c95
1
+ f38809250d79b61a8f7c1d54fc37f82eaaa3e4eb
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -40,7 +40,7 @@
40
40
  "@aws-sdk/signature-v4-crt": "^3.816.0",
41
41
  "@clack/prompts": "^0.7.0",
42
42
  "@terraforge/aws": "^6.35.1",
43
- "@terraforge/core": "^0.0.37",
43
+ "@terraforge/core": "^0.0.38",
44
44
  "@terraforge/terraform": "^0.0.30",
45
45
  "@types/aws-lambda": "^8.10.161",
46
46
  "@types/bun": "1.3.10",
@@ -86,24 +86,24 @@
86
86
  "zip-a-folder": "^3.1.6",
87
87
  "zod": "^3.24.2",
88
88
  "zod-to-json-schema": "^3.24.3",
89
- "@awsless/cloudwatch": "^0.0.1",
90
89
  "@awsless/big-float": "^0.1.6",
91
- "@awsless/duration": "^0.0.4",
92
- "@awsless/dynamodb": "^0.3.20",
90
+ "@awsless/dynamodb": "^0.3.21",
93
91
  "@awsless/iot": "^0.0.5",
94
- "@awsless/json": "^0.0.11",
95
- "@awsless/redis": "^0.0.16",
96
- "@awsless/clui": "^0.0.8",
97
- "@awsless/size": "^0.0.2",
92
+ "@awsless/duration": "^0.0.4",
93
+ "@awsless/lambda": "^0.0.44",
98
94
  "@awsless/s3": "^0.0.21",
99
- "@awsless/sns": "^0.0.10",
100
- "@awsless/scheduler": "^0.0.4",
101
- "@awsless/ts-file-cache": "^0.0.16",
95
+ "@awsless/redis": "^0.1.1",
96
+ "@awsless/size": "^0.0.2",
97
+ "@awsless/json": "^0.0.11",
98
+ "@awsless/sqs": "^0.0.21",
99
+ "@awsless/cloudwatch": "^0.0.1",
102
100
  "@awsless/validate": "^0.1.7",
103
101
  "@awsless/weak-cache": "^0.0.1",
104
- "@awsless/lambda": "^0.0.42",
102
+ "@awsless/clui": "^0.0.8",
103
+ "@awsless/scheduler": "^0.0.4",
105
104
  "awsless": "^0.0.5",
106
- "@awsless/sqs": "^0.0.21"
105
+ "@awsless/sns": "^0.0.10",
106
+ "@awsless/ts-file-cache": "^0.0.16"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@hono/node-server": "1.19.9",