next-css-obfuscator
Advanced tools
Comparing version
@@ -280,2 +280,34 @@ "use strict"; | ||
} | ||
else if (t.isTemplateLiteral(path.node)) { | ||
const quasis = path.get("quasis"); | ||
const expressions = path.get("expressions"); | ||
if (Array.isArray(quasis)) { | ||
quasis.forEach(quasi => { | ||
searchStringLiterals(quasi, callback, scannedNodes); | ||
}); | ||
} | ||
if (Array.isArray(expressions)) { | ||
expressions.forEach(expression => { | ||
searchStringLiterals(expression, callback, scannedNodes); | ||
}); | ||
} | ||
} | ||
else if (t.isTemplateElement(path.node)) { | ||
const node = path.node; | ||
if (node.value) { | ||
const { raw, cooked } = node.value; | ||
if (raw) { | ||
const rawReplacement = callback(raw); | ||
if (rawReplacement !== undefined) { | ||
node.value.raw = rawReplacement; | ||
} | ||
} | ||
if (cooked) { | ||
const cookedReplacement = callback(cooked); | ||
if (cookedReplacement !== undefined) { | ||
node.value.cooked = cookedReplacement; | ||
} | ||
} | ||
} | ||
} | ||
else { | ||
@@ -282,0 +314,0 @@ path.traverse({ |
{ | ||
"name": "next-css-obfuscator", | ||
"version": "2.2.17", | ||
"version": "2.2.18b", | ||
"description": "A package deeply inspired by PostCSS-Obfuscator but for Next.js.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
765431
0.15%1562
2.09%1
Infinity%1
Infinity%