Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-simctl

Package Overview
Dependencies
Maintainers
7
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-simctl - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

103

build/lib/simctl.js
'use strict';
var _extends = require('babel-runtime/helpers/extends')['default'];
var _toConsumableArray = require('babel-runtime/helpers/to-consumable-array')['default'];

@@ -705,3 +707,3 @@

var devices, _ref3, stdout, _iteratorNormalCompletion5, _didIteratorError5, _iteratorError5, _iterator5, _step5, _step5$value, sdkName, entries, sdk;
var devices, _ref3, stdout, _iteratorNormalCompletion5, _didIteratorError5, _iteratorError5, _loop, _iterator5, _step5, _ret;

@@ -739,40 +741,47 @@ return _regeneratorRuntime.async(function getDevices$(context$1$0) {

context$1$0.prev = 10;
_loop = function () {
var _step5$value = _slicedToArray(_step5.value, 2);
var sdkName = _step5$value[0];
var entries = _step5$value[1];
if (sdkName.indexOf('iOS') !== 0) {
return 'continue';
}
var sdk = sdkName.replace('iOS ', '');
devices[sdk] = entries.map(function (el) {
delete el.availability;
return _extends({}, el, { sdk: sdk });
});
};
_iterator5 = _getIterator(_lodash2['default'].toPairs(JSON.parse(stdout).devices));
case 12:
case 13:
if (_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done) {
context$1$0.next = 23;
context$1$0.next = 20;
break;
}
_step5$value = _slicedToArray(_step5.value, 2);
sdkName = _step5$value[0];
entries = _step5$value[1];
_ret = _loop();
if (!(sdkName.indexOf('iOS') !== 0)) {
context$1$0.next = 18;
if (!(_ret === 'continue')) {
context$1$0.next = 17;
break;
}
return context$1$0.abrupt('continue', 20);
return context$1$0.abrupt('continue', 17);
case 18:
sdk = sdkName.replace('iOS ', '');
devices[sdk] = entries.map(function (el) {
delete el.availability;
return el;
});
case 20:
case 17:
_iteratorNormalCompletion5 = true;
context$1$0.next = 12;
context$1$0.next = 13;
break;
case 23:
context$1$0.next = 29;
case 20:
context$1$0.next = 26;
break;
case 25:
context$1$0.prev = 25;
case 22:
context$1$0.prev = 22;
context$1$0.t0 = context$1$0['catch'](10);

@@ -782,5 +791,5 @@ _didIteratorError5 = true;

case 29:
context$1$0.prev = 29;
context$1$0.prev = 30;
case 26:
context$1$0.prev = 26;
context$1$0.prev = 27;

@@ -791,7 +800,7 @@ if (!_iteratorNormalCompletion5 && _iterator5['return']) {

case 32:
context$1$0.prev = 32;
case 29:
context$1$0.prev = 29;
if (!_didIteratorError5) {
context$1$0.next = 35;
context$1$0.next = 32;
break;

@@ -802,14 +811,14 @@ }

case 35:
return context$1$0.finish(32);
case 36:
case 32:
return context$1$0.finish(29);
case 37:
context$1$0.next = 46;
case 33:
return context$1$0.finish(26);
case 34:
context$1$0.next = 43;
break;
case 39:
context$1$0.prev = 39;
case 36:
context$1$0.prev = 36;
context$1$0.t1 = context$1$0['catch'](1);

@@ -819,11 +828,11 @@

log.debug('Unable to get JSON device list. Falling back to manually parsing');
context$1$0.next = 45;
context$1$0.next = 42;
return _regeneratorRuntime.awrap(getDevicesByParsing());
case 45:
case 42:
devices = context$1$0.sent;
case 46:
case 43:
if (!forSdk) {
context$1$0.next = 50;
context$1$0.next = 47;
break;

@@ -833,3 +842,3 @@ }

if (devices[forSdk]) {
context$1$0.next = 49;
context$1$0.next = 46;
break;

@@ -840,13 +849,13 @@ }

case 49:
case 46:
return context$1$0.abrupt('return', devices[forSdk]);
case 50:
case 47:
return context$1$0.abrupt('return', devices);
case 51:
case 48:
case 'end':
return context$1$0.stop();
}
}, null, this, [[1, 39], [10, 25, 29, 37], [30,, 32, 36]]);
}, null, this, [[1, 36], [10, 22, 26, 34], [27,, 29, 33]]);
}

@@ -900,2 +909,2 @@

