Comparing version 0.4.0 to 0.4.1
@@ -24,10 +24,13 @@ 'use strict'; | ||
var stderrCache = new CacheStream(); | ||
var stdout = task.stdout.pipe(stdoutCache); | ||
var stderr = task.stderr.pipe(stderrCache); | ||
if (verbose) { | ||
stdout = stdout.pipe(process.stdout); | ||
stderr = stderr.pipe(process.stderr); | ||
if (task.stdout) { | ||
var stdout = task.stdout.pipe(stdoutCache); | ||
if (verbose) stdout.pipe(process.stdout); | ||
} | ||
if (task.stderr) { | ||
var stderr = task.stderr.pipe(stderrCache); | ||
if (verbose) stderr.pipe(process.stderr); | ||
} | ||
task.on('close', function(code) { | ||
@@ -48,2 +51,3 @@ if (code) { | ||
var buf = stream.getCache(); | ||
stream.destroy(); | ||
if (!encoding) return buf; | ||
@@ -50,0 +54,0 @@ |
{ | ||
"name": "hexo-util", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Utilities for Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
35198
544