Comparing version 0.8.4 to 0.8.5
@@ -309,7 +309,8 @@ var assert = require("assert"); | ||
if (configFile === stdin) { | ||
log.err( | ||
return util.readJsonFromStdinP( | ||
1000, // Time limit in milliseconds before warning displayed. | ||
"Expecting configuration from STDIN (pass --config <file> " + | ||
"if stuck here)...", | ||
"yellow"); | ||
return util.readJsonFromStdinP(); | ||
"if stuck here)...", | ||
"yellow" | ||
); | ||
} | ||
@@ -316,0 +317,0 @@ |
@@ -15,3 +15,3 @@ var assert = require("assert"); | ||
// buffer against EMFILE (too many open files) errors. | ||
fs.MAX_OPEN = 50; | ||
fs.MAX_OPEN = 512; | ||
@@ -110,3 +110,3 @@ function makePromise(callback, context) { | ||
function readFromStdinP(timeLimit) { | ||
function readFromStdinP(timeLimit, message, color) { | ||
var deferred = Q.defer(); | ||
@@ -122,5 +122,5 @@ var stdin = process.stdin; | ||
log.err( | ||
"Warning: still waiting for STDIN after " + | ||
timeLimit + "ms", | ||
"yellow" | ||
message || ("Warning: still waiting for STDIN after " + | ||
timeLimit + "ms"), | ||
color || "yellow" | ||
); | ||
@@ -127,0 +127,0 @@ }, timeLimit); |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"license": "MIT", | ||
@@ -20,0 +20,0 @@ "homepage": "http://github.com/benjamn/commoner", |
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
79042
1912