diff --git a/.travis.yml b/.travis.yml index 8efdf2a5..2a0e72ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,9 @@ sudo: false node_js: - '4' - - '5' - '6' - - '7' - '8' + - '10' env: global: @@ -37,7 +36,8 @@ before_script: script: - npm test - - npm audit + + after_script: - npm run coveralls diff --git a/lib/logging.js b/lib/logging.js index 575fe8b1..94f962cf 100644 --- a/lib/logging.js +++ b/lib/logging.js @@ -4,7 +4,6 @@ var Util = require('util') var Stringify = require('json-stringify-safe') -var LogFilter = require('seneca-log-filter') var _ = require('lodash') var Print = require('./print') @@ -41,7 +40,7 @@ logging.preload = function() { } } - var logrouter = LogFilter(logspec) + var logrouter = logfilter(logspec) var logger = function(seneca, data) { if (logrouter(data)) { @@ -144,3 +143,94 @@ logging.preload = function() { } } } + + +// TODO: needs massive refactor + +function logfilter(options) { + let level = options.level || 'info+' + + let calculatedLevels = [] + + if (level_exists(level)) { + calculatedLevels.push(level) + } else if (_.endsWith(level, '+')) { + // Level + notation + calculatedLevels = log_level_plus(level.substring(0, level.length - 1)) + } else { + // No level nor level+... it must be a custom alias + let processedAliases = Object.assign({}, aliases, options.aliases) + let aliasInfo = processedAliases[level] + if (aliasInfo) { + let handled = _.get(aliasInfo, 'handled', true) + if (handled) { + calculatedLevels = aliasInfo.handler(options) + } + } + } + + return function filter(data) { + if (calculatedLevels.indexOf(data.level) !== -1) { + let cloned = _.clone(data) + if (options['omit-metadata']) { + cloned = _.omit(cloned, ['seneca', 'level', 'when']) + } + if (options.omit && _.isArray(options.omit)) { + cloned = _.omit(cloned, options.omit) + } + return cloned + } + return null + } +} + + +var aliases = { + silent: { + handled: true, + handler: function() { + return [] + } + }, + all: { + handled: true, + handler: function() { + return ['debug', 'info', 'warn', 'error', 'fatal'] + } + }, + test: { + handled: true, + handler: function() { + return ['error', 'fatal'] + } + } +} + + +const log_levels = ['debug', 'info', 'warn', 'error', 'fatal'] + +/** + * It returns the levels above the argument + * @param {String} logLevel the log level to calculate + * @return {Array} the list of logs above the argument + */ +function log_level_plus(logLevel) { + let index = log_levels.indexOf(logLevel) + if (index < 0) { + return [] + } else { + return log_levels.slice(index, log_levels.length) + } +} + +/** + * Checks if a log level exists + * @param {string} level the level itself + * @return {boolean} true if the level exists + */ +function level_exists(level) { + return log_levels.indexOf(level) !== -1 +} + +module.exports.log_level_plus = log_level_plus +module.exports.level_exists = level_exists diff --git a/package-lock.json b/package-lock.json index 3434eba4..8f62aec4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -226,9 +226,9 @@ "dev": true }, "boom": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/boom/-/boom-3.2.2.tgz", - "integrity": "sha1-DwzF0ErcUAO4x9cfQsynJx/vDng=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", "requires": { "hoek": "4.x.x" }, @@ -461,38 +461,6 @@ "inherits": "^2.0.3", "readable-stream": "^2.2.2", "typedarray": "^0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } } }, "core-util-is": { @@ -531,23 +499,6 @@ "dev": true, "requires": { "boom": "5.x.x" - }, - "dependencies": { - "boom": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", - "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", - "dev": true, - "requires": { - "hoek": "4.x.x" - } - }, - "hoek": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", - "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==", - "dev": true - } } }, "dashdash": { @@ -641,18 +592,11 @@ } }, "eraro": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/eraro/-/eraro-0.4.1.tgz", - "integrity": "sha1-ZThzB2mh6J/8Pwx+LJTVofhmYp0=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/eraro/-/eraro-1.0.0.tgz", + "integrity": "sha512-JeEqKyNgOxZNji2otWWDCDu1sWqGkrIBBhoGQH0LrPZObccQW8CoD94xkOtpmmlHeY/frG8IwR+jeCS8SQA/Xw==", "requires": { - "lodash": "~2.4.1" - }, - "dependencies": { - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=" - } + "lodash": "4.17" } }, "escape-string-regexp": { @@ -921,18 +865,11 @@ } }, "gex": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/gex/-/gex-0.2.2.tgz", - "integrity": "sha1-LUCdJDCVlwjaVc9WKUxk9tiXNIc=", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/gex/-/gex-0.3.0.tgz", + "integrity": "sha512-A1F2DMZUAnieFmVowt1QHcH7AJQZApRThR+z4C0GlzMGi6VYUAf9UvQdxODiCajGPGSRso86YJQ48E8+b5CBAQ==", "requires": { - "lodash": "3.10.0" - }, - "dependencies": { - "lodash": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.0.tgz", - "integrity": "sha1-k9UcZygopEFqEq9XIguoqHN+L7s=" - } + "lodash": "4.17" } }, "glob": { @@ -1224,9 +1161,9 @@ "dev": true }, "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "isemail": { "version": "2.2.1", @@ -1443,12 +1380,12 @@ "dev": true }, "lru-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz", - "integrity": "sha1-E0OVXtry432bnn7nJB4nxLn7cr4=", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", + "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", "requires": { - "pseudomap": "^1.0.1", - "yallist": "^2.0.0" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "marked": { @@ -1528,13 +1465,14 @@ "dev": true }, "ndjson": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/ndjson/-/ndjson-1.4.3.tgz", - "integrity": "sha1-eqAm/jqzin2horStB7EAjnM+sjk=", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/ndjson/-/ndjson-1.5.0.tgz", + "integrity": "sha1-rmA7NrE0vOw0e0UkIrC/mNWDLsg=", "requires": { + "json-stringify-safe": "^5.0.1", "minimist": "^1.2.0", - "split2": "^0.2.1", - "through2": "^0.6.1" + "split2": "^2.1.0", + "through2": "^2.0.3" } }, "nid": { @@ -1549,19 +1487,12 @@ "dev": true }, "norma": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/norma/-/norma-0.3.0.tgz", - "integrity": "sha1-JyZcNBEBjDLJPucZ9pLPkN7Fq2Q=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/norma/-/norma-0.4.1.tgz", + "integrity": "sha512-BSnU+B35GzJgkEcNqiMIm79507Qg68O5L7gRVKATRSx17BHyDn0gVJsi3YzoANC1NbBoKRExwd3KsEZSUox63Q==", "requires": { - "eraro": "~0.4.1", - "lodash": "~2.4.1" - }, - "dependencies": { - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=" - } + "eraro": "1.0", + "lodash": "4.17" } }, "oauth-sign": { @@ -1656,19 +1587,12 @@ "dev": true }, "patrun": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/patrun/-/patrun-0.5.1.tgz", - "integrity": "sha1-W/83V/Tz/SvftqBNJ5QsvsPhLxw=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/patrun/-/patrun-1.0.0.tgz", + "integrity": "sha512-oemWSuxjb27nPkREl88BxZ2EFDFUKSPace+zYZjFKj2xFn6w/LgDFGptgQvme384As2gpEFIv4WMVE1cb9lDXQ==", "requires": { - "gex": "0.2.2", - "lodash": "4.15.0" - }, - "dependencies": { - "lodash": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.15.0.tgz", - "integrity": "sha1-MWI5HY8BQKoiz49rPDTWt/Y9Oqk=" - } + "gex": "0.3", + "lodash": "4.17" } }, "performance-now": { @@ -1724,8 +1648,7 @@ "process-nextick-args": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" }, "progress": { "version": "2.0.0", @@ -1750,14 +1673,17 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "reconnect-core": { @@ -1887,8 +1813,7 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safer-buffer": { "version": "2.1.2", @@ -1908,24 +1833,16 @@ "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" }, "seneca-entity": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/seneca-entity/-/seneca-entity-2.0.2.tgz", - "integrity": "sha1-Ag6nwzdN0J/mXYjSDRsMj59IO5g=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/seneca-entity/-/seneca-entity-2.1.0.tgz", + "integrity": "sha512-EgKSzcj9RN4EucMEq+sPCGQhi+flMOy6I87tRRx1w3QJAq9PR9HbevVIOGpQtIwqzSVQwCszp1PGIJ2+V0x7cQ==", "dev": true, "requires": { - "eraro": "0.4.1", - "jsonic": "0.3.0", - "lodash": "4.17.4", - "nid": "0.3.2", - "seneca-mem-store": "1.0.0" - }, - "dependencies": { - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", - "dev": true - } + "eraro": "1.0", + "jsonic": "0.3", + "lodash": "4.17", + "nid": "0.3", + "seneca-mem-store": "1.1" } }, "seneca-error-test": { @@ -1934,101 +1851,31 @@ "integrity": "sha1-BlpaT+4JEkFtmePwBIAr0MInYwM=", "dev": true }, - "seneca-log-filter": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/seneca-log-filter/-/seneca-log-filter-0.1.0.tgz", - "integrity": "sha1-9RPed9/cwSACP4R6fGDO7Qr8ZrM=", - "requires": { - "lodash": "4.15.0" - }, - "dependencies": { - "lodash": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.15.0.tgz", - "integrity": "sha1-MWI5HY8BQKoiz49rPDTWt/Y9Oqk=" - } - } - }, "seneca-mem-store": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/seneca-mem-store/-/seneca-mem-store-1.0.0.tgz", - "integrity": "sha1-w5hevWApkzs7SuuRwz72/mvFO4k=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/seneca-mem-store/-/seneca-mem-store-1.1.0.tgz", + "integrity": "sha512-zzi3DC0oKTqmW1Wm7qT5eQqCD65XK/IZcyFyF06kLGpzzUWCgJMvgkWUyQgleat43/HYgNwn07LP8VNvi6+Ycw==", "dev": true, "requires": { - "lodash": "4.15.0" - }, - "dependencies": { - "lodash": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.15.0.tgz", - "integrity": "sha1-MWI5HY8BQKoiz49rPDTWt/Y9Oqk=", - "dev": true - } + "lodash": "4.17" } }, "seneca-transport": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/seneca-transport/-/seneca-transport-2.1.1.tgz", - "integrity": "sha1-/40aAzW/4DfKfO3fJ4KL3VUpKiI=", - "requires": { - "eraro": "0.4.1", - "gex": "0.2.2", - "jsonic": "0.2.2", - "lodash": "4.15.0", - "lru-cache": "4.0.1", - "ndjson": "1.4.3", - "nid": "0.3.2", - "patrun": "0.5.0", - "qs": "6.2.1", - "reconnect-core": "1.3.0", - "wreck": "9.0.0" - }, - "dependencies": { - "hoek": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", - "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==" - }, - "jsonic": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/jsonic/-/jsonic-0.2.2.tgz", - "integrity": "sha1-Enu5nfTYIWUsSKI9AlzysW5hhJE=" - }, - "lodash": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.15.0.tgz", - "integrity": "sha1-MWI5HY8BQKoiz49rPDTWt/Y9Oqk=" - }, - "patrun": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/patrun/-/patrun-0.5.0.tgz", - "integrity": "sha1-d6UfdzrEkxuzU/1B1Z3mR4/GEY0=", - "requires": { - "gex": "0.2.2", - "lodash": "3.10.0" - }, - "dependencies": { - "lodash": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.0.tgz", - "integrity": "sha1-k9UcZygopEFqEq9XIguoqHN+L7s=" - } - } - }, - "qs": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.1.tgz", - "integrity": "sha1-zgPF/wk1vB2daanxTL0Y5WjWdiU=" - }, - "wreck": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/wreck/-/wreck-9.0.0.tgz", - "integrity": "sha1-HeY9SbsHuU/nGIZLi+YxduYzMew=", - "requires": { - "boom": "3.x.x", - "hoek": "4.x.x" - } - } + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/seneca-transport/-/seneca-transport-2.2.0.tgz", + "integrity": "sha512-lnOJ4mptsao/hZfLsK945NUBXJdwk3yI5zMgQtCfixmAxTCZ0Un3lq+TVdPk3fmDwjstjHV/URnVZPDFO3iVHA==", + "requires": { + "eraro": "1.0", + "gex": "0.3", + "jsonic": "0.3", + "lodash": "4.17", + "lru-cache": "4.1", + "ndjson": "1.5", + "nid": "0.3", + "patrun": "1.0", + "qs": "6.5", + "reconnect-core": "1.3", + "wreck": "12.5" } }, "shebang-command": { @@ -2102,11 +1949,11 @@ } }, "split2": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/split2/-/split2-0.2.1.tgz", - "integrity": "sha1-At2smtwD7Au3jBKC7Aecpuha6QA=", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", "requires": { - "through2": "~0.6.1" + "through2": "^2.0.2" } }, "sprintf-js": { @@ -2142,9 +1989,12 @@ } }, "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } }, "stringstream": { "version": "0.0.5", @@ -2219,12 +2069,12 @@ "dev": true }, "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" + "readable-stream": "^2.1.5", + "xtend": "~4.0.1" } }, "tmp": { @@ -2334,20 +2184,19 @@ "dev": true }, "use-plugin": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/use-plugin/-/use-plugin-1.0.1.tgz", - "integrity": "sha512-YvMHbxcYFxNuNPpZ9v9KnYUJ5H9fBWeQ+K7PSkHS+mDaNeM7r/PYEjc3Hnz1InAJcnSdOsweAUl96ZP4MMajTg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/use-plugin/-/use-plugin-1.0.2.tgz", + "integrity": "sha512-46ZNYmSDMgyCBsUIPwLFWzY45jIu4sHFKKq3/M63XCd/RxvliC4qRVWtUAWEexP7q8X1MHJ2Br1U5KLkVFcQCw==", "requires": { - "eraro": "0.4", + "eraro": "1.0", "nid": "0.3", - "norma": "0.3" + "norma": "0.4" } }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, "uuid": { "version": "3.2.1", @@ -2403,14 +2252,6 @@ "hoek": "4.x.x" }, "dependencies": { - "boom": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", - "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", - "requires": { - "hoek": "4.x.x" - } - }, "hoek": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", diff --git a/package.json b/package.json index ad16e5c8..998606d2 100644 --- a/package.json +++ b/package.json @@ -74,26 +74,25 @@ "coverage": "lab -v -P test -L -t 85 -r html > docs/coverage.html", "annotate": "docco seneca.js lib/*.js -o docs/annotated", "smoke": "node test/stubs/launch.js", - "prettier": "prettier --write --no-semi --single-quote seneca.js lib/*.js test/*.js" + "prettier": "prettier --write --no-semi --single-quote *.js lib/*.js test/*.js" }, "dependencies": { "archy": "1.0", - "eraro": "0.4", + "eraro": "1.0", "gate-executor": "1.1", - "gex": "0.2", + "gex": "0.3", "json-stringify-safe": "5.0", "jsonic": "0.3", "lodash": "4.17", "minimist": "1.2", "nid": "0.3", - "norma": "0.3", + "norma": "0.4", "ordu": "0.1", - "patrun": "0.5", + "patrun": "1.0", "qs": "6.5", "rolling-stats": "0.1", "semver": "5.5", - "seneca-log-filter": "0.1", - "seneca-transport": "2.1", + "seneca-transport": "2.2", "use-plugin": "1.0", "wreck": "12.5" }, @@ -106,7 +105,7 @@ "hoek": "5", "lab": "14", "prettier": "1", - "seneca-entity": "2", + "seneca-entity": "2.1", "seneca-error-test": "0" } }