Comparing version 0.0.1 to 0.1.0
@@ -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)", |
895