datocms-html-to-structured-text
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -315,14 +315,14 @@ "use strict"; | ||
}; | ||
meta_1 = {}; | ||
meta_1 = []; | ||
if (node.properties) { | ||
if (node.properties.target === '_blank') { | ||
meta_1.openInNewWindow = true; | ||
meta_1.push({ id: 'openInNewWindow', value: true }); | ||
} | ||
['rel', 'title'].forEach(function (attr) { | ||
if (node.properties[attr]) { | ||
meta_1[attr] = node.properties[attr]; | ||
meta_1.push({ id: attr, value: node.properties[attr] }); | ||
} | ||
}); | ||
} | ||
if (Object.keys(meta_1).length > 0) { | ||
if (meta_1.length > 0) { | ||
props.meta = meta_1; | ||
@@ -329,0 +329,0 @@ } |
{ | ||
"name": "datocms-html-to-structured-text", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"dependencies": { | ||
"datocms-structured-text-utils": "^1.0.7", | ||
"datocms-structured-text-utils": "^1.0.8", | ||
"extend": "^3.0.2", | ||
@@ -49,3 +49,3 @@ "hast-util-from-dom": "^3.0.0", | ||
}, | ||
"gitHead": "ee4667a693fc8a85d607695d0c20bd6c193539fc" | ||
"gitHead": "c8c90e84ca427ad08412fc2a1bca296d70f3e407" | ||
} |
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
91918