File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 11import { Compiler } from 'webpack' ;
2- import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions ' ;
2+ import { ObfuscatorOptions } from 'javascript-obfuscator' ;
33declare class WebpackObfuscator {
4- options : JavascriptObfuscatorOptions ;
4+ options : ObfuscatorOptions ;
55 excludes : string [ ] ;
6- constructor ( options ?: JavascriptObfuscatorOptions , excludes ?: string | string [ ] ) ;
6+ constructor ( options ?: ObfuscatorOptions , excludes ?: string | string [ ] ) ;
77 apply ( compiler : Compiler ) : void ;
88 private shouldExclude ;
99 private extractSourceAndSourceMap ;
Original file line number Diff line number Diff line change 11"use strict" ;
22
33import { Compiler , compilation } from 'webpack' ;
4- import JavaScriptObfuscator from 'javascript-obfuscator' ;
4+ import JavaScriptObfuscator , { ObfuscatorOptions } from 'javascript-obfuscator' ;
55import { RawSource , SourceMapSource } from 'webpack-sources' ;
66import multimatch from 'multimatch' ;
77import { RawSourceMap } from 'source-map' ;
8- import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions' ;
98const transferSourceMap = require ( "multi-stage-sourcemap" ) . transfer ;
109
1110class WebpackObfuscator {
1211
1312 public excludes : string [ ] = [ ] ;
1413
1514 constructor (
16- public options : JavascriptObfuscatorOptions = { } ,
15+ public options : ObfuscatorOptions = { } ,
1716 excludes ?: string | string [ ]
1817 ) {
1918 this . excludes = this . excludes . concat ( excludes || [ ] ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " webpack-obfuscator" ,
3- "version" : " 0.20.4 " ,
3+ "version" : " 0.21.0 " ,
44 "description" : " javascript-obfuscator plugin for Webpack" ,
55 "keywords" : [
66 " obfuscator" ,
1515 "main" : " ./dist/index.js" ,
1616 "types" : " ./dist/index.d.ts" ,
1717 "dependencies" : {
18- "javascript-obfuscator" : " ^0.20.4 " ,
18+ "javascript-obfuscator" : " ^0.21.0 " ,
1919 "multi-stage-sourcemap" : " ^0.2.1" ,
2020 "multimatch" : " ^2.1.0" ,
2121 "webpack-sources" : " ^1.3.0"
You can’t perform that action at this time.
0 commit comments