node-simctl
Advanced tools
Comparing version 3.4.2 to 3.4.3
@@ -547,3 +547,3 @@ 'use strict'; | ||
line = _step4.value; | ||
lineRe = /^ ([^\(]+) \(([^\)]+)\) \(([^\)]+)\)/; | ||
lineRe = /([^\s].+) \((\w+-.+\w+)\) \((\w+\s?\w+)\)/; | ||
lineMatch = lineRe.exec(line); | ||
@@ -556,6 +556,7 @@ | ||
throw new Error('Could not match line'); | ||
throw new Error('Could not match line: ' + line); | ||
case 30: | ||
// save the whole thing as ab object in the list for this sdk | ||
devices[sdk].push({ | ||
@@ -707,2 +708,3 @@ name: lineMatch[1], | ||
// Shutdown | ||
// https://regex101.com/r/lG7mK6/3 | ||
@@ -712,2 +714,2 @@ // if a `forSdk` was passed in, return only the corresponding list | ||
// otherwise return all the sdk -> device mappings. | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7NEJBQWlDLGNBQWM7O3dCQUNqQixVQUFVOzs0QkFDZCxlQUFlOztzQkFDM0IsUUFBUTs7OztBQUd0QixJQUFNLEdBQUcsR0FBRyw2QkFBVSxRQUFRLENBQUMsQ0FBQzs7QUFFaEMsU0FBZSxVQUFVLENBQUUsT0FBYyxFQUFFLE9BQWM7TUFBRSxJQUFVLHlEQUFHLEVBQUU7TUFBRSxHQUFHLHlEQUFHLEVBQUU7TUFBRSxpQkFBaUI7Ozs7O0FBRXJHLFlBQUksSUFBSSxRQUFRLEVBQUUsT0FBTyw0QkFBSyxJQUFJLEVBQUMsQ0FBQzs7O0FBR3BDLFdBQUcsR0FBRyxvQkFBRSxRQUFRLENBQUMsb0JBQUUsT0FBTyxDQUFDLEdBQUcsRUFBRSxVQUFTLEtBQUssRUFBRSxHQUFHLEVBQUU7QUFDbkQsbUNBQXVCLEdBQUcsQ0FBRztTQUM5QixDQUFDLEVBQUUsT0F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3JTZGtdKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYFNkayAnJHtmb3JTZGt9JyB3YXMgbm90IGluIGxpc3Qgb2Ygc2ltY3RsIHNka3NgKTtcbiAgICB9XG4gICAgcmV0dXJuIGRldmljZXNbZm9yU2RrXTtcbiAgfVxuXG4gIC8vIG90aGVyd2lzZSByZXR1cm4gYWxsIHRoZSBzZGsgLT4gZGV2aWNlIG1hcHBpbmdzLlxuICByZXR1cm4gZGV2aWNlcztcbn1cblxuZXhwb3J0IHsgaW5zdGFsbEFwcCwgcmVtb3ZlQXBwLCBsYXVuY2gsIHNwYXduLCBzcGF3blN1YlByb2Nlc3MsIG9wZW5VcmwsIHNodXRkb3duLCBjcmVhdGVEZXZpY2UsXG4gICAgICAgICBkZWxldGVEZXZpY2UsIGVyYXNlRGV2aWNlLCBnZXREZXZpY2VzIH07XG4iXX0= |
@@ -160,8 +160,9 @@ import { exec, SubProcess } from 'teen_process'; | ||
// Shutdown | ||
let lineRe:RegExp = /^ ([^\(]+) \(([^\)]+)\) \(([^\)]+)\)/; | ||
let lineRe:RegExp = /([^\s].+) \((\w+-.+\w+)\) \((\w+\s?\w+)\)/; // https://regex101.com/r/lG7mK6/3 | ||
let lineMatch:Object = lineRe.exec(line); | ||
if (lineMatch === null) { | ||
throw new Error('Could not match line'); | ||
throw new Error(`Could not match line: ${line}`); | ||
} | ||
// save the whole thing as ab object in the list for this sdk | ||
devices[sdk].push({ | ||
@@ -168,0 +169,0 @@ name: lineMatch[1], |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.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
68035
1030