update deps
This commit is contained in:
9
node_modules/minify/bin/minify.js
generated
vendored
Normal file → Executable file
9
node_modules/minify/bin/minify.js
generated
vendored
Normal file → Executable file
@@ -27,7 +27,7 @@ process.on('uncaughtException', (error) => {
|
||||
minify();
|
||||
|
||||
function readStd(callback) {
|
||||
const stdin = process.stdin;
|
||||
const {stdin} = process;
|
||||
let chunks = '';
|
||||
const read = () => {
|
||||
const chunk = stdin.read();
|
||||
@@ -66,9 +66,10 @@ function processStream(chunks) {
|
||||
const name = In.replace('--', '');
|
||||
|
||||
const [e, data] = tryCatch(minify[name], chunks);
|
||||
|
||||
if (e)
|
||||
return log.error(e);
|
||||
|
||||
|
||||
log(data);
|
||||
}
|
||||
|
||||
@@ -93,8 +94,8 @@ function help() {
|
||||
console.log(usage);
|
||||
console.log('Options:');
|
||||
|
||||
Object.keys(bin).forEach((name) => {
|
||||
for (const name of Object.keys(bin)) {
|
||||
console.log(' %s %s', name, bin[name]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user