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

node-simctl

Package Overview
Dependencies
Maintainers
6
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 2.0.2 to 2.1.0

17

build/lib/simctl.js

@@ -91,2 +91,16 @@ 'use strict';

function shutdown(udid) {
return _regeneratorRuntime.async(function shutdown$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return _regeneratorRuntime.awrap(simExec('shutdown', 0, [udid]));
case 2:
case 'end':
return context$1$0.stop();
}
}, null, this);
}
function createDevice(name, deviceTypeId, runtimeId) {

@@ -372,2 +386,3 @@ var out;

exports.launch = launch;
exports.shutdown = shutdown;
exports.createDevice = createDevice;

@@ -379,2 +394,2 @@ exports.deleteDevice = deleteDevice;

// retry erase with a sleep in between because it's flakey
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7aUJBQWMsR0FBRzs7Ozs0QkFDSSxjQUFjOzt3QkFDTSxVQUFVOzs0QkFDekIsZUFBZTs7eUJBQ2xCLFlBQVk7O0FBRW5DLElBQU0sR0FBRyxHQUFHLGtCQUhILFNBQVMsRUFHSSxhQUFhLENBQUMsQ0FBQzs7QUFFckMsU0FBUyxPQUFPLENBQUUsT0FBYyxFQUFFLE9BQWMsRUFBbUI7TUFBakIsSUFBVSxnQ0FBRyxFQUFFOztBQUUvRCxNQUFJLEdBQUcsQ0FBQyxRQUFRLEVBQUUsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ3hDLEtBQUcsQ0FBQyxJQUFJLGtDQUFnQyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0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RjaFsxXTtcbiAgICBkZXZpY2VzW3Nka10gPSBbXTtcbiAgICBmb3IgKGxldCBsaW5lOnN0cmluZyBvZiBtYXRjaFswXS5zcGxpdChcIlxcblwiKS5zbGljZSgxKSkge1xuICAgICAgbGV0IGxpbmVSZTpSZWdFeHAgPSAvXiAgICAoW15cXChdKykgXFwoKFteXFwpXSspXFwpIFxcKChbXlxcKV0rKVxcKS87XG4gICAgICBsZXQgbGluZU1hdGNoOk9iamVjdCA9IGxpbmVSZS5leGVjKGxpbmUpO1xuICAgICAgaWYgKGxpbmVNYXRjaCA9PT0gbnVsbCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJDb3VsZG4ndCBtYXRjaCBsaW5lXCIpO1xuICAgICAgfVxuICAgICAgbGV0IGRldmljZTpPYmplY3QgPSB7fTtcbiAgICAgIGRldmljZS5uYW1lID0gbGluZU1hdGNoWzFdO1xuICAgICAgZGV2aWNlLnVkaWQgPSBsaW5lTWF0Y2hbMl07XG4gICAgICBkZXZpY2Uuc3RhdGUgPSBsaW5lTWF0Y2hbM107XG4gICAgICBkZXZpY2VzW3Nka10ucHVzaChkZXZpY2UpO1xuICAgIH1cbiAgfVxuICBpZiAoZm9yU2RrKSB7XG4gICAgaWYgKCFkZXZpY2VzW2ZvclNka10pIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIlNkayBcIiArIGZvclNkayArIFwiIHdhcyBub3QgaW4gbGlzdCBvZiBzaW1jdGwgc2Rrc1wiKTtcbiAgICB9XG4gICAgcmV0dXJuIGRldmljZXNbZm9yU2RrXTtcbiAgfVxuICByZXR1cm4gZGV2aWNlcztcbn1cblxuZXhwb3J0IHsgaW5zdGFsbEFwcCwgcmVtb3ZlQXBwLCBsYXVuY2gsIGNyZWF0ZURldmljZSwgZGVsZXRlRGV2aWNlLCBlcmFzZURldmljZSwgZ2V0RGV2aWNlcyB9O1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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gaWYgKGxpbmVNYXRjaCA9PT0gbnVsbCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJDb3VsZG4ndCBtYXRjaCBsaW5lXCIpO1xuICAgICAgfVxuICAgICAgbGV0IGRldmljZTpPYmplY3QgPSB7fTtcbiAgICAgIGRldmljZS5uYW1lID0gbGluZU1hdGNoWzFdO1xuICAgICAgZGV2aWNlLnVkaWQgPSBsaW5lTWF0Y2hbMl07XG4gICAgICBkZXZpY2Uuc3RhdGUgPSBsaW5lTWF0Y2hbM107XG4gICAgICBkZXZpY2VzW3Nka10ucHVzaChkZXZpY2UpO1xuICAgIH1cbiAgfVxuICBpZiAoZm9yU2RrKSB7XG4gICAgaWYgKCFkZXZpY2VzW2ZvclNka10pIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIlNkayBcIiArIGZvclNkayArIFwiIHdhcyBub3QgaW4gbGlzdCBvZiBzaW1jdGwgc2Rrc1wiKTtcbiAgICB9XG4gICAgcmV0dXJuIGRldmljZXNbZm9yU2RrXTtcbiAgfVxuICByZXR1cm4gZGV2aWNlcztcbn1cblxuZXhwb3J0IHsgaW5zdGFsbEFwcCwgcmVtb3ZlQXBwLCBsYXVuY2gsIHNodXRkb3duLCBjcmVhdGVEZXZpY2UsIGRlbGV0ZURldmljZSwgZXJhc2VEZXZpY2UsIGdldERldmljZXMgfTtcbiJdfQ==

@@ -40,2 +40,6 @@ import Q from 'q';

async function shutdown (udid:string):void {
await simExec("shutdown", 0, [udid]);
}
async function createDevice (name:string, deviceTypeId:string,

@@ -110,2 +114,2 @@ runtimeId:string):void {

export { installApp, removeApp, launch, createDevice, deleteDevice, eraseDevice, getDevices };
export { installApp, removeApp, launch, shutdown, createDevice, deleteDevice, eraseDevice, getDevices };

2

package.json

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

],
"version": "2.0.2",
"version": "2.1.0",
"author": "https://github.com/appium",

@@ -12,0 +12,0 @@ "licenses": [

@@ -17,2 +17,3 @@ node-simctl

- launch
- shutdown
- createDevice

@@ -37,3 +38,3 @@ - deleteDevice

```
{
{
'7.1': [

@@ -40,0 +41,0 @@ { name: 'iPhone 4s',

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