Comparing version 2.2.0 to 2.2.1
@@ -26,3 +26,2 @@ function sym(name, random) { | ||
this[RULES] = [] | ||
top[COUNT] = top[COUNT] || 1 | ||
for (var name in spec) { | ||
@@ -47,3 +46,7 @@ var style = spec[name], specificity = style.specificity || 0 | ||
// Generate a new unique CSS class name. | ||
StyleModule.newName = function () { return "\u037c" + (top[COUNT]++).toString(36); } | ||
StyleModule.newName = function () { | ||
var id = top[COUNT] || 1 | ||
top[COUNT] = id + 1 | ||
return "\u037c" + id.toString(36) | ||
} | ||
@@ -50,0 +53,0 @@ StyleModule.prototype = Object.create(null) |
{ | ||
"name": "style-mod", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A minimal CSS module shim", | ||
@@ -5,0 +5,0 @@ "main": "dist/style-mod.js", |
@@ -26,3 +26,2 @@ function sym(name, random) { | ||
this[RULES] = [] | ||
top[COUNT] = top[COUNT] || 1 | ||
for (let name in spec) { | ||
@@ -47,3 +46,7 @@ let style = spec[name], specificity = style.specificity || 0 | ||
// Generate a new unique CSS class name. | ||
StyleModule.newName = () => "\u037c" + (top[COUNT]++).toString(36) | ||
StyleModule.newName = () => { | ||
let id = top[COUNT] || 1 | ||
top[COUNT] = id + 1 | ||
return "\u037c" + id.toString(36) | ||
} | ||
@@ -50,0 +53,0 @@ StyleModule.prototype = Object.create(null) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22951
387