@awsless/cli 0.1.34 → 0.1.35
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 +22 -8
- package/package.json +11 -11
package/dist/bin.js
CHANGED
|
@@ -165284,14 +165284,24 @@ class ListDistributionTenantsCommand extends command2(_ep02, _mw02, "ListDistrib
|
|
|
165284
165284
|
|
|
165285
165285
|
// src/formation/cloudfront-kvs.ts
|
|
165286
165286
|
import {
|
|
165287
|
-
CloudFrontKeyValueStoreClient,
|
|
165288
165287
|
DescribeKeyValueStoreCommand as DescribeDataStoreCommand,
|
|
165289
165288
|
GetKeyCommand,
|
|
165290
165289
|
ListKeysCommand,
|
|
165291
165290
|
UpdateKeysCommand
|
|
165292
165291
|
} from "@aws-sdk/client-cloudfront-keyvaluestore";
|
|
165293
165292
|
var import_chunk2 = __toESM(require_chunk(), 1);
|
|
165294
|
-
|
|
165293
|
+
|
|
165294
|
+
// src/util/kvs.ts
|
|
165295
|
+
import { CloudFrontKeyValueStoreClient } from "@aws-sdk/client-cloudfront-keyvaluestore";
|
|
165296
|
+
import { SignatureV4a } from "@aws-sdk/signature-v4a";
|
|
165297
|
+
var createKvsClient = (props) => {
|
|
165298
|
+
return new CloudFrontKeyValueStoreClient({
|
|
165299
|
+
...props,
|
|
165300
|
+
signerConstructor: SignatureV4a
|
|
165301
|
+
});
|
|
165302
|
+
};
|
|
165303
|
+
|
|
165304
|
+
// src/formation/cloudfront-kvs.ts
|
|
165295
165305
|
var ACTIVE_KEY = "$active";
|
|
165296
165306
|
var DEPLOY_KEY_PREFIX = "$deploy:";
|
|
165297
165307
|
var routeSchema = exports_external.object({
|
|
@@ -165384,7 +165394,7 @@ var stageRoutes = async (kvs, state) => {
|
|
|
165384
165394
|
};
|
|
165385
165395
|
};
|
|
165386
165396
|
var createCloudFrontKvsProvider = ({ credentials: credentials2, region }) => {
|
|
165387
|
-
const kvs =
|
|
165397
|
+
const kvs = createKvsClient({ credentials: credentials2, region });
|
|
165388
165398
|
return createCustomProvider("cloudfront-kvs", {
|
|
165389
165399
|
"import-keys": {},
|
|
165390
165400
|
"route-deployment": {
|
|
@@ -171082,7 +171092,6 @@ import { DynamoDBClient as DynamoDBClient2, migrate } from "@awsless/dynamodb";
|
|
|
171082
171092
|
|
|
171083
171093
|
// src/util/deployment.ts
|
|
171084
171094
|
import { userInfo } from "os";
|
|
171085
|
-
import { CloudFrontKeyValueStoreClient as CloudFrontKeyValueStoreClient2 } from "@aws-sdk/client-cloudfront-keyvaluestore";
|
|
171086
171095
|
import { DeleteFunctionCommand, GetFunctionCommand, LambdaClient as LambdaClient3 } from "@aws-sdk/client-lambda";
|
|
171087
171096
|
import {
|
|
171088
171097
|
define as define3,
|
|
@@ -172892,7 +172901,7 @@ var activateDeployment = async (props) => {
|
|
|
172892
172901
|
const accountId = await getAccountId(credentials2, region);
|
|
172893
172902
|
const appId = generateGlobalAppId({ accountId, region, appName: props.appConfig.name });
|
|
172894
172903
|
const cloudfront = new CloudFrontClient({ credentials: credentials2, region: "us-east-1" });
|
|
172895
|
-
const kvs =
|
|
172904
|
+
const kvs = createKvsClient({ credentials: credentials2, region });
|
|
172896
172905
|
const lambda = new LambdaClient3({ credentials: credentials2, region });
|
|
172897
172906
|
const dynamo = new DynamoDBClient({ credentials: credentials2, region });
|
|
172898
172907
|
const functionName = getBundleFunctionName(props.appConfig.name);
|
|
@@ -174460,7 +174469,6 @@ var deploy = (program3) => {
|
|
|
174460
174469
|
};
|
|
174461
174470
|
|
|
174462
174471
|
// src/cli/command/deployment.ts
|
|
174463
|
-
import { CloudFrontKeyValueStoreClient as CloudFrontKeyValueStoreClient3 } from "@aws-sdk/client-cloudfront-keyvaluestore";
|
|
174464
174472
|
import { LambdaClient as LambdaClient6 } from "@aws-sdk/client-lambda";
|
|
174465
174473
|
import { S3Client as S3Client4 } from "@aws-sdk/client-s3";
|
|
174466
174474
|
import { DynamoDBClient as DynamoDBClient5 } from "@awsless/dynamodb";
|
|
@@ -174473,7 +174481,7 @@ var createClients = async (appConfig) => {
|
|
|
174473
174481
|
functionName: getBundleFunctionName(appConfig.name),
|
|
174474
174482
|
dynamo: new DynamoDBClient5({ credentials: credentials2, region }),
|
|
174475
174483
|
lambda: new LambdaClient6({ credentials: credentials2, region }),
|
|
174476
|
-
kvs:
|
|
174484
|
+
kvs: createKvsClient({ credentials: credentials2, region }),
|
|
174477
174485
|
cloudfront: new CloudFrontClient({ credentials: credentials2, region: "us-east-1" }),
|
|
174478
174486
|
s3: new S3Client4({ credentials: credentials2, region })
|
|
174479
174487
|
};
|
|
@@ -178124,7 +178132,13 @@ var createDashboardServer = (props) => {
|
|
|
178124
178132
|
server = createServer9((req, res) => {
|
|
178125
178133
|
const url2 = new URL(req.url ?? "/", "http://localhost");
|
|
178126
178134
|
if (url2.pathname === "/api/events") {
|
|
178127
|
-
|
|
178135
|
+
const channels = (url2.searchParams.get("channels") ?? "").split(",").filter(Boolean);
|
|
178136
|
+
if (channels.length === 0) {
|
|
178137
|
+
res.writeHead(204);
|
|
178138
|
+
res.end();
|
|
178139
|
+
return;
|
|
178140
|
+
}
|
|
178141
|
+
streamEvents(req, res, channels);
|
|
178128
178142
|
return;
|
|
178129
178143
|
}
|
|
178130
178144
|
const started = performance.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/awsless/awsless/issues"
|
|
6
6
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/signature-
|
|
21
|
+
"@aws-sdk/signature-v4a": "3.1111.0",
|
|
22
22
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
23
23
|
"rolldown": "1.2.4",
|
|
24
24
|
"vitest": "4.1.11"
|
|
@@ -82,23 +82,23 @@
|
|
|
82
82
|
"wrap-ansi": "10.0.1",
|
|
83
83
|
"zod": "4.4.3",
|
|
84
84
|
"@awsless/big-float": "^0.1.8",
|
|
85
|
+
"@awsless/clui": "^0.0.10",
|
|
85
86
|
"@awsless/cloudwatch": "^0.0.2",
|
|
86
87
|
"@awsless/duration": "^0.0.4",
|
|
87
|
-
"@awsless/clui": "^0.0.10",
|
|
88
88
|
"@awsless/dynamodb": "^0.3.28",
|
|
89
89
|
"@awsless/dynamodb-server": "^0.1.11",
|
|
90
90
|
"@awsless/iot": "^0.0.6",
|
|
91
91
|
"@awsless/json": "^0.0.12",
|
|
92
|
+
"@awsless/open-search": "^0.0.31",
|
|
92
93
|
"@awsless/lambda": "^0.0.50",
|
|
93
94
|
"@awsless/redis": "^0.1.14",
|
|
94
95
|
"@awsless/s3": "^0.0.23",
|
|
95
|
-
"@awsless/sqs": "^0.0.25",
|
|
96
|
-
"@awsless/sns": "^0.0.12",
|
|
97
96
|
"@awsless/size": "^0.0.3",
|
|
98
|
-
"@awsless/
|
|
97
|
+
"@awsless/sns": "^0.0.12",
|
|
98
|
+
"@awsless/sqs": "^0.0.25",
|
|
99
99
|
"@awsless/validate": "^0.2.1",
|
|
100
|
-
"@awsless/weak-cache": "^0.0.2",
|
|
101
100
|
"@awsless/ts-file-cache": "^0.0.22",
|
|
101
|
+
"@awsless/weak-cache": "^0.0.2",
|
|
102
102
|
"awsless": "^0.1.11"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
"@awsless/big-float": "^0.1.8",
|
|
120
120
|
"@awsless/duration": "^0.0.4",
|
|
121
121
|
"@awsless/dynamodb": "^0.3.28",
|
|
122
|
-
"@awsless/dynamodb-server": "^0.1.11",
|
|
123
122
|
"@awsless/json": "^0.0.12",
|
|
124
|
-
"@awsless/s3": "^0.0.23",
|
|
125
|
-
"@awsless/validate": "^0.2.1",
|
|
126
123
|
"@awsless/lambda": "^0.0.50",
|
|
124
|
+
"@awsless/s3": "^0.0.23",
|
|
127
125
|
"@awsless/ts-file-cache": "^0.0.22",
|
|
128
126
|
"@awsless/weak-cache": "^0.0.2",
|
|
129
|
-
"awsless": "^0.1.11"
|
|
127
|
+
"@awsless/dynamodb-server": "^0.1.11",
|
|
128
|
+
"awsless": "^0.1.11",
|
|
129
|
+
"@awsless/validate": "^0.2.1"
|
|
130
130
|
},
|
|
131
131
|
"scripts": {
|
|
132
132
|
"test": "bun cli/build-handlers.ts && pnpm vitest run",
|