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.21 to 1.0.22

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

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

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

54

lib/iphone-simulator-common.js

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

var osenv = require("osenv");
var isDeviceLogOperationStarted = false;
var pid;
function getInstalledApplications(deviceId) {

@@ -38,34 +40,36 @@ return (function () {

function printDeviceLog(deviceId, launchResult) {
var logFilePath = path.join(osenv.home(), "Library", "Logs", "CoreSimulator", deviceId, "system.log");
var pid;
if (launchResult) {
pid = launchResult.split(":")[1].trim();
}
var childProcess = require("child_process").spawn("tail", ['-f', '-n', '1', logFilePath]);
if (childProcess.stdout) {
childProcess.stdout.on("data", function (data) {
var dataAsString = data.toString();
if (pid) {
if (dataAsString.indexOf("[" + pid + "]") > -1) {
if (!isDeviceLogOperationStarted) {
var logFilePath = path.join(osenv.home(), "Library", "Logs", "CoreSimulator", deviceId, "system.log");
var childProcess_1 = require("child_process").spawn("tail", ['-f', '-n', '1', logFilePath]);
if (childProcess_1.stdout) {
childProcess_1.stdout.on("data", function (data) {
var dataAsString = data.toString();
if (pid) {
if (dataAsString.indexOf("[" + pid + "]") > -1) {
process.stdout.write(dataAsString);
}
}
else {
process.stdout.write(dataAsString);
}
}
else {
process.stdout.write(dataAsString);
}
});
}
if (childProcess.stderr) {
childProcess.stderr.on("data", function (data) {
var dataAsString = data.toString();
if (pid) {
if (dataAsString.indexOf("[" + pid + "]") > -1) {
});
}
if (childProcess_1.stderr) {
childProcess_1.stderr.on("data", function (data) {
var dataAsString = data.toString();
if (pid) {
if (dataAsString.indexOf("[" + pid + "]") > -1) {
process.stdout.write(dataAsString);
}
}
else {
process.stdout.write(dataAsString);
}
}
else {
process.stdout.write(dataAsString);
}
process.stdout.write(data.toString());
});
process.stdout.write(data.toString());
});
}
isDeviceLogOperationStarted = true;
}

@@ -72,0 +76,0 @@ }

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

{
"name": "ios-sim-portable",
"version": "1.0.21",
"version": "1.0.22",
"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 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