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

ios-sim-portable

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ios-sim-portable - npm Package Compare versions

Comparing version 1.0.12-gamma to 1.0.13-beta

lib/child-process.js

0

bin/ios-sim-portable.js
#!/usr/bin/env node
require("../lib/ios-sim.js");
//grunt-start
/// <reference path="child-process.ts" />
/// <reference path="command-executor.ts" />

@@ -15,7 +16,11 @@ /// <reference path="commands/device-types.ts" />

/// <reference path="ios-sim.ts" />
/// <reference path="iphone-interop-simulator-base.ts" />
/// <reference path="iphone-simulator-xcode-5.ts" />
/// <reference path="iphone-simulator-xcode-6.ts" />
/// <reference path="iphone-simulator-xcode-7.ts" />
/// <reference path="iphone-simulator.ts" />
/// <reference path="options.ts" />
/// <reference path="simctl.ts" />
/// <reference path="utils.ts" />
/// <reference path="xcode.ts" />
//grunt-end

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/>

///<reference path="./.d.ts"/>
"use strict";
//# sourceMappingURL=declarations.js.map

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ // Type definitions for node-fibers

@@ -0,0 +0,0 @@ /************************************************

@@ -0,0 +0,0 @@ declare module "nodobjc" {

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -13,2 +13,43 @@ ///<reference path="./.d.ts"/>

fiber.run();
global.publicApi = {};
Object.defineProperty(global.publicApi, "getRunningSimulator", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var future = new Future();
var libraryPath = require("./iphone-simulator-xcode-7");
var simulator = new libraryPath.XCode7Simulator();
var repeatCount = 30;
var timer = setInterval(function () {
Fiber(function () {
var result = simulator.getBootedDevice.apply(simulator, args).wait();
if ((result || !repeatCount) && !future.isResolved()) {
clearInterval(timer);
future.return(result);
}
repeatCount--;
}).run();
}, 500);
return future.wait();
};
}
});
Object.defineProperty(global.publicApi, "getApplicationPath", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var libraryPath = require("./simctl");
var obj = new libraryPath.Simctl();
var result = obj.getAppContainer.apply(obj, args).wait();
return result;
};
}
});
module.exports = global.publicApi;
//# sourceMappingURL=ios-sim.js.map

@@ -17,1 +17,39 @@ ///<reference path="./.d.ts"/>

fiber.run();
global.publicApi = {};
Object.defineProperty(global.publicApi, "getRunningSimulator", {
get: () => {
return (...args: any[]) => {
let future = new Future<any>();
let libraryPath = require("./iphone-simulator-xcode-7");
let simulator = new libraryPath.XCode7Simulator();
let repeatCount = 30;
let timer = setInterval(() => {
Fiber(() => {
let result = simulator.getBootedDevice.apply(simulator, args).wait();
if( (result || !repeatCount) && !future.isResolved()) {
clearInterval(timer);
future.return(result);
}
repeatCount--;
}).run();
}, 500);
return future.wait();
}
}
});
Object.defineProperty(global.publicApi, "getApplicationPath", {
get: () => {
return (...args: any[]) => {
let libraryPath = require("./simctl");
let obj = new libraryPath.Simctl()
let result = obj.getAppContainer.apply(obj, args).wait();
return result;
}
}
});
module.exports = global.publicApi;

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path=".d.ts"/>

@@ -40,2 +40,6 @@ ///<reference path="./.d.ts"/>

public getAppContainer(deviceId: string, applicationIdentifier: string): IFuture<string> {
return this.simctlExec("get_app_container", [deviceId, applicationIdentifier]);
}
public getDevices(): IFuture<IDevice[]> {

@@ -42,0 +46,0 @@ return (() => {

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/>

2

package.json
{
"name": "ios-sim-portable",
"version": "1.0.12-gamma",
"version": "1.0.13-beta",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/ios-sim.js",

@@ -0,0 +0,0 @@ var fs = require("fs");

@@ -0,0 +0,0 @@ ios-sim-portable

@@ -0,0 +0,0 @@ --[]--

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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