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

cssscope

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssscope - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

2

index.js

@@ -6,4 +6,4 @@ module.exports = function scope(styles, prefix) {

.replace(/:host\((.*?)\)/gi, function($1, $2){ return prefix+$2 }) // :host(...) -> tag...
.replace(/:host /gi, prefix + ' ') // :host ... -> tag ...
.replace(/:host([ ,])/gi, function($1, $2){ return prefix+$2 }) // :host ... -> tag ...
.replace(/^.*:host-context\((.*)\)/gim, function($1, $2){ return $2+' ' +prefix }) // ... :host-context(..) -> ... tag..
}
{
"name": "cssscope",
"version": "0.0.1",
"version": "0.1.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "author": "Pedram Emrouznejad (https://github.com/pemrouz)",

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