@awsless/cli 0.0.46-next.26 → 0.0.46-next.27
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 +12 -5
- package/package.json +11 -11
package/dist/bin.js
CHANGED
|
@@ -173267,11 +173267,11 @@ var createLambdaFunction = (ctx, id, local) => {
|
|
|
173267
173267
|
const routes = [
|
|
173268
173268
|
...(local.sandbox.functions ?? []).map((route) => {
|
|
173269
173269
|
const [stack, resource] = route.split(":");
|
|
173270
|
-
return `${stack}:function:${resource}`;
|
|
173270
|
+
return `${kebabCase(stack)}:function:${kebabCase(resource)}`;
|
|
173271
173271
|
}),
|
|
173272
173272
|
...(local.sandbox.tasks ?? []).map((route) => {
|
|
173273
173273
|
const [stack, resource] = route.split(":");
|
|
173274
|
-
return `${stack}:task:${resource}`;
|
|
173274
|
+
return `${kebabCase(stack)}:task:${kebabCase(resource)}`;
|
|
173275
173275
|
})
|
|
173276
173276
|
];
|
|
173277
173277
|
if (routes.length > 0) {
|
|
@@ -175159,6 +175159,9 @@ ${(errors4.trim() || output.trim()).slice(-2000)}`);
|
|
|
175159
175159
|
}
|
|
175160
175160
|
if (props.ssr && isStandaloneFunction(props.ssr)) {
|
|
175161
175161
|
const fn = createLambdaFunction(ctx, `${id}-ssr`, props.ssr);
|
|
175162
|
+
if (ctx.shared.has("router", "endpoint", props.router)) {
|
|
175163
|
+
fn.setEnvironment(`ROUTER_${constantCase(props.router)}_ENDPOINT`, ctx.shared.entry("router", "endpoint", props.router));
|
|
175164
|
+
}
|
|
175162
175165
|
const url = new aws3.lambda.FunctionUrl(group4, "ssr-url", {
|
|
175163
175166
|
functionName: fn.lambda.functionName,
|
|
175164
175167
|
authorizationType: "AWS_IAM"
|
|
@@ -178316,6 +178319,7 @@ var routerFeature = defineFeature({
|
|
|
178316
178319
|
});
|
|
178317
178320
|
}
|
|
178318
178321
|
ctx.bind(`ROUTER_${constantCase(id)}_ENDPOINT`, domainName);
|
|
178322
|
+
ctx.shared.add("router", "endpoint", id, domainName);
|
|
178319
178323
|
}
|
|
178320
178324
|
}
|
|
178321
178325
|
},
|
|
@@ -179060,9 +179064,12 @@ class SharedData {
|
|
|
179060
179064
|
}
|
|
179061
179065
|
return this.data.get(key);
|
|
179062
179066
|
}
|
|
179063
|
-
has(feature, name) {
|
|
179064
|
-
const key = `${feature}/${name
|
|
179065
|
-
|
|
179067
|
+
has(feature, name, entry) {
|
|
179068
|
+
const key = `${feature}/${name}`;
|
|
179069
|
+
if (typeof entry === "undefined") {
|
|
179070
|
+
return this.data.has(key);
|
|
179071
|
+
}
|
|
179072
|
+
return this.entries.get(key)?.has(entry) ?? false;
|
|
179066
179073
|
}
|
|
179067
179074
|
set(feature, name, value) {
|
|
179068
179075
|
const key = `${feature}/${name.toString()}`;
|
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.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@awsless/big-float": "^0.1.7",
|
|
29
|
-
"@awsless/duration": "^0.0.4",
|
|
30
29
|
"@awsless/dynamodb": "^0.3.22",
|
|
31
30
|
"@awsless/json": "^0.0.11",
|
|
31
|
+
"@awsless/duration": "^0.0.4",
|
|
32
32
|
"@awsless/lambda": "^0.0.47",
|
|
33
33
|
"@awsless/s3": "^0.0.22",
|
|
34
34
|
"@awsless/validate": "^0.1.7",
|
|
@@ -102,24 +102,24 @@
|
|
|
102
102
|
"zod": "^3.24.2",
|
|
103
103
|
"zod-to-json-schema": "^3.24.3",
|
|
104
104
|
"@awsless/big-float": "^0.1.7",
|
|
105
|
-
"@awsless/clui": "^0.0.9",
|
|
106
105
|
"@awsless/duration": "^0.0.4",
|
|
107
106
|
"@awsless/cloudwatch": "^0.0.1",
|
|
107
|
+
"@awsless/iot": "^0.0.5",
|
|
108
108
|
"@awsless/dynamodb": "^0.3.22",
|
|
109
109
|
"@awsless/json": "^0.0.11",
|
|
110
|
-
"@awsless/iot": "^0.0.5",
|
|
111
|
-
"@awsless/open-search": "^0.0.24",
|
|
112
|
-
"@awsless/redis": "^0.1.13",
|
|
113
110
|
"@awsless/s3": "^0.0.22",
|
|
114
|
-
"@awsless/
|
|
115
|
-
"@awsless/
|
|
111
|
+
"@awsless/redis": "^0.1.13",
|
|
112
|
+
"@awsless/size": "^0.0.2",
|
|
116
113
|
"@awsless/lambda": "^0.0.47",
|
|
117
|
-
"@awsless/
|
|
114
|
+
"@awsless/sns": "^0.0.11",
|
|
115
|
+
"@awsless/scheduler": "^0.0.5",
|
|
116
|
+
"@awsless/clui": "^0.0.9",
|
|
117
|
+
"@awsless/sqs": "^0.0.24",
|
|
118
118
|
"@awsless/validate": "^0.1.7",
|
|
119
119
|
"@awsless/weak-cache": "^0.0.1",
|
|
120
120
|
"awsless": "^0.0.15-next.8",
|
|
121
|
-
"@awsless/
|
|
122
|
-
"@awsless/
|
|
121
|
+
"@awsless/open-search": "^0.0.24",
|
|
122
|
+
"@awsless/ssm": "^0.0.8"
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"test": "bun cli/build-handlers.ts && pnpm vitest",
|