@tryghost/kg-parser-plugins
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -900,3 +900,3 @@ 'use strict'; | ||
if (emojiNode) { | ||
calloutEmoji = emojiNode.textContent; | ||
calloutEmoji = emojiNode?.textContent; | ||
if (calloutEmoji) { | ||
@@ -907,3 +907,3 @@ calloutEmoji = calloutEmoji.trim(); | ||
let calloutText = htmlNode.innerHTML; | ||
let calloutText = htmlNode?.innerHTML || ''; | ||
@@ -910,0 +910,0 @@ const payload = { |
@@ -851,3 +851,3 @@ import cleanBasicHtml from '@tryghost/kg-clean-basic-html'; | ||
if (emojiNode) { | ||
calloutEmoji = emojiNode.textContent; | ||
calloutEmoji = emojiNode?.textContent; | ||
if (calloutEmoji) { | ||
@@ -857,3 +857,3 @@ calloutEmoji = calloutEmoji.trim(); | ||
} | ||
let calloutText = htmlNode.innerHTML; | ||
let calloutText = htmlNode?.innerHTML || ''; | ||
const payload = { | ||
@@ -860,0 +860,0 @@ calloutEmoji, |
@@ -74,3 +74,3 @@ /** | ||
if (emojiNode) { | ||
calloutEmoji = emojiNode.textContent; | ||
calloutEmoji = emojiNode?.textContent; | ||
if (calloutEmoji) { | ||
@@ -81,3 +81,3 @@ calloutEmoji = calloutEmoji.trim(); | ||
let calloutText = htmlNode.innerHTML; | ||
let calloutText = htmlNode?.innerHTML || ''; | ||
@@ -84,0 +84,0 @@ const payload = { |
{ | ||
"name": "@tryghost/kg-parser-plugins", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-parser-plugins", | ||
@@ -34,9 +34,9 @@ "author": "Ghost Foundation", | ||
"@babel/core": "7.23.7", | ||
"@babel/preset-env": "7.23.7", | ||
"@babel/preset-env": "7.23.8", | ||
"@rollup/plugin-babel": "6.0.4", | ||
"@tryghost/mobiledoc-kit": "0.11.2-ghost.4", | ||
"c8": "8.0.1", | ||
"jsdom": "23.0.1", | ||
"c8": "9.1.0", | ||
"jsdom": "23.2.0", | ||
"mocha": "10.2.0", | ||
"rollup": "4.9.2", | ||
"rollup": "4.9.5", | ||
"should": "13.2.3", | ||
@@ -46,5 +46,5 @@ "sinon": "17.0.1" | ||
"dependencies": { | ||
"@tryghost/kg-clean-basic-html": "^4.0.2" | ||
"@tryghost/kg-clean-basic-html": "^4.0.3" | ||
}, | ||
"gitHead": "1f8ced86f538ecbd1394b52135d30ecd71a4ad96" | ||
"gitHead": "e328242c126f405a6cf43ccc44339847817c0119" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269242