@adobe/spacecat-shared-utils 1.115.1 → 1.115.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 +12 -0
- package/package.json +6 -6
- package/src/metrics-store.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-utils-v1.115.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.115.2...@adobe/spacecat-shared-utils-v1.115.3) (2026-05-14)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **deps:** update external fixes ([#1533](https://github.com/adobe/spacecat-shared/issues/1533)) ([0a3e2ab](https://github.com/adobe/spacecat-shared/commit/0a3e2abbbc5f58b5320518f7d596d4cef6271fa0))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-utils-v1.115.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.115.1...@adobe/spacecat-shared-utils-v1.115.2) (2026-05-07)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **utils:** update calculateCPCValue S3 path from ahrefs to seo ([#1591](https://github.com/adobe/spacecat-shared/issues/1591)) ([3bf1fe5](https://github.com/adobe/spacecat-shared/commit/3bf1fe5ce9d257de5b30de4d7082f8af30035147)), closes [spacecat-shared#1499](https://github.com/adobe/spacecat-shared/issues/1499)
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-utils-v1.115.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.115.0...@adobe/spacecat-shared-utils-v1.115.1) (2026-05-06)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-utils",
|
|
3
|
-
"version": "1.115.
|
|
3
|
+
"version": "1.115.3",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"esbuild": "0.28.0",
|
|
77
77
|
"chai": "6.2.2",
|
|
78
78
|
"chai-as-promised": "8.0.2",
|
|
79
|
-
"esmock": "2.7.
|
|
79
|
+
"esmock": "2.7.5",
|
|
80
80
|
"husky": "9.1.7",
|
|
81
|
-
"nock": "14.0.
|
|
82
|
-
"sinon": "21.
|
|
81
|
+
"nock": "14.0.15",
|
|
82
|
+
"sinon": "21.1.2",
|
|
83
83
|
"sinon-chai": "4.0.1"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@adobe/fetch": "4.3.0",
|
|
87
|
-
"@aws-sdk/client-s3": "3.
|
|
88
|
-
"@aws-sdk/client-sqs": "3.
|
|
87
|
+
"@aws-sdk/client-s3": "3.1045.0",
|
|
88
|
+
"@aws-sdk/client-sqs": "3.1045.0",
|
|
89
89
|
"@json2csv/plainjs": "7.0.6",
|
|
90
90
|
"aws-xray-sdk": "3.12.0",
|
|
91
91
|
"cheerio": "1.2.0",
|
package/src/metrics-store.js
CHANGED
|
@@ -106,7 +106,7 @@ export async function calculateCPCValue(context, siteId) {
|
|
|
106
106
|
}
|
|
107
107
|
const { s3Client, log } = context;
|
|
108
108
|
const bucketName = context.env.S3_IMPORTER_BUCKET_NAME;
|
|
109
|
-
const key =
|
|
109
|
+
const key = createFilePath({ siteId, source: 'seo', metric: 'organic-traffic' });
|
|
110
110
|
try {
|
|
111
111
|
const organicTrafficData = await getObjectFromKey(s3Client, bucketName, key, log);
|
|
112
112
|
if (!Array.isArray(organicTrafficData) || organicTrafficData.length === 0) {
|