@awsless/cli 0.0.46-next.30 → 0.0.46-next.31
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 +11 -1
- package/dist/handlers/on-error-log.js +7 -1
- package/package.json +15 -15
package/dist/bin.js
CHANGED
|
@@ -180034,13 +180034,23 @@ var deploy = (program3) => {
|
|
|
180034
180034
|
appName: appConfig.name
|
|
180035
180035
|
});
|
|
180036
180036
|
const deployment = await claimDeployment({ client: dynamo, appId: globalAppId });
|
|
180037
|
-
const { app, tests, warnings, builders, ready, appId } = createApp({
|
|
180037
|
+
const { app, tests, warnings, builders, ready, appId, configs } = createApp({
|
|
180038
180038
|
appConfig,
|
|
180039
180039
|
stackConfigs,
|
|
180040
180040
|
accountId,
|
|
180041
180041
|
deploymentId: deployment.id,
|
|
180042
180042
|
import: options.import
|
|
180043
180043
|
});
|
|
180044
|
+
if (configs.size > 0) {
|
|
180045
|
+
const params = new SsmStore({ credentials: credentials4, appConfig });
|
|
180046
|
+
const values = await params.list();
|
|
180047
|
+
const missing = [...configs].filter((name) => !(name in values));
|
|
180048
|
+
if (missing.length > 0) {
|
|
180049
|
+
warnings.push({
|
|
180050
|
+
message: `The following config values haven't been set yet: [ ${missing.join(", ")} ]. Set them with "awsless config set <name>".`
|
|
180051
|
+
});
|
|
180052
|
+
}
|
|
180053
|
+
}
|
|
180044
180054
|
await showWarnings(warnings);
|
|
180045
180055
|
if (!process.env.SKIP_PROMPT) {
|
|
180046
180056
|
const ok = await prompts_exports.confirm({
|
|
@@ -109,7 +109,6 @@ var handle_default = async (event, context) => {
|
|
|
109
109
|
}
|
|
110
110
|
const invoke = internalInvoke(consumerRoute, {
|
|
111
111
|
...error,
|
|
112
|
-
origin,
|
|
113
112
|
date: logEvent.timestamp
|
|
114
113
|
});
|
|
115
114
|
invoke.catch(() => {});
|
|
@@ -134,10 +133,15 @@ var parseError = (message, origin) => {
|
|
|
134
133
|
if (runtimeError.success) {
|
|
135
134
|
const { requestId, level } = runtimeError.output;
|
|
136
135
|
const { errorType, errorMessage, stackTrace, ...extra } = runtimeError.output.message;
|
|
136
|
+
if (typeof extra.route === "string") {
|
|
137
|
+
origin = extra.route;
|
|
138
|
+
delete extra.route;
|
|
139
|
+
}
|
|
137
140
|
const hash = createHash("sha256").update([origin, errorType, errorMessage, stackTrace].join("-")).digest("hex");
|
|
138
141
|
return {
|
|
139
142
|
hash,
|
|
140
143
|
requestId,
|
|
144
|
+
origin,
|
|
141
145
|
level,
|
|
142
146
|
type: errorType,
|
|
143
147
|
message: errorMessage,
|
|
@@ -152,6 +156,7 @@ var parseError = (message, origin) => {
|
|
|
152
156
|
return {
|
|
153
157
|
hash,
|
|
154
158
|
requestId,
|
|
159
|
+
origin,
|
|
155
160
|
level: "fatal",
|
|
156
161
|
type: errorType ?? status,
|
|
157
162
|
message: `Fatal system error: ${errorType ?? status}`,
|
|
@@ -165,6 +170,7 @@ var parseError = (message, origin) => {
|
|
|
165
170
|
return {
|
|
166
171
|
hash,
|
|
167
172
|
requestId,
|
|
173
|
+
origin,
|
|
168
174
|
level,
|
|
169
175
|
type: "Error",
|
|
170
176
|
message: message2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.0.46-next.
|
|
3
|
+
"version": "0.0.46-next.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@awsless/ts-file-cache": "^0.0.16"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
+
"@awsless/big-float": "^0.1.7",
|
|
29
|
+
"@awsless/duration": "^0.0.4",
|
|
28
30
|
"@awsless/dynamodb": "^0.3.22",
|
|
29
|
-
"@awsless/
|
|
31
|
+
"@awsless/json": "^0.0.11",
|
|
30
32
|
"@awsless/s3": "^0.0.22",
|
|
31
33
|
"@awsless/validate": "^0.1.7",
|
|
32
34
|
"@awsless/weak-cache": "^0.0.1",
|
|
33
|
-
"@awsless/
|
|
34
|
-
"@awsless/big-float": "^0.1.7",
|
|
35
|
-
"@awsless/duration": "^0.0.4",
|
|
35
|
+
"@awsless/lambda": "^0.0.47",
|
|
36
36
|
"awsless": "^0.0.15-next.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -101,25 +101,25 @@
|
|
|
101
101
|
"zip-a-folder": "^3.1.6",
|
|
102
102
|
"zod": "^3.24.2",
|
|
103
103
|
"zod-to-json-schema": "^3.24.3",
|
|
104
|
-
"@awsless/big-float": "^0.1.7",
|
|
105
|
-
"@awsless/clui": "^0.0.9",
|
|
106
104
|
"@awsless/cloudwatch": "^0.0.1",
|
|
107
105
|
"@awsless/duration": "^0.0.4",
|
|
108
|
-
"@awsless/
|
|
106
|
+
"@awsless/big-float": "^0.1.7",
|
|
109
107
|
"@awsless/dynamodb": "^0.3.22",
|
|
110
|
-
"@awsless/
|
|
108
|
+
"@awsless/lambda": "^0.0.47",
|
|
109
|
+
"@awsless/json": "^0.0.11",
|
|
110
|
+
"@awsless/iot": "^0.0.5",
|
|
111
111
|
"@awsless/redis": "^0.1.13",
|
|
112
|
-
"@awsless/
|
|
113
|
-
"@awsless/sns": "^0.0.11",
|
|
112
|
+
"@awsless/clui": "^0.0.9",
|
|
114
113
|
"@awsless/scheduler": "^0.0.5",
|
|
115
|
-
"@awsless/
|
|
114
|
+
"@awsless/sns": "^0.0.11",
|
|
115
|
+
"@awsless/s3": "^0.0.22",
|
|
116
|
+
"@awsless/size": "^0.0.2",
|
|
116
117
|
"@awsless/validate": "^0.1.7",
|
|
117
118
|
"@awsless/ssm": "^0.0.8",
|
|
118
119
|
"@awsless/weak-cache": "^0.0.1",
|
|
119
|
-
"@awsless/
|
|
120
|
-
"@awsless/lambda": "^0.0.47",
|
|
120
|
+
"@awsless/sqs": "^0.0.24",
|
|
121
121
|
"awsless": "^0.0.15-next.8",
|
|
122
|
-
"@awsless/
|
|
122
|
+
"@awsless/open-search": "^0.0.24"
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"test": "bun cli/build-handlers.ts && pnpm vitest",
|