@quintype/seo 1.41.3-gsc-errors-fix.1 → 1.41.4-gsc-errors-fix.0
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 +2 -0
- package/dist/index.cjs.js +2 -2
- package/package.json +1 -1
- package/src/author-tags.js +1 -1
- package/src/generate-common-seo.js +1 -1
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.41.3](https://github.com/quintype/quintype-node-seo/compare/v1.41.2...v1.41.3) (2022-12-02)
|
|
6
|
+
|
|
5
7
|
### [1.41.2](https://github.com/quintype/quintype-node-seo/compare/v1.41.1...v1.41.2) (2022-11-30)
|
|
6
8
|
|
|
7
9
|
### [1.41.1](https://github.com/quintype/quintype-node-seo/compare/v1.41.1-gsc-errors.0...v1.41.1) (2022-11-29)
|
package/dist/index.cjs.js
CHANGED
|
@@ -120,7 +120,7 @@ function AuthorTags(seoConfig, config, pageType, data, { url }) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
function getTwitterCreator(storyData) {
|
|
123
|
-
const twitterData = lodash.get(storyData, ["data", "story", "authors", 0, "social", "twitter"], {});
|
|
123
|
+
const twitterData = lodash.get(storyData, ["data", "story", "authors", 0, "social", "twitter"], {}) || {};
|
|
124
124
|
const twitterUrl = twitterData.url || "";
|
|
125
125
|
const twitterHandle = twitterData.handle || "";
|
|
126
126
|
if (twitterHandle.startsWith("@")) return twitterHandle;
|
|
@@ -209,7 +209,7 @@ function generateStructuredData(config = {}) {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
function getSiteTwitterHandle(config, fallback) {
|
|
212
|
-
const twitterUrl = get__default["default"](config, ["social-links", "twitter-url"], "");
|
|
212
|
+
const twitterUrl = get__default["default"](config, ["social-links", "twitter-url"], "") || "";
|
|
213
213
|
const twitterHandleFromUrl = twitterUrl.split("/").pop();
|
|
214
214
|
if (twitterHandleFromUrl) {
|
|
215
215
|
if (twitterHandleFromUrl.startsWith("@")) return twitterHandleFromUrl;
|
package/package.json
CHANGED
package/src/author-tags.js
CHANGED
|
@@ -21,7 +21,7 @@ export function AuthorTags(seoConfig, config, pageType, data, { url }) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function getTwitterCreator(storyData) {
|
|
24
|
-
const twitterData = get(storyData, ["data", "story", "authors", 0, "social", "twitter"], {});
|
|
24
|
+
const twitterData = get(storyData, ["data", "story", "authors", 0, "social", "twitter"], {}) || {};
|
|
25
25
|
const twitterUrl = twitterData.url || "";
|
|
26
26
|
const twitterHandle = twitterData.handle || "";
|
|
27
27
|
if (twitterHandle.startsWith("@")) return twitterHandle;
|
|
@@ -83,7 +83,7 @@ export function generateStructuredData(config = {}) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
function getSiteTwitterHandle(config, fallback) {
|
|
86
|
-
const twitterUrl = get(config, ["social-links", "twitter-url"], "");
|
|
86
|
+
const twitterUrl = get(config, ["social-links", "twitter-url"], "") || "";
|
|
87
87
|
const twitterHandleFromUrl = twitterUrl.split("/").pop();
|
|
88
88
|
if (twitterHandleFromUrl) {
|
|
89
89
|
if (twitterHandleFromUrl.startsWith("@")) return twitterHandleFromUrl;
|