@adobe/spacecat-shared-ahrefs-client 1.8.0 → 1.8.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,17 @@
1
+ # [@adobe/spacecat-shared-ahrefs-client-v1.8.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.8.1...@adobe/spacecat-shared-ahrefs-client-v1.8.2) (2025-06-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * organic keyword import missing the url ([#784](https://github.com/adobe/spacecat-shared/issues/784)) ([ce82ed6](https://github.com/adobe/spacecat-shared/commit/ce82ed672bee61e60da713553b6c9de8f2ba32d5))
7
+
8
+ # [@adobe/spacecat-shared-ahrefs-client-v1.8.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.8.0...@adobe/spacecat-shared-ahrefs-client-v1.8.1) (2025-06-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * log error object ([#783](https://github.com/adobe/spacecat-shared/issues/783)) ([66285c1](https://github.com/adobe/spacecat-shared/commit/66285c14c4b7f022ad9bfd447025732fd993b644))
14
+
1
15
  # [@adobe/spacecat-shared-ahrefs-client-v1.8.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.7.1...@adobe/spacecat-shared-ahrefs-client-v1.8.0) (2025-06-02)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-ahrefs-client",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Shared modules of the Spacecat Services - Ahrefs Client",
5
5
  "type": "module",
6
6
  "engines": {
package/src/index.js CHANGED
@@ -25,6 +25,7 @@ export const ORGANIC_KEYWORDS_FIELDS = /** @type {const} */ ([
25
25
  'sum_traffic',
26
26
  'volume',
27
27
  'best_position',
28
+ 'best_position_url',
28
29
  'cpc',
29
30
  'last_update',
30
31
  'is_branded',
@@ -32,7 +33,7 @@ export const ORGANIC_KEYWORDS_FIELDS = /** @type {const} */ ([
32
33
  'is_informational',
33
34
  'is_commercial',
34
35
  'is_transactional',
35
- 'serp_features_merged',
36
+ 'serp_features',
36
37
  ]);
37
38
 
38
39
  export default class AhrefsAPIClient {
@@ -99,7 +100,7 @@ export default class AhrefsAPIClient {
99
100
  fullAuditRef,
100
101
  };
101
102
  } catch (e) {
102
- this.log.error(`Error parsing Ahrefs API response: ${e.message}`);
103
+ this.log.error(`Error parsing Ahrefs API response: ${e.message}`, e);
103
104
  throw new Error(`Error parsing Ahrefs API response: ${e.message}`);
104
105
  }
105
106
  }
@@ -218,6 +219,7 @@ export default class AhrefsAPIClient {
218
219
  if (!['prefix', 'exact'].includes(mode)) {
219
220
  throw new Error(`Invalid mode: ${mode}`);
220
221
  }
222
+ this.log.info(`Getting organic keywords for ${url} with country ${country}, mode ${mode}, limit ${limit}, excludeBranded ${excludeBranded} and select:${ORGANIC_KEYWORDS_FIELDS.join(',')}`);
221
223
 
222
224
  const queryParams = {
223
225
  country,