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.19 to 0.0.20

15

dist/reactTemplates.js

@@ -210,15 +210,14 @@ 'use strict';

var arr = val.split(" ");
var result = "{[";
var result = "";
arr.forEach(function (v, i) {
result += 'this.styles["' + v.trim() + '"]';
result += 'this.styles["' + v.trim() + '"],';
if (classExclude.indexOf(v.trim()) > 0) {
result += '' + v.trim();
result += '"' + v.trim() + '",';
}
if (i != arr.length - 1) {
result += ",";
}
});
result += "].join(' ')}";
if (result.endsWith(",")) {
result = result.substr(0, result.length - 1);
}
result = '{[' + result + '].join(\' \')}';
}
// console.log(result);
props[propKey] = existing + utils.convertText(node, context, result);

@@ -225,0 +224,0 @@ }

2016.11.22
id选择器bug,rt-class bug
2016.11.23 0.0.20
本地样式与公共样式重名问题
{
"name": "zpin-templates",
"version": "0.0.19",
"version": "0.0.20",
"description": "Light weight templates for react -> write html get valid react code",

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

@@ -225,15 +225,14 @@ 'use strict';

var arr=val.split(" ");
var result="{[";
var result="";
arr.forEach(function (v,i) {
result+=`this.styles["${v.trim()}"]`;
result+=`this.styles["${v.trim()}"],`;
if(classExclude.indexOf(v.trim())>0){
result+=`${v.trim()}`;
result+=`"${v.trim()}",`;
}
if(i!=arr.length-1){
result+=","
}
})
result+="].join(' ')}"
if(result.endsWith(",")){
result=result.substr(0,result.length-1);
}
result=`{[${result}].join(' ')}`;
}
// console.log(result);
props[propKey] = existing + utils.convertText(node, context,result);

@@ -240,0 +239,0 @@ }

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