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.2 to 0.0.4

index.js

10

dist/reactTemplates.js

@@ -180,8 +180,4 @@ 'use strict';

} else if (key === classAttr || key === reactSupport.classNameProp) {
//20161103
//多class问题
val = val.trim();
// console.log(val)
// if(val.indexOf("{this.styles.")<0){
// val="{this.styles."+val+"}";
// }
if (val.indexOf("{this.styles.") < 0) {

@@ -197,8 +193,4 @@ var arr = val.split(" ");

result += "].join(' ')}";
// val="{this.styles."+val+"}";
}
// console.log(result);1
props[propKey] = existing + utils.convertText(node, context, result);
// props[propKey] = existing + utils.convertText(node, context,val.trim());
// props[propKey] = existing + utils.convertText(node, context, val.trim());
}

@@ -205,0 +197,0 @@ } else if (!_.startsWith(key, 'rt-')) {

{
"name": "zpin-templates",
"version": "0.0.2",
"version": "0.0.4",
"description": "Light weight templates for react -> write html get valid react code",
"main": "./dist/cli.js",
"main": "index.js",
"bin": {

@@ -38,2 +38,3 @@ "rt": "./bin/rt.js"

"esprima": "^3.0.0",
"loader-utils": "^0.2.16",
"lodash": "^4.16.2",

@@ -40,0 +41,0 @@ "normalize-html-whitespace": "^0.2.0",

@@ -194,8 +194,4 @@ 'use strict';

} else if (key === classAttr || key === reactSupport.classNameProp) {
//20161103
//多class问题
val=val.trim();
// console.log(val)
// if(val.indexOf("{this.styles.")<0){
// val="{this.styles."+val+"}";
// }
if(val.indexOf("{this.styles.")<0){

@@ -211,8 +207,4 @@ var arr=val.split(" ");

result+="].join(' ')}"
// val="{this.styles."+val+"}";
}
// console.log(result);1
props[propKey] = existing + utils.convertText(node, context,result);
// props[propKey] = existing + utils.convertText(node, context,val.trim());
// props[propKey] = existing + utils.convertText(node, context, val.trim());
}

@@ -219,0 +211,0 @@ } else if (!_.startsWith(key, 'rt-')) {

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