Comparing version 2.1.1 to 2.2.0
@@ -26,4 +26,4 @@ 'use strict'; | ||
var main = function main() { | ||
_logger2.default.install(); | ||
var options = _cmdline2.default.options; | ||
_logger2.default.install(null, null, !options['no-time']); | ||
if (options.silent) { | ||
@@ -51,2 +51,2 @@ _logger2.default.level('error'); | ||
module.exports = main; // for the runner in bin directory | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL2NjaS1waW5ndS5qcyJdLCJuYW1lcyI6WyJtYWluIiwiaW5zdGFsbCIsIm9wdGlvbnMiLCJzaWxlbnQiLCJsZXZlbCIsImRlYnVnIiwiY29uc29sZSIsImluZm8iLCJsb2ciLCJKU09OIiwic3RyaW5naWZ5Iiwic2lnSGFuZGxlciIsInByb2Nlc3MiLCJleGl0Iiwib24iLCJjZmdGaWxlIiwic2V0RmlsZW5hbWUiLCJjb25maWciLCJydW4iLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOztBQUFBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7OztBQUVBLElBQU1BLE9BQU8sU0FBUEEsSUFBTyxHQUFNO0FBQ2pCLG1CQUFPQyxPQUFQO0FBQ0EsTUFBTUMsVUFBVSxrQkFBUUEsT0FBeEI7QUFDQSxNQUFJQSxRQUFRQyxNQUFaLEVBQW9CO0FBQUUscUJBQU9DLEtBQVAsQ0FBYSxPQUFiO0FBQXdCO0FBQzlDLE1BQUlGLFFBQVFHLEtBQVosRUFBb0I7QUFBRSxxQkFBT0QsS0FBUCxDQUFhLEtBQWI7QUFBc0I7O0FBRTVDRSxVQUFRQyxJQUFSO0FBQ0FELFVBQVFFLEdBQVIsQ0FBWSw0QkFBNEJDLEtBQUtDLFNBQUwsQ0FBZVIsT0FBZixFQUF3QixJQUF4QixFQUE4QixDQUE5QixDQUF4Qzs7QUFFQSxNQUFNUyxhQUFhLFNBQWJBLFVBQWE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strict'; | ||
}, { | ||
name: 'no-time', | ||
type: 'boolean', | ||
description: 'Do NOT prefix output lines with timestamp and log-level' | ||
}, { | ||
name: 'run-once', | ||
@@ -81,2 +85,2 @@ short: '1', | ||
exports.default = args; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9jbWRsaW5lLmpzIl0sIm5hbWVzIjpbIm9wdGlvbiIsIm5hbWUiLCJzaG9ydCIsInR5cGUiLCJkZXNjcmlwdGlvbiIsImFyZ3MiLCJydW4iLCJvcHRpb25zIiwiaGVscCIsInByb2Nlc3MiLCJleGl0IiwidmVyc2lvbiIsImNvbnNvbGUiLCJsb2ciLCJjb25maWciLCJlcnJvciIsImluc3RhbGwiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUVBOzs7O0FBQ0E7Ozs7OztBQUVBO0FBTEE7O0FBTUEsZUFBS0EsTUFBTCxDQUFZLENBQ1Y7QUFDRUMsUUFBTSxRQURSO0FBRUVDLFNBQU8sR0FGVDtBQUdFQyxRQUFNLE1BSFI7QUFJRUMsZUFBYTtBQUpmLENBRFUsRUFPVjtBQUNFSCxRQUFNLE9BRFI7QUFFRUMsU0FBTyxHQUZUO0FBR0VDLFFBQU0sU0FIUjtBQUlFQyxlQUFhO0FBSmYsQ0FQVSxFQWFWO0FBQ0VILFFBQU0sUUFEUjtBQUVFQyxTQUFPLEdBRlQ7QUFHRUMsUUFBTSxTQUhSO0FBSUVDLGVBQWE7QUFKZixDQWJVLEVBbUJWO0FBQ0VILFFBQU0sVUFEUjtBQUVFQyxTQUFPLEdBRlQ7QUFHRUMsUUFBTSxTQUhSO0FBSUVDLGVBQWE7QUFKZixDQW5CVSxFQXlCVjtBQUNFSCxRQUFNLE1BRFI7QUFFRUMsU0FBTyxHQUZUO0FBR0VDLFFBQU0sU0FIUjtBQUlFQyxlQUFhO0FBSmYsQ0F6QlUsRUErQlY7QUFDRUgsUUFBTSxTQUR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9nKHZlcnNpb24pOyBwcm9jZXNzLmV4aXQoMCk7IH1cblxuLy8gbWFrZSBzdXJlIGNvbmZpZyBvcHRpb24gaXMgc2V0XG5pZiAoIWFyZ3Mub3B0aW9ucy5jb25maWcpIHtcbiAgY29uc29sZS5lcnJvcignTWlzc2luZyBjb25maWd1cmF0aW9uIEpTT04gZmlsZSBvcHRpb24uJyk7XG4gIGFyZ3YuaGVscCgpO1xuICBwcm9jZXNzLmV4aXQoMCk7XG59XG5cbi8vICdpbnN0YWxsJyBvcHRpb24gaW1wbGllcyAncnVuLW9uY2UnXG5pZiAoYXJncy5vcHRpb25zLmluc3RhbGwpIHsgYXJncy5vcHRpb25zWydydW4tb25jZSddID0gdHJ1ZTsgfVxuXG5leHBvcnQgZGVmYXVsdCBhcmdzO1xuIl19 |
@@ -13,12 +13,14 @@ 'use strict'; | ||
// Features: | ||
// + timestamp as part of the logged message | ||
// + (optionally) application name as part of the logged messsage | ||
// + log-level as part of the message | ||
// + logging based on log-level | ||
// + unless started with "prefixed = false" | ||
// - timestamp as part of the logged message | ||
// - (optionally) application name as part of the logged messsage | ||
// - log-level as part of the message | ||
// | ||
// Interface: | ||
// + install(level = null, name = null) | ||
// + install(level = null, name = null, prefixed = true) | ||
// Set new console handlers: | ||
// - level: 'log' || 'info' (default) || 'warn' || 'error' | ||
// - name : any string (not set by default) | ||
// - name: any string (not set by default) | ||
// - prefixed: if true (default), print timestamp, app name and log-level as part of the message | ||
// Return true on success, false on failure. | ||
@@ -89,3 +91,4 @@ // + uninstall() | ||
// level: 'log' || 'info' || 'warn' || 'error' | ||
// name : string | ||
// name: string | ||
// prefixed: boolean | ||
// return true on success, false on failure | ||
@@ -95,2 +98,3 @@ install: function install() { | ||
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
var prefixed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; | ||
@@ -120,4 +124,6 @@ if (state._log) { | ||
} | ||
var prefix = getPrefix() + ' ' + logNames[logNames.length - levels[n]] + ':'; | ||
args.unshift(prefix); | ||
if (prefixed) { | ||
var prefix = getPrefix() + ' ' + logNames[logNames.length - levels[n]] + ':'; | ||
args.unshift(prefix); | ||
} | ||
return state[refName].apply(_console, args); | ||
@@ -177,2 +183,2 @@ }; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9sb2dnZXIuanMiXSwibmFtZXMiOlsiX2NvbnNvbGUiLCJjb25zb2xlIiwiX0RhdGUiLCJEYXRlIiwibGV2ZWxzIiwibG9nIiwiaW5mbyIsIndhcm4iLCJlcnJvciIsInN0YXRlIiwiX2xvZyIsIl9pbmZvIiwiX3dhcm4iLCJfZXJyb3IiLCJsZXZlbCIsIm5hbWUiLCJwYWQiLCJ3aGF0IiwibGVuIiwiYyIsInJlcyIsImxlbmd0aCIsImZuTmFtZXMiLCJsb2dOYW1lcyIsIm1hcCIsInRvVXBwZXJDYXNlIiwiZ2V0UHJlZml4IiwiZCIsImdldEZ1bGxZZWFyIiwiZ2V0TW9udGgiLCJnZXREYXRlIiwiZ2V0SG91cnMiLCJnZXRNaW51dGVzIiwiZ2V0U2Vjb25kcyIsImdldE1pbGxpc2Vjb25kcyIsImluc3RhbGwiLCJmb3JFYWNoIiwibiIsInJlZk5hbWUiLCJhcmdzIiwidW5kZWZpbmVkIiwicHJlZml4IiwidW5zaGlmdCIsImFwcGx5IiwidW5pbnN0YWxsIiwidmFsdWUiLCJfaW5qZWN0IiwiRCJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ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uICAgICAgc3RhdGVbcmVmTmFtZV0gPSBudWxsO1xuICAgIH0pO1xuICAgIHN0YXRlLm5hbWUgPSBudWxsO1xuICAgIHN0YXRlLmxldmVsID0gbGV2ZWxzLmxvZztcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSxcblxuICAvLyBzZXQgLyBnZXQgbGV2ZWxcbiAgbGV2ZWw6ICh2YWx1ZSA9IG51bGwpID0+IHtcbiAgICBpZiAoIXZhbHVlKSB7IHJldHVybiBmbk5hbWVzW2ZuTmFtZXMubGVuZ3RoIC0gc3RhdGUubGV2ZWxdOyB9XG4gICAgaWYgKCEodmFsdWUgaW4gbGV2ZWxzKSkgeyByZXR1cm4gZmFsc2U7IH1cbiAgICBzdGF0ZS5sZXZlbCA9IGxldmVsc1t2YWx1ZV07XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9LFxuXG4gIC8vIHNldCAvIGdldCBuYW1lXG4gIG5hbWU6IChuYW1lID0gbnVsbCkgPT4ge1xuICAgIGlmICh0eXBlb2YgbmFtZSAhPT0gJ3N0cmluZycpIHsgcmV0dXJuIHN0YXRlLm5hbWU7IH1cbiAgICBzdGF0ZS5uYW1lID0gbmFtZTtcbiAgICByZXR1cm4gbmFtZTtcbiAgfSxcblxuICAvLyBpbmplY3RvciBmb3IgdW5pdCB0ZXN0c1xuICBfaW5qZWN0OiAoYywgRCkgPT4ge1xuICAgIF9jb25zb2xlID0gYztcbiAgICBfRGF0ZSA9IEQ7XG4gIH1cblxufTtcbiJdfQ== |
@@ -52,2 +52,10 @@ 'use strict'; | ||
var logPrefixed = function logPrefixed(prefix, logFn) { | ||
return function (data) { | ||
logFn(data.toString().split('\n').slice(0, -1).map(function (s) { | ||
return prefix + ' ' + s; | ||
}).join('\n')); | ||
}; | ||
}; | ||
var startScript = function startScript() { | ||
@@ -58,8 +66,4 @@ var scriptFile = _path2.default.resolve(config.script); | ||
var script = (0, _child_process.spawn)(scriptFile, [config._target, config._last], { cwd: _path2.default.dirname(scriptFile) }); | ||
script.stdout.on('data', function (data) { | ||
return console.info('Script STDOUT:\n' + data.toString()); | ||
}); | ||
script.stderr.on('data', function (data) { | ||
return console.warn('Script STDERR\n:' + data.toString()); | ||
}); | ||
script.stdout.on('data', logPrefixed('*', console.info)); | ||
script.stderr.on('data', logPrefixed('!', console.warn)); | ||
script.on('error', function (err) { | ||
@@ -273,2 +277,2 @@ console.error('Failed to start script "' + scriptFile + '".'); | ||
exports.default = _module; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi90YXNrLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsIm9wdGlvbnMiLCJjb25maWciLCJkb3dubG9hZEVycm9yIiwiRVhJVF9DT0RFIiwic2NoZWR1bGVOZXh0IiwiX3NhdmUiLCJsYXN0IiwiX2xhc3QiLCJjZmdGaWxlIiwid3JpdGUiLCJjb25zb2xlIiwiaW5mbyIsInByb2Nlc3MiLCJleGl0Iiwic2V0VGltZW91dCIsInJ1biIsImludGVydmFsIiwic3RhcnRTY3JpcHQiLCJzY3JpcHRGaWxlIiwicmVzb2x2ZSIsInNjcmlwdCIsIl90YXJnZXQiLCJjd2QiLCJkaXJuYW1lIiwic3Rkb3V0Iiwib24iLCJkYXRhIiwidG9TdHJpbmciLCJzdGRlcnIiLCJ3YXJuIiwiZXJyIiwiZXJyb3IiLCJKU09OIiwic3RyaW5naWZ5IiwiY29kZSIsImUiLCJtZXNzYWdlIiwiY2NpRG93bmxvYWRPbmUiLCJfdXJscyIsImxlbmd0aCIsInVybCIsInBvcCIsImZpbGVuYW1lIiwic3BsaXQiLCJzdHJlYW1OYW1lIiwiam9pbiIsInN0cmVhbSIsImNyZWF0ZVdyaXRlU3RyZWFtIiwic3RhcnQiLCJEYXRlIiwiZ2V0VGltZSIsImdldCIsInF1ZXJ5IiwidG9rZW4iLCJ0aW1lb3V0IiwiZHVyIiwic3BsaWNlIiwibmV4dFRpY2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bnN0IGFwaVBhdGggPSBbJy9hcGkvdjEuMS9wcm9qZWN0JywgY29uZmlnLmhvc3RpbmcsIGNvbmZpZy5vcmdhbmlzYXRpb24sIGNvbmZpZy5wcm9qZWN0LCAndHJlZScsIGNvbmZpZy5icmFuY2hdLmpvaW4oJy8nKTtcbiAgY29uc29sZS5sb2coJ0dldHRpbmcgaW5mbyBhYm91dCBsYXN0IHN1Y2Nlc3NmdWwgYnVpbGQgb2YgJyArIGNvbmZpZy5fbmFtZSArICcuJyk7XG4gIHJlcXVlc3RcbiAgICAuZ2V0KCdodHRwczovL2NpcmNsZWNpLmNvbScgKyBhcGlQYXRoKVxuICAgIC5xdWVyeSh7ICdjaXJjbGUtdG9rZW4nOiBjb25maWcudG9rZW4sIGZpbHRlcjogJ3N1Y2Nlc3NmdWwnLCBsaW1pdDogMSB9KVxuICAgIC5zZXQoJ0FjY2VwdCcsICdhcHBsaWNhdGlvbi9qc29uJylcbiAgICAudGltZW91dChjb25maWcudGltZW91dCAqIDEwMDApXG4gICAgLmVuZChjY2lCdWlsZEluZm9IYW5kbGVyKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IG1vZHVsZTtcbiJdfQ== |
@@ -7,3 +7,3 @@ 'use strict'; | ||
// generated code, please see package.json | ||
exports.default = '2.1.1'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi92ZXJzaW9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7a0JBQ2UsTyIsImZpbGUiOiJ2ZXJzaW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gZ2VuZXJhdGVkIGNvZGUsIHBsZWFzZSBzZWUgcGFja2FnZS5qc29uXG5leHBvcnQgZGVmYXVsdCAnMi4xLjEnO1xuIl19 | ||
exports.default = '2.2.0'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi92ZXJzaW9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7a0JBQ2UsTyIsImZpbGUiOiJ2ZXJzaW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gZ2VuZXJhdGVkIGNvZGUsIHBsZWFzZSBzZWUgcGFja2FnZS5qc29uXG5leHBvcnQgZGVmYXVsdCAnMi4yLjAnO1xuIl19 |
{ | ||
"name": "cci-pingu", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Periodically check for new builds (artifacts) on CircleCI and install them in turn", | ||
@@ -38,3 +38,3 @@ "license": "MIT", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"eslint": "^4.10.0", | ||
"eslint": "^4.13.1", | ||
"eslint-config-standard": "^10.2.1", | ||
@@ -49,4 +49,4 @@ "eslint-plugin-import": "^2.8.0", | ||
"argv": "0.0.2", | ||
"superagent": "^3.8.0" | ||
"superagent": "^3.8.2" | ||
} | ||
} |
@@ -77,2 +77,3 @@ [![Dependency Status](https://img.shields.io/david/salsita/cci-pingu.svg)](https://david-dm.org/salsita/cci-pingu) | ||
| `--silent` | `-s` | | boolean | Log errors only. | | ||
| `--no-time` | | | boolean | Do NOT prefix output lines with timestamp and log-level. | | ||
| `--run-once` | `-1` | | boolean | Do NOT run as a monitoring daemon. | | ||
@@ -79,0 +80,0 @@ | `--help` | `-h` | | boolean | Print help and exit. | |
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
82780
617
149
Updatedsuperagent@^3.8.2