@websolutespa/bom-mixer-models 1.7.4 → 1.7.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,5 +1,23 @@
1
1
  # @websolutespa/bom-mixer-models
2
2
 
3
+ ## 1.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixing: downgrading eslint to v8.56.0
8
+ - Updated dependencies
9
+ - @websolutespa/bom-mixer-store@1.7.5
10
+ - @websolutespa/bom-core@1.7.8
11
+
12
+ ## 1.7.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Modified: StructuredData Seo
17
+ - Updated dependencies
18
+ - @websolutespa/bom-mixer-store@1.7.4
19
+ - @websolutespa/bom-core@1.7.7
20
+
3
21
  ## 1.7.4
4
22
 
5
23
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1749,7 +1749,6 @@ function resolveMediaSrc(media) {
1749
1749
  }
1750
1750
  function resolveStructuredData(page, websiteName = "WebsiteName", types = DefaultStructuredDataCollections) {
1751
1751
  let schema = null;
1752
- const json = null;
1753
1752
  let pageType = page.schema || "";
1754
1753
  if (page.template) {
1755
1754
  pageType = (0, import_bom_core7.asCategoryId)(page.template);
@@ -1769,8 +1768,8 @@ function resolveStructuredData(page, websiteName = "WebsiteName", types = Defaul
1769
1768
  }]
1770
1769
  };
1771
1770
  }
1772
- if (json) {
1773
- return JSON.stringify(json);
1771
+ if (schema) {
1772
+ return JSON.stringify(schema);
1774
1773
  }
1775
1774
  return void 0;
1776
1775
  }
package/dist/index.mjs CHANGED
@@ -1648,7 +1648,6 @@ function resolveMediaSrc(media) {
1648
1648
  }
1649
1649
  function resolveStructuredData(page, websiteName = "WebsiteName", types = DefaultStructuredDataCollections) {
1650
1650
  let schema = null;
1651
- const json = null;
1652
1651
  let pageType = page.schema || "";
1653
1652
  if (page.template) {
1654
1653
  pageType = asCategoryId2(page.template);
@@ -1668,8 +1667,8 @@ function resolveStructuredData(page, websiteName = "WebsiteName", types = Defaul
1668
1667
  }]
1669
1668
  };
1670
1669
  }
1671
- if (json) {
1672
- return JSON.stringify(json);
1670
+ if (schema) {
1671
+ return JSON.stringify(schema);
1673
1672
  }
1674
1673
  return void 0;
1675
1674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-models",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Mixer Models module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -30,7 +30,7 @@
30
30
  "@websolutespa/bom-cli": "*",
31
31
  "@websolutespa/test": "*",
32
32
  "@websolutespa/tsconfig": "*",
33
- "eslint": "^9.0.0",
33
+ "eslint": "^8.56.0",
34
34
  "eslint-config-websolute": "*",
35
35
  "npm-run-all": "^4.1.5",
36
36
  "react": "^18.2.0",
@@ -96,8 +96,7 @@ export function resolveStructuredData(
96
96
  websiteName = 'WebsiteName',
97
97
  types: StructuredDataCollections = DefaultStructuredDataCollections
98
98
  ): string | undefined {
99
- let schema = null;
100
- const json: {} | null = null;
99
+ let schema: {} | null = null;
101
100
  let pageType = page.schema || '';
102
101
  if (page.template) {
103
102
  pageType = asCategoryId(page.template);
@@ -117,8 +116,8 @@ export function resolveStructuredData(
117
116
  }],
118
117
  } as StructuredDataArticle;
119
118
  }
120
- if (json) {
121
- return JSON.stringify(json);
119
+ if (schema) {
120
+ return JSON.stringify(schema);
122
121
  }
123
122
  return undefined;
124
123
  }