@adobe/spacecat-shared-athena-client 1.8.2 → 1.8.4
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-athena-client-v1.8.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.8.3...@adobe/spacecat-shared-athena-client-v1.8.4) (2025-12-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* consent banner queries temporal series ([#1219](https://github.com/adobe/spacecat-shared/issues/1219)) ([c5c48ef](https://github.com/adobe/spacecat-shared/commit/c5c48ef7d5d4c1caedbf2344a7baf812364ae299))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-athena-client-v1.8.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.8.2...@adobe/spacecat-shared-athena-client-v1.8.3) (2025-12-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* month query passes 0 week ([#1215](https://github.com/adobe/spacecat-shared/issues/1215)) ([1821efd](https://github.com/adobe/spacecat-shared/commit/1821efda813b681f2eb9eab164ad5da1c9d3f59f))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-athena-client-v1.8.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.8.1...@adobe/spacecat-shared-athena-client-v1.8.2) (2025-12-03)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/pta2/queries.js
CHANGED
|
@@ -22,7 +22,7 @@ import { getTemporalCondition } from '@adobe/spacecat-shared-utils';
|
|
|
22
22
|
*/
|
|
23
23
|
export function getPreviousPeriod({ week, month, year }) {
|
|
24
24
|
// Check if week is defined and valid (prioritize week over month)
|
|
25
|
-
if (Number.isInteger(week)) {
|
|
25
|
+
if (Number.isInteger(week) && week > 0 && week <= 53) {
|
|
26
26
|
// Calculate previous week
|
|
27
27
|
const prevWeek = week - 1;
|
|
28
28
|
if (prevWeek < 1) {
|