New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uking/webpack-obfuscator-plugin

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uking/webpack-obfuscator-plugin - npm Package Compare versions

Comparing version

to
0.0.2

1

dist/plugin/index.d.ts

@@ -13,4 +13,5 @@ import { Compiler } from 'webpack';

private shouldExclude;
private getFileName;
private extractSourceAndSourceMap;
private obfuscate;
}

@@ -32,2 +32,3 @@ "use strict";

compilation.chunks.forEach(chunk => {
let chunkName = this.getFileName(chunk.name);
chunk.files.forEach((fileName) => {

@@ -50,3 +51,3 @@ if (this.options.sourceMap && fileName.toLowerCase().endsWith('.map')) {

.some((extension) => fileName.toLowerCase().endsWith(extension));
if (!isValidExtension || this.shouldExclude(fileName)) {
if (!chunkName || this.shouldExclude(chunkName) || !isValidExtension || this.shouldExclude(fileName)) {
return;

@@ -79,2 +80,8 @@ }

}
getFileName(filePath) {
if (!filePath)
return '';
const parts = filePath.split('/');
return parts[parts.length - 1];
}
extractSourceAndSourceMap(asset) {

@@ -81,0 +88,0 @@ if (asset.sourceAndMap) {

2

package.json
{
"name": "@uking/webpack-obfuscator-plugin",
"version": "0.0.1",
"version": "0.0.2",
"description": "javascript-obfuscator plugin for Webpack@5",

@@ -5,0 +5,0 @@ "keywords": [