@omerlo/omerlo-webkit 0.0.19 → 0.0.20

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.
@@ -33,12 +33,12 @@ export function listContents(f) {
33
33
  };
34
34
  }
35
35
  export function parseContentSummary(data, assocs) {
36
+ const metadata = (data.metadata ?? []).reduce((acc, { key, value }) => {
37
+ acc[key] = value;
38
+ return acc;
39
+ }, {});
36
40
  if (data.localized) {
37
41
  // NOTE: This is to support publisher public api v2
38
- const metadata = (data.metadata ?? []).reduce((acc, { key, value }) => {
39
- acc[key] = value;
40
- return acc;
41
- }, {});
42
42
  return {
43
43
  id: data.id,
44
44
  template: getAssoc(assocs, 'templates', data.template_id),
@@ -80,7 +80,7 @@ export function parseContentSummary(data, assocs) {
80
80
  subtitleText: data.subtitle_text,
81
81
  visual: parseVisual(data.visual, assocs),
82
82
  meta: { locales: parseLocalesMetadata(data.meta) },
83
- metadata: data.metadata,
83
+ metadata: metadata,
84
84
  authors: getAssocs(assocs, 'profiles', data.author_ids)
85
85
  };
86
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",