jss-plugin-camel-case
Advanced tools
Comparing version
@@ -6,3 +6,8 @@ var uppercasePattern = /[A-Z]/g; | ||
function hyphenateStyleName(string) { | ||
return string in cache ? cache[string] : cache[string] = string.replace(uppercasePattern, '-$&').toLowerCase().replace(msPattern, '-ms-'); | ||
return string in cache | ||
? cache[string] | ||
: cache[string] = string | ||
.replace(uppercasePattern, '-$&') | ||
.toLowerCase() | ||
.replace(msPattern, '-ms-'); | ||
} | ||
@@ -9,0 +14,0 @@ |
@@ -12,3 +12,8 @@ (function (global, factory) { | ||
function hyphenateStyleName(string) { | ||
return string in cache ? cache[string] : cache[string] = string.replace(uppercasePattern, '-$&').toLowerCase().replace(msPattern, '-ms-'); | ||
return string in cache | ||
? cache[string] | ||
: cache[string] = string | ||
.replace(uppercasePattern, '-$&') | ||
.toLowerCase() | ||
.replace(msPattern, '-ms-'); | ||
} | ||
@@ -15,0 +20,0 @@ |
{ | ||
"name": "jss-plugin-camel-case", | ||
"description": "JSS plugin that allows to write camel cased rule properties", | ||
"version": "10.0.0-alpha.7", | ||
"version": "10.0.0-alpha.8", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "homepage": "https://cssinjs.org/jss-camel-case", | ||
"type": "git", | ||
"url": "git@github.com:cssinjs/jss.git" | ||
"url": "https://github.com/cssinjs/jss" | ||
}, | ||
@@ -41,4 +41,4 @@ "bugs": { | ||
"devDependencies": { | ||
"jss": "^10.0.0-alpha.7", | ||
"jss-plugin-rule-value-function": "^10.0.0-alpha.7" | ||
"jss": "^10.0.0-alpha.8", | ||
"jss-plugin-rule-value-function": "^10.0.0-alpha.8" | ||
}, | ||
@@ -52,3 +52,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "b12732bff76a96379748d511671a401ebe354588" | ||
"gitHead": "b43e7761badfbb6b8161b8e407ab17475e61450c" | ||
} |
Sorry, the diff of this file is not supported yet
18971
0.03%406
2.53%