@awsless/cli 0.0.20 → 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 +6 -11
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/on-error-log/bundle.zip +0 -0
- package/dist/prebuild/on-failure/bundle.zip +0 -0
- package/dist/prebuild/rpc/HASH +1 -1
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/package.json +11 -11
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 {
|
|
3188
|
+
import { RedisClient } from '@awsless/redis'
|
|
3189
3189
|
|
|
3190
|
-
type
|
|
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, `
|
|
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
|
|
Binary file
|
package/dist/prebuild/rpc/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f38809250d79b61a8f7c1d54fc37f82eaaa3e4eb
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -87,23 +87,23 @@
|
|
|
87
87
|
"zod": "^3.24.2",
|
|
88
88
|
"zod-to-json-schema": "^3.24.3",
|
|
89
89
|
"@awsless/big-float": "^0.1.6",
|
|
90
|
-
"@awsless/duration": "^0.0.4",
|
|
91
|
-
"@awsless/cloudwatch": "^0.0.1",
|
|
92
90
|
"@awsless/dynamodb": "^0.3.21",
|
|
93
91
|
"@awsless/iot": "^0.0.5",
|
|
94
|
-
"@awsless/
|
|
95
|
-
"@awsless/
|
|
96
|
-
"@awsless/scheduler": "^0.0.4",
|
|
92
|
+
"@awsless/duration": "^0.0.4",
|
|
93
|
+
"@awsless/lambda": "^0.0.44",
|
|
97
94
|
"@awsless/s3": "^0.0.21",
|
|
98
|
-
"@awsless/
|
|
95
|
+
"@awsless/redis": "^0.1.1",
|
|
99
96
|
"@awsless/size": "^0.0.2",
|
|
100
|
-
"@awsless/
|
|
101
|
-
"@awsless/
|
|
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",
|
|
102
|
+
"@awsless/clui": "^0.0.8",
|
|
103
|
+
"@awsless/scheduler": "^0.0.4",
|
|
104
104
|
"awsless": "^0.0.5",
|
|
105
|
-
"@awsless/
|
|
106
|
-
"@awsless/
|
|
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",
|