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 2.2.0 to 2.2.1

7

dist/style-mod.js

@@ -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)

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