@awsless/cli 0.0.20 → 0.0.22
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 +9 -17
- 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 +10 -10
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
|
}
|
|
@@ -3923,12 +3917,6 @@ var createLambdaFunction = (parentGroup, ctx, ns, id, local) => {
|
|
|
3923
3917
|
});
|
|
3924
3918
|
let dependsOn = [];
|
|
3925
3919
|
if (props.vpc) {
|
|
3926
|
-
if (props.warm > 1) {
|
|
3927
|
-
throw new FileError(
|
|
3928
|
-
"stackConfig" in ctx ? ctx.stackConfig.file : "app.json",
|
|
3929
|
-
`We can't warm more then 1 lambda in a VPC.`
|
|
3930
|
-
);
|
|
3931
|
-
}
|
|
3932
3920
|
dependsOn.push(
|
|
3933
3921
|
new aws4.iam.RolePolicy(group, "vpc-policy", {
|
|
3934
3922
|
role: role.name,
|
|
@@ -4021,6 +4009,9 @@ var createLambdaFunction = (parentGroup, ctx, ns, id, local) => {
|
|
|
4021
4009
|
if ("stackConfig" in ctx) {
|
|
4022
4010
|
variables.STACK = ctx.stackConfig.name;
|
|
4023
4011
|
}
|
|
4012
|
+
if (props.vpc) {
|
|
4013
|
+
variables.AWS_USE_DUALSTACK_ENDPOINT = "true";
|
|
4014
|
+
}
|
|
4024
4015
|
if (props.log.retention.value > 0n) {
|
|
4025
4016
|
const logGroup = new aws4.cloudwatch.LogGroup(group, "log", {
|
|
4026
4017
|
// name: lambda.functionName.pipe(name => `/aws/lambda/${name}`),
|
|
@@ -10101,11 +10092,12 @@ var del2 = (program2) => {
|
|
|
10101
10092
|
return "Disable the protect flag and try again.";
|
|
10102
10093
|
} else {
|
|
10103
10094
|
const confirmation = await prompt6.text({
|
|
10104
|
-
message: `Type ${color.error("delete")} to confirm deletion:`,
|
|
10095
|
+
message: `Type "${color.error("delete")}" to confirm deletion:`,
|
|
10105
10096
|
validate(value) {
|
|
10106
10097
|
if (value !== "delete") {
|
|
10107
10098
|
return 'Please type "delete" to confirm.';
|
|
10108
10099
|
}
|
|
10100
|
+
return;
|
|
10109
10101
|
}
|
|
10110
10102
|
});
|
|
10111
10103
|
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.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -88,22 +88,22 @@
|
|
|
88
88
|
"zod-to-json-schema": "^3.24.3",
|
|
89
89
|
"@awsless/big-float": "^0.1.6",
|
|
90
90
|
"@awsless/duration": "^0.0.4",
|
|
91
|
-
"@awsless/
|
|
91
|
+
"@awsless/clui": "^0.0.8",
|
|
92
92
|
"@awsless/dynamodb": "^0.3.21",
|
|
93
93
|
"@awsless/iot": "^0.0.5",
|
|
94
|
-
"@awsless/redis": "^0.0.16",
|
|
95
94
|
"@awsless/json": "^0.0.11",
|
|
96
|
-
"@awsless/
|
|
95
|
+
"@awsless/lambda": "^0.0.44",
|
|
97
96
|
"@awsless/s3": "^0.0.21",
|
|
98
|
-
"@awsless/sns": "^0.0.10",
|
|
99
97
|
"@awsless/size": "^0.0.2",
|
|
100
|
-
"@awsless/
|
|
101
|
-
"@awsless/
|
|
98
|
+
"@awsless/redis": "^0.1.9",
|
|
99
|
+
"@awsless/sqs": "^0.0.21",
|
|
102
100
|
"@awsless/validate": "^0.1.7",
|
|
103
101
|
"@awsless/weak-cache": "^0.0.1",
|
|
104
|
-
"awsless": "^0.0.
|
|
105
|
-
"
|
|
106
|
-
"@awsless/
|
|
102
|
+
"@awsless/cloudwatch": "^0.0.1",
|
|
103
|
+
"awsless": "^0.0.6",
|
|
104
|
+
"@awsless/ts-file-cache": "^0.0.16",
|
|
105
|
+
"@awsless/scheduler": "^0.0.4",
|
|
106
|
+
"@awsless/sns": "^0.0.10"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@hono/node-server": "1.19.9",
|