ios-sim-portable
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -63,7 +63,12 @@ "use strict"; | ||
let result = tryGetBootedDevices(); | ||
if (!isResolved && !result) { | ||
if (result && result.length) { | ||
isResolved = true; | ||
resolve(result); | ||
return; | ||
} | ||
if (!isResolved && (!result || !result.length)) { | ||
let repeatCount = 30; | ||
const timer = setInterval(() => { | ||
result = tryGetBootedDevices(); | ||
if ((result || !repeatCount) && !isResolved) { | ||
if (((result && result.length) || !repeatCount) && !isResolved) { | ||
isResolved = true; | ||
@@ -70,0 +75,0 @@ clearInterval(timer); |
{ | ||
"name": "ios-sim-portable", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ios-sim.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
51109
879