defiant-builder
Advanced tools
Comparing version 1.6.9 to 1.7.0
@@ -173,3 +173,3 @@ | ||
names = names.map(i => i.trim()) | ||
out = out.replace(/@keyframes (\w[a-z-_]+) \{/ig, `@keyframes ${id}-$1 {`) | ||
out = out.replace(/@keyframes (\w[a-z-_]+) \{/ig, `@keyframes $1-${id} {`) | ||
@@ -181,6 +181,7 @@ // replace all mixed animation-names | ||
let rx = new RegExp(key, "g") | ||
str = str.replace(rx, `${id}-${key}`) | ||
str = str.replace(rx, `${key}-${id}`) | ||
}) | ||
return str | ||
}) | ||
// replace all animation-names | ||
@@ -191,3 +192,3 @@ out = out.replace(/animation-name:[a-z \d\D-,]*?;/mig, (all, mmatch) => { | ||
let rx = new RegExp(key, "g") | ||
str = str.replace(rx, `${id}-${key}`) | ||
str = str.replace(rx, `${key}-${id}`) | ||
}) | ||
@@ -194,0 +195,0 @@ return str |
{ | ||
"name": "defiant-builder", | ||
"version": "1.6.9", | ||
"version": "1.7.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56614