File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const deAntiTooling = {
4545 if ( ! deAntiToolingCheckFunc ( path ) ) {
4646 return
4747 }
48- console . log ( `AntiTooling Func Name: ${ func_name } ` )
48+ console . log ( `[ AntiTooling] Func Name: ${ func_name } ` )
4949 deAntiToolingExtract ( path , func_name )
5050 } ,
5151}
Original file line number Diff line number Diff line change @@ -56,12 +56,14 @@ function parseArrayWarp(vm, path) {
5656 name = func . node . id . name
5757 binding = func . parentPath . scope . getBinding ( name )
5858 }
59- console . log ( `Process array warp function: ${ name } ` )
59+ console . log ( `[DuplicateLiteral] Process array warp function: ${ name } ` )
6060 vm . evalSync ( generator ( func . node ) . code )
6161 for ( const ref of binding . referencePaths ) {
6262 const call = ref . parentPath
6363 if ( ref . key !== 'callee' ) {
64- console . warn ( `Unexpected ref of array warp function: ${ call } ` )
64+ console . warn (
65+ `[DuplicateLiteral] Unexpected ref of array warp function: ${ call } `
66+ )
6567 continue
6668 }
6769 const value = vm . evalSync ( generator ( call . node ) . code )
@@ -89,7 +91,7 @@ const deDuplicateLiteral = {
8991 if ( ! obj ) {
9092 return
9193 }
92- console . log ( `Find arrayName: ${ obj . array_name } ` )
94+ console . log ( `[DuplicateLiteral] Find arrayName: ${ obj . array_name } ` )
9395 let decl_node = t . variableDeclarator (
9496 obj . array_path . node . left ,
9597 obj . array_path . node . right
Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ export default function () {
6969 return
7070 }
7171 arrowFunc = obj . name
72- console . log ( `Find arrowFunctionName: ${ obj . name } ` )
72+ console . log ( `[Minify] Find arrowFunctionName: ${ obj . name } ` )
7373 let binding = obj . path . parentPath . scope . bindings [ obj . name ]
7474 for ( const ref of binding . referencePaths ) {
7575 if ( ref . key !== 'callee' ) {
76- console . warn ( `Unexpected ref of arrowFunctionName: ${ obj . name } ` )
76+ console . warn (
77+ `[Minify] Unexpected ref of arrowFunctionName: ${ obj . name } `
78+ )
7779 continue
7880 }
7981 const repl_path = ref . parentPath
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ const deStringCompression = {
132132 if ( ! get_obj ) {
133133 return
134134 }
135- console . log ( `Find stringCompression Fn: ${ fn_obj . name } ` )
135+ console . log ( `[StringCompression] Find stringCompression Fn: ${ fn_obj . name } ` )
136136 const vm = isolate . createContextSync ( )
137137 vm . evalSync ( generator ( decoder_obj . path . node ) . code )
138138 vm . evalSync ( generator ( get_obj . path . node ) . code )
@@ -142,7 +142,7 @@ const deStringCompression = {
142142 for ( const ref of binding . referencePaths ) {
143143 if ( ref . key !== 'callee' ) {
144144 console . warn (
145- `Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
145+ `[StringCompression] Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
146146 )
147147 continue
148148 }
@@ -152,7 +152,7 @@ const deStringCompression = {
152152 safeReplace ( repl_path , value )
153153 } catch ( e ) {
154154 console . warn (
155- `Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
155+ `[StringCompression] Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
156156 )
157157 }
158158 }
You can’t perform that action at this time.
0 commit comments