File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- var through = require ( 'through2' ) ,
2
- gutil = require ( 'gulp-util' ) ,
3
- JavaScriptObfuscator = require ( 'javascript-obfuscator' ) ,
4
- PluginError = gutil . PluginError ;
1
+ var through = require ( 'through2' ) ;
2
+ var Vinyl = require ( 'vinyl' ) ;
3
+ var JavaScriptObfuscator = require ( 'javascript-obfuscator' ) ;
4
+ var PluginError = require ( 'plugin-error' ) ;
5
5
6
6
module . exports = function gulpJavaScriptObfuscator ( options ) {
7
7
if ( ! options ) {
@@ -19,7 +19,7 @@ module.exports = function gulpJavaScriptObfuscator(options) {
19
19
obfuscationResult = JavaScriptObfuscator . obfuscate ( String ( file . contents ) , options ) ;
20
20
file . contents = new Buffer ( obfuscationResult . getObfuscatedCode ( ) ) ;
21
21
if ( options . sourceMap && options . sourceMapMode !== 'inline' ) {
22
- this . push ( new gutil . File ( {
22
+ this . push ( new Vinyl ( {
23
23
cwd : file . cwd ,
24
24
base : file . base ,
25
25
path : file . path + '.map' ,
Original file line number Diff line number Diff line change 28
28
"author" : {
29
29
"name" : " Wain-PC"
30
30
},
31
+ "contributors" : [
32
+ " adamxtokyo"
33
+ ],
31
34
"license" : " MIT" ,
32
35
"dependencies" : {
33
36
"javascript-obfuscator" : " latest" ,
34
- "gulp-util" : " ^3.0.5" ,
35
- "through2" : " ^2.0.0"
37
+ "plugin-error" : " ^1.0.1" ,
38
+ "through2" : " ^2.0.0" ,
39
+ "vinyl" : " ^2.2.0"
36
40
}
37
41
}
You can’t perform that action at this time.
0 commit comments