// otherwise return everything
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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ICAgICAgICBcInN0YXRlXCIgOiBcIkJvb3RlZFwiLFxuICAgICAqICAgICAgICAgXCJhdmFpbGFiaWxpdHlcIiA6IFwiKGF2YWlsYWJsZSlcIixcbiAgICAgKiAgICAgICAgIFwibmFtZVwiIDogXCJpUGhvbmUgNlwiLFxuICAgICAqICAgICAgICAgXCJ1ZGlkXCIgOiBcIjc1RTM0MTQwLTE4RTgtNEQxQS05RjQ1LUFBQzczNURGNzVERlwiXG4gICAgICogICAgICAgfVxuICAgICAqICAgICBdXG4gICAgICogICB9XG4gICAgICogfVxuICAgICAqL1xuICAgIGRldmljZXMgPSB7fTtcbiAgICBmb3IgKGxldCBbc2RrTmFtZSwgZW50cmllc10gIG9mIF8udG9QYWlycyhKU09OLnBhcnNlKHN0ZG91dCkuZGV2aWNlcykpIHtcbiAgICAgIGlmIChzZGtOYW1lLmluZGV4T2YoJ2lPUycpICE9PSAwKSB7XG4gICAgICAgIGNvbnRpbnVlO1xuICAgICAgfVxuICAgICAgbGV0IHNkayA9IHNka05hbWUucmVwbGFjZSgnaU9TICcsICcnKTtcbiAgICAgIGRldmljZXNbc2RrXSA9IGVudHJpZXMubWFwKChlbCkgPT4ge1xuICAgICAgICBkZWxldGUgZWwuYXZhaWxhYmlsaXR5O1xuICAgICAgICByZXR1cm4gZWw7XG4gICAgICB9KTtcbiAgICB9XG4gIH0gY2F0Y2ggKGVycikge1xuICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgbG9nLmRlYnVnKCdVbmFibGUgdG8gZ2V0IEpTT04gZGV2aWNlIGxpc3QuIEZhbGxpbmcgYmFjayB0byBtYW51YWxseSBwYXJzaW5nJyk7XG4gICAgZGV2aWNlcyA9IGF3YWl0IGdldERldmljZXNCeVBhcnNpbmcoKTtcbiAgfVxuXG4gIC8vIGlmIGEgYGZvclNka2Agd2FzIHBhc3NlZCBpbiwgcmV0dXJuIG9ubHkgdGhlIGNvcnJlc3BvbmRpbmcgbGlzdFxuICBpZiAoZm9yU2RrKSB7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hd24sIHNwYXduU3ViUHJvY2Vzcywgb3BlblVybCwgdGVybWluYXRlLCBzaHV0ZG93biwgY3JlYXRlRGV2aWNlLFxuICAgICAgICAgZ2V0QXBwQ29udGFpbmVyLCBkZWxldGVEZXZpY2UsIGVyYXNlRGV2aWNlLCBnZXREZXZpY2VzIH07XG4iXSwic291cmNlUm9vdCI6Ii4uLy4uIn0=

@@ -10,2 +10,4 @@ /* global it:true, describe:true*/

var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];

@@ -296,2 +298,26 @@

});
it('should create a device with compatible properties', function callee$1$0() {
var sdk, devices, firstDevice, expectedList;
return _regeneratorRuntime.async(function callee$1$0$(context$2$0) {
while (1) switch (context$2$0.prev = context$2$0.next) {
case 0:
sdk = _lodash2['default'].last(validSdks);
context$2$0.next = 3;
return _regeneratorRuntime.awrap((0, _libSimctlJs.getDevices)());
case 3:
context$2$0.t0 = sdk;
devices = context$2$0.sent[context$2$0.t0];
firstDevice = devices[0];
expectedList = ['name', 'sdk', 'state', 'udid'];
_Object$keys(firstDevice).sort().should.eql(expectedList);
case 8:
case 'end':
return context$2$0.stop();
}
}, null, _this);
});
});

@@ -301,2 +327,2 @@

// give it 5 tries
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3Qvc2ltY3RsLXNwZWNzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O29CQUdpQixNQUFNOzs7O3NCQUNULFFBQVE7Ozs7MkJBQzhDLGtCQUFrQjs7QUFHdEYsSUFBTSxNQUFNLEdBQUcsa0JBQUssTUFBTSxFQUFFLENBQUM7O0FBRTdCLFFBQVEsQ0FBQyxRQUFRLEVBQUUsWUFBWTs7O0FBQzdCLE1BQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7QUFDcEIsTUFBSSxRQUFRL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Utc2ltY3RsIHRlc3QnLCAnaVBob25lIDVzJywgc2RrKTtcbiAgICBsZXQgbnVtU2ltc0FmdGVyID0gKGF3YWl0IGdldERldmljZXMoKSlbc2RrXS5sZW5ndGg7XG4gICAgbnVtU2ltc0FmdGVyLnNob3VsZC5lcXVhbChudW1TaW1zQmVmb3JlICsgMSk7XG4gICAgZGVsZXRlRGV2aWNlKHVkaWQpO1xuICB9KTtcblxuICBpdCgnc2hvdWxkIGNyZWF0ZSBhIGRldmljZSB3aXRoIGNvbXBhdGlibGUgcHJvcGVydGllcycsIGFzeW5jICgpID0+IHtcbiAgICBsZXQgc2RrID0gXy5sYXN0KHZhbGlkU2Rrcyk7XG4gICAgbGV0IGRldmljZXMgPSAoYXdhaXQgZ2V0RGV2aWNlcygpKVtzZGtdXG4gICAgbGV0IGZpcnN0RGV2aWNlID0gZGV2aWNlc1swXVxuICAgIGxldCBleHBlY3RlZExpc3QgPSBbJ25hbWUnLCAnc2RrJywgJ3N0YXRlJywgJ3VkaWQnXVxuICAgIE9iamVjdC5rZXlzKGZpcnN0RGV2aWNlKS5zb3J0KCkuc2hvdWxkLmVxbChleHBlY3RlZExpc3QpXG4gIH0pO1xuXG59KTtcbiJdLCJzb3VyY2VSb290IjoiLi4vLi4ifQ==

@@ -218,3 +218,3 @@ import { exec, SubProcess } from 'teen_process';

delete el.availability;
return el;
return {...el, sdk};
});

@@ -221,0 +221,0 @@ }

@@ -9,3 +9,3 @@ {

],
"version": "3.5.2",
"version": "3.5.3",
"author": "https://github.com/appium",

@@ -12,0 +12,0 @@ "license": "Apache-2.0",

@@ -84,2 +84,10 @@ /* global it:true, describe:true*/

it('should create a device with compatible properties', async () => {
let sdk = _.last(validSdks);
let devices = (await getDevices())[sdk]
let firstDevice = devices[0]
let expectedList = ['name', 'sdk', 'state', 'udid']
Object.keys(firstDevice).sort().should.eql(expectedList)
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc