@adobe/spacecat-shared-utils 1.59.3 → 1.60.0
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/cdn-helpers.js +4 -0
- package/src/schemas.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.60.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.4...@adobe/spacecat-shared-utils-v1.60.0) (2025-10-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add log format json ([#1035](https://github.com/adobe/spacecat-shared/issues/1035)) ([a5f82db](https://github.com/adobe/spacecat-shared/commit/a5f82dbfec42af783345058f63d48e1c2e8093c7))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-utils-v1.59.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.3...@adobe/spacecat-shared-utils-v1.59.4) (2025-10-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add cdn bucket schema to llmo config ([#1022](https://github.com/adobe/spacecat-shared/issues/1022)) ([fb3ca44](https://github.com/adobe/spacecat-shared/commit/fb3ca44b206689e59dcb860e519b085367bde0a5))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-utils-v1.59.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.2...@adobe/spacecat-shared-utils-v1.59.3) (2025-10-10)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/cdn-helpers.js
CHANGED
|
@@ -63,6 +63,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
63
63
|
'rspContentType',
|
|
64
64
|
'timeToFirstByte',
|
|
65
65
|
],
|
|
66
|
+
'Log format': 'JSON',
|
|
66
67
|
'Log file prefix': '{%Y}-{%m}-{%d}T{%H}:{%M}:{%S}.000',
|
|
67
68
|
'Log file suffix': '.log',
|
|
68
69
|
'Log interval': '60 seconds',
|
|
@@ -89,6 +90,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
89
90
|
'EdgeResponseContentType',
|
|
90
91
|
'EdgeTimeToFirstByteMs',
|
|
91
92
|
],
|
|
93
|
+
'Log format': 'JSON',
|
|
92
94
|
'Ownership token': 'Please reach out to Adobe support for obtaining the token once you completed the configuration.',
|
|
93
95
|
HelpUrl: 'https://developers.cloudflare.com/logs/logpush/logpush-job/enable-destinations/aws-s3/',
|
|
94
96
|
}),
|
|
@@ -112,6 +114,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
112
114
|
'time-to-first-byte',
|
|
113
115
|
'sc-content-type',
|
|
114
116
|
],
|
|
117
|
+
'Output file format': 'JSON',
|
|
115
118
|
HelpUrl: 'https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/standard-logging.html#enable-standard-logging-cross-accounts',
|
|
116
119
|
}),
|
|
117
120
|
'ams-cloudfront': (payload) => ({
|
|
@@ -121,6 +124,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
121
124
|
'Delivery Destination Name': payload.deliveryDestinationName,
|
|
122
125
|
'Destination AWS Account ID': '640168421876',
|
|
123
126
|
'Path suffix': '/{yyyy}/{MM}/{dd}/{HH}',
|
|
127
|
+
'Output file format': 'JSON',
|
|
124
128
|
'Logged Properties': [
|
|
125
129
|
'date',
|
|
126
130
|
'time',
|
package/src/schemas.js
CHANGED
|
@@ -96,7 +96,7 @@ export const llmoConfig = z.object({
|
|
|
96
96
|
}).optional(),
|
|
97
97
|
cdnBucketConfig: z.object({
|
|
98
98
|
bucketName: z.string().optional(),
|
|
99
|
-
|
|
99
|
+
allowedPaths: z.array(z.string()).optional(),
|
|
100
100
|
cdnProvider: z.string(),
|
|
101
101
|
}).optional(),
|
|
102
102
|
}).superRefine((value, ctx) => {
|