@tryghost/kg-parser-plugins
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -156,4 +156,4 @@ 'use strict'; | ||
function isHtmlEndComment(node) { | ||
return node && node.nodeType === 8 && node.nodeValue === 'kg-card-end: html'; | ||
function isHtmlEndComment(n) { | ||
return n && n.nodeType === 8 && n.nodeValue === 'kg-card-end: html'; | ||
} | ||
@@ -222,4 +222,4 @@ | ||
function grafGalleryToCard(node, builder, {addSection, nodeFinished}) { | ||
function isGrafGallery(node) { | ||
return node.nodeType === 1 && node.tagName === 'DIV' && node.dataset && node.dataset.paragraphCount && node.querySelectorAll('img').length > 0; | ||
function isGrafGallery(n) { | ||
return n.nodeType === 1 && n.tagName === 'DIV' && n.dataset && n.dataset.paragraphCount && n.querySelectorAll('img').length > 0; | ||
} | ||
@@ -226,0 +226,0 @@ |
@@ -155,4 +155,4 @@ import cleanBasicHtml from '@tryghost/kg-clean-basic-html'; | ||
function isHtmlEndComment(node) { | ||
return node && node.nodeType === 8 && node.nodeValue === 'kg-card-end: html'; | ||
function isHtmlEndComment(n) { | ||
return n && n.nodeType === 8 && n.nodeValue === 'kg-card-end: html'; | ||
} | ||
@@ -231,4 +231,4 @@ | ||
}) { | ||
function isGrafGallery(node) { | ||
return node.nodeType === 1 && node.tagName === 'DIV' && node.dataset && node.dataset.paragraphCount && node.querySelectorAll('img').length > 0; | ||
function isGrafGallery(n) { | ||
return n.nodeType === 1 && n.tagName === 'DIV' && n.dataset && n.dataset.paragraphCount && n.querySelectorAll('img').length > 0; | ||
} | ||
@@ -235,0 +235,0 @@ |
@@ -161,4 +161,4 @@ /* global DOMParser, window */ | ||
function isHtmlEndComment(node) { | ||
return node && node.nodeType === 8 && node.nodeValue === 'kg-card-end: html'; | ||
function isHtmlEndComment(n) { | ||
return n && n.nodeType === 8 && n.nodeValue === 'kg-card-end: html'; | ||
} | ||
@@ -227,4 +227,4 @@ | ||
function grafGalleryToCard(node, builder, {addSection, nodeFinished}) { | ||
function isGrafGallery(node) { | ||
return node.nodeType === 1 && node.tagName === 'DIV' && node.dataset && node.dataset.paragraphCount && node.querySelectorAll('img').length > 0; | ||
function isGrafGallery(n) { | ||
return n.nodeType === 1 && n.tagName === 'DIV' && n.dataset && n.dataset.paragraphCount && n.querySelectorAll('img').length > 0; | ||
} | ||
@@ -231,0 +231,0 @@ |
{ | ||
"name": "@tryghost/kg-parser-plugins", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-parser-plugins", | ||
@@ -37,12 +37,12 @@ "author": "Ghost Foundation", | ||
"jsdom": "16.2.2", | ||
"mocha": "6.2.0", | ||
"mocha": "8.0.1", | ||
"rollup": "2.15.0", | ||
"rollup-plugin-babel": "4.4.0", | ||
"should": "13.2.3", | ||
"sinon": "7.4.1" | ||
"sinon": "9.0.2" | ||
}, | ||
"dependencies": { | ||
"@tryghost/kg-clean-basic-html": "^1.0.1" | ||
"@tryghost/kg-clean-basic-html": "^1.0.2" | ||
}, | ||
"gitHead": "a254a55751497d45191aea19f3700541fe55c63d" | ||
"gitHead": "93c853c6be3de6e0dbece24367aeba2089df217e" | ||
} |
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
79545