@sitecore/sc-contenthub-webclient-sdk 1.2.0 → 1.2.1

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.
@@ -2,7 +2,7 @@
2
2
  import { MapCultureTo, MapStringTo, Nullable } from "../../base-types";
3
3
  export interface IRelatedPath {
4
4
  readonly name: string;
5
- readonly items: ReadonlyArray<IRelatedPathItem>;
5
+ readonly items: ReadonlyArray<ReadonlyArray<IRelatedPathItem>>;
6
6
  }
7
7
  export interface IRelatedPathItem {
8
8
  readonly values: MapCultureTo<string>;
@@ -15,12 +15,12 @@ class RelatedPathMapper {
15
15
  }
16
16
  const relatedPath = {
17
17
  name: relatedPathName,
18
- items: values.flat().map(item => ({
18
+ items: values.map(items => items.map(item => ({
19
19
  values: item.values,
20
20
  definition: item.definition,
21
21
  entity: item.entity,
22
22
  properties: item.properties || null,
23
- })),
23
+ }))),
24
24
  };
25
25
  list.push(relatedPath);
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore/sc-contenthub-webclient-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Sitecore Content Hub WebClient SDK.",
5
5
  "scripts": {
6
6
  "build": "npm run clean && npm run test && tsc && npm run lint",