@adobe/spacecat-shared-utils 1.82.1 → 1.82.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [@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
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **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))
7
+
1
8
  # [@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
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.82.1",
3
+ "version": "1.82.2",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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
  }