@quintype/seo 1.40.8-embed-url.0 → 1.40.9
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,21 @@
|
|
|
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.40.9](https://github.com/quintype/quintype-node-seo/compare/v1.40.8...v1.40.9) (2022-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **embed-url:** use fallback when story elements are not there ([#530](https://github.com/quintype/quintype-node-seo/issues/530)) ([cf9ab06](https://github.com/quintype/quintype-node-seo/commit/cf9ab06d022a1b2d4c3d6843adcea32606712669))
|
|
11
|
+
|
|
12
|
+
### [1.40.8](https://github.com/quintype/quintype-node-seo/compare/v1.40.5...v1.40.8) (2022-07-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Amphtml error ([#526](https://github.com/quintype/quintype-node-seo/issues/526)) ([24b6c61](https://github.com/quintype/quintype-node-seo/commit/24b6c616118f3db1a2cdda0d98d2827bf2a0d099))
|
|
18
|
+
* **video-structured-data:** use correct embed url ([#528](https://github.com/quintype/quintype-node-seo/issues/528)) ([abe449f](https://github.com/quintype/quintype-node-seo/commit/abe449fd7e75d45f9b9896444f3ef644ca2cf497))
|
|
19
|
+
|
|
5
20
|
### [1.40.7](https://github.com/quintype/quintype-node-seo/compare/v1.40.6...v1.40.7) (2022-07-11)
|
|
6
21
|
|
|
7
22
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -829,8 +829,8 @@ function getEmbedUrl(cards) {
|
|
|
829
829
|
// coz we only need the embed url
|
|
830
830
|
// find is used for early exit
|
|
831
831
|
cards.find(card => {
|
|
832
|
-
const storyElements = card["story-elements"];
|
|
833
|
-
return storyElements.find(
|
|
832
|
+
const storyElements = get__default["default"](card, ["story-elements"], []);
|
|
833
|
+
return storyElements.find(elem => {
|
|
834
834
|
if (elem["embed-url"]) {
|
|
835
835
|
embedUrl = elem["embed-url"];
|
|
836
836
|
return true;
|
package/package.json
CHANGED
|
@@ -261,8 +261,8 @@ function getEmbedUrl(cards) {
|
|
|
261
261
|
// coz we only need the embed url
|
|
262
262
|
// find is used for early exit
|
|
263
263
|
cards.find((card) => {
|
|
264
|
-
const storyElements = card["story-elements"];
|
|
265
|
-
return storyElements.find((elem
|
|
264
|
+
const storyElements = get(card, ["story-elements"], []);
|
|
265
|
+
return storyElements.find((elem) => {
|
|
266
266
|
if (elem["embed-url"]) {
|
|
267
267
|
embedUrl = elem["embed-url"];
|
|
268
268
|
return true;
|