Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "style-mod", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A minimal CSS module shim", | ||
@@ -5,0 +5,0 @@ "main": "dist/style-mod.cjs", |
@@ -41,3 +41,3 @@ const C = "\u037c" | ||
if (/&/.test(prop)) { | ||
render(selectors.map(s => extend ? extend(prop, s) : prop.replace(/&/, s)), value, target) | ||
render(selectors.map(s => extend ? extend(prop, s) : prop.replace(/&/g, s)), value, target) | ||
} else if (value && typeof value == "object") { | ||
@@ -44,0 +44,0 @@ if (!isAt) throw new RangeError("The value of a property (" + prop + ") should be a primitive value.") |
@@ -32,2 +32,12 @@ import {StyleModule} from "style-mod" | ||
it("can replace multiple & markers", () => { | ||
ist(rules(new StyleModule({ | ||
main: { | ||
"p &, div &": {color: "blue"} | ||
} | ||
})), [ | ||
"p main, div main {color: blue;}" | ||
], eqRules) | ||
}) | ||
it("supports media queries", () => { | ||
@@ -34,0 +44,0 @@ ist(rules(new StyleModule({ |
Sorry, the diff of this file is not supported yet
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
22784
380