Socket
Socket
Sign inDemoInstall

zpin-templates

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zpin-templates - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

16

dist/reactTemplates.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc