Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csz

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csz - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

index.js
// Keep track of which styles have been added
// keyed by hash of a rule set or file name
// (keyed by hash of a rule set or file path)
const cache = {}

@@ -22,5 +22,3 @@

// Prefix every rule in the file with the uid and append style
sheet.innerHTML += str.match(/.*([^{])\s*\{\s*([^}]*?)\s*}/gi)
.map(rule => `.${className} ${rule}`)
.join('\n')
sheet.innerHTML += str.replace(/(^[^@\s}]*\s*{)/gm, `\n.${className} $1`)
})

@@ -27,0 +25,0 @@ }

{
"name": "csz",
"version": "0.1.1",
"version": "0.1.2",
"description": "Super lightweight CSS module like behavior at runtime",

@@ -5,0 +5,0 @@ "main": "index.js",

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