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 = {
45
45
if ( ! deAntiToolingCheckFunc ( path ) ) {
46
46
return
47
47
}
48
- console . log ( `AntiTooling Func Name: ${ func_name } ` )
48
+ console . log ( `[ AntiTooling] Func Name: ${ func_name } ` )
49
49
deAntiToolingExtract ( path , func_name )
50
50
} ,
51
51
}
Original file line number Diff line number Diff line change @@ -56,12 +56,14 @@ function parseArrayWarp(vm, path) {
56
56
name = func . node . id . name
57
57
binding = func . parentPath . scope . getBinding ( name )
58
58
}
59
- console . log ( `Process array warp function: ${ name } ` )
59
+ console . log ( `[DuplicateLiteral] Process array warp function: ${ name } ` )
60
60
vm . evalSync ( generator ( func . node ) . code )
61
61
for ( const ref of binding . referencePaths ) {
62
62
const call = ref . parentPath
63
63
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
+ )
65
67
continue
66
68
}
67
69
const value = vm . evalSync ( generator ( call . node ) . code )
@@ -89,7 +91,7 @@ const deDuplicateLiteral = {
89
91
if ( ! obj ) {
90
92
return
91
93
}
92
- console . log ( `Find arrayName: ${ obj . array_name } ` )
94
+ console . log ( `[DuplicateLiteral] Find arrayName: ${ obj . array_name } ` )
93
95
let decl_node = t . variableDeclarator (
94
96
obj . array_path . node . left ,
95
97
obj . array_path . node . right
Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ export default function () {
69
69
return
70
70
}
71
71
arrowFunc = obj . name
72
- console . log ( `Find arrowFunctionName: ${ obj . name } ` )
72
+ console . log ( `[Minify] Find arrowFunctionName: ${ obj . name } ` )
73
73
let binding = obj . path . parentPath . scope . bindings [ obj . name ]
74
74
for ( const ref of binding . referencePaths ) {
75
75
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
+ )
77
79
continue
78
80
}
79
81
const repl_path = ref . parentPath
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ const deStringCompression = {
132
132
if ( ! get_obj ) {
133
133
return
134
134
}
135
- console . log ( `Find stringCompression Fn: ${ fn_obj . name } ` )
135
+ console . log ( `[StringCompression] Find stringCompression Fn: ${ fn_obj . name } ` )
136
136
const vm = isolate . createContextSync ( )
137
137
vm . evalSync ( generator ( decoder_obj . path . node ) . code )
138
138
vm . evalSync ( generator ( get_obj . path . node ) . code )
@@ -142,7 +142,7 @@ const deStringCompression = {
142
142
for ( const ref of binding . referencePaths ) {
143
143
if ( ref . key !== 'callee' ) {
144
144
console . warn (
145
- `Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
145
+ `[StringCompression] Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
146
146
)
147
147
continue
148
148
}
@@ -152,7 +152,7 @@ const deStringCompression = {
152
152
safeReplace ( repl_path , value )
153
153
} catch ( e ) {
154
154
console . warn (
155
- `Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
155
+ `[StringCompression] Unexpected ref of stringCompression Fn: ${ ref . parentPath } `
156
156
)
157
157
}
158
158
}
You can’t perform that action at this time.
0 commit comments