@awsless/awsless 0.0.519 → 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,58 +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
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
6435
|
accessControlAllowCredentials: props.cors?.credentials ?? false
|
|
6451
|
-
},
|
|
6452
|
-
removeHeadersConfig: {
|
|
6453
|
-
items: [{ header: "server" }]
|
|
6454
|
-
},
|
|
6455
|
-
securityHeadersConfig: {
|
|
6456
|
-
contentTypeOptions: {
|
|
6457
|
-
override: false
|
|
6458
|
-
},
|
|
6459
|
-
frameOptions: {
|
|
6460
|
-
override: false,
|
|
6461
|
-
frameOption: "SAMEORIGIN"
|
|
6462
|
-
},
|
|
6463
|
-
referrerPolicy: {
|
|
6464
|
-
override: false,
|
|
6465
|
-
referrerPolicy: "same-origin"
|
|
6466
|
-
},
|
|
6467
|
-
strictTransportSecurity: {
|
|
6468
|
-
override: false,
|
|
6469
|
-
preload: true,
|
|
6470
|
-
accessControlMaxAgeSec: toSeconds9(days7(365)),
|
|
6471
|
-
includeSubdomains: true
|
|
6472
|
-
},
|
|
6473
|
-
xssProtection: {
|
|
6474
|
-
override: false,
|
|
6475
|
-
modeBlock: true,
|
|
6476
|
-
protection: true
|
|
6477
|
-
}
|
|
6478
6436
|
}
|
|
6479
6437
|
});
|
|
6480
6438
|
const distribution = new $23.aws.cloudfront.Distribution(group, "distribution", {
|
|
@@ -6534,7 +6492,6 @@ var iconFeature = defineFeature({
|
|
|
6534
6492
|
viewerProtocolPolicy: "redirect-to-https",
|
|
6535
6493
|
allowedMethods: ["GET", "HEAD"],
|
|
6536
6494
|
cachedMethods: ["GET", "HEAD"],
|
|
6537
|
-
originRequestPolicyId: originRequest.id,
|
|
6538
6495
|
responseHeadersPolicyId: responseHeaders.id
|
|
6539
6496
|
}
|
|
6540
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,
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@awsless/big-float": "^0.0.6",
|
|
37
37
|
"@awsless/clui": "^0.0.7",
|
|
38
|
-
"@awsless/json": "^0.0.10",
|
|
39
38
|
"@awsless/dynamodb": "^0.1.5",
|
|
40
|
-
"@awsless/
|
|
39
|
+
"@awsless/json": "^0.0.10",
|
|
41
40
|
"@awsless/iot": "^0.0.3",
|
|
42
|
-
"@awsless/mqtt": "^0.0.2",
|
|
43
41
|
"@awsless/s3": "^0.0.21",
|
|
42
|
+
"@awsless/open-search": "^0.0.21",
|
|
43
|
+
"@awsless/validate": "^0.0.19",
|
|
44
44
|
"@awsless/redis": "^0.0.14",
|
|
45
|
+
"@awsless/lambda": "^0.0.33",
|
|
46
|
+
"@awsless/mqtt": "^0.0.2",
|
|
47
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
45
48
|
"@awsless/sns": "^0.0.10",
|
|
46
|
-
"@awsless/sqs": "^0.0.8",
|
|
47
|
-
"@awsless/validate": "^0.0.19",
|
|
48
49
|
"@awsless/ssm": "^0.0.7",
|
|
49
|
-
"@awsless/
|
|
50
|
-
"@awsless/open-search": "^0.0.21"
|
|
50
|
+
"@awsless/sqs": "^0.0.8"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -131,15 +131,15 @@
|
|
|
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/ts-file-cache": "^0.0.12",
|
|
139
140
|
"@awsless/size": "^0.0.2",
|
|
140
141
|
"@awsless/json": "^0.0.10",
|
|
141
|
-
"@awsless/validate": "^0.0.19"
|
|
142
|
-
"@awsless/ts-file-cache": "^0.0.12"
|
|
142
|
+
"@awsless/validate": "^0.0.19"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
145
|
"@node-rs/bcrypt": "^1.10.5",
|