@quintype/seo 1.50.1-schema-changes-2026.0 → 1.50.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.50.1](https://github.com/quintype/quintype-node-seo/compare/v1.50.0...v1.50.1) (2026-03-18)
|
|
6
|
+
|
|
5
7
|
## [1.50.0](https://github.com/quintype/quintype-node-seo/compare/v1.47.0...v1.50.0) (2025-12-04)
|
|
6
8
|
|
|
7
9
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -608,7 +608,7 @@ function imageUrl(publisherConfig, s3Key, width, height) {
|
|
|
608
608
|
function generateCommonData(structuredData = {}, story = {}, publisherConfig = {}, timezone) {
|
|
609
609
|
const storyUrl = story.url || `${publisherConfig["sketches-host"]}/${story.slug}`;
|
|
610
610
|
const orgUrl = get__default["default"](structuredData, ["organization", "url"], "");
|
|
611
|
-
const mainEntityUrl = Object.keys(story).length
|
|
611
|
+
const mainEntityUrl = Object.keys(story).length ? storyUrl : get__default["default"](structuredData, ["organization", "url"], "");
|
|
612
612
|
const imageWidth = 1200;
|
|
613
613
|
const imageHeight = 675;
|
|
614
614
|
return Object.assign({}, {
|
|
@@ -668,7 +668,7 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
|
|
|
668
668
|
const isAccessibleForFree = storyAccessType ? {} : { isAccessibleForFree: storyAccessType };
|
|
669
669
|
const metadata = get__default["default"](story, ["metadata"], {});
|
|
670
670
|
const sponsor = metadata.hasOwnProperty("sponsored-by") ? { sponsor: { name: metadata["sponsored-by"] } } : {};
|
|
671
|
-
const inLanguage = get__default["default"](publisherConfig, ["language", "iso-code"]);
|
|
671
|
+
const inLanguage = get__default["default"](publisherConfig, ["language", "iso-code"], "");
|
|
672
672
|
const description = get__default["default"](story, ["seo", "meta-description"]) || get__default["default"](story, ["subheadline"]) || get__default["default"](story, ["headline"]);
|
|
673
673
|
|
|
674
674
|
return Object.assign({}, generateCommonData(structuredData, story, publisherConfig, timezone), {
|
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ function generateCommonData(structuredData = {}, story = {}, publisherConfig = {
|
|
|
43
43
|
const storyUrl = story.url || `${publisherConfig["sketches-host"]}/${story.slug}`;
|
|
44
44
|
const orgUrl = get(structuredData, ["organization", "url"], "");
|
|
45
45
|
const mainEntityUrl =
|
|
46
|
-
Object.keys(story).length
|
|
46
|
+
Object.keys(story).length
|
|
47
47
|
? storyUrl
|
|
48
48
|
: get(structuredData, ["organization", "url"], "");
|
|
49
49
|
const imageWidth = 1200;
|
|
@@ -110,7 +110,7 @@ function generateArticleData(structuredData = {}, story = {}, publisherConfig =
|
|
|
110
110
|
const isAccessibleForFree = storyAccessType ? {} : { isAccessibleForFree: storyAccessType };
|
|
111
111
|
const metadata = get(story, ["metadata"], {});
|
|
112
112
|
const sponsor = metadata.hasOwnProperty("sponsored-by") ? { sponsor: { name: metadata["sponsored-by"] } } : {};
|
|
113
|
-
const inLanguage = get(publisherConfig, ["language", "iso-code"]);
|
|
113
|
+
const inLanguage = get(publisherConfig, ["language", "iso-code"], "");
|
|
114
114
|
const description =
|
|
115
115
|
get(story, ["seo", "meta-description"]) || get(story, ["subheadline"]) || get(story, ["headline"]);
|
|
116
116
|
|