@adobe/spacecat-shared-utils 1.82.2 → 1.82.3

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,10 @@
1
+ # [@adobe/spacecat-shared-utils-v1.82.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.82.2...@adobe/spacecat-shared-utils-v1.82.3) (2025-12-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * heading and toc mappers ([#1230](https://github.com/adobe/spacecat-shared/issues/1230)) ([f767fb3](https://github.com/adobe/spacecat-shared/commit/f767fb319c97ed64848a1c5fc5913693a52290d9))
7
+
1
8
  # [@adobe/spacecat-shared-utils-v1.82.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.82.1...@adobe/spacecat-shared-utils-v1.82.2) (2025-12-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.82.2",
3
+ "version": "1.82.3",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -41,6 +41,7 @@ export async function detectLocale(config) {
41
41
  const $ = cheerio.load(html);
42
42
 
43
43
  // Execute language detection indicators
44
+ /* c8 ignore start */
44
45
  for (const indicator of indicatorFuncs) {
45
46
  const results = indicator({ baseUrl: parsedBaseUrl, headers, $ });
46
47
  indicatorResults.push(...results);
@@ -56,6 +57,7 @@ export async function detectLocale(config) {
56
57
  }
57
58
  return acc;
58
59
  }, { region: {}, language: {} });
60
+ /* c8 ignore stop */
59
61
  const region = Object.keys(summary.region).length > 0 ? Object.keys(summary.region).sort((a, b) => summary.region[b] - summary.region[a])[0] : 'US';
60
62
  const language = Object.keys(summary.language).length > 0 ? Object.keys(summary.language).sort((a, b) => summary.language[b] - summary.language[a])[0] : 'en';
61
63