File tree 4 files changed +12
-13
lines changed
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { Compiler } from 'webpack' ;
2
- import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions ' ;
2
+ import { ObfuscatorOptions } from 'javascript-obfuscator' ;
3
3
declare class WebpackObfuscator {
4
- options : JavascriptObfuscatorOptions ;
4
+ options : ObfuscatorOptions ;
5
5
excludes : string [ ] ;
6
- constructor ( options ?: JavascriptObfuscatorOptions , excludes ?: string | string [ ] ) ;
6
+ constructor ( options ?: ObfuscatorOptions , excludes ?: string | string [ ] ) ;
7
7
apply ( compiler : Compiler ) : void ;
8
8
private shouldExclude ;
9
9
private extractSourceAndSourceMap ;
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
3
import { Compiler , compilation } from 'webpack' ;
4
- import JavaScriptObfuscator from 'javascript-obfuscator' ;
4
+ import JavaScriptObfuscator , { ObfuscatorOptions } from 'javascript-obfuscator' ;
5
5
import { RawSource , SourceMapSource } from 'webpack-sources' ;
6
6
import multimatch from 'multimatch' ;
7
7
import { RawSourceMap } from 'source-map' ;
8
- import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions' ;
9
8
const transferSourceMap = require ( "multi-stage-sourcemap" ) . transfer ;
10
9
11
10
class WebpackObfuscator {
12
11
13
12
public excludes : string [ ] = [ ] ;
14
13
15
14
constructor (
16
- public options : JavascriptObfuscatorOptions = { } ,
15
+ public options : ObfuscatorOptions = { } ,
17
16
excludes ?: string | string [ ]
18
17
) {
19
18
this . excludes = this . excludes . concat ( excludes || [ ] ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " webpack-obfuscator" ,
3
- "version" : " 0.20.4 " ,
3
+ "version" : " 0.21.0 " ,
4
4
"description" : " javascript-obfuscator plugin for Webpack" ,
5
5
"keywords" : [
6
6
" obfuscator" ,
15
15
"main" : " ./dist/index.js" ,
16
16
"types" : " ./dist/index.d.ts" ,
17
17
"dependencies" : {
18
- "javascript-obfuscator" : " ^0.20.4 " ,
18
+ "javascript-obfuscator" : " ^0.21.0 " ,
19
19
"multi-stage-sourcemap" : " ^0.2.1" ,
20
20
"multimatch" : " ^2.1.0" ,
21
21
"webpack-sources" : " ^1.3.0"
You can’t perform that action at this time.
0 commit comments