You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

next-css-obfuscator

Package Overview
Dependencies
Maintainers
0
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-css-obfuscator - npm Package Compare versions

Comparing version

to
2.2.18-b

32

dist/handlers/js-ast.js

@@ -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({

2

package.json
{
"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",