Socket
Socket
Sign inDemoInstall

style-mod

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-mod - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

2

package.json
{
"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

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