ios-sim-portable
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -56,3 +56,4 @@ "use strict"; | ||
"startSimulator", | ||
"getSimulatorName"].forEach(methodName => { | ||
"getSimulatorName", | ||
"getDevices"].forEach(methodName => { | ||
Object.defineProperty(publicApi, methodName, { | ||
@@ -59,0 +60,0 @@ get: () => { |
@@ -128,2 +128,3 @@ "use strict"; | ||
device = device || this.getDeviceToRun(); | ||
this.verifyDevice(device); | ||
if (!this.isDeviceBooted(device)) { | ||
@@ -138,2 +139,8 @@ let bootedDevice = this.getBootedDevice(); | ||
} | ||
verifyDevice(device) { | ||
const availableDevices = this.getDevices(); | ||
if (!_.find(availableDevices, { id: device.id })) { | ||
errors.fail(`No simulator image available for device identifier '${device.id}'.`); | ||
} | ||
} | ||
killSimulator() { | ||
@@ -140,0 +147,0 @@ childProcess.execSync("pkill -9 -f Simulator"); |
{ | ||
"name": "ios-sim-portable", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "", | ||
@@ -44,4 +44,4 @@ "main": "./lib/ios-sim.js", | ||
"engines": { | ||
"node": ">=4.2.1 <5.0.0 || >=5.1.0 <8.0.0" | ||
"node": ">=4.2.1 <5.0.0 || >=5.1.0 <9.0.0" | ||
} | ||
} |
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
43517
742