@adobe/spacecat-shared-utils 1.82.1 → 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,17 @@
|
|
|
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
|
+
|
|
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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **rum-api-client:** traffic attibution for new llms ([#1229](https://github.com/adobe/spacecat-shared/issues/1229)) ([a6aac37](https://github.com/adobe/spacecat-shared/commit/a6aac37993e4c5e7527d4f1853a137f2ed9c2779))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-utils-v1.82.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.82.0...@adobe/spacecat-shared-utils-v1.82.1) (2025-12-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -207,9 +207,11 @@ export function getTemporalCondition({
|
|
|
207
207
|
month,
|
|
208
208
|
year,
|
|
209
209
|
numSeries = 1,
|
|
210
|
+
log = null,
|
|
210
211
|
} = {}) {
|
|
211
212
|
const hasValidWeek = isValidWeek(week, year);
|
|
212
213
|
const hasValidMonth = isValidMonth(month, year);
|
|
214
|
+
log?.info(`[getTemporalCondition] hasValidWeek: ${hasValidWeek}, hasValidMonth: ${hasValidMonth}`);
|
|
213
215
|
|
|
214
216
|
if (numSeries > 1) {
|
|
215
217
|
if (!hasValidWeek && !hasValidMonth) {
|
|
@@ -225,6 +227,7 @@ export function getTemporalCondition({
|
|
|
225
227
|
currentWeek = has53CalendarWeeks(currentYear) ? 53 : 52;
|
|
226
228
|
currentYear -= 1;
|
|
227
229
|
}
|
|
230
|
+
log?.info(`[getTemporalCondition] currentWeek: ${currentWeek}, currentYear: ${currentYear}`);
|
|
228
231
|
conditions.push(getWeekInfo(currentWeek, currentYear).temporalCondition);
|
|
229
232
|
} else if (hasValidMonth) {
|
|
230
233
|
let currentMonth = month - i;
|
|
@@ -233,6 +236,7 @@ export function getTemporalCondition({
|
|
|
233
236
|
currentMonth = 12;
|
|
234
237
|
currentYear -= 1;
|
|
235
238
|
}
|
|
239
|
+
log?.info(`[getTemporalCondition] currentMonth: ${currentMonth}, currentYear: ${currentYear}`);
|
|
236
240
|
conditions.push(getMonthInfo(currentMonth, currentYear).temporalCondition);
|
|
237
241
|
}
|
|
238
242
|
}
|
|
@@ -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
|
|