@awsless/awsless 0.0.518 → 0.0.520
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
|
@@ -6288,7 +6288,7 @@ import { $ as $23, Group as Group24 } from "@awsless/formation";
|
|
|
6288
6288
|
import { join as join13, dirname as dirname9 } from "path";
|
|
6289
6289
|
import { mebibytes as mebibytes5 } from "@awsless/size";
|
|
6290
6290
|
import { days as days7, seconds as seconds10, toSeconds as toSeconds9 } from "@awsless/duration";
|
|
6291
|
-
import {
|
|
6291
|
+
import { constantCase as constantCase12 } from "change-case";
|
|
6292
6292
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
6293
6293
|
import { glob as glob4 } from "glob";
|
|
6294
6294
|
var __dirname3 = dirname9(fileURLToPath3(import.meta.url));
|
|
@@ -6423,31 +6423,16 @@ var iconFeature = defineFeature({
|
|
|
6423
6423
|
name,
|
|
6424
6424
|
defaultTtl: toSeconds9(days7(365))
|
|
6425
6425
|
});
|
|
6426
|
-
const originRequest = new $23.aws.cloudfront.OriginRequestPolicy(group, "request", {
|
|
6427
|
-
name,
|
|
6428
|
-
headersConfig: {
|
|
6429
|
-
headerBehavior: camelCase8("all-except"),
|
|
6430
|
-
headers: {
|
|
6431
|
-
items: ["host", "authorization"]
|
|
6432
|
-
}
|
|
6433
|
-
},
|
|
6434
|
-
cookiesConfig: {
|
|
6435
|
-
cookieBehavior: "all"
|
|
6436
|
-
},
|
|
6437
|
-
queryStringsConfig: {
|
|
6438
|
-
queryStringBehavior: "all"
|
|
6439
|
-
}
|
|
6440
|
-
});
|
|
6441
6426
|
const responseHeaders = new $23.aws.cloudfront.ResponseHeadersPolicy(group, "response", {
|
|
6442
6427
|
name,
|
|
6443
6428
|
corsConfig: {
|
|
6444
|
-
originOverride: props.cors?.override ??
|
|
6429
|
+
originOverride: props.cors?.override ?? false,
|
|
6445
6430
|
accessControlMaxAgeSec: toSeconds9(props.cors?.maxAge ?? days7(365)),
|
|
6446
6431
|
accessControlAllowHeaders: { items: props.cors?.headers ?? ["*"] },
|
|
6447
|
-
accessControlAllowMethods: { items: ["
|
|
6432
|
+
accessControlAllowMethods: { items: ["GET", "HEAD"] },
|
|
6448
6433
|
accessControlAllowOrigins: { items: props.cors?.origins ?? ["*"] },
|
|
6449
6434
|
accessControlExposeHeaders: { items: props.cors?.exposeHeaders ?? ["*"] },
|
|
6450
|
-
accessControlAllowCredentials: props.cors?.credentials ??
|
|
6435
|
+
accessControlAllowCredentials: props.cors?.credentials ?? false
|
|
6451
6436
|
}
|
|
6452
6437
|
});
|
|
6453
6438
|
const distribution = new $23.aws.cloudfront.Distribution(group, "distribution", {
|
|
@@ -6507,7 +6492,6 @@ var iconFeature = defineFeature({
|
|
|
6507
6492
|
viewerProtocolPolicy: "redirect-to-https",
|
|
6508
6493
|
allowedMethods: ["GET", "HEAD"],
|
|
6509
6494
|
cachedMethods: ["GET", "HEAD"],
|
|
6510
|
-
originRequestPolicyId: originRequest.id,
|
|
6511
6495
|
responseHeadersPolicyId: responseHeaders.id
|
|
6512
6496
|
}
|
|
6513
6497
|
});
|
package/dist/prebuild/icon/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
62956c5acde3efe3c4de2ee2d8e93e3820c773cb
|
|
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.520",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"@awsless/clui": "^0.0.7",
|
|
38
38
|
"@awsless/dynamodb": "^0.1.5",
|
|
39
39
|
"@awsless/json": "^0.0.10",
|
|
40
|
-
"@awsless/lambda": "^0.0.33",
|
|
41
|
-
"@awsless/mqtt": "^0.0.2",
|
|
42
40
|
"@awsless/iot": "^0.0.3",
|
|
41
|
+
"@awsless/s3": "^0.0.21",
|
|
43
42
|
"@awsless/open-search": "^0.0.21",
|
|
43
|
+
"@awsless/validate": "^0.0.19",
|
|
44
44
|
"@awsless/redis": "^0.0.14",
|
|
45
|
-
"@awsless/
|
|
45
|
+
"@awsless/lambda": "^0.0.33",
|
|
46
|
+
"@awsless/mqtt": "^0.0.2",
|
|
47
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
46
48
|
"@awsless/sns": "^0.0.10",
|
|
47
|
-
"@awsless/sqs": "^0.0.8",
|
|
48
|
-
"@awsless/validate": "^0.0.19",
|
|
49
49
|
"@awsless/ssm": "^0.0.7",
|
|
50
|
-
"@awsless/
|
|
50
|
+
"@awsless/sqs": "^0.0.8"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -131,14 +131,14 @@
|
|
|
131
131
|
"zod": "^3.24.2",
|
|
132
132
|
"zod-to-json-schema": "^3.24.3",
|
|
133
133
|
"@awsless/big-float": "^0.0.6",
|
|
134
|
-
"@awsless/code": "^0.0.10",
|
|
135
134
|
"@awsless/clui": "^0.0.7",
|
|
136
|
-
"@awsless/
|
|
135
|
+
"@awsless/code": "^0.0.10",
|
|
137
136
|
"@awsless/duration": "^0.0.3",
|
|
137
|
+
"@awsless/formation": "^0.0.77",
|
|
138
138
|
"@awsless/graphql": "^0.0.9",
|
|
139
|
-
"@awsless/json": "^0.0.10",
|
|
140
|
-
"@awsless/size": "^0.0.2",
|
|
141
139
|
"@awsless/ts-file-cache": "^0.0.12",
|
|
140
|
+
"@awsless/size": "^0.0.2",
|
|
141
|
+
"@awsless/json": "^0.0.10",
|
|
142
142
|
"@awsless/validate": "^0.0.19"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|