bugger-v8-client
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -82,2 +82,15 @@ 'use strict'; | ||
var NODE_READY = 'typeof process === "object" && typeof process.exit === "function"'; | ||
function waitForNodeReady(debugClient) { | ||
function tryNodeReady() { | ||
return debugClient.evalSimple(NODE_READY) | ||
.then(function(ready) { | ||
if (ready) { return; } | ||
return Bluebird.delay(50).then(tryNodeReady); | ||
}); | ||
} | ||
return tryNodeReady(); | ||
} | ||
module.exports = function(DebugClient) { | ||
@@ -87,3 +100,6 @@ DebugClient.prototype.prepareGlobalRequire = | ||
var debugClient = this; | ||
return debugClient.evalSimple(storeOnMagicalBuggerContext) | ||
return waitForNodeReady(debugClient) | ||
.then(function() { | ||
return debugClient.evalSimple(storeOnMagicalBuggerContext); | ||
}) | ||
.then(function(result) { | ||
@@ -90,0 +106,0 @@ if (result !== true) { |
{ | ||
"name": "bugger-v8-client", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Client for v8 debug protocol", | ||
@@ -5,0 +5,0 @@ "main": "lib/bugger-v8-client.js", |
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
104028
2163