webpack-javascript-obfuscator-plugin
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -8,7 +8,3 @@ "use strict"; | ||
module.exports = function () { | ||
this.spinner = ora({// spinner: { | ||
// interval: 80, // Optional | ||
// frames: ['-', '+', '-'] | ||
// } | ||
}); | ||
this.spinner = ora('Loading unicorns'); | ||
@@ -15,0 +11,0 @@ this.start = function (message, color) { |
{ | ||
"name": "webpack-javascript-obfuscator-plugin", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "一个简易的webpack加密javascript的插件", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
/* | ||
* @Author: spark | ||
* @Date: 2021-01-28 17:03:50 | ||
* @LastEditTime: 2021-02-04 10:32:27 | ||
* @LastEditTime: 2021-02-04 10:53:36 | ||
* @LastEditors: spark | ||
@@ -56,3 +56,3 @@ * @Description: 趣看天下前端开发 | ||
compiler.hooks.run.tap(pluginName, function () { | ||
progress.start("AST加密构建过程开始!", "blue"); | ||
progress.warn("AST加密构建过程开始!", "blue"); | ||
}); | ||
@@ -78,7 +78,7 @@ | ||
}; | ||
progress.setText(filename + ": AST加密完成"); | ||
progress.warn(filename + ": AST加密完成"); | ||
} | ||
} | ||
} | ||
progress.succeed("加密进程结束"); | ||
progress.warn("加密进程结束"); | ||
callback(); | ||
@@ -85,0 +85,0 @@ }); |
@@ -21,3 +21,3 @@ var ora = require("ora"); | ||
}; | ||
this.warn = function (message, color) { | ||
this.warn = function (message, color = 'yellow') { | ||
this.spinner.warn(chalk[color](message)); | ||
@@ -24,0 +24,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10886
262