Skip to content

Commit bde33a2

Browse files
author
adamxtokyo
committed
1 parent 279d7f7 commit bde33a2

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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');
55

66
module.exports = function gulpJavaScriptObfuscator(options) {
77
if(!options) {
@@ -19,7 +19,7 @@ module.exports = function gulpJavaScriptObfuscator(options) {
1919
obfuscationResult = JavaScriptObfuscator.obfuscate(String(file.contents), options);
2020
file.contents = new Buffer(obfuscationResult.getObfuscatedCode());
2121
if(options.sourceMap && options.sourceMapMode !== 'inline') {
22-
this.push(new gutil.File({
22+
this.push(new Vinyl({
2323
cwd: file.cwd,
2424
base: file.base,
2525
path: file.path + '.map',

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
"author": {
2929
"name": "Wain-PC"
3030
},
31+
"contributors": [
32+
"adamxtokyo"
33+
],
3134
"license": "MIT",
3235
"dependencies": {
3336
"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"
3640
}
3741
}

0 commit comments

Comments
 (0)