node-simctl
Advanced tools
Comparing version 3.3.3 to 3.3.4
@@ -43,23 +43,30 @@ 'use strict'; | ||
context$1$0.prev = 2; | ||
context$1$0.next = 5; | ||
// print out the command, minus the environment which is too BIG | ||
log.debug('Command: xcrun ' + args.join(' ')); | ||
context$1$0.next = 6; | ||
return _regeneratorRuntime.awrap(executingFunction('xcrun', args, { timeout: timeout, env: env })); | ||
case 5: | ||
case 6: | ||
return context$1$0.abrupt('return', context$1$0.sent); | ||
case 8: | ||
context$1$0.prev = 8; | ||
case 9: | ||
context$1$0.prev = 9; | ||
context$1$0.t0 = context$1$0['catch'](2); | ||
if (context$1$0.t0.stderr) { | ||
log.errorAndThrow('simctl error running \'' + command + '\': ' + context$1$0.t0.stderr.trim()); | ||
} else { | ||
log.errorAndThrow(context$1$0.t0); | ||
if (!context$1$0.t0.stderr) { | ||
context$1$0.next = 15; | ||
break; | ||
} | ||
case 11: | ||
throw new Error('simctl error running \'' + command + '\': ' + context$1$0.t0.stderr.trim()); | ||
case 15: | ||
throw context$1$0.t0; | ||
case 16: | ||
case 'end': | ||
return context$1$0.stop(); | ||
} | ||
}, null, this, [[2, 8]]); | ||
}, null, this, [[2, 9]]); | ||
} | ||
@@ -695,2 +702,2 @@ | ||
// otherwise return all the sdk -> device mappings. | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7NEJBQWlDLGNBQWM7O3dCQUNqQixVQUFVOzs0QkFDZCxlQUFlOztzQkFDM0IsUUFBUTs7OztBQUd0QixJQUFNLEdBQUcsR0FBRyw2QkFBVSxRQUFRLENBQUMsQ0FBQzs7QUFFaEMsU0FBZSxVQUFVLENBQUUsT0FBYyxFQUFFLE9BQWM7TUFBRSxJQUFVLHlEQUFHLEVBQUU7TUFBRSxHQUFHLHlEQUFHLEVBQUU7TUFBRSxpQkF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ZUFwcCwgbGF1bmNoLCBzcGF3biwgc3Bhd25TdWJQcm9jZXNzLCBvcGVuVXJsLCBzaHV0ZG93biwgY3JlYXRlRGV2aWNlLFxuICAgICAgICAgZGVsZXRlRGV2aWNlLCBlcmFzZURldmljZSwgZ2V0RGV2aWNlcyB9O1xuIl19 |
@@ -19,8 +19,10 @@ import { exec, SubProcess } from 'teen_process'; | ||
try { | ||
// print out the command, minus the environment which is too BIG | ||
log.debug(`Command: xcrun ${args.join(' ')}`); | ||
return await executingFunction('xcrun', args, {timeout, env}); | ||
} catch (e) { | ||
if (e.stderr) { | ||
log.errorAndThrow(`simctl error running '${command}': ${e.stderr.trim()}`); | ||
throw new Error(`simctl error running '${command}': ${e.stderr.trim()}`); | ||
} else { | ||
log.errorAndThrow(e); | ||
throw e; | ||
} | ||
@@ -27,0 +29,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
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
67239
1020