ios-sim-portable
Advanced tools
Comparing version 1.0.21 to 1.0.22
#!/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"/> |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
75276
1304
3