@adobe/spacecat-shared-utils 1.59.0 → 1.59.2
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/calendar-week-helper.js +6 -0
- package/src/cdn-helpers.js +4 -0
- package/src/index.d.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.59.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.1...@adobe/spacecat-shared-utils-v1.59.2) (2025-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* adds help urls to cdn helpers ([#1020](https://github.com/adobe/spacecat-shared/issues/1020)) ([9d20a0a](https://github.com/adobe/spacecat-shared/commit/9d20a0a25ac683aba33fc8def57b624b337b8b08))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-utils-v1.59.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.0...@adobe/spacecat-shared-utils-v1.59.1) (2025-10-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **calendar-week-helper:** Bring back ISOCalendarWeek type ([#1018](https://github.com/adobe/spacecat-shared/issues/1018)) ([1680974](https://github.com/adobe/spacecat-shared/commit/16809746b817f1076461e83bc8b7d7f5093815fb))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-utils-v1.59.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.58.1...@adobe/spacecat-shared-utils-v1.59.0) (2025-10-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -310,6 +310,12 @@ export function isoCalendarWeekSunday(date) {
|
|
|
310
310
|
return new Date(+monday + MILLIS_IN_WEEK - 1);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
/**
|
|
314
|
+
* @typedef {object} ISOCalendarWeek
|
|
315
|
+
* @property {number} week - The ISO calendar week number (1-53).
|
|
316
|
+
* @property {number} year - The year of the ISO calendar week.
|
|
317
|
+
*/
|
|
318
|
+
|
|
313
319
|
/**
|
|
314
320
|
* Calculates the calendar week according to ISO 8601:
|
|
315
321
|
* - Weeks start with Monday and end on Sunday.
|
package/src/cdn-helpers.js
CHANGED
|
@@ -44,6 +44,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
44
44
|
ACL: 'None',
|
|
45
45
|
'Server side encryption': 'None',
|
|
46
46
|
'Maximum bytes': 0,
|
|
47
|
+
HelpUrl: 'https://www.fastly.com/documentation/guides/integrations/logging-endpoints/log-streaming-amazon-s3/',
|
|
47
48
|
}),
|
|
48
49
|
'byocdn-akamai': (payload) => ({
|
|
49
50
|
'Bucket Name': payload.bucketName,
|
|
@@ -67,6 +68,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
67
68
|
'Log interval': '60 seconds',
|
|
68
69
|
'Access key': payload.accessKey,
|
|
69
70
|
'Secret key': payload.secretKey,
|
|
71
|
+
HelpUrl: 'https://techdocs.akamai.com/datastream2/docs/stream-amazon-s3',
|
|
70
72
|
}),
|
|
71
73
|
'byocdn-cloudflare': (payload) => ({
|
|
72
74
|
'Bucket Name': payload.bucketName,
|
|
@@ -88,6 +90,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
88
90
|
'EdgeTimeToFirstByteMs',
|
|
89
91
|
],
|
|
90
92
|
'Ownership token': 'Please reach out to Adobe support for obtaining the token once you completed the configuration.',
|
|
93
|
+
HelpUrl: 'https://developers.cloudflare.com/logs/logpush/logpush-job/enable-destinations/aws-s3/',
|
|
91
94
|
}),
|
|
92
95
|
'byocdn-cloudfront': (payload) => ({
|
|
93
96
|
'Bucket Name': payload.bucketName,
|
|
@@ -109,6 +112,7 @@ const CDN_TRANSFORMATIONS = {
|
|
|
109
112
|
'time-to-first-byte',
|
|
110
113
|
'sc-content-type',
|
|
111
114
|
],
|
|
115
|
+
HelpUrl: 'https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/standard-logging.html#enable-standard-logging-cross-accounts',
|
|
112
116
|
}),
|
|
113
117
|
'ams-cloudfront': (payload) => ({
|
|
114
118
|
'Bucket Name': payload.bucketName,
|
package/src/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { Request, RequestOptions, Response } from '@adobe/fetch';
|
|
14
|
+
import type { ISOCalendarWeek } from './calendar-week-helper.js';
|
|
14
15
|
|
|
15
16
|
/** UTILITY FUNCTIONS */
|
|
16
17
|
export function arrayEquals<T>(a: T[], b: T[]): boolean;
|
|
@@ -265,7 +266,7 @@ export function retrievePageAuthentication(site: object, context: object): Promi
|
|
|
265
266
|
|
|
266
267
|
export function prettifyLogForwardingConfig(payload: object): object;
|
|
267
268
|
|
|
268
|
-
export function isoCalendarWeek(date: Date):
|
|
269
|
+
export function isoCalendarWeek(date: Date): ISOCalendarWeek;
|
|
269
270
|
|
|
270
271
|
export function isoCalendarWeekSunday(date: Date): Date;
|
|
271
272
|
|
|
@@ -274,4 +275,4 @@ export function isoCalendarWeekMonday(date: Date): Date;
|
|
|
274
275
|
export * as llmoConfig from './llmo-config.js';
|
|
275
276
|
export * as schemas from './schemas.js';
|
|
276
277
|
|
|
277
|
-
export { type detectLocale } from './locale-detect/index.js';
|
|
278
|
+
export { type detectLocale } from './locale-detect/index.js';
|