@adobe/spacecat-shared-content-client 1.3.4 → 1.3.6

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-content-client-v1.3.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.3.5...@adobe/spacecat-shared-content-client-v1.3.6) (2025-01-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#538](https://github.com/adobe/spacecat-shared/issues/538)) ([a3bddf6](https://github.com/adobe/spacecat-shared/commit/a3bddf6cb2a9b60db8f8c3450e81205cd10c0b23))
7
+
8
+ # [@adobe/spacecat-shared-content-client-v1.3.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.3.4...@adobe/spacecat-shared-content-client-v1.3.5) (2025-01-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/rum-distiller to v1.15.0 ([#536](https://github.com/adobe/spacecat-shared/issues/536)) ([ff70837](https://github.com/adobe/spacecat-shared/commit/ff70837e4cfb5fda6b7ba4b1369bbfaeb4c30b49)), closes [#8203](https://github.com/adobe/spacecat-shared/issues/8203)
14
+
1
15
  # [@adobe/spacecat-shared-content-client-v1.3.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.3.3...@adobe/spacecat-shared-content-client-v1.3.4) (2024-12-31)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-content-client",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Shared modules of the Spacecat Services - Content Client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@adobe/helix-universal": "5.0.8",
38
- "@adobe/spacecat-shared-data-access": "1.50.0",
38
+ "@adobe/spacecat-shared-data-access": "2.0.0",
39
39
  "@adobe/spacecat-helix-content-sdk": "1.3.18",
40
- "@adobe/spacecat-shared-utils": "1.22.4",
40
+ "@adobe/spacecat-shared-utils": "1.26.1",
41
41
  "graph-data-structure": "4.3.0"
42
42
  },
43
43
  "devDependencies": {
@@ -47,6 +47,6 @@
47
47
  "nock": "13.5.6",
48
48
  "sinon": "19.0.2",
49
49
  "sinon-chai": "4.0.0",
50
- "typescript": "5.7.2"
50
+ "typescript": "5.7.3"
51
51
  }
52
52
  }
@@ -15,7 +15,6 @@ import {
15
15
  composeBaseURL, hasText, isObject, tracingFetch,
16
16
  } from '@adobe/spacecat-shared-utils';
17
17
  import { Graph, hasCycle } from 'graph-data-structure';
18
- import { SiteDto } from '@adobe/spacecat-shared-data-access/src/dto/site.js';
19
18
 
20
19
  const CONTENT_SOURCE_TYPE_DRIVE_GOOGLE = 'drive.google';
21
20
  const CONTENT_SOURCE_TYPE_ONEDRIVE = 'onedrive';
@@ -213,7 +212,10 @@ export default class ContentClient {
213
212
  throw new Error(`Failed to fetch ${domain}`);
214
213
  }
215
214
  site = await response.json();
216
- const siteDto = SiteDto.fromDynamoItem(site);
215
+ const siteDto = {
216
+ getId: () => site.siteId,
217
+ getHlxConfig: () => site.hlxConfig,
218
+ };
217
219
  return ContentClient.createFrom({ log, env }, siteDto);
218
220
  } catch (e) {
219
221
  log.error(`Failed to fetch ${domain}: ${e.message}`);