zpin-templates
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -483,9 +483,13 @@ 'use strict'; | ||
var children = _.map(node.children, function (child) { | ||
var code = convertHtmlToReact(child, context, resourcePath, html); | ||
validateJS(code, child, context); | ||
return code; | ||
}); | ||
var children = []; | ||
//2016/12/30 | ||
if (node.name != htmlNode) { | ||
children = _.map(node.children, function (child) { | ||
var code = convertHtmlToReact(child, context, resourcePath, html); | ||
validateJS(code, child, context); | ||
return code; | ||
}); | ||
data.children = utils.concatChildren(children); | ||
data.children = utils.concatChildren(children); | ||
} | ||
@@ -492,0 +496,0 @@ if (node.name === virtualNode) { |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -498,9 +498,13 @@ 'use strict'; | ||
const children = _.map(node.children, child => { | ||
const code = convertHtmlToReact(child, context,resourcePath,html); | ||
validateJS(code, child, context); | ||
return code; | ||
}); | ||
let children=[]; | ||
//2016/12/30 | ||
if(node.name!=htmlNode){ | ||
children = _.map(node.children, child => { | ||
const code = convertHtmlToReact(child, context,resourcePath,html); | ||
validateJS(code, child, context); | ||
return code; | ||
}); | ||
data.children = utils.concatChildren(children); | ||
data.children = utils.concatChildren(children); | ||
} | ||
@@ -507,0 +511,0 @@ if (node.name === virtualNode) { //eslint-disable-line wix-editor/prefer-ternary |
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
279628
3756