Comparing version 1.3.0 to 1.3.1
@@ -65,6 +65,8 @@ 'use strict'; | ||
var lastWaitForOutput; // the resources last known to be waiting for | ||
var timeoutTimer = null; | ||
if (opts.timeout !== Infinity) { | ||
timeoutTimer = setTimeout(function () { | ||
log('wait-on timed out, exiting with error'); | ||
log('wait-on(%s) timed out waiting for: %s; exiting with error', process.pid, lastWaitForOutput); | ||
cb(new Error('Timeout')) | ||
@@ -116,3 +118,2 @@ }, opts.timeout); | ||
var lastWaitForOutput; | ||
function lastValuesAllAvailable() { | ||
@@ -129,3 +130,3 @@ if (!lastValues) { return false; } | ||
if (notReadyString && notReadyString !== lastWaitForOutput) { | ||
log('wait-on waiting for: ', notReadyString); | ||
log('wait-on(%s) waiting for: %s', process.pid, notReadyString); | ||
lastWaitForOutput = notReadyString; | ||
@@ -144,3 +145,3 @@ } | ||
output('stabilized'); | ||
log('wait-on exiting successfully'); | ||
log('wait-on(%s) exiting successfully found all: %s', process.pid, opts.resources.join(', ')); | ||
childSub.dispose(); | ||
@@ -161,3 +162,3 @@ subsc.dispose(); | ||
output('err: ', err); | ||
log('wait-on exiting with error', err); | ||
log('wait-on(%s) exiting with error', process.pid, err); | ||
cleanup(err); | ||
@@ -164,0 +165,0 @@ }, |
{ | ||
"name": "wait-on", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "core-js": { |
{ | ||
"name": "wait-on", | ||
"description": "wait-on is a cross platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "lib/wait-on", | ||
@@ -6,0 +6,0 @@ "bin": { |
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
57430