node-simctl
Advanced tools
Comparing version 6.3.1 to 6.3.2
@@ -25,6 +25,10 @@ "use strict"; | ||
const originalLog = logger.log.bind(logger); | ||
logger.log = (level, prefix, ...args) => originalLog(level, 'simctl', prefix, ...args); | ||
return logger; | ||
} | ||
const log = getLogger('simctl'); | ||
const log = getLogger(); | ||
var _default = log; | ||
@@ -34,2 +38,2 @@ exports.default = _default;require('source-map-support').install(); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9sb2dnZXIuanMiXSwibmFtZXMiOlsiZ2V0TG9nZ2VyIiwibG9nZ2VyIiwiZ2xvYmFsIiwiX2dsb2JhbF9ucG1sb2ciLCJucG1sb2ciLCJtYXhSZWNvcmRTaXplIiwiZGVidWciLCJhZGRMZXZlbCIsImZnIiwiYmciLCJsb2ciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBRUEsU0FBU0EsU0FBVCxHQUFzQjtBQUNwQixRQUFNQyxNQUFNLEdBQUdDLE1BQU0sQ0FBQ0MsY0FBUCxJQUF5QkMsZUFBeEM7QUFDQUgsRUFBQUEsTUFBTSxDQUFDSSxhQUFQLEdBQXVCLElBQXZCOztBQUNBLE1BQUksQ0FBQ0osTUFBTSxDQUFDSyxLQUFaLEVBQW1CO0FBQ2pCTCxJQUFBQSxNQUFNLENBQUNNLFFBQVAsQ0FBZ0IsT0FBaEIsRUFBeUIsSUFBekIsRUFBK0I7QUFBRUMsTUFBQUEsRUFBRSxFQUFFLE1BQU47QUFBY0MsTUFBQUEsRUFBRSxFQUFFO0FBQWxCLEtBQS9CLEVBQTRELE1BQTVEO0FBQ0Q7O0FBQ0QsU0FBT1IsTUFBUDtBQUNEOztBQUVELE1BQU1TLEdBQUcsR0FBR1YsU0FBUyxDQUFDLFFBQUQsQ0FBckI7ZUFFZVUsRyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBucG1sb2cgZnJvbSAnbnBt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iAgcmV0dXJuIGxvZ2dlcjtcbn1cblxuY29uc3QgbG9nID0gZ2V0TG9nZ2VyKCk7XG5cbmV4cG9ydCBkZWZhdWx0IGxvZztcbiJdLCJmaWxlIjoibGliL2xvZ2dlci5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLiJ9 |
@@ -100,3 +100,3 @@ "use strict"; | ||
} else if (e.stderr) { | ||
const msg = `simctl error running '${subcommand}': ${e.stderr.trim()}`; | ||
const msg = `Error running '${subcommand}': ${e.stderr.trim()}`; | ||
@@ -126,2 +126,2 @@ _logger.default.debug(msg); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOlsiU0lNQ1RMX0VOVl9QUkVGSVgiLCJERUZBVUxUX09QVFMiLCJ4Y3J1biIsInBhdGgiLCJleGVjVGltZW91dCIsIkRFRkFVTFRfRVhFQ19USU1FT1VUIiwibG9nRXJyb3JzIiwiU2ltY3RsIiwiY29uc3RydWN0b3IiLCJvcHRzIiwiXyIsImNsb25lRGVlcCIsImRlZmF1bHRzRGVlcCIsImtleSIsImtleXMiLCJfdWRpZCIsImlzTmlsIiwidWRpZCIsInZhbHVlIiwicmVxdWlyZVVkaWQiLCJjb21tYW5kTmFtZSIsIkVycm9yIiwicmVxdWlyZVhjcnVuIiwiWENSVU5fQklOQVJZIiwiZSIsImV4ZWMiLCJzdWJjb21tYW5kIiwiYXJncyIsImVudiIsImFzeW5jaHJvbm91cyIsImVuY29kaW5nIiwiZGVmYXVsdHMiLCJtYXBLZXlzIiwic3RhcnRzV2l0aCIsInByb2Nlc3MiLCJleGVjT3B0cyIsInRpbWVvdXQiLCJTdWJQcm9jZXNzIiwic3RkZXJyIiwibXNnIiwidHJpbSIsImxvZyIsImRlYnVnIiwibWVzc2FnZSIsImZuTmFtZSIsImZuIiwidG9QYWlycyIsInN1YmNvbW1hbmRzIiwicHJvdG90eXBlIl0sIm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hbGxvdyB0aGUgY2FsbGluZ1xuICAgICAgICAvLyBjb2RlIGRvIHdoYXQgaXQgd2FudHNcbiAgICAgICAgdGhyb3cgZTtcbiAgICAgIH0gZWxzZSBpZiAoZS5zdGRlcnIpIHtcbiAgICAgICAgY29uc3QgbXNnID0gYHNpbWN0bCBlcnJvciBydW5uaW5nICcke3N1YmNvbW1hbmR9JzogJHtlLnN0ZGVyci50cmltKCl9YDtcbiAgICAgICAgbG9nLmRlYnVnKG1zZyk7XG4gICAgICAgIHRocm93IEVycm9yKG1zZyk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsb2cuZGVidWcoZS5tZXNzYWdlKTtcbiAgICAgICAgdGhyb3cgZTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxuXG4vLyBhZGQgYWxsIHRoZSBzdWJjb21tYW5kcyB0byB0aGUgU2ltY3RsIHByb3RvdHlwZVxuZm9yIChjb25zdCBbZm5OYW1lLCBmbl0gb2YgXy50b1BhaXJzKHN1YmNvbW1hbmRzKSkge1xuICBTaW1jdGwucHJvdG90eXBlW2ZuTmFtZV0gPSBmbjtcbn1cblxuZXhwb3J0IGRlZmF1bHQgU2ltY3RsO1xuZXhwb3J0IHsgU2ltY3RsIH07Il0sImZpbGUiOiJsaWIvc2ltY3RsLmpzIiwic291cmNlUm9vdCI6Ii4uLy4uIn0= | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOlsiU0lNQ1RMX0VOVl9QUkVGSVgiLCJERUZBVUxUX09QVFMiLCJ4Y3J1biIsInBhdGgiLCJleGVjVGltZW91dCIsIkRFRkFVTFRfRVhFQ19USU1FT1VUIiwibG9nRXJyb3JzIiwiU2ltY3RsIiwiY29uc3RydWN0b3IiLCJvcHRzIiwiXyIsImNsb25lRGVlcCIsImRlZmF1bHRzRGVlcCIsImtleSIsImtleXMiLCJfdWRpZCIsImlz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HBvcnQgeyBTaW1jdGwgfTsiXSwiZmlsZSI6ImxpYi9zaW1jdGwuanMiLCJzb3VyY2VSb290IjoiLi4vLi4ifQ== |
@@ -9,7 +9,9 @@ import npmlog from 'npmlog'; | ||
} | ||
const originalLog = logger.log.bind(logger); | ||
logger.log = (level, prefix, ...args) => originalLog(level, 'simctl', prefix, ...args); | ||
return logger; | ||
} | ||
const log = getLogger('simctl'); | ||
const log = getLogger(); | ||
export default log; |
@@ -136,3 +136,3 @@ import _ from 'lodash'; | ||
} else if (e.stderr) { | ||
const msg = `simctl error running '${subcommand}': ${e.stderr.trim()}`; | ||
const msg = `Error running '${subcommand}': ${e.stderr.trim()}`; | ||
log.debug(msg); | ||
@@ -139,0 +139,0 @@ throw Error(msg); |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "6.3.1", | ||
"version": "6.3.2", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.0", |
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
213945
2765