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

ios-sim-portable

Package Overview
Dependencies
Maintainers
5
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.20 to 1.0.21

lib/iphone-simulator-name-getter.js

0

bin/ios-sim-portable.js
#!/usr/bin/env node
require("../lib/ios-sim.js");

@@ -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"/>

90

lib/ios-sim.js

@@ -71,75 +71,23 @@ ///<reference path="./.d.ts"/>

});
Object.defineProperty(global.publicApi, "installApplication", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.installApplication.apply(simulator, args);
};
}
["installApplication",
"uninstallApplication",
"startApplication",
"stopApplication",
"printDeviceLog",
"startSimulator",
"getSimulatorName"].forEach(function (methodName) {
Object.defineProperty(global.publicApi, methodName, {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator[methodName].apply(simulator, args);
};
}
});
});
Object.defineProperty(global.publicApi, "uninstallApplication", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.uninstallApplication.apply(simulator, args);
};
}
});
Object.defineProperty(global.publicApi, "startApplication", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.startApplication.apply(simulator, args);
};
}
});
Object.defineProperty(global.publicApi, "stopApplication", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.stopApplication.apply(simulator, args);
};
}
});
Object.defineProperty(global.publicApi, "printDeviceLog", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.printDeviceLog.apply(simulator, args);
};
}
});
Object.defineProperty(global.publicApi, "startSimulator", {
get: function () {
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
var simulator = getSimulator().wait();
return simulator.startSimulator.apply(simulator, args);
};
}
});
module.exports = global.publicApi;
//# sourceMappingURL=ios-sim.js.map
///<reference path="./.d.ts"/>
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var child_process = require("child_process");

@@ -13,4 +18,7 @@ var errors = require("./errors");

var $ = require("nodobjc");
var IPhoneInteropSimulatorBase = (function () {
var iphone_simulator_name_getter_1 = require("./iphone-simulator-name-getter");
var IPhoneInteropSimulatorBase = (function (_super) {
__extends(IPhoneInteropSimulatorBase, _super);
function IPhoneInteropSimulatorBase(simulator) {
_super.call(this);
this.simulator = simulator;

@@ -236,3 +244,3 @@ }

return IPhoneInteropSimulatorBase;
})();
})(iphone_simulator_name_getter_1.IPhoneSimulatorNameGetter);
exports.IPhoneInteropSimulatorBase = IPhoneInteropSimulatorBase;

@@ -239,0 +247,0 @@ var Sdk = (function () {

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

@@ -9,3 +9,2 @@ ///<reference path="./.d.ts"/>

var Future = require("fibers/future");
var options = require("./options");
var $ = require("nodobjc");

@@ -17,2 +16,3 @@ var iPhoneSimulatorBaseLib = require("./iphone-interop-simulator-base");

_super.call(this, this);
this.defaultDeviceIdentifier = "iPhone";
}

@@ -68,4 +68,3 @@ XCode5Simulator.prototype.getDevices = function () {

get: function () {
var identifier = options.device || XCode5Simulator.DEFAULT_DEVICE_IDENTIFIER;
return XCode5Simulator.allowedDeviceIdentifiers[identifier];
return XCode5Simulator.allowedDeviceIdentifiers[this.getSimulatorName()];
},

@@ -75,3 +74,2 @@ enumerable: true,

});
XCode5Simulator.DEFAULT_DEVICE_IDENTIFIER = "iPhone";
XCode5Simulator.allowedDeviceIdentifiers = {

@@ -78,0 +76,0 @@ "iPhone": "iPhone",

@@ -10,3 +10,2 @@ ///<reference path="./.d.ts"/>

var errors = require("./errors");
var options = require("./options");
var util = require("util");

@@ -22,2 +21,3 @@ var common = require("./iphone-simulator-common");

_super.call(this, this);
this.defaultDeviceIdentifier = "iPhone-4s";
this.cachedDevices = null;

@@ -136,15 +136,8 @@ this.simctl = new simctl_1.Simctl();

};
Object.defineProperty(XCode6Simulator.prototype, "deviceName", {
get: function () {
return options.device || XCode6Simulator.DEFAULT_DEVICE_IDENTIFIER;
},
enumerable: true,
configurable: true
});
XCode6Simulator.prototype.getDeviceByName = function () {
var _this = this;
var devices = this.getDevices().wait();
var device = _.find(devices, function (device) { return device.name === _this.deviceName; });
var device = _.find(devices, function (device) { return device.name === _this.getSimulatorName(); });
if (!device) {
errors.fail("Unable to find device with name ", this.deviceName);
errors.fail("Unable to find device with name ", this.getSimulatorName());
}

@@ -157,3 +150,2 @@ return device;

XCode6Simulator.DEVICE_IDENTIFIER_PREFIX = "com.apple.CoreSimulator.SimDeviceType";
XCode6Simulator.DEFAULT_DEVICE_IDENTIFIER = "iPhone-4s";
return XCode6Simulator;

@@ -160,0 +152,0 @@ })(iPhoneSimulatorBaseLib.IPhoneInteropSimulatorBase);

///<reference path="./.d.ts"/>
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var childProcess = require("./child-process");

@@ -9,6 +14,8 @@ var errors = require("./errors");

var utils = require("./utils");
var $ = require("nodobjc");
var osenv = require("osenv");
var XCode7Simulator = (function () {
var iphone_simulator_name_getter_1 = require("./iphone-simulator-name-getter");
var XCode7Simulator = (function (_super) {
__extends(XCode7Simulator, _super);
function XCode7Simulator() {
_super.call(this);
this.defaultDeviceIdentifier = "iPhone 6";
this.simctl = null;

@@ -102,3 +109,3 @@ this.simctl = new simctl_1.Simctl();

if (!result) {
result = _.find(devices, function (device) { return device.name === XCode7Simulator.DEFAULT_DEVICE_NAME; });
result = _.find(devices, function (device) { return device.name === _this.defaultDeviceIdentifier; });
}

@@ -139,6 +146,5 @@ if (!result) {

XCode7Simulator.DEVICE_IDENTIFIER_PREFIX = "com.apple.CoreSimulator.SimDeviceType";
XCode7Simulator.DEFAULT_DEVICE_NAME = "iPhone 6";
return XCode7Simulator;
})();
})(iphone_simulator_name_getter_1.IPhoneSimulatorNameGetter);
exports.XCode7Simulator = XCode7Simulator;
//# sourceMappingURL=iphone-simulator-xcode-7.js.map

@@ -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"/>

{
"name": "ios-sim-portable",
"version": "1.0.20",
"version": "1.0.21",
"description": "",

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

var fs = require("fs");
var grunt = require("grunt");
var callback = function() { };
var callback = function(err) {};
if (!fs.existsSync("lib/ios-sim.js")) {
var grunt = require("grunt");
grunt.cli.tasks = ["ts:devlib"];
grunt.cli(null, callback);
} else {
process.nextTick(callback);
}
grunt.cli.tasks = ["ts:devlib"];
grunt.cli(null, callback);

@@ -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 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