@awsless/awsless 0.0.563 → 0.0.564
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
|
@@ -6940,7 +6940,7 @@ var buildExecutable = async (input, outputPath) => {
|
|
|
6940
6940
|
}
|
|
6941
6941
|
const file = await readFile4(filePath);
|
|
6942
6942
|
return {
|
|
6943
|
-
hash: createHash4("sha1").update(file).digest("hex"),
|
|
6943
|
+
hash: createHash4("sha1").update(file).update("x86_64").digest("hex"),
|
|
6944
6944
|
file
|
|
6945
6945
|
};
|
|
6946
6946
|
};
|
|
@@ -7330,7 +7330,7 @@ var instanceFeature = defineFeature({
|
|
|
7330
7330
|
|
|
7331
7331
|
// src/feature/metric/index.ts
|
|
7332
7332
|
import { $ as $27, Group as Group27 } from "@awsless/formation";
|
|
7333
|
-
import { kebabCase as kebabCase8, constantCase as
|
|
7333
|
+
import { kebabCase as kebabCase8, constantCase as constantCase14 } from "change-case";
|
|
7334
7334
|
import { toSeconds as toSeconds11 } from "@awsless/duration";
|
|
7335
7335
|
var typeGenCode9 = `
|
|
7336
7336
|
import { type PutDataProps, putData, batchPutData } from '@awsless/cloudwatch'
|
|
@@ -7398,7 +7398,7 @@ var metricFeature = defineFeature({
|
|
|
7398
7398
|
});
|
|
7399
7399
|
for (const [id, props] of Object.entries(ctx.stackConfig.metrics ?? {})) {
|
|
7400
7400
|
const group = new Group27(ctx.stack, "metric", id);
|
|
7401
|
-
ctx.addEnv(`METRIC_${
|
|
7401
|
+
ctx.addEnv(`METRIC_${constantCase14(id)}`, props.type);
|
|
7402
7402
|
for (const alarmId in props.alarms ?? []) {
|
|
7403
7403
|
const alarmGroup = new Group27(group, "alarm", alarmId);
|
|
7404
7404
|
const alarmName = kebabCase8(`${id}-${alarmId}`);
|
|
@@ -8915,7 +8915,7 @@ var auth = (program2) => {
|
|
|
8915
8915
|
|
|
8916
8916
|
// src/cli/command/bind.ts
|
|
8917
8917
|
import { log as log18 } from "@awsless/clui";
|
|
8918
|
-
import { constantCase as
|
|
8918
|
+
import { constantCase as constantCase15 } from "change-case";
|
|
8919
8919
|
import { spawn } from "child_process";
|
|
8920
8920
|
var bind = (program2) => {
|
|
8921
8921
|
program2.command("bind").argument("[command...]", "The command to execute").option("--config <string...>", "List of config values that will be accessable", (v) => v.split(",")).description(`Bind your site environment variables to a command`).action(async (commands9 = [], opts) => {
|
|
@@ -8944,10 +8944,10 @@ var bind = (program2) => {
|
|
|
8944
8944
|
const configList = opts.config ?? [];
|
|
8945
8945
|
const configs = {};
|
|
8946
8946
|
for (const name of configList) {
|
|
8947
|
-
configs[`CONFIG_${
|
|
8947
|
+
configs[`CONFIG_${constantCase15(name)}`] = name;
|
|
8948
8948
|
}
|
|
8949
8949
|
if (configList.length ?? 0 > 0) {
|
|
8950
|
-
log18.note("Bind Config", configList.map((v) => color.label(
|
|
8950
|
+
log18.note("Bind Config", configList.map((v) => color.label(constantCase15(v))).join("\n"));
|
|
8951
8951
|
}
|
|
8952
8952
|
if (commands9.length === 0) {
|
|
8953
8953
|
return "No command to execute.";
|
|
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.
|
|
3
|
+
"version": "0.0.564",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@awsless/big-float": "^0.1.3",
|
|
37
37
|
"@awsless/cloudwatch": "^0.0.1",
|
|
38
|
-
"@awsless/duration": "^0.0.3",
|
|
39
38
|
"@awsless/clui": "^0.0.7",
|
|
39
|
+
"@awsless/duration": "^0.0.3",
|
|
40
|
+
"@awsless/json": "^0.0.10",
|
|
40
41
|
"@awsless/dynamodb": "^0.2.10",
|
|
41
42
|
"@awsless/iot": "^0.0.3",
|
|
42
43
|
"@awsless/lambda": "^0.0.33",
|
|
43
|
-
"@awsless/json": "^0.0.10",
|
|
44
44
|
"@awsless/mqtt": "^0.0.2",
|
|
45
45
|
"@awsless/redis": "^0.0.14",
|
|
46
|
-
"@awsless/s3": "^0.0.21",
|
|
47
|
-
"@awsless/open-search": "^0.0.21",
|
|
48
46
|
"@awsless/sns": "^0.0.10",
|
|
47
|
+
"@awsless/s3": "^0.0.21",
|
|
49
48
|
"@awsless/sqs": "^0.0.8",
|
|
50
49
|
"@awsless/validate": "^0.0.19",
|
|
51
50
|
"@awsless/ssm": "^0.0.7",
|
|
52
|
-
"@awsless/weak-cache": "^0.0.1"
|
|
51
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
52
|
+
"@awsless/open-search": "^0.0.21"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -134,16 +134,16 @@
|
|
|
134
134
|
"zod": "^3.24.2",
|
|
135
135
|
"zod-to-json-schema": "^3.24.3",
|
|
136
136
|
"@awsless/big-float": "^0.1.3",
|
|
137
|
-
"@awsless/cloudwatch": "^0.0.1",
|
|
138
137
|
"@awsless/clui": "^0.0.7",
|
|
138
|
+
"@awsless/cloudwatch": "^0.0.1",
|
|
139
139
|
"@awsless/duration": "^0.0.3",
|
|
140
140
|
"@awsless/formation": "^0.0.80",
|
|
141
141
|
"@awsless/graphql": "^0.0.9",
|
|
142
|
-
"@awsless/json": "^0.0.10",
|
|
143
142
|
"@awsless/scheduler": "^0.0.4",
|
|
143
|
+
"@awsless/json": "^0.0.10",
|
|
144
144
|
"@awsless/size": "^0.0.2",
|
|
145
|
-
"@awsless/
|
|
146
|
-
"@awsless/
|
|
145
|
+
"@awsless/validate": "^0.0.19",
|
|
146
|
+
"@awsless/ts-file-cache": "^0.0.12"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@node-rs/bcrypt": "^1.10.5",
|