node-simctl
Advanced tools
Comparing version 6.3.2 to 6.3.3
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports.default = exports.LOG_PREFIX = void 0; | ||
@@ -15,5 +15,7 @@ require("source-map-support/register"); | ||
const LOG_PREFIX = 'simctl'; | ||
exports.LOG_PREFIX = LOG_PREFIX; | ||
function getLogger() { | ||
const logger = global._global_npmlog || _npmlog.default; | ||
logger.maxRecordSize = 3000; | ||
@@ -27,6 +29,2 @@ if (!logger.debug) { | ||
const originalLog = logger.log.bind(logger); | ||
logger.log = (level, prefix, ...args) => originalLog(level, 'simctl', prefix, ...args); | ||
return logger; | ||
@@ -40,2 +38,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9sb2dnZXIuanMiXSwibmFtZXMiOlsiZ2V0TG9nZ2VyIiwibG9nZ2VyIiwiZ2xvYmFsIiwiX2dsb2JhbF9ucG1sb2ciLCJucG1sb2ciLCJtYXhSZWNvcmRTaXplIiwiZGVidWciLCJhZGRMZXZlbCIsImZnIiwiYmciLCJvcmlnaW5hbExvZyIsImxvZyIsImJpbmQiLCJsZXZlbCIsInByZWZpeCIsImFyZ3MiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBRUEsU0FBU0EsU0FBVCxHQUFzQjtBQUNwQixRQUFNQyxNQUFNLEdBQUdDLE1BQU0sQ0FBQ0MsY0FBUCxJQUF5QkMsZUFBeEM7QUFDQUgsRUFBQUEsTUFBTSxDQUFDSSxhQUFQLEdBQXVCLElBQXZCOztBQUNBLE1BQUksQ0FBQ0osTUFBTSxDQUFDSyxLQUFaLEVBQW1CO0FBQ2pCTCxJQUFBQSxNQUFNLENBQUNNLFFBQVAsQ0FBZ0IsT0FBaEIsRUFBeUIsSUFBekIsRUFBK0I7QUFBRUMsTUFBQUEsRUFBRSxFQUFFLE1BQU47QUFBY0MsTUFBQUEsR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mFkZExldmVsKCdkZWJ1ZycsIDEwMDAsIHsgZmc6ICdibHVlJywgYmc6ICdibGFjaycgfSwgJ2RidWcnKTtcbiAgfVxuICByZXR1cm4gbG9nZ2VyO1xufVxuXG5jb25zdCBsb2cgPSBnZXRMb2dnZXIoKTtcblxuZXhwb3J0IHsgTE9HX1BSRUZJWCB9O1xuZXhwb3J0IGRlZmF1bHQgbG9nO1xuIl0sImZpbGUiOiJsaWIvbG9nZ2VyLmpzIiwic291cmNlUm9vdCI6Ii4uLy4uIn0= |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -18,3 +20,3 @@ | ||
var _logger = _interopRequireDefault(require("./logger")); | ||
var _logger = _interopRequireWildcard(require("./logger")); | ||
@@ -103,7 +105,7 @@ var _helpers = require("./helpers"); | ||
_logger.default.debug(msg); | ||
_logger.default.debug(_logger.LOG_PREFIX, msg); | ||
throw Error(msg); | ||
} else { | ||
_logger.default.debug(e.message); | ||
_logger.default.debug(_logger.LOG_PREFIX, e.message); | ||
@@ -127,2 +129,2 @@ throw e; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOlsiU0lNQ1RMX0VOVl9QUkVGSVgiLCJERUZBVUxUX09QVFMiLCJ4Y3J1biIsInBhdGgiLCJleGVjVGltZW91dCIsIkRFRkFVTFRfRVhFQ19USU1FT1VUIiwibG9nRXJyb3JzIiwiU2ltY3RsIiwiY29uc3RydWN0b3IiLCJvcHRzIiwiXyIsImNsb25lRGVlcCIsImRlZmF1bHRzRGVlcCIsImtleSIsImtleXMiLCJfdWRpZCIsImlzTmlsIiwidWRpZCIsInZhbHVlIiwicmVxdWlyZVVkaWQiLCJjb21tYW5kTmFtZSIsIkVycm9yIiwicmVxdWlyZVhjcnVuIiwiWENSVU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AgICAgIGxvZy5kZWJ1ZyhMT0dfUFJFRklYLCBtc2cpO1xuICAgICAgICB0aHJvdyBFcnJvcihtc2cpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgbG9nLmRlYnVnKExPR19QUkVGSVgsIGUubWVzc2FnZSk7XG4gICAgICAgIHRocm93IGU7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cblxuLy8gYWRkIGFsbCB0aGUgc3ViY29tbWFuZHMgdG8gdGhlIFNpbWN0bCBwcm90b3R5cGVcbmZvciAoY29uc3QgW2ZuTmFtZSwgZm5dIG9mIF8udG9QYWlycyhzdWJjb21tYW5kcykpIHtcbiAgU2ltY3RsLnByb3RvdHlwZVtmbk5hbWVdID0gZm47XG59XG5cbmV4cG9ydCBkZWZhdWx0IFNpbWN0bDtcbmV4cG9ydCB7IFNpbWN0bCB9OyJdLCJmaWxlIjoibGliL3NpbWN0bC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLiJ9 |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -14,3 +16,3 @@ | ||
var _logger = _interopRequireDefault(require("../logger")); | ||
var _logger = _interopRequireWildcard(require("../logger")); | ||
@@ -29,3 +31,3 @@ const commands = {}; | ||
_logger.default.debug(`Simulator already in 'Booted' state. Continuing`); | ||
_logger.default.debug(_logger.LOG_PREFIX, `Simulator already in 'Booted' state. Continuing`); | ||
} | ||
@@ -38,2 +40,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zdWJjb21tYW5kcy9ib290LmpzIl0sIm5hbWVzIjpbImNvbW1hbmRzIiwiYm9vdERldmljZSIsImV4ZWMiLCJhcmdzIiwicmVxdWlyZVVkaWQiLCJlIiwiXyIsImluY2x1ZGVzIiwibWVzc2FnZSIsImxvZyIsImRlYnVnIl0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IHRocm93IGU7XG4gICAgfVxuICAgIGxvZy5kZWJ1ZyhMT0dfUFJFRklYLCBgU2ltdWxhdG9yIGFscmVhZHkgaW4gJ0Jvb3RlZCcgc3RhdGUuIENvbnRpbnVpbmdgKTtcbiAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgY29tbWFuZHM7XG4iXSwiZmlsZSI6ImxpYi9zdWJjb21tYW5kcy9ib290LmpzIiwic291cmNlUm9vdCI6Ii4uLy4uLy4uIn0= |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -14,3 +16,3 @@ | ||
var _logger = _interopRequireDefault(require("../logger")); | ||
var _logger = _interopRequireWildcard(require("../logger")); | ||
@@ -59,3 +61,3 @@ var _asyncbox = require("asyncbox"); | ||
for (const runtimeId of runtimeIds) { | ||
_logger.default.debug(`Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`); | ||
_logger.default.debug(_logger.LOG_PREFIX, `Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`); | ||
@@ -102,2 +104,2 @@ try { | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zdWJjb21tYW5kcy9jcmVhdGUuanMiXSwibmFtZXMiOlsiU0lNX1JVTlRJTUVfTkFNRV9TVUZGSVhfSU9TIiwiREVGQVVMVF9DUkVBVEVfU0lNVUxBVE9SX1RJTUVPVVQiLCJjb21tYW5kcyIsImNyZWF0ZURldmljZSIsIm5hbWUiLCJkZXZpY2VUeXBlSWQiLCJwbGF0Zm9ybVZlcnNpb24iLCJvcHRzIiwicGxhdGZvcm0iLCJ0aW1lb3V0IiwicnVudGltZUlkcyIsInB1c2giLCJnZXRSdW50aW1lRm9yUGxhdGZvcm1WZXJzaW9uVmlhSnNvbiIsImlnbiIsIl8iLCJpc0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QgY3JlYXRlZGApO1xuICB9KTtcblxuICByZXR1cm4gdWRpZDtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGNvbW1hbmRzO1xuIl0sImZpbGUiOiJsaWIvc3ViY29tbWFuZHMvY3JlYXRlLmpzIiwic291cmNlUm9vdCI6Ii4uLy4uLy4uIn0= |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -16,3 +18,3 @@ | ||
var _logger = _interopRequireDefault(require("../logger")); | ||
var _logger = _interopRequireWildcard(require("../logger")); | ||
@@ -101,5 +103,5 @@ const commands = {}; | ||
} catch (err) { | ||
_logger.default.debug(`Unable to get JSON device list: ${err.stack}`); | ||
_logger.default.debug(_logger.LOG_PREFIX, `Unable to get JSON device list: ${err.stack}`); | ||
_logger.default.debug('Falling back to manual parsing'); | ||
_logger.default.debug(_logger.LOG_PREFIX, 'Falling back to manual parsing'); | ||
@@ -199,2 +201,2 @@ devices = await this.getDevicesByParsing(platform); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zdWJjb21tYW5kcy9saXN0LmpzIl0sIm5hbWVzIjpbImNvbW1hbmRzIiwiZ2V0RGV2aWNlc0J5UGFyc2luZyIsInBsYXRmb3JtIiwic3Rkb3V0IiwiZXhlYyIsImFyZ3MiLCJkZXZpY2VTZWN0aW9uUmUiLCJfIiwiaXNFbXB0eSIsIlJlZ0V4cCIsImVzY2FwZVJlZ0V4cCIsIm1hdGNoZXMiLCJtYXRjaCIsInB1c2giLCJFcnJvciIsImxpbmVSZSIsImRldmljZXMiLCJzZGsiLCJsaW5lIiwic3BsaXQiLCJzbGljZSIsImluY2x1ZGVzIiwibGluZU1hdGNoIiwibmFtZSIsInVkaWQiLCJzdGF0ZSIsImdldERldmljZXMiLCJmb3JTZGsiLCJ2ZXJzaW9uTWF0Y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gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uLlxuICogQHRocm93cyB7RXJyb3J9IElmIHRoZSBjb3JyZXNwb25kaW5nIHNpbWN0bCBzdWJjb21tYW5kIGNvbW1hbmRcbiAqICAgICAgICAgICAgICAgICByZXR1cm5zIG5vbi16ZXJvIHJldHVybiBjb2RlIG9yIGlmIG5vIG1hdGNoaW5nXG4gKiAgICAgICAgICAgICAgICAgcGxhdGZvcm0gdmVyc2lvbiBpcyBmb3VuZCBpbiB0aGUgc3lzdGVtLlxuICovXG5jb21tYW5kcy5nZXREZXZpY2VzID0gYXN5bmMgZnVuY3Rpb24gZ2V0RGV2aWNlcyAoZm9yU2RrLCBwbGF0Zm9ybSkge1xuICBsZXQgZGV2aWNlcyA9IHt9O1xuICB0cnkge1xuICAgIGNvbnN0IHtzdGRvdXR9ID0gYXdhaXQgdGhpcy5leGVjKCdsaXN0Jywge1xuICAgICAgYXJnczogWydkZXZpY2VzJywgJy1qJ10sXG4gICAgfSk7XG4gICAgLyogSlNPTiBzaG91bGQgYmVcbiAgICAgKiB7XG4gICAgICogICBcImRldmljZXNcIiA6IHtcbiAgICAgKiAgICAgXCJpT1MgPHNkaz5cIiA6IFsgLy8gb3JcbiAgICAgKiAgICAgXCJjb20uYXBwbGUuQ29yZVNpbXVsYXRvci5TaW1SdW50aW1lLmlPUy08c2RrPiA6IFtcbiAgICAgKiAgICAgICB7XG4gICAgICogICAgICAgICBcInN0YXRlXCIgOiBcIkJvb3RlZFwiLFxuICAgICAqICAgICAgICAgXCJhdmFpbGFiaWxpdHlcIiA6IFwiKGF2YWlsYWJsZSlcIixcbiAgICAgKiAgICAgICAgIFwiaXNBdmFpbGFibGVcIiA6IHRydWUsXG4gICAgICogICAgICAgICBcIm5hbWVcIiA6IFwiaVBob25lIDZcIixcbiAgICAgKiAgICAgICAgIFwidWRpZFwiIDogXCI3NUUzNDE0MC0xOEU4LTREMUEtOUY0NS1BQUM3MzVERjc1REZcIlxuICA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XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE90aGVyd2lzZSB0aGUgc2FtZSByZXN1bHQgYXMgZm9yIHtAbGluayBnZXREZXZpY2VzQnlQYXJzaW5nfVxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbi5cbiAqIEB0aHJvd3Mge0Vycm9yfSBJZiB0aGUgY29ycmVzcG9uZGluZyBzaW1jdGwgc3ViY29tbWFuZCBjb21tYW5kXG4gKiAgICAgICAgICAgICAgICAgcmV0dXJucyBub24temVybyByZXR1cm4gY29kZSBvciBpZiBubyBtYXRjaGluZ1xuICogICAgICAgICAgICAgICAgIHBsYXRmb3JtIHZlcnNpb24gaXMgZm91bmQgaW4gdGhlIHN5c3RlbS5cbiAqL1xuY29tbWFuZHMuZ2V0RGV2aWNlcyA9IGFzeW5jIGZ1bmN0aW9uIGdldERldmljZXMgKGZvclNkaywgcGxhdGZvcm0pIHtcbiAgbGV0IGRldmljZXMgPSB7fTtcbiAgdHJ5IHtcbiAgICBjb25zdCB7c3Rkb3V0fSA9IGF3YWl0IHRoaXMuZXhlYygnbGlzdCcsIHtcbiAgICAgIGFyZ3M6IFsnZGV2aWNlcycsICctaiddLFxuICAgIH0pO1xuICAgIC8qIEpTT04gc2hvdWxkIGJlXG4gICAgICoge1xuICAgICAqICAgXCJkZXZpY2VzXCIgOiB7XG4gICAgICogICAgIFwiaU9TIDxzZGs+XCIgOiBbIC8vIG9yXG4gICAgICogICAgIFwiY29tLmFwcGxlLkNvcmVTaW11bGF0b3IuU2ltUnVudGltZS5pT1MtPHNkaz4gOiBbXG4gICAgICogICAgICAge1xuICAgICAqICAgICAgICAgXCJzdGF0ZVwiIDogXCJCb290ZWRcIixcbiAgICAgKiAgICAgICAgIFwiYXZhaWxhYmlsaXR5XCIgOiBcIihhdmFpbGFibGUpXCIsXG4gICAgICogICAgICAgICBcImlzQXZhaWxhYmxlXCIgOiB0cnVlLFxuICAgICAqICAgICAg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KiBAcmV0dXJuIHtPYmplY3R9IE9iamVjdCBjb250YWluaW5nIGRldmljZSB0eXBlcywgcnVudGltZXMgZGV2aWNlcyBhbmQgcGFpcnMuXG4gKiBUaGUgcmVzdWx0aW5nIEpTT04gd2lsbCBiZSBsaWtlOlxuICogICB7XG4gKiAgICAgXCJkZXZpY2V0eXBlc1wiIDogW1xuICogICAgICAge1xuICogICAgICAgICBcIm5hbWVcIiA6IFwiaVBob25lIDRzXCIsXG4gKiAgICAgICAgIFwiaWRlbnRpZmllclwiIDogXCJjb20uYXBwbGUuQ29yZVNpbXVsYXRvci5TaW1EZXZpY2VUeXBlLmlQaG9uZS00c1wiXG4gKiAgICAgICB9LFxuICogICAgICAgLi4uXG4gKiAgICAgIF0sXG4gKiAgICAgXCJydW50aW1lc1wiIDogW1xuICogICAgICAge1xuICogICAgICAgICBcInZlcnNpb25cIiA6ICcxMy4wJyxcbiAqICAgICAgICAgXCJidW5kbGVQYXRoXCIgOiAnL0FwcGxpY2F0aW9ucy9YY29kZTExYmV0YTQuYXBwL0NvbnRlbnRzL0RldmVsb3Blci9QbGF0Zm9ybXMvaVBob25lT1MucGxhdGZvcm0vTGlicmFyeS9EZXZlbG9wZXIvQ29yZVNpbXVsYXRvci9Qcm9maWxlcy9SdW50aW1lcy9pT1Muc2ltcnVudGltZScsXG4gKiAgICAgICAgIFwiaXNBdmFpbGFibGVcIiA6IHRydWUsXG4gKiAgICAgICAgIFwibmFtZVwiIDogJ2lPUyAxMy4wJyxcbiAqICAgICAgICAgXCJpZGVudGlmaWVyXCIgOiAnY29tLmFwcGxlLkNvcmVTaW11bGF0b3IuU2ltUnVudGltZS5pT1MtMTMtMCcsXG4gKiAgICAgICAgIFwiYnVpbGR2ZXJzaW9uXCIgOiAnMTdBNTUzNGQnXG4gKiAgICAgICB9LFxuICogICAgICAgLi4uXG4gKiAgICAgIH0sXG4gKiAgICAgXCJkZXZpY2VzXCIgOlxuICogICAgICAge1xuICogICAgICAgICAnY29tLmFwcGxlLkNvcmVTaW11bGF0b3IuU2ltUnVudGltZS5pT1MtMTMtMCc6IFsgW09iamVjdF0sIFtPYmplY3RdIF0gfSxcbiAqICAgICAgICAgLi4uXG4gKiAgICAgICB9LFxuICogICAgIFwicGFpcnNcIiA6IHt9IH1cbiAqXG4gKiAgIH1cbiAqIEB0aHJvd3Mge0Vycm9yfSBJZiB0aGUgY29ycmVzcG9uZGluZyBzaW1jdGwgY29tbWFuZCBmYWlsc1xuICovXG5jb21tYW5kcy5saXN0ID0gYXN5bmMgZnVuY3Rpb24gbGlzdCAoKSB7XG4gIGNvbnN0IHtzdGRvdXR9ID0gYXdhaXQgdGhpcy5leGVjKCdsaXN0Jywge1xuICAgIGFyZ3M6IFsnLWonXSxcbiAgfSk7XG4gIHRyeSB7XG4gICAgcmV0dXJuIEpTT04ucGFyc2Uoc3Rkb3V0LnRyaW0oKSk7XG4gIH0gY2F0Y2ggKGUpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYFVuYWJsZSB0byBwYXJzZSBzaW1jdGwgbGlzdDogJHtlLm1lc3NhZ2V9YCk7XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGNvbW1hbmRzO1xuIl0sImZpbGUiOiJsaWIvc3ViY29tbWFuZHMvbGlzdC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLiJ9 |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -14,3 +16,3 @@ | ||
var _logger = _interopRequireDefault(require("../logger")); | ||
var _logger = _interopRequireWildcard(require("../logger")); | ||
@@ -29,3 +31,3 @@ const commands = {}; | ||
_logger.default.debug(`Simulator already in 'Shutdown' state. Continuing`); | ||
_logger.default.debug(_logger.LOG_PREFIX, `Simulator already in 'Shutdown' state. Continuing`); | ||
} | ||
@@ -38,2 +40,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base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YXdhaXQgdGhpcy5leGVjKCdzaHV0ZG93bicsIHtcbiAgICAgIGFyZ3M6IFt0aGlzLnJlcXVpcmVVZGlkKCdzaHV0ZG93bicpXSxcbiAgICB9KTtcbiAgfSBjYXRjaCAoZSkge1xuICAgIGlmICghXy5pbmNsdWRlcyhlLm1lc3NhZ2UsICdjdXJyZW50IHN0YXRlOiBTaHV0ZG93bicpKSB7XG4gICAgICB0aHJvdyBlO1xuICAgIH1cbiAgICBsb2cuZGVidWcoTE9HX1BSRUZJWCwgYFNpbXVsYXRvciBhbHJlYWR5IGluICdTaHV0ZG93bicgc3RhdGUuIENvbnRpbnVpbmdgKTtcbiAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgY29tbWFuZHM7XG4iXSwiZmlsZSI6ImxpYi9zdWJjb21tYW5kcy9zaHV0ZG93bi5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLiJ9 |
import npmlog from 'npmlog'; | ||
const LOG_PREFIX = 'simctl'; | ||
function getLogger () { | ||
const logger = global._global_npmlog || npmlog; | ||
logger.maxRecordSize = 3000; | ||
if (!logger.debug) { | ||
logger.addLevel('debug', 1000, { fg: 'blue', bg: 'black' }, 'dbug'); | ||
} | ||
const originalLog = logger.log.bind(logger); | ||
logger.log = (level, prefix, ...args) => originalLog(level, 'simctl', prefix, ...args); | ||
return logger; | ||
@@ -16,2 +16,3 @@ } | ||
export { LOG_PREFIX }; | ||
export default log; |
import _ from 'lodash'; | ||
import subcommands from './subcommands/index.js'; | ||
import which from 'which'; | ||
import log from './logger'; | ||
import log, { LOG_PREFIX } from './logger'; | ||
import { | ||
@@ -137,6 +137,6 @@ DEFAULT_EXEC_TIMEOUT, XCRUN_BINARY, | ||
const msg = `Error running '${subcommand}': ${e.stderr.trim()}`; | ||
log.debug(msg); | ||
log.debug(LOG_PREFIX, msg); | ||
throw Error(msg); | ||
} else { | ||
log.debug(e.message); | ||
log.debug(LOG_PREFIX, e.message); | ||
throw e; | ||
@@ -143,0 +143,0 @@ } |
import _ from 'lodash'; | ||
import log from '../logger'; | ||
import log, { LOG_PREFIX } from '../logger'; | ||
@@ -23,3 +23,3 @@ | ||
} | ||
log.debug(`Simulator already in 'Booted' state. Continuing`); | ||
log.debug(LOG_PREFIX, `Simulator already in 'Booted' state. Continuing`); | ||
} | ||
@@ -26,0 +26,0 @@ }; |
import _ from 'lodash'; | ||
import log from '../logger'; | ||
import log, { LOG_PREFIX } from '../logger'; | ||
import { retryInterval } from 'asyncbox'; | ||
@@ -75,3 +75,4 @@ import { SIM_RUNTIME_NAME, normalizeVersion } from '../helpers'; | ||
for (const runtimeId of runtimeIds) { | ||
log.debug(`Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`); | ||
log.debug(LOG_PREFIX, | ||
`Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`); | ||
try { | ||
@@ -78,0 +79,0 @@ const {stdout} = await this.exec('create', { |
import _ from 'lodash'; | ||
import { SIM_RUNTIME_NAME, normalizeVersion } from '../helpers'; | ||
import log from '../logger'; | ||
import log, { LOG_PREFIX } from '../logger'; | ||
@@ -153,4 +153,4 @@ | ||
} catch (err) { | ||
log.debug(`Unable to get JSON device list: ${err.stack}`); | ||
log.debug('Falling back to manual parsing'); | ||
log.debug(LOG_PREFIX, `Unable to get JSON device list: ${err.stack}`); | ||
log.debug(LOG_PREFIX, 'Falling back to manual parsing'); | ||
devices = await this.getDevicesByParsing(platform); | ||
@@ -157,0 +157,0 @@ } |
import _ from 'lodash'; | ||
import log from '../logger'; | ||
import log, { LOG_PREFIX } from '../logger'; | ||
const commands = {}; | ||
@@ -23,3 +22,3 @@ | ||
} | ||
log.debug(`Simulator already in 'Shutdown' state. Continuing`); | ||
log.debug(LOG_PREFIX, `Simulator already in 'Shutdown' state. Continuing`); | ||
} | ||
@@ -26,0 +25,0 @@ }; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "6.3.2", | ||
"version": "6.3.3", | ||
"author": "https://github.com/appium", | ||
@@ -63,4 +63,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"ajv": "^6.5.3", | ||
"appium-gulp-plugins": "^5.0.0", | ||
"appium-gulp-plugins": "^5.4.0", | ||
"appium-xcode": "^3.8.0", | ||
@@ -67,0 +66,0 @@ "chai": "^4.1.2", |
@@ -9,3 +9,2 @@ ## node-simctl | ||
[![Build Status](https://travis-ci.org/appium/node-simctl.svg?branch=master)](https://travis-ci.org/appium/node-simctl) | ||
[![Coverage Status](https://coveralls.io/repos/appium/node-simctl/badge.svg?branch=master)](https://coveralls.io/r/appium/node-simctl?branch=master) | ||
@@ -12,0 +11,0 @@ ES6/7 Node wrapper around Apple's `simctl` binary, the "Command line utility to control the iOS Simulator". `simctl` is run as a sub-command of [xcrun](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcrun.1.html) |
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
214270
9
2770
199