Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.8 to 0.0.9

dist/classExclude.js

8

dist/reactTemplates.js

@@ -24,2 +24,4 @@ 'use strict';

var classExclude = require("./classExclude");
var propsMergeFunction = 'function mergeProps(inline,external) {\n var res = _.assign({},inline,external)\n if (inline.hasOwnProperty(\'style\')) {\n res.style = _.defaults(res.style, inline.style);\n }\n if (inline.hasOwnProperty(\'className\') && external.hasOwnProperty(\'className\')) {\n res.className = external.className + \' \' + inline.className;\n }\n return res;\n}\n';

@@ -187,3 +189,7 @@

arr.forEach(function (v, i) {
result += "this.styles['" + v.trim() + "']";
if (classExclude.indexOf(v.trim()) < 0) {
result += "this.styles['" + v.trim() + "']";
} else {
result += "'" + v.trim() + "'";
}
if (i != arr.length - 1) {

@@ -190,0 +196,0 @@ result += ",";

2

package.json
{
"name": "zpin-templates",
"version": "0.0.8",
"version": "0.0.9",
"description": "Light weight templates for react -> write html get valid react code",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,2 +21,4 @@ 'use strict';

const classExclude=require("./classExclude");
const propsMergeFunction = `function mergeProps(inline,external) {

@@ -201,3 +203,7 @@ var res = _.assign({},inline,external)

arr.forEach(function (v,i) {
result+="this.styles['"+v.trim()+"']";
if(classExclude.indexOf(v.trim())<0){
result+="this.styles['"+v.trim()+"']";
}else{
result+="'"+v.trim()+"'";
}
if(i!=arr.length-1){

@@ -204,0 +210,0 @@ result+=","

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