@adobe/spacecat-shared-utils 1.73.0 → 1.74.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-utils-v1.74.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.73.1...@adobe/spacecat-shared-utils-v1.74.0) (2025-11-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * export OPPORTUNITY_TYPES constant ([#1134](https://github.com/adobe/spacecat-shared/issues/1134)) ([31ec102](https://github.com/adobe/spacecat-shared/commit/31ec102786e62bc280bf942f30c0d52e6f8ee9f1))
7
+
8
+ # [@adobe/spacecat-shared-utils-v1.73.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.73.0...@adobe/spacecat-shared-utils-v1.73.1) (2025-11-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#1131](https://github.com/adobe/spacecat-shared/issues/1131)) ([d4a3f4a](https://github.com/adobe/spacecat-shared/commit/d4a3f4a653e59e9bdde7926ea8f1a2f9b68739ff))
14
+
1
15
  # [@adobe/spacecat-shared-utils-v1.73.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.72.1...@adobe/spacecat-shared-utils-v1.73.0) (2025-11-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.73.0",
3
+ "version": "1.74.0",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@adobe/helix-shared-wrap": "2.0.2",
45
45
  "@types/validator": "^13.15.2",
46
- "chai": "6.2.0",
46
+ "chai": "6.2.1",
47
47
  "chai-as-promised": "8.0.2",
48
48
  "esmock": "2.7.3",
49
49
  "husky": "9.1.7",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@adobe/fetch": "4.2.3",
56
- "@aws-sdk/client-s3": "3.927.0",
57
- "@aws-sdk/client-sqs": "3.927.0",
56
+ "@aws-sdk/client-s3": "3.932.0",
57
+ "@aws-sdk/client-sqs": "3.932.0",
58
58
  "@json2csv/plainjs": "7.0.6",
59
59
  "aws-xray-sdk": "3.11.0",
60
60
  "cheerio": "1.1.2",
package/src/constants.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- const OPPORTUNITY_TYPES = {
13
+ export const OPPORTUNITY_TYPES = /** @type {const} */ ({
14
14
  // Core Audit Types
15
15
  ACCESSIBILITY: 'accessibility',
16
16
  ALT_TEXT: 'alt-text',
@@ -64,8 +64,4 @@ const OPPORTUNITY_TYPES = {
64
64
 
65
65
  // Paid Cookie Consent
66
66
  PAID_COOKIE_CONSENT: 'paid-cookie-consent',
67
- };
68
-
69
- export {
70
- OPPORTUNITY_TYPES,
71
- };
67
+ });
package/src/index.d.ts CHANGED
@@ -15,6 +15,8 @@ import type { ISOCalendarWeek } from './calendar-week-helper.js';
15
15
 
16
16
  export { AUTHORING_TYPES, DELIVERY_TYPES } from './aem.js';
17
17
 
18
+ export { OPPORTUNITY_TYPES } from './constants.js';
19
+
18
20
  /** UTILITY FUNCTIONS */
19
21
  export function arrayEquals<T>(a: T[], b: T[]): boolean;
20
22
 
package/src/index.js CHANGED
@@ -77,6 +77,8 @@ export { getStoredMetrics, storeMetrics } from './metrics-store.js';
77
77
 
78
78
  export { s3Wrapper } from './s3.js';
79
79
 
80
+ export { OPPORTUNITY_TYPES } from './constants.js';
81
+
80
82
  export { fetch } from './adobe-fetch.js';
81
83
  export { tracingFetch, SPACECAT_USER_AGENT } from './tracing-fetch.js';
82
84
  export {