diff --git a/packages/nightingale-debug/.pob.json b/packages/nightingale-debug/.pob.json index e3f794ceb..56211b6dc 100644 --- a/packages/nightingale-debug/.pob.json +++ b/packages/nightingale-debug/.pob.json @@ -1,12 +1,19 @@ { "envs": [ "node6", + "node7", "older-node", "webpack-modern-browsers", "webpack", + "webpack-node7", "browsers" ], "react": false, "documentation": false, - "testing": true + "testing": true, + "entries": [ + "index" + ], + "flow": false, + "doclets": false } diff --git a/packages/nightingale-debug/.travis.yml b/packages/nightingale-debug/.travis.yml index 3a87c4128..75900b7e7 100644 --- a/packages/nightingale-debug/.travis.yml +++ b/packages/nightingale-debug/.travis.yml @@ -1,8 +1,10 @@ language: node_js node_js: + - node - "6" - "4" cache: + yarn: true directories: - node_modules diff --git a/packages/nightingale-debug/README.md b/packages/nightingale-debug/README.md index 71091fbdc..f21d5ba7f 100644 --- a/packages/nightingale-debug/README.md +++ b/packages/nightingale-debug/README.md @@ -1,9 +1,9 @@ # nightingale-debug [![NPM version][npm-image]][npm-url] -Nightingale console debug +Nightingale debug -[![Circle ci Status][build-status-image]][build-status-url] -[![Travis ci Status][travisci-status-image]][travisci-status-url] +[![Build Status][circleci-status-image]][circleci-status-url] +[![Travis Status][travisci-status-image]][travisci-status-url] [![Dependency ci Status][dependencyci-image]][dependencyci-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coverage-image]][coverage-url] @@ -60,13 +60,14 @@ localStorage.debug = '*,-app:*'; // debug everything except app and all its chil [npm-image]: https://img.shields.io/npm/v/nightingale-debug.svg?style=flat-square [npm-url]: https://npmjs.org/package/nightingale-debug -[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-debug/badge?style=flat-square -[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-debug [daviddm-image]: https://david-dm.org/nightingalejs/nightingale-debug.svg?style=flat-square [daviddm-url]: https://david-dm.org/nightingalejs/nightingale-debug -[build-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-debug/master.svg?style=flat-square -[build-status-url]: https://circleci.com/gh/nightingalejs/nightingale-debug +[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-debug/badge?style=flat-square +[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-debug +[circleci-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-debug/master.svg?style=flat-square +[circleci-status-url]: https://circleci.com/gh/nightingalejs/nightingale-debug [travisci-status-image]: https://img.shields.io/travis/nightingalejs/nightingale-debug/master.svg?style=flat-square [travisci-status-url]: https://travis-ci.org/nightingalejs/nightingale-debug [coverage-image]: https://img.shields.io/codecov/c/github/nightingalejs/nightingale-debug/master.svg?style=flat-square [coverage-url]: https://codecov.io/gh/nightingalejs/nightingale-debug +[docs-coverage-url]: https://nightingalejs.github.io/nightingale-debug/coverage/lcov-report/ diff --git a/packages/nightingale-debug/circle.yml b/packages/nightingale-debug/circle.yml index 53f46c079..142cca9ce 100644 --- a/packages/nightingale-debug/circle.yml +++ b/packages/nightingale-debug/circle.yml @@ -1,6 +1,6 @@ machine: node: - version: 6.9.1 + version: 7.6.0 general: branches: @@ -9,18 +9,19 @@ general: dependencies: cache_directories: + - ~/.cache/yarn - node_modules override: - - npm prune && npm install --no-progress + - yarn test: pre: - mkdir -p $CIRCLE_TEST_REPORTS/junit/ override: - - npm run preversion - - npm run test + - yarn run preversion + - yarn run test - XUNIT_FILE=$CIRCLE_TEST_REPORTS/junit/xunit.xml node_modules/.bin/mocha --harmony --recursive --reporter xunit-file -u tdd test/node6 - - npm run generate:test-coverage + - yarn run generate:test-coverage post: - bash <(curl -s https://codecov.io/bash) - cp -R coverage $CIRCLE_ARTIFACTS/ diff --git a/packages/nightingale-debug/git-hooks/post-checkout b/packages/nightingale-debug/git-hooks/post-checkout index b1b3d413d..b8f3d35af 100755 --- a/packages/nightingale-debug/git-hooks/post-checkout +++ b/packages/nightingale-debug/git-hooks/post-checkout @@ -1,5 +1,5 @@ #!/bin/bash if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then - npm install ; npm prune + yarn fi diff --git a/packages/nightingale-debug/git-hooks/post-merge b/packages/nightingale-debug/git-hooks/post-merge index b1b3d413d..b8f3d35af 100755 --- a/packages/nightingale-debug/git-hooks/post-merge +++ b/packages/nightingale-debug/git-hooks/post-merge @@ -1,5 +1,5 @@ #!/bin/bash if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then - npm install ; npm prune + yarn fi diff --git a/packages/nightingale-debug/index.js b/packages/nightingale-debug/index.js index fd37b4c51..893bef951 100644 --- a/packages/nightingale-debug/index.js +++ b/packages/nightingale-debug/index.js @@ -1,4 +1,6 @@ var production = process.env.NODE_ENV === 'production'; +if (process.version.startsWith && process.version.startsWith('v7.')) + return module.exports = require('./lib-node7' + (production ? '' : '-dev') + '/index'); if (process.version.startsWith && process.version.startsWith('v6.')) - return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/'); -return module.exports = require('./lib-older-node' + (production ? '' : '-dev') + '/'); + return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/index'); +return module.exports = require('./lib-older-node' + (production ? '' : '-dev') + '/index'); diff --git a/packages/nightingale-debug/lib-browsers-dev/index.js b/packages/nightingale-debug/lib-browsers-dev/index.js index 26b164d1f..2438c7751 100644 --- a/packages/nightingale-debug/lib-browsers-dev/index.js +++ b/packages/nightingale-debug/lib-browsers-dev/index.js @@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = createFindDebugLevel; -var _tcombForked = require('tcomb-forked'); - -var _tcombForked2 = _interopRequireDefault(_tcombForked); - var _nightingaleLevels = require('nightingale-levels'); var _nightingaleLevels2 = _interopRequireDefault(_nightingaleLevels); +var _flowRuntime = require('flow-runtime'); + +var _flowRuntime2 = _interopRequireDefault(_flowRuntime); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var specialRegexpChars = /[\\^$+?.()|[\]{}]/; -var DebugValueType = _tcombForked2.default.union([_tcombForked2.default.String, RegExp, _tcombForked2.default.list(_tcombForked2.default.union([_tcombForked2.default.String, RegExp]))], 'DebugValueType'); +var DebugValueType = _flowRuntime2.default.type('DebugValueType', _flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'), _flowRuntime2.default.array(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'))))); var createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); @@ -41,22 +41,24 @@ var createTestFunctionFromValue = function createTestFunctionFromValue(value) { }; function createFindDebugLevel(debugValue) { - _assert(debugValue, _tcombForked2.default.maybe(DebugValueType), 'debugValue'); + var _debugValueType = _flowRuntime2.default.nullable(DebugValueType); - debugValue = debugValue || ''; + _flowRuntime2.default.param('debugValue', _debugValueType).assert(debugValue); + + debugValue = _debugValueType.assert(debugValue || ''); var wilcard = false; var debugValues = []; var skips = []; if (!Array.isArray(debugValue)) { - debugValue = debugValue.trim(); + debugValue = _debugValueType.assert(debugValue.trim()); if (debugValue.startsWith('/')) { debugValues.push(createTestFunctionFromRegexpString(debugValue)); - debugValue = null; + debugValue = _debugValueType.assert(null); } else { - debugValue = debugValue.split(/[\s,]+/); + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); } } @@ -97,7 +99,9 @@ function createFindDebugLevel(debugValue) { if (debugValues.length === 0) { return function (minLevel) { - _assert(minLevel, _tcombForked2.default.Number, 'minLevel'); + var _minLevelType = _flowRuntime2.default.number(); + + _flowRuntime2.default.param('minLevel', _minLevelType).assert(minLevel); return minLevel; }; @@ -119,22 +123,4 @@ function createFindDebugLevel(debugValue) { return minLevel; }; } - -function _assert(x, type, name) { - function message() { - return 'Invalid value ' + _tcombForked2.default.stringify(x) + ' supplied to ' + name + ' (expected a ' + _tcombForked2.default.getTypeName(type) + ')'; - } - - if (_tcombForked2.default.isType(type)) { - if (!type.is(x)) { - type(x, [name + ': ' + _tcombForked2.default.getTypeName(type)]); - - _tcombForked2.default.fail(message()); - } - } else if (!(x instanceof type)) { - _tcombForked2.default.fail(message()); - } - - return x; -} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-browsers-dev/index.js.map b/packages/nightingale-debug/lib-browsers-dev/index.js.map index 58af5a430..3a79d8631 100644 --- a/packages/nightingale-debug/lib-browsers-dev/index.js.map +++ b/packages/nightingale-debug/lib-browsers-dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","DebugValueType","RegExp","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","slice","test","string","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;;;;;AArBxB;;;;;;AAEA,IAAMC,qBAAqB,mBAA3B;;IAEKC,c,8DAA0BC,M,wFAAwBA,M;;AAEvD,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIL,MAAJ,CAAWE,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUD,OAAOE,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP;AACD,CAJD;;AAMA,IAAMC,8BAA8B,SAA9BA,2BAA8B,CAACP,KAAD,EAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;AACxBD,YAAQA,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAR;AACA,WAAO;AAAA,aAAUE,OAAOE,UAAP,CAAkBR,KAAlB,CAAV;AAAA,KAAP;AACD;;AAED,SAAO;AAAA,WAAUM,WAAWN,KAArB;AAAA,GAA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A,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,cAACA,QAAD;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;;;;;AAEA,IAAMC,qBAAqB,mBAA3B;;AAEA,kEAAsB,4DAAS,mCAAT,EAAkB,4BAAM,4DAAS,mCAAT,CAAN,CAAlB,CAAtB;;AAEA,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUF,OAAOG,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP;AACD,CAJD;;AAMA,IA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EAAc;AACnBC,oBAAYK,IAAZ,CAAiBT,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIW,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO;AAAA,eAAc,4BAAOC,GAArB;AAAA,OAAP;AACD,KAFD,MAEO;AACL,aAAO,UAACC,QAAD,EAAWC,GAAX;AAAA,eACLX,MAAMY,IAAN,CAAW;AAAA,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,0BAAS,8BAAT;;AAAA;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node6-dev/index.js b/packages/nightingale-debug/lib-node6-dev/index.js index 50c1ced74..e16a9ef3f 100644 --- a/packages/nightingale-debug/lib-node6-dev/index.js +++ b/packages/nightingale-debug/lib-node6-dev/index.js @@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = createFindDebugLevel; -var _tcombForked = require('tcomb-forked'); - -var _tcombForked2 = _interopRequireDefault(_tcombForked); - var _nightingaleLevels = require('nightingale-levels'); var _nightingaleLevels2 = _interopRequireDefault(_nightingaleLevels); +var _flowRuntime = require('flow-runtime'); + +var _flowRuntime2 = _interopRequireDefault(_flowRuntime); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const specialRegexpChars = /[\\^$+?.()|[\]{}]/; -const DebugValueType = _tcombForked2.default.union([_tcombForked2.default.String, RegExp, _tcombForked2.default.list(_tcombForked2.default.union([_tcombForked2.default.String, RegExp]))], 'DebugValueType'); +const DebugValueType = _flowRuntime2.default.type('DebugValueType', _flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'), _flowRuntime2.default.array(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'))))); const createTestFunctionFromRegexpString = value => { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); @@ -35,29 +35,31 @@ const createTestFunctionFromValue = value => { }; function createFindDebugLevel(debugValue) { - _assert(debugValue, _tcombForked2.default.maybe(DebugValueType), 'debugValue'); + let _debugValueType = _flowRuntime2.default.nullable(DebugValueType); - debugValue = debugValue || ''; + _flowRuntime2.default.param('debugValue', _debugValueType).assert(debugValue); + + debugValue = _debugValueType.assert(debugValue || ''); let wilcard = false; const debugValues = []; const skips = []; if (!Array.isArray(debugValue)) { - debugValue = debugValue.trim(); + debugValue = _debugValueType.assert(debugValue.trim()); if (debugValue.startsWith('/')) { debugValues.push(createTestFunctionFromRegexpString(debugValue)); - debugValue = null; + debugValue = _debugValueType.assert(null); } else { - debugValue = debugValue.split(/[\s,]+/); + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); } } if (debugValue) { debugValue.forEach(value => { if (specialRegexpChars.test(value)) { - throw new Error(`Invalid debug value: "${ value }" (contains special chars)`); + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); } if (!value) return; @@ -85,7 +87,9 @@ function createFindDebugLevel(debugValue) { if (debugValues.length === 0) { return minLevel => { - _assert(minLevel, _tcombForked2.default.Number, 'minLevel'); + let _minLevelType = _flowRuntime2.default.number(); + + _flowRuntime2.default.param('minLevel', _minLevelType).assert(minLevel); return minLevel; }; @@ -103,22 +107,4 @@ function createFindDebugLevel(debugValue) { return minLevel; }; } - -function _assert(x, type, name) { - function message() { - return 'Invalid value ' + _tcombForked2.default.stringify(x) + ' supplied to ' + name + ' (expected a ' + _tcombForked2.default.getTypeName(type) + ')'; - } - - if (_tcombForked2.default.isType(type)) { - if (!type.is(x)) { - type(x, [name + ': ' + _tcombForked2.default.getTypeName(type)]); - - _tcombForked2.default.fail(message()); - } - } else if (!(x instanceof type)) { - _tcombForked2.default.fail(message()); - } - - return x; -} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node6-dev/index.js.map b/packages/nightingale-debug/lib-node6-dev/index.js.map index 25e92311a..ce52dfc4b 100644 --- a/packages/nightingale-debug/lib-node6-dev/index.js.map +++ b/packages/nightingale-debug/lib-node6-dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","DebugValueType","RegExp","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;;;;;AArBxB;;;;;;AAEA,MAAMC,qBAAqB,mBAA3B;;MAEKC,c,8DAA0BC,M,wFAAwBA,M;;AAEvD,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIL,MAAJ,CAAWE,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAOC,UAAUF,OAAOG,IAAP,CAAYD,MAAZ,CAAjB;AACD,CAJD;;AAMA,MAAME,8BAA+BP,KAAD,IAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;A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AAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAc,4BAAOC,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD;AAAA,cAACA,QAAD;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;;;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAEA,oEAAsB,4DAAS,mCAAT,EAAkB,4BAAM,4DAAS,mCAAT,CAAN,CAAlB,CAAtB;;AAEA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAOC,UAAUH,OAAOI,IA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L,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBT,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIW,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAc,4BAAOC,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD;AAAA,0BAAS,8BAAT;;AAAA;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node6/index.js b/packages/nightingale-debug/lib-node6/index.js index 368da6207..70a8eccde 100644 --- a/packages/nightingale-debug/lib-node6/index.js +++ b/packages/nightingale-debug/lib-node6/index.js @@ -49,7 +49,7 @@ function createFindDebugLevel(debugValue) { if (debugValue) { debugValue.forEach(value => { if (specialRegexpChars.test(value)) { - throw new Error(`Invalid debug value: "${ value }" (contains special chars)`); + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); } if (!value) return; diff --git a/packages/nightingale-debug/lib-node6/index.js.map b/packages/nightingale-debug/lib-node6/index.js.map index c257d37d5..9b1ce5fce 100644 --- a/packages/nightingale-debug/lib-node6/index.js.map +++ b/packages/nightingale-debug/lib-node6/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAIA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAOC,UAAUH,OAAOI,IAAP,CAAYD,MAAZ,CAAjB;AACD,CAJD;;AAMA,MAAME,8BAA+BR,KAAD,IAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;AACxBD,YAAQA,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAR;AACA,WAAOC,UAAUA,OAAOG,UAAP,CAAkBT,KAAlB,CAAjB;AACD;;AAED,SAAOM,UAAUA,WAAWN,KAA5B;AACD,CAPD;;AASe,SAASH,oBAAT,CAA8Ba,UAA9B,EAA2D;AACxEA,eAAcA,cAAc,EAA5B;;AAEA,MAAIC,UAAU,KAAd;AACA,QAAMC,gBAAN;AACA,QAAMC,UAAN;;AAEA,MAAI,CAACC,MAAMC,OAAN,CAAcL,UAAd,CAAL,EAAgC;AAC9BA,iBAAaA,WAAWM,IAAX,EAAb;;AAEA,QAAIN,WAAWD,UAAX,CAAsB,GAAtB,CAAJ,EAAgC;AAC9BG,kBAAYK,IAAZ,CAAiBlB,mCAAmCW,UAAnC,CAAjB;AACAA,mBAAa,IAAb;AACD,KAHD,MAGO;AACLA,mBAAaA,WAAWQ,KAAX,CAA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AED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAIA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAOC,UAAUH,OAAOI,IAAP,CAAYD,MAAZ,CAAjB;AACD,CAJD;;AAMA,MAAME,8BAA+BR,KAAD,IAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;AACxBD,YAAQA,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAR;AACA,WAAOC,UAAUA,OAAOG,UAAP,CAAkBT,KAAlB,CAAjB;AACD;;AAED,SAAOM,UAAUA,WAAWN,KAA5B;AACD,CAPD;;AASe,SAASH,oBAAT,CAA8Ba,UAA9B,EAA2D;AACxEA,eAAcA,cAAc,EAA5B;;AAEA,MAAIC,UAAU,KAAd;AACA,QAAMC,gBAAN;AACA,QAAMC,UAAN;;AAEA,MAAI,CAACC,MAAMC,OAAN,CAAcL,UAAd,CAAL,EAAgC;AAC9BA,iBAAaA,WAAWM,IAAX,EAAb;;AAEA,QAAIN,WAAWD,UAAX,CAAsB,GAAtB,CAAJ,EAAgC;AAC9BG,kBAAYK,IAAZ,CAAiBlB,mCAAmCW,UAAnC,CAAjB;AACAA,mBAAa,IAAb;AACD,KAHD,MAGO;AACLA,mBAAaA,WAAWQ,KAAX,CAAiB,QAAjB,CAAb;AACD;AACF;;AAED,MAAIR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.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node7-dev/index.js b/packages/nightingale-debug/lib-node7-dev/index.js new file mode 100644 index 000000000..e16a9ef3f --- /dev/null +++ b/packages/nightingale-debug/lib-node7-dev/index.js @@ -0,0 +1,110 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = createFindDebugLevel; + +var _nightingaleLevels = require('nightingale-levels'); + +var _nightingaleLevels2 = _interopRequireDefault(_nightingaleLevels); + +var _flowRuntime = require('flow-runtime'); + +var _flowRuntime2 = _interopRequireDefault(_flowRuntime); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; + +const DebugValueType = _flowRuntime2.default.type('DebugValueType', _flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'), _flowRuntime2.default.array(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'))))); + +const createTestFunctionFromRegexpString = value => { + if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); + const regexp = new RegExp(value.slice(1, -1)); + return string => regexp.test(string); +}; + +const createTestFunctionFromValue = value => { + if (value.endsWith(':*')) { + value = value.slice(0, -2); + return string => string.startsWith(value); + } + + return string => string === value; +}; + +function createFindDebugLevel(debugValue) { + let _debugValueType = _flowRuntime2.default.nullable(DebugValueType); + + _flowRuntime2.default.param('debugValue', _debugValueType).assert(debugValue); + + debugValue = _debugValueType.assert(debugValue || ''); + + let wilcard = false; + const debugValues = []; + const skips = []; + + if (!Array.isArray(debugValue)) { + debugValue = _debugValueType.assert(debugValue.trim()); + + if (debugValue.startsWith('/')) { + debugValues.push(createTestFunctionFromRegexpString(debugValue)); + debugValue = _debugValueType.assert(null); + } else { + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); + } + } + + if (debugValue) { + debugValue.forEach(value => { + if (specialRegexpChars.test(value)) { + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); + } + + if (!value) return; + + if (value === '*') { + wilcard = true; + return; + } + + if (value.startsWith('-')) { + skips.push(createTestFunctionFromValue(value.substr(1))); + } else if (!wilcard) { + debugValues.push(createTestFunctionFromValue(value)); + } + }); + } + + if (wilcard) { + if (skips.length === 0) { + return () => _nightingaleLevels2.default.ALL; + } else { + return (minLevel, key) => skips.some(skip => skip(key)) ? minLevel : _nightingaleLevels2.default.ALL; + } + } + + if (debugValues.length === 0) { + return minLevel => { + let _minLevelType = _flowRuntime2.default.number(); + + _flowRuntime2.default.param('minLevel', _minLevelType).assert(minLevel); + + return minLevel; + }; + } + + return (minLevel, key) => { + if (minLevel === _nightingaleLevels2.default.ALL || !key) { + return minLevel; + } + + if (debugValues.some(debugValue => debugValue(key))) { + return skips.some(skip => skip(key)) ? minLevel : _nightingaleLevels2.default.ALL; + } + + return minLevel; + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node7-dev/index.js.map b/packages/nightingale-debug/lib-node7-dev/index.js.map new file mode 100644 index 000000000..ce52dfc4b --- /dev/null +++ b/packages/nightingale-debug/lib-node7-dev/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;;;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAEA,oEAAsB,4DAAS,mCAAT,EAAkB,4BAAM,4DAAS,mCAAT,CAAN,CAAlB,CAAtB;;AAEA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO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EO,IAAI,CAACT,OAAL,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBT,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIW,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAc,4BAAOC,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD;AAAA,0BAAS,8BAAT;;AAAA;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node7/index.js b/packages/nightingale-debug/lib-node7/index.js new file mode 100644 index 000000000..70a8eccde --- /dev/null +++ b/packages/nightingale-debug/lib-node7/index.js @@ -0,0 +1,94 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = createFindDebugLevel; + +var _nightingaleLevels = require('nightingale-levels'); + +var _nightingaleLevels2 = _interopRequireDefault(_nightingaleLevels); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; + +const createTestFunctionFromRegexpString = value => { + if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); + const regexp = new RegExp(value.slice(1, -1)); + return string => regexp.test(string); +}; + +const createTestFunctionFromValue = value => { + if (value.endsWith(':*')) { + value = value.slice(0, -2); + return string => string.startsWith(value); + } + + return string => string === value; +}; + +function createFindDebugLevel(debugValue) { + debugValue = debugValue || ''; + + let wilcard = false; + const debugValues = []; + const skips = []; + + if (!Array.isArray(debugValue)) { + debugValue = debugValue.trim(); + + if (debugValue.startsWith('/')) { + debugValues.push(createTestFunctionFromRegexpString(debugValue)); + debugValue = null; + } else { + debugValue = debugValue.split(/[\s,]+/); + } + } + + if (debugValue) { + debugValue.forEach(value => { + if (specialRegexpChars.test(value)) { + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); + } + + if (!value) return; + + if (value === '*') { + wilcard = true; + return; + } + + if (value.startsWith('-')) { + skips.push(createTestFunctionFromValue(value.substr(1))); + } else if (!wilcard) { + debugValues.push(createTestFunctionFromValue(value)); + } + }); + } + + if (wilcard) { + if (skips.length === 0) { + return () => _nightingaleLevels2.default.ALL; + } else { + return (minLevel, key) => skips.some(skip => skip(key)) ? minLevel : _nightingaleLevels2.default.ALL; + } + } + + if (debugValues.length === 0) { + return minLevel => minLevel; + } + + return (minLevel, key) => { + if (minLevel === _nightingaleLevels2.default.ALL || !key) { + return minLevel; + } + + if (debugValues.some(debugValue => debugValue(key))) { + return skips.some(skip => skip(key)) ? minLevel : _nightingaleLevels2.default.ALL; + } + + return minLevel; + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-node7/index.js.map b/packages/nightingale-debug/lib-node7/index.js.map new file mode 100644 index 000000000..9b1ce5fce --- /dev/null +++ b/packages/nightingale-debug/lib-node7/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"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F,KAAM,4BAAzC,CAAN;AACD;;AAED,UAAI,CAACA,KAAL,EAAY;;AAEZ,UAAIA,UAAU,GAAd,EAAmB;AACjBW,kBAAU,IAAV;AACA;AACD;;AAED,UAAIX,MAAMS,UAAN,CAAiB,GAAjB,CAAJ,EAA2B;AACzBI,cAAMI,IAAN,CAAWT,4BAA4BR,MAAMoB,MAAN,CAAa,CAAb,CAA5B,CAAX;AACD,OAFD,MAEO,IAAI,CAACT,OAAL,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBT,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIW,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAc,4BAAOC,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD,IAAsBA,QAA7B;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-older-node-dev/index.js b/packages/nightingale-debug/lib-older-node-dev/index.js index 26b164d1f..2438c7751 100644 --- a/packages/nightingale-debug/lib-older-node-dev/index.js +++ b/packages/nightingale-debug/lib-older-node-dev/index.js @@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = createFindDebugLevel; -var _tcombForked = require('tcomb-forked'); - -var _tcombForked2 = _interopRequireDefault(_tcombForked); - var _nightingaleLevels = require('nightingale-levels'); var _nightingaleLevels2 = _interopRequireDefault(_nightingaleLevels); +var _flowRuntime = require('flow-runtime'); + +var _flowRuntime2 = _interopRequireDefault(_flowRuntime); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var specialRegexpChars = /[\\^$+?.()|[\]{}]/; -var DebugValueType = _tcombForked2.default.union([_tcombForked2.default.String, RegExp, _tcombForked2.default.list(_tcombForked2.default.union([_tcombForked2.default.String, RegExp]))], 'DebugValueType'); +var DebugValueType = _flowRuntime2.default.type('DebugValueType', _flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'), _flowRuntime2.default.array(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.ref('RegExp'))))); var createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); @@ -41,22 +41,24 @@ var createTestFunctionFromValue = function createTestFunctionFromValue(value) { }; function createFindDebugLevel(debugValue) { - _assert(debugValue, _tcombForked2.default.maybe(DebugValueType), 'debugValue'); + var _debugValueType = _flowRuntime2.default.nullable(DebugValueType); - debugValue = debugValue || ''; + _flowRuntime2.default.param('debugValue', _debugValueType).assert(debugValue); + + debugValue = _debugValueType.assert(debugValue || ''); var wilcard = false; var debugValues = []; var skips = []; if (!Array.isArray(debugValue)) { - debugValue = debugValue.trim(); + debugValue = _debugValueType.assert(debugValue.trim()); if (debugValue.startsWith('/')) { debugValues.push(createTestFunctionFromRegexpString(debugValue)); - debugValue = null; + debugValue = _debugValueType.assert(null); } else { - debugValue = debugValue.split(/[\s,]+/); + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); } } @@ -97,7 +99,9 @@ function createFindDebugLevel(debugValue) { if (debugValues.length === 0) { return function (minLevel) { - _assert(minLevel, _tcombForked2.default.Number, 'minLevel'); + var _minLevelType = _flowRuntime2.default.number(); + + _flowRuntime2.default.param('minLevel', _minLevelType).assert(minLevel); return minLevel; }; @@ -119,22 +123,4 @@ function createFindDebugLevel(debugValue) { return minLevel; }; } - -function _assert(x, type, name) { - function message() { - return 'Invalid value ' + _tcombForked2.default.stringify(x) + ' supplied to ' + name + ' (expected a ' + _tcombForked2.default.getTypeName(type) + ')'; - } - - if (_tcombForked2.default.isType(type)) { - if (!type.is(x)) { - type(x, [name + ': ' + _tcombForked2.default.getTypeName(type)]); - - _tcombForked2.default.fail(message()); - } - } else if (!(x instanceof type)) { - _tcombForked2.default.fail(message()); - } - - return x; -} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-older-node-dev/index.js.map b/packages/nightingale-debug/lib-older-node-dev/index.js.map index 58af5a430..3a79d8631 100644 --- a/packages/nightingale-debug/lib-older-node-dev/index.js.map +++ b/packages/nightingale-debug/lib-older-node-dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","DebugValueType","RegExp","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","slice","test","string","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;;;;;AArBxB;;;;;;AAEA,IAAMC,qBAAqB,mBAA3B;;IAEKC,c,8DAA0BC,M,wFAAwBA,M;;AAEvD,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIL,MAAJ,CAAWE,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUD,OAAOE,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP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AAI,CAACT,OAAL,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBT,4BAA4BP,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIU,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO;AAAA,eAAc,4BAAOC,GAArB;AAAA,OAAP;AACD,KAFD,MAEO;AACL,aAAO,UAACC,QAAD,EAAWC,GAAX;AAAA,eACLX,MAAMY,IAAN,CAAW;AAAA,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,cAACA,QAAD;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa,4BAAOD,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C,4BAAOD,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["createFindDebugLevel","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";;;;;kBAqBwBA,oB;;AArBxB;;;;;;;;;;AAEA,IAAMC,qBAAqB,mBAA3B;;AAEA,kEAAsB,4DAAS,mCAAT,EAAkB,4BAAM,4DAAS,mCAAT,CAAN,CAAlB,CAAtB;;AAEA,IAAMC,qCAAqC,SAArCA,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AWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-dev/index.js b/packages/nightingale-debug/lib-webpack-dev/index.js index a678484c5..28fd1ef1b 100644 --- a/packages/nightingale-debug/lib-webpack-dev/index.js +++ b/packages/nightingale-debug/lib-webpack-dev/index.js @@ -1,9 +1,10 @@ -import _t from 'tcomb-forked'; import levels from 'nightingale-levels'; +import t from 'flow-runtime'; var specialRegexpChars = /[\\^$+?.()|[\]{}]/; -var DebugValueType = _t.union([_t.String, RegExp, _t.list(_t.union([_t.String, RegExp]))], 'DebugValueType'); +var DebugValueType = t.type('DebugValueType', t.union(t.string(), t.ref('RegExp'), t.array(t.union(t.string(), t.ref('RegExp'))))); + var createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); @@ -27,22 +28,24 @@ var createTestFunctionFromValue = function createTestFunctionFromValue(value) { }; export default function createFindDebugLevel(debugValue) { - _assert(debugValue, _t.maybe(DebugValueType), 'debugValue'); + var _debugValueType = t.nullable(DebugValueType); + + t.param('debugValue', _debugValueType).assert(debugValue); - debugValue = debugValue || ''; + debugValue = _debugValueType.assert(debugValue || ''); var wilcard = false; var debugValues = []; var skips = []; if (!Array.isArray(debugValue)) { - debugValue = debugValue.trim(); + debugValue = _debugValueType.assert(debugValue.trim()); if (debugValue.startsWith('/')) { debugValues.push(createTestFunctionFromRegexpString(debugValue)); - debugValue = null; + debugValue = _debugValueType.assert(null); } else { - debugValue = debugValue.split(/[\s,]+/); + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); } } @@ -83,8 +86,9 @@ export default function createFindDebugLevel(debugValue) { if (debugValues.length === 0) { return function (minLevel) { - _assert(minLevel, _t.Number, 'minLevel'); + var _minLevelType = t.number(); + t.param('minLevel', _minLevelType).assert(minLevel); return minLevel; }; } @@ -105,22 +109,4 @@ export default function createFindDebugLevel(debugValue) { return minLevel; }; } - -function _assert(x, type, name) { - function message() { - return 'Invalid value ' + _t.stringify(x) + ' supplied to ' + name + ' (expected a ' + _t.getTypeName(type) + ')'; - } - - if (_t.isType(type)) { - if (!type.is(x)) { - type(x, [name + ': ' + _t.getTypeName(type)]); - - _t.fail(message()); - } - } else if (!(x instanceof type)) { - _t.fail(message()); - } - - return x; -} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-dev/index.js.map b/packages/nightingale-debug/lib-webpack-dev/index.js.map index b820cf977..347711aa6 100644 --- a/packages/nightingale-debug/lib-webpack-dev/index.js.map +++ b/packages/nightingale-debug/lib-webpack-dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","DebugValueType","RegExp","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;AAEA,IAAMC,qBAAqB,mBAA3B;;IAEKC,c,wBAA0BC,M,+BAAwBA,M;;AAEvD,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIL,MAAJ,CAAWE,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUD,OAAOE,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP;AACD,CAJD;;AAMA,IAAMC,8BAA8B,SAA9BA,2BAA8B,CAACP,KAAD,EAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;AACxBD,YAAQA,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAR;AACA,WAAO;AAAA,aAAUE,OAAOE,UAAP,CAAkBR,KAAlB,CAAV;AAAA,KAAP;AACD;;AAED,SAAO;AAAA,WAAUM,WAA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X,MAAMY,IAAN,CAAW;AAAA,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C5B,OAAO2B,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,cAACA,QAAD;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa5B,OAAO2B,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C5B,OAAO2B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;;AAEA,IAAMC,qBAAqB,mBAA3B;;AAEA,8CAAsB,oBAAS,eAAT,EAAkB,QAAM,oBAAS,eAAT,CAAN,CAAlB,CAAtB;;;AAEA,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUF,OAAOG,IAAP,CAAYC,MAAZ,CAAV;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;AACD,OAFD,MAEO,IAAI,CAACT,OAAL,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBV,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIY,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO;AAAA,eAAczB,OAAO0B,GAArB;AAAA,OAAP;AACD,KAFD,MAEO;AACL,aAAO,UAACC,QAAD,EAAWC,GAAX;AAAA,eACLX,MAAMY,IAAN,CAAW;AAAA,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,0BAAS,UAAT;;AAAA;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa3B,OAAO0B,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js b/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js index 8a58831ee..cdecbb705 100644 --- a/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js +++ b/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js @@ -1,19 +1,20 @@ -import _t from 'tcomb-forked'; import levels from 'nightingale-levels'; -var specialRegexpChars = /[\\^$+?.()|[\]{}]/; +import t from 'flow-runtime'; +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; -var DebugValueType = _t.union([_t.String, RegExp, _t.list(_t.union([_t.String, RegExp]))], 'DebugValueType'); +const DebugValueType = t.type('DebugValueType', t.union(t.string(), t.ref('RegExp'), t.array(t.union(t.string(), t.ref('RegExp'))))); -var createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { + +const createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); - var regexp = new RegExp(value.slice(1, -1)); + const regexp = new RegExp(value.slice(1, -1)); return function (string) { return regexp.test(string); }; }; -var createTestFunctionFromValue = function createTestFunctionFromValue(value) { +const createTestFunctionFromValue = function createTestFunctionFromValue(value) { if (value.endsWith(':*')) { value = value.slice(0, -2); return function (string) { @@ -27,29 +28,31 @@ var createTestFunctionFromValue = function createTestFunctionFromValue(value) { }; export default function createFindDebugLevel(debugValue) { - _assert(debugValue, _t.maybe(DebugValueType), 'debugValue'); + let _debugValueType = t.nullable(DebugValueType); + + t.param('debugValue', _debugValueType).assert(debugValue); - debugValue = debugValue || ''; + debugValue = _debugValueType.assert(debugValue || ''); - var wilcard = false; - var debugValues = []; - var skips = []; + let wilcard = false; + const debugValues = []; + const skips = []; if (!Array.isArray(debugValue)) { - debugValue = debugValue.trim(); + debugValue = _debugValueType.assert(debugValue.trim()); if (debugValue.startsWith('/')) { debugValues.push(createTestFunctionFromRegexpString(debugValue)); - debugValue = null; + debugValue = _debugValueType.assert(null); } else { - debugValue = debugValue.split(/[\s,]+/); + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); } } if (debugValue) { debugValue.forEach(function (value) { if (specialRegexpChars.test(value)) { - throw new Error(`Invalid debug value: "${ value }" (contains special chars)`); + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); } if (!value) return; @@ -83,8 +86,9 @@ export default function createFindDebugLevel(debugValue) { if (debugValues.length === 0) { return function (minLevel) { - _assert(minLevel, _t.Number, 'minLevel'); + let _minLevelType = t.number(); + t.param('minLevel', _minLevelType).assert(minLevel); return minLevel; }; } @@ -105,22 +109,4 @@ export default function createFindDebugLevel(debugValue) { return minLevel; }; } - -function _assert(x, type, name) { - function message() { - return 'Invalid value ' + _t.stringify(x) + ' supplied to ' + name + ' (expected a ' + _t.getTypeName(type) + ')'; - } - - if (_t.isType(type)) { - if (!type.is(x)) { - type(x, [name + ': ' + _t.getTypeName(type)]); - - _t.fail(message()); - } - } else if (!(x instanceof type)) { - _t.fail(message()); - } - - return x; -} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js.map b/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js.map index f61e1f945..ef698d078 100644 --- a/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js.map +++ b/packages/nightingale-debug/lib-webpack-modern-browsers-dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","DebugValueType","RegExp","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":";AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;AAEA,IAAMC,qBAAqB,mBAA3B;;IAEKC,c,wBAA0BC,M,+BAAwBA,M;;AAEvD,IAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,MAAMC,SAAS,IAAIL,MAAJ,CAAWE,MAAMI,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUD,OAAOE,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP;AACD,CAJD;;AAMA,IAAMC,8BAA8B,SAA9BA,2BAA8B,CAACP,KAAD,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AiBV,4BAA4BP,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIW,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO;AAAA,eAAc1B,OAAO2B,GAArB;AAAA,OAAP;AACD,KAFD,MAEO;AACL,aAAO,UAACC,QAAD,EAAWC,GAAX;AAAA,eACLX,MAAMY,IAAN,CAAW;AAAA,iBAAQC,KAAKF,GAAL,CAAR;AAAA,SAAX,IAAgCD,QAAhC,GAA2C5B,OAAO2B,GAD7C;AAAA,OAAP;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAO,UAACE,QAAD;AAAA,cAACA,QAAD;;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,UAACA,QAAD,EAAWC,GAAX,EAAmB;AACxB,QAAID,aAAa5B,OAAO2B,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C5B,OAAO2B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAEA,gDAAsB,oBAAS,eAAT,EAAkB,QAAM,oBAAS,eAAT,CAAN,CAAlB,CAAtB;;;AAEA,MAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,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esContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-modern-browsers/index.js b/packages/nightingale-debug/lib-webpack-modern-browsers/index.js index 8331234cd..79073fae9 100644 --- a/packages/nightingale-debug/lib-webpack-modern-browsers/index.js +++ b/packages/nightingale-debug/lib-webpack-modern-browsers/index.js @@ -1,16 +1,16 @@ import levels from 'nightingale-levels'; -var specialRegexpChars = /[\\^$+?.()|[\]{}]/; +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; -var createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { +const createTestFunctionFromRegexpString = function createTestFunctionFromRegexpString(value) { if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); - var regexp = new RegExp(value.slice(1, -1)); + const regexp = new RegExp(value.slice(1, -1)); return function (string) { return regexp.test(string); }; }; -var createTestFunctionFromValue = function createTestFunctionFromValue(value) { +const createTestFunctionFromValue = function createTestFunctionFromValue(value) { if (value.endsWith(':*')) { value = value.slice(0, -2); return function (string) { @@ -26,9 +26,9 @@ var createTestFunctionFromValue = function createTestFunctionFromValue(value) { export default function createFindDebugLevel(debugValue) { debugValue = debugValue || ''; - var wilcard = false; - var debugValues = []; - var skips = []; + let wilcard = false; + const debugValues = []; + const skips = []; if (!Array.isArray(debugValue)) { debugValue = debugValue.trim(); @@ -44,7 +44,7 @@ export default function createFindDebugLevel(debugValue) { if (debugValue) { debugValue.forEach(function (value) { if (specialRegexpChars.test(value)) { - throw new Error(`Invalid debug value: "${ value }" (contains special chars)`); + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); } if (!value) return; diff --git a/packages/nightingale-debug/lib-webpack-modern-browsers/index.js.map b/packages/nightingale-debug/lib-webpack-modern-browsers/index.js.map index 7f221dcb1..bfe71c44a 100644 --- a/packages/nightingale-debug/lib-webpack-modern-browsers/index.js.map +++ b/packages/nightingale-debug/lib-webpack-modern-browsers/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array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GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","test","string","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAIA,MAAMC,qCAAqC,SAArCA,kCAAqC,CAACC,KAAD,EAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAO;AAAA,WAAUF,OAAOG,IAAP,CAAYC,MAAZ,CAAV;AAAA,GAAP;AACD,CAJD;;AAMA,MAAMC,8BAA8B,SAA9BA,2BAA8B,CAACR,KAAD,EAAW;AAC7C,MAAIA,MAAMC,QAAN,CAAe,IAAf,CAAJ,EAA0B;AACxBD,YAAQA,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAR;AACA,WAAO;AAAA,aAAUE,OAAOE,UAAP,CAAkBT,KAAlB,CAAV;AAAA,KAAP;AACD;;AAED,SAAO;AAAA,WAAUO,WAAWP,KAArB;AAAA,GAAP;AACD,CAPD;;AASA,eAAe,SAASU,oBAAT,CAA8BC,UAA9B,EAA2D;AACxEA,eAAcA,cAAc,EAA5B;;AAEA,MAAIC,UAAU,KAAd;AACA,QAAMC,gBAAN;AACA,QAAMC,UAAN;;AAEA,MAAI,CAACC,MAAMC,OAAN,CAAcL,UAAd,CAAL,EAAgC;AAC9BA,iBAAaA,WAAWM,IAAX,EAAb;;AAEA,QAAIN,WAAWF,UAAX,CAAsB,GAAtB,CAAJ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,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiB;AAAA,aAAcf,WAAWc,GAAX,CAAd;AAAA,KAAjB,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAW;AAAA,eAAQC,KAAKF,GAAL,CAAR;AAAA,OAAX,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-node7-dev/index.js b/packages/nightingale-debug/lib-webpack-node7-dev/index.js new file mode 100644 index 000000000..e29271322 --- /dev/null +++ b/packages/nightingale-debug/lib-webpack-node7-dev/index.js @@ -0,0 +1,96 @@ +import levels from 'nightingale-levels'; + +import t from 'flow-runtime'; +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; + +const DebugValueType = t.type('DebugValueType', t.union(t.string(), t.ref('RegExp'), t.array(t.union(t.string(), t.ref('RegExp'))))); + + +const createTestFunctionFromRegexpString = value => { + if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); + const regexp = new RegExp(value.slice(1, -1)); + return string => regexp.test(string); +}; + +const createTestFunctionFromValue = value => { + if (value.endsWith(':*')) { + value = value.slice(0, -2); + return string => string.startsWith(value); + } + + return string => string === value; +}; + +export default function createFindDebugLevel(debugValue) { + let _debugValueType = t.nullable(DebugValueType); + + t.param('debugValue', _debugValueType).assert(debugValue); + + debugValue = _debugValueType.assert(debugValue || ''); + + let wilcard = false; + const debugValues = []; + const skips = []; + + if (!Array.isArray(debugValue)) { + debugValue = _debugValueType.assert(debugValue.trim()); + + if (debugValue.startsWith('/')) { + debugValues.push(createTestFunctionFromRegexpString(debugValue)); + debugValue = _debugValueType.assert(null); + } else { + debugValue = _debugValueType.assert(debugValue.split(/[\s,]+/)); + } + } + + if (debugValue) { + debugValue.forEach(value => { + if (specialRegexpChars.test(value)) { + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); + } + + if (!value) return; + + if (value === '*') { + wilcard = true; + return; + } + + if (value.startsWith('-')) { + skips.push(createTestFunctionFromValue(value.substr(1))); + } else if (!wilcard) { + debugValues.push(createTestFunctionFromValue(value)); + } + }); + } + + if (wilcard) { + if (skips.length === 0) { + return () => levels.ALL; + } else { + return (minLevel, key) => skips.some(skip => skip(key)) ? minLevel : levels.ALL; + } + } + + if (debugValues.length === 0) { + return minLevel => { + let _minLevelType = t.number(); + + t.param('minLevel', _minLevelType).assert(minLevel); + return minLevel; + }; + } + + return (minLevel, key) => { + if (minLevel === levels.ALL || !key) { + return minLevel; + } + + if (debugValues.some(debugValue => debugValue(key))) { + return skips.some(skip => skip(key)) ? minLevel : levels.ALL; + } + + return minLevel; + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-node7-dev/index.js.map b/packages/nightingale-debug/lib-webpack-node7-dev/index.js.map new file mode 100644 index 000000000..4b090dc48 --- /dev/null +++ b/packages/nightingale-debug/lib-webpack-node7-dev/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAEA,gDAAsB,oBAAS,eAAT,EAAkB,QAAM,oBAAS,eAAT,CAAN,CAAlB,CAAtB;;;AAEA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,MAAJ,CAAWJ,MAAMK,KAAN,CAAY,CAAZ,EAAe,CAAC,CAAhB,CAAX,CAAf;AACA,SAAOC,UAAUH,OAAOI,IAAP,CAAYD,MAAZ,CAAjB;AACD,CAJD;;AAMA,MAAME,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4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIY,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAczB,OAAO0B,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD;AAAA,0BAAS,UAAT;;AAAA;AAAA,aAAsBA,QAAtB;AAAA,KAAP;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa3B,OAAO0B,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-node7/index.js b/packages/nightingale-debug/lib-webpack-node7/index.js new file mode 100644 index 000000000..8a500c940 --- /dev/null +++ b/packages/nightingale-debug/lib-webpack-node7/index.js @@ -0,0 +1,83 @@ +import levels from 'nightingale-levels'; + +const specialRegexpChars = /[\\^$+?.()|[\]{}]/; + +const createTestFunctionFromRegexpString = value => { + if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value'); + const regexp = new RegExp(value.slice(1, -1)); + return string => regexp.test(string); +}; + +const createTestFunctionFromValue = value => { + if (value.endsWith(':*')) { + value = value.slice(0, -2); + return string => string.startsWith(value); + } + + return string => string === value; +}; + +export default function createFindDebugLevel(debugValue) { + debugValue = debugValue || ''; + + let wilcard = false; + const debugValues = []; + const skips = []; + + if (!Array.isArray(debugValue)) { + debugValue = debugValue.trim(); + + if (debugValue.startsWith('/')) { + debugValues.push(createTestFunctionFromRegexpString(debugValue)); + debugValue = null; + } else { + debugValue = debugValue.split(/[\s,]+/); + } + } + + if (debugValue) { + debugValue.forEach(value => { + if (specialRegexpChars.test(value)) { + throw new Error(`Invalid debug value: "${value}" (contains special chars)`); + } + + if (!value) return; + + if (value === '*') { + wilcard = true; + return; + } + + if (value.startsWith('-')) { + skips.push(createTestFunctionFromValue(value.substr(1))); + } else if (!wilcard) { + debugValues.push(createTestFunctionFromValue(value)); + } + }); + } + + if (wilcard) { + if (skips.length === 0) { + return () => levels.ALL; + } else { + return (minLevel, key) => skips.some(skip => skip(key)) ? minLevel : levels.ALL; + } + } + + if (debugValues.length === 0) { + return minLevel => minLevel; + } + + return (minLevel, key) => { + if (minLevel === levels.ALL || !key) { + return minLevel; + } + + if (debugValues.some(debugValue => debugValue(key))) { + return skips.some(skip => skip(key)) ? minLevel : levels.ALL; + } + + return minLevel; + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/nightingale-debug/lib-webpack-node7/index.js.map b/packages/nightingale-debug/lib-webpack-node7/index.js.map new file mode 100644 index 000000000..80d19d1e4 --- /dev/null +++ b/packages/nightingale-debug/lib-webpack-node7/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/index.js"],"names":["levels","specialRegexpChars","createTestFunctionFromRegexpString","value","endsWith","Error","regexp","RegExp","slice","string","test","createTestFunctionFromValue","startsWith","createFindDebugLevel","debugValue","wilcard","debugValues","skips","Array","isArray","trim","push","split","forEach","substr","length","ALL","minLevel","key","some","skip"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,oBAAnB;;AAEA,MAAMC,qBAAqB,mBAA3B;;AAIA,MAAMC,qCAAsCC,KAAD,IAAW;AACpD,MAAI,CAACA,MAAMC,QAAN,CAAe,GAAf,CAAL,EAA0B,MAAM,IAAIC,KAAJ,CAAU,4BAAV,CAAN;AAC1B,QAAMC,SAAS,IAAIC,M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AAN,CAAa,CAAb,CAA5B,CAAX;AACD,OAFD,MAEO,IAAI,CAACT,OAAL,EAAc;AACnBC,oBAAYK,IAAZ,CAAiBV,4BAA4BR,KAA5B,CAAjB;AACD;AACF,KAjBD;AAkBD;;AAED,MAAIY,OAAJ,EAAa;AACX,QAAIE,MAAMQ,MAAN,KAAiB,CAArB,EAAwB;AACtB,aAAO,MAAczB,OAAO0B,GAA5B;AACD,KAFD,MAEO;AACL,aAAO,CAACC,QAAD,EAAWC,GAAX,KACLX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GADpD;AAGD;AACF;;AAED,MAAIV,YAAYS,MAAZ,KAAuB,CAA3B,EAA8B;AAC5B,WAAQE,QAAD,IAAsBA,QAA7B;AACD;;AAED,SAAO,CAACA,QAAD,EAAWC,GAAX,KAAmB;AACxB,QAAID,aAAa3B,OAAO0B,GAApB,IAA2B,CAACE,GAAhC,EAAqC;AACnC,aAAOD,QAAP;AACD;;AAED,QAAIX,YAAYa,IAAZ,CAAiBf,cAAcA,WAAWc,GAAX,CAA/B,CAAJ,EAAqD;AACnD,aAAOX,MAAMY,IAAN,CAAWC,QAAQA,KAAKF,GAAL,CAAnB,IAAgCD,QAAhC,GAA2C3B,OAAO0B,GAAzD;AACD;;AAED,WAAOC,QAAP;AACD,GAVD;AAWD","file":"index.js","sourcesContent":["import levels from 'nightingale-levels';\n\nconst specialRegexpChars = /[\\\\^$+?.()|[\\]{}]/;\n\ntype DebugValueType = string | RegExp | Array;\n\nconst createTestFunctionFromRegexpString = (value) => {\n if (!value.endsWith('/')) throw new Error('Invalid RegExp DEBUG value');\n const regexp = new RegExp(value.slice(1, -1));\n return string => regexp.test(string);\n};\n\nconst createTestFunctionFromValue = (value) => {\n if (value.endsWith(':*')) {\n value = value.slice(0, -2);\n return string => string.startsWith(value);\n }\n\n return string => string === value;\n};\n\nexport default function createFindDebugLevel(debugValue: ?DebugValueType) {\n debugValue = (debugValue || '');\n\n let wilcard = false;\n const debugValues = [];\n const skips = [];\n\n if (!Array.isArray(debugValue)) {\n debugValue = debugValue.trim();\n\n if (debugValue.startsWith('/')) {\n debugValues.push(createTestFunctionFromRegexpString(debugValue));\n debugValue = null;\n } else {\n debugValue = debugValue.split(/[\\s,]+/);\n }\n }\n\n if (debugValue) {\n debugValue.forEach(value => {\n if (specialRegexpChars.test(value)) {\n throw new Error(`Invalid debug value: \"${value}\" (contains special chars)`);\n }\n\n if (!value) return;\n\n if (value === '*') {\n wilcard = true;\n return;\n }\n\n if (value.startsWith('-')) {\n skips.push(createTestFunctionFromValue(value.substr(1)));\n } else if (!wilcard) {\n debugValues.push(createTestFunctionFromValue(value));\n }\n });\n }\n\n if (wilcard) {\n if (skips.length === 0) {\n return (minLevel) => levels.ALL;\n } else {\n return (minLevel, key) => (\n skips.some(skip => skip(key)) ? minLevel : levels.ALL\n );\n }\n }\n\n if (debugValues.length === 0) {\n return (minLevel: number) => minLevel;\n }\n\n return (minLevel, key) => {\n if (minLevel === levels.ALL || !key) {\n return minLevel;\n }\n\n if (debugValues.some(debugValue => debugValue(key))) {\n return skips.some(skip => skip(key)) ? minLevel : levels.ALL;\n }\n\n return minLevel;\n };\n}\n"]} \ No newline at end of file diff --git a/packages/nightingale-debug/package.json b/packages/nightingale-debug/package.json index 752b9c035..d6065a2b3 100644 --- a/packages/nightingale-debug/package.json +++ b/packages/nightingale-debug/package.json @@ -13,8 +13,8 @@ "browser": "./browser/lib/browser.js", "webpack:main": "./lib-webpack/index.js", "webpack:main-dev": "./lib-webpack-dev/index.js", - "webpack:node": "./lib-node6/index.js", - "webpack:node-dev": "./lib-node6-dev/index.js", + "webpack:node": "./lib-webpack-node7/index.js", + "webpack:node-dev": "./lib-webpack-node7-dev/index.js", "webpack:main-modern-browsers": "./lib-webpack-modern-browsers/index.js", "webpack:main-modern-browsers-dev": "./lib-webpack-modern-browsers-dev/index.js", "scripts": { @@ -31,25 +31,25 @@ "watch": "pob-watch" }, "dependencies": { + "flow-runtime": "^0.6.1", "nightingale-levels": "^1.0.0" }, "devDependencies": { "babel-eslint": "^7.0.0", - "babel-preset-es2015": "^6.18.0", - "babel-preset-es2015-node6": "^0.4.0", - "babel-preset-modern-browsers": "^7.0.0", - "eslint": "^3.10.2", - "eslint-config-airbnb-base": "^10.0.1", - "eslint-config-pob": "^10.0.1", - "eslint-plugin-babel": "^4.0.0", + "babel-preset-latest": "^6.22.0", + "babel-preset-latest-node": "^0.1.0", + "babel-preset-modern-browsers": "^8.1.1", + "eslint": "^3.16.1", + "eslint-config-airbnb-base": "^11.1.0", + "eslint-config-pob": "^11.1.0", + "eslint-plugin-babel": "^4.1.0", "eslint-plugin-import": "^2.2.0", "istanbul": "^0.4.5", - "komet": "^0.1.3", - "komet-karma": "^0.2.3", - "mocha": "^3.1.0", - "pob-babel": "^12.5.0", - "pob-release": "^2.3.0", - "tcomb-forked": "^3.4.0", + "komet": "^0.1.4", + "komet-karma": "^0.2.5", + "mocha": "^3.2.0", + "pob-babel": "^16.1.0", + "pob-release": "^3.1.0", "xunit-file": "^1.0.0" } } diff --git a/packages/nightingale-debug/yarn.lock b/packages/nightingale-debug/yarn.lock index 9bb28be0e..375ac41a8 100644 --- a/packages/nightingale-debug/yarn.lock +++ b/packages/nightingale-debug/yarn.lock @@ -2,6 +2,13 @@ # yarn lockfile v1 +JSONStream@^1.0.4: + version "1.3.1" + resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.1.tgz#707f761e01dae9e16f1bcf93703b78c70966579a" + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + abbrev@1, abbrev@1.0.x: version "1.0.9" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" @@ -12,13 +19,17 @@ acorn-jsx@^3.0.0: dependencies: acorn "^3.0.4" +acorn@4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.4.tgz#17a8d6a7a6c4ef538b814ec9abac2779293bf30a" + acorn@^3.0.4: version "3.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" -acorn@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.3.tgz#1a3e850b428e73ba6b09d1cc527f5aaad4d03ef1" +add-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" ajv-keywords@^1.0.0: version "1.2.0" @@ -99,6 +110,10 @@ array-find-index@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" +array-ify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" + array-union@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" @@ -161,19 +176,27 @@ babel-code-frame@^6.16.0: esutils "^2.0.2" js-tokens "^2.0.0" -babel-core@^6.18.0, babel-core@^6.18.2: - version "6.18.2" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.18.2.tgz#d8bb14dd6986fa4f3566a26ceda3964fa0e04e5b" +babel-code-frame@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" dependencies: - babel-code-frame "^6.16.0" - babel-generator "^6.18.0" - babel-helpers "^6.16.0" - babel-messages "^6.8.0" - babel-register "^6.18.0" - babel-runtime "^6.9.1" - babel-template "^6.16.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +babel-core@^6.23.0, babel-core@^6.23.1: + version "6.23.1" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.23.1.tgz#c143cb621bb2f621710c220c5d579d15b8a442df" + dependencies: + babel-code-frame "^6.22.0" + babel-generator "^6.23.0" + babel-helpers "^6.23.0" + babel-messages "^6.23.0" + babel-register "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.1" + babel-types "^6.23.0" babylon "^6.11.0" convert-source-map "^1.1.0" debug "^2.1.1" @@ -195,143 +218,158 @@ babel-eslint@^7.0.0: babylon "^6.13.0" lodash.pickby "^4.6.0" -babel-generator@^6.18.0: - version "6.19.0" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.19.0.tgz#9b2f244204777a3d6810ec127c673c87b349fac5" +babel-generator@^6.21.0, babel-generator@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.23.0.tgz#6b8edab956ef3116f79d8c84c5a3c05f32a74bc5" dependencies: - babel-messages "^6.8.0" - babel-runtime "^6.9.0" - babel-types "^6.19.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" detect-indent "^4.0.0" jsesc "^1.3.0" lodash "^4.2.0" source-map "^0.5.0" + trim-right "^1.0.1" -babel-helper-bindify-decorators@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.18.0.tgz#fc00c573676a6e702fffa00019580892ec8780a5" +babel-helper-bindify-decorators@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.22.0.tgz#d7f5bc261275941ac62acfc4e20dacfb8a3fe952" dependencies: - babel-runtime "^6.0.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" -babel-helper-builder-binary-assignment-operator-visitor@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.18.0.tgz#8ae814989f7a53682152e3401a04fabd0bb333a6" +babel-helper-builder-binary-assignment-operator-visitor@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.22.0.tgz#29df56be144d81bdeac08262bfa41d2c5e91cdcd" dependencies: - babel-helper-explode-assignable-expression "^6.18.0" - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-helper-explode-assignable-expression "^6.22.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-helper-call-delegate@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.18.0.tgz#05b14aafa430884b034097ef29e9f067ea4133bd" +babel-helper-call-delegate@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.22.0.tgz#119921b56120f17e9dae3f74b4f5cc7bcc1b37ef" dependencies: - babel-helper-hoist-variables "^6.18.0" - babel-runtime "^6.0.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-hoist-variables "^6.22.0" + babel-runtime "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" -babel-helper-define-map@^6.18.0, babel-helper-define-map@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.18.0.tgz#8d6c85dc7fbb4c19be3de40474d18e97c3676ec2" +babel-helper-define-map@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.23.0.tgz#1444f960c9691d69a2ced6a205315f8fd00804e7" dependencies: - babel-helper-function-name "^6.18.0" - babel-runtime "^6.9.0" - babel-types "^6.18.0" + babel-helper-function-name "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" lodash "^4.2.0" -babel-helper-explode-assignable-expression@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.18.0.tgz#14b8e8c2d03ad735d4b20f1840b24cd1f65239fe" +babel-helper-evaluate-path@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.0.3.tgz#1d103ac9d4a59e5d431842212f151785f7ac547b" + +babel-helper-explode-assignable-expression@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.22.0.tgz#c97bf76eed3e0bae4048121f2b9dae1a4e7d0478" dependencies: - babel-runtime "^6.0.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" -babel-helper-explode-class@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.18.0.tgz#c44f76f4fa23b9c5d607cbac5d4115e7a76f62cb" +babel-helper-explode-class@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.22.0.tgz#646304924aa6388a516843ba7f1855ef8dfeb69b" dependencies: - babel-helper-bindify-decorators "^6.18.0" - babel-runtime "^6.0.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-bindify-decorators "^6.22.0" + babel-runtime "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" -babel-helper-flip-expressions@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.0.1.tgz#c2ba1599426e7928333fd5c08eee6cdf8328c848" +babel-helper-flip-expressions@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.0.2.tgz#7bab2cf61162bc92703e9b298ef512bcf77d6787" -babel-helper-function-name@^6.18.0, babel-helper-function-name@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.18.0.tgz#68ec71aeba1f3e28b2a6f0730190b754a9bf30e6" +babel-helper-function-name@^6.22.0, babel-helper-function-name@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.23.0.tgz#25742d67175c8903dbe4b6cb9d9e1fcb8dcf23a6" dependencies: - babel-helper-get-function-arity "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-get-function-arity "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" -babel-helper-get-function-arity@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.18.0.tgz#a5b19695fd3f9cdfc328398b47dafcd7094f9f24" +babel-helper-get-function-arity@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.22.0.tgz#0beb464ad69dc7347410ac6ade9f03a50634f5ce" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-helper-hoist-variables@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.18.0.tgz#a835b5ab8b46d6de9babefae4d98ea41e866b82a" +babel-helper-hoist-variables@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.22.0.tgz#3eacbf731d80705845dd2e9718f600cfb9b4ba72" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-helper-optimise-call-expression@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.18.0.tgz#9261d0299ee1a4f08a6dd28b7b7c777348fd8f0f" +babel-helper-mark-eval-scopes@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.0.2.tgz#909fd1f2384570cd3003283773852d9d63922a37" + +babel-helper-optimise-call-expression@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.23.0.tgz#f3ee7eed355b4282138b33d02b78369e470622f5" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" -babel-helper-regex@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.18.0.tgz#ae0ebfd77de86cb2f1af258e2cc20b5fe893ecc6" +babel-helper-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.22.0.tgz#79f532be1647b1f0ee3474b5f5c3da58001d247d" dependencies: - babel-runtime "^6.9.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" lodash "^4.2.0" -babel-helper-remap-async-to-generator@^6.16.0, babel-helper-remap-async-to-generator@^6.16.2: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.18.0.tgz#336cdf3cab650bb191b02fc16a3708e7be7f9ce5" +babel-helper-remap-async-to-generator@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.22.0.tgz#2186ae73278ed03b8b15ced089609da981053383" dependencies: - babel-helper-function-name "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.16.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-function-name "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" babel-helper-remove-or-void@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.0.1.tgz#f602790e465acf2dfbe84fb3dd210c43a2dd7262" -babel-helper-replace-supers@^6.18.0, babel-helper-replace-supers@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.18.0.tgz#28ec69877be4144dbd64f4cc3a337e89f29a924e" +babel-helper-replace-supers@^6.22.0, babel-helper-replace-supers@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.23.0.tgz#eeaf8ad9b58ec4337ca94223bacdca1f8d9b4bfd" dependencies: - babel-helper-optimise-call-expression "^6.18.0" - babel-messages "^6.8.0" - babel-runtime "^6.0.0" - babel-template "^6.16.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-optimise-call-expression "^6.23.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" -babel-helpers@^6.16.0: - version "6.16.0" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.16.0.tgz#1095ec10d99279460553e67eb3eee9973d3867e3" +babel-helpers@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.23.0.tgz#4f8f2e092d0b6a8808a4bde79c27f1e2ecf0d992" dependencies: - babel-runtime "^6.0.0" - babel-template "^6.16.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" babel-messages@^6.8.0: version "6.8.0" @@ -339,44 +377,55 @@ babel-messages@^6.8.0: dependencies: babel-runtime "^6.0.0" -babel-plugin-check-es2015-constants@^6.3.13, babel-plugin-check-es2015-constants@^6.8.0: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.8.0.tgz#dbf024c32ed37bfda8dee1e76da02386a8d26fe7" +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" babel-plugin-discard-module-references@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/babel-plugin-discard-module-references/-/babel-plugin-discard-module-references-1.1.2.tgz#898007cbeb472cef76ef11e1af485b41d4241747" +babel-plugin-flow-runtime@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/babel-plugin-flow-runtime/-/babel-plugin-flow-runtime-0.6.1.tgz#1a4c98e350086a53e785a691a7f9a00f552c181a" + dependencies: + babel-generator "^6.21.0" + babel-traverse "^6.20.0" + babel-types "^6.16.0" + babylon "^6.16.1" + camelcase "^3.0.0" + flow-config-parser "^0.3.0" + babel-plugin-import-export-rename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/babel-plugin-import-export-rename/-/babel-plugin-import-export-rename-1.0.1.tgz#194dc19bb79ac2598260a0b3a9a9278c99c77402" -babel-plugin-minify-constant-folding@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.0.1.tgz#d4abb5b62ccfc094bdce2a318b2f94fda5a73e29" +babel-plugin-minify-constant-folding@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.0.4.tgz#b6e231026a6035e88ceadd206128d7db2b5c15e6" + dependencies: + babel-helper-evaluate-path "^0.0.3" + jsesc "^2.4.0" -babel-plugin-minify-dead-code-elimination@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.1.0.tgz#caa8b81b944feea5ee8a9a6870bf307dc8352f14" +babel-plugin-minify-dead-code-elimination@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.1.3.tgz#7882c014619934cb9aca69d85c968ed124ac97e3" dependencies: + babel-helper-mark-eval-scopes "^0.0.2" babel-helper-remove-or-void "^0.0.1" lodash.some "^4.6.0" -babel-plugin-minify-guarded-expressions@0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.0.3.tgz#6da1caa0b6abda964647377bd5e19afdbf91cae8" +babel-plugin-minify-guarded-expressions@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.0.4.tgz#957104a760e6a7ffd967005a7a11621bb42fd11c" dependencies: - babel-helper-flip-expressions "^0.0.1" + babel-helper-flip-expressions "^0.0.2" -babel-plugin-minify-replace@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.0.1.tgz#5d5aea7cb9899245248d1ee9ce7a2fe556a8facc" - -babel-plugin-react-require@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-react-require/-/babel-plugin-react-require-3.0.0.tgz#2e4e7b4496b93a654a1c80042276de4e4eeb20e3" +babel-plugin-minify-replace@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.0.3.tgz#4a623336c0a3b4de4dedba0a80fdb6b5935f024f" babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" @@ -414,412 +463,460 @@ babel-plugin-syntax-flow@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" -babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - babel-plugin-syntax-object-rest-spread@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" -babel-plugin-syntax-trailing-function-commas@^6.3.13: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.13.0.tgz#2b84b7d53dd744f94ff1fad7669406274b23f541" +babel-plugin-syntax-trailing-function-commas@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" -babel-plugin-tcomb-forked@^0.3.23: - version "0.3.23" - resolved "https://registry.yarnpkg.com/babel-plugin-tcomb-forked/-/babel-plugin-tcomb-forked-0.3.23.tgz#15621059f210c0b76487b13d8f9c4296d1274801" +babel-plugin-transform-async-generator-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.22.0.tgz#a720a98153a7596f204099cd5409f4b3c05bab46" dependencies: - babel-generator "^6.18.0" - lodash.find "^4.6.0" - -babel-plugin-transform-async-generator-functions@^6.17.0: - version "6.17.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.17.0.tgz#d0b5a2b2f0940f2b245fa20a00519ed7bc6cae54" - dependencies: - babel-helper-remap-async-to-generator "^6.16.2" + babel-helper-remap-async-to-generator "^6.22.0" babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-async-to-generator@^6.16.0: - version "6.16.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.16.0.tgz#19ec36cb1486b59f9f468adfa42ce13908ca2999" +babel-plugin-transform-async-to-generator@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.22.0.tgz#194b6938ec195ad36efc4c33a971acf00d8cd35e" dependencies: - babel-helper-remap-async-to-generator "^6.16.0" + babel-helper-remap-async-to-generator "^6.22.0" babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-class-constructor-call@^6.3.13: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.18.0.tgz#80855e38a1ab47b8c6c647f8ea1bcd2c00ca3aae" +babel-plugin-transform-class-constructor-call@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.22.0.tgz#11a4d2216abb5b0eef298b493748f4f2f4869120" dependencies: babel-plugin-syntax-class-constructor-call "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" -babel-plugin-transform-class-properties@^6.18.0: - version "6.19.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.19.0.tgz#1274b349abaadc835164e2004f4a2444a2788d5f" +babel-plugin-transform-class-properties@^6.22.0, babel-plugin-transform-class-properties@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.23.0.tgz#187b747ee404399013563c993db038f34754ac3b" dependencies: - babel-helper-function-name "^6.18.0" + babel-helper-function-name "^6.23.0" babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.9.1" - babel-template "^6.15.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" -babel-plugin-transform-decorators@^6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.13.0.tgz#82d65c1470ae83e2d13eebecb0a1c2476d62da9d" +babel-plugin-transform-decorators@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.22.0.tgz#c03635b27a23b23b7224f49232c237a73988d27c" dependencies: - babel-helper-define-map "^6.8.0" - babel-helper-explode-class "^6.8.0" + babel-helper-explode-class "^6.22.0" babel-plugin-syntax-decorators "^6.13.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" - babel-types "^6.13.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-es2015-arrow-functions@^6.3.13, babel-plugin-transform-es2015-arrow-functions@^6.8.0: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.8.0.tgz#5b63afc3181bdc9a8c4d481b5a4f3f7d7fef3d9d" +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-block-scoped-functions@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.8.0.tgz#ed95d629c4b5a71ae29682b998f70d9833eb366d" +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-block-scoping@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.18.0.tgz#3bfdcfec318d46df22525cdea88f1978813653af" +babel-plugin-transform-es2015-block-scoping@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.23.0.tgz#e48895cf0b375be148cd7c8879b422707a053b51" dependencies: - babel-runtime "^6.9.0" - babel-template "^6.15.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" lodash "^4.2.0" -babel-plugin-transform-es2015-classes@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.18.0.tgz#ffe7a17321bf83e494dcda0ae3fc72df48ffd1d9" +babel-plugin-transform-es2015-classes@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.23.0.tgz#49b53f326202a2fd1b3bbaa5e2edd8a4f78643c1" dependencies: - babel-helper-define-map "^6.18.0" - babel-helper-function-name "^6.18.0" - babel-helper-optimise-call-expression "^6.18.0" - babel-helper-replace-supers "^6.18.0" - babel-messages "^6.8.0" - babel-runtime "^6.9.0" - babel-template "^6.14.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-define-map "^6.23.0" + babel-helper-function-name "^6.23.0" + babel-helper-optimise-call-expression "^6.23.0" + babel-helper-replace-supers "^6.23.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" -babel-plugin-transform-es2015-computed-properties@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.8.0.tgz#f51010fd61b3bd7b6b60a5fdfd307bb7a5279870" +babel-plugin-transform-es2015-computed-properties@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.22.0.tgz#7c383e9629bba4820c11b0425bdd6290f7f057e7" dependencies: - babel-helper-define-map "^6.8.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" -babel-plugin-transform-es2015-destructuring@^6.18.0, babel-plugin-transform-es2015-destructuring@^6.19.0, babel-plugin-transform-es2015-destructuring@^6.6.5: - version "6.19.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.19.0.tgz#ff1d911c4b3f4cab621bd66702a869acd1900533" +babel-plugin-transform-es2015-destructuring@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" dependencies: - babel-runtime "^6.9.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-duplicate-keys@^6.6.0: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.8.0.tgz#fd8f7f7171fc108cc1c70c3164b9f15a81c25f7d" +babel-plugin-transform-es2015-duplicate-keys@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.22.0.tgz#672397031c21610d72dd2bbb0ba9fb6277e1c36b" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.8.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-es2015-for-of@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.18.0.tgz#4c517504db64bf8cfc119a6b8f177211f2028a70" +babel-plugin-transform-es2015-for-of@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-function-name@^6.5.0, babel-plugin-transform-es2015-function-name@^6.9.0: - version "6.9.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.9.0.tgz#8c135b17dbd064e5bba56ec511baaee2fca82719" +babel-plugin-transform-es2015-function-name@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.22.0.tgz#f5fcc8b09093f9a23c76ac3d9e392c3ec4b77104" dependencies: - babel-helper-function-name "^6.8.0" - babel-runtime "^6.9.0" - babel-types "^6.9.0" + babel-helper-function-name "^6.22.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-es2015-literals@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.8.0.tgz#50aa2e5c7958fc2ab25d74ec117e0cc98f046468" +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-modules-amd@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.18.0.tgz#49a054cbb762bdf9ae2d8a807076cfade6141e40" +babel-plugin-transform-es2015-modules-amd@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.22.0.tgz#bf69cd34889a41c33d90dfb740e0091ccff52f21" dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" + babel-plugin-transform-es2015-modules-commonjs "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" -babel-plugin-transform-es2015-modules-commonjs@^6.18.0, babel-plugin-transform-es2015-modules-commonjs@^6.7.4: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.18.0.tgz#c15ae5bb11b32a0abdcc98a5837baa4ee8d67bcc" +babel-plugin-transform-es2015-modules-commonjs@^6.22.0, babel-plugin-transform-es2015-modules-commonjs@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.23.0.tgz#cba7aa6379fb7ec99250e6d46de2973aaffa7b92" dependencies: - babel-plugin-transform-strict-mode "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.16.0" - babel-types "^6.18.0" + babel-plugin-transform-strict-mode "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-types "^6.23.0" -babel-plugin-transform-es2015-modules-systemjs@^6.18.0: - version "6.19.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.19.0.tgz#50438136eba74527efa00a5b0fefaf1dc4071da6" +babel-plugin-transform-es2015-modules-systemjs@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.23.0.tgz#ae3469227ffac39b0310d90fec73bfdc4f6317b0" dependencies: - babel-helper-hoist-variables "^6.18.0" - babel-runtime "^6.11.6" - babel-template "^6.14.0" + babel-helper-hoist-variables "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" -babel-plugin-transform-es2015-modules-umd@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.18.0.tgz#23351770ece5c1f8e83ed67cb1d7992884491e50" +babel-plugin-transform-es2015-modules-umd@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.23.0.tgz#8d284ae2e19ed8fe21d2b1b26d6e7e0fcd94f0f1" dependencies: - babel-plugin-transform-es2015-modules-amd "^6.18.0" - babel-runtime "^6.0.0" - babel-template "^6.8.0" + babel-plugin-transform-es2015-modules-amd "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" -babel-plugin-transform-es2015-object-super@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.8.0.tgz#1b858740a5a4400887c23dcff6f4d56eea4a24c5" +babel-plugin-transform-es2015-object-super@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.22.0.tgz#daa60e114a042ea769dd53fe528fc82311eb98fc" dependencies: - babel-helper-replace-supers "^6.8.0" - babel-runtime "^6.0.0" + babel-helper-replace-supers "^6.22.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-parameters@^6.18.0, babel-plugin-transform-es2015-parameters@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.18.0.tgz#9b2cfe238c549f1635ba27fc1daa858be70608b1" +babel-plugin-transform-es2015-parameters@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.23.0.tgz#3a2aabb70c8af945d5ce386f1a4250625a83ae3b" dependencies: - babel-helper-call-delegate "^6.18.0" - babel-helper-get-function-arity "^6.18.0" - babel-runtime "^6.9.0" - babel-template "^6.16.0" - babel-traverse "^6.18.0" - babel-types "^6.18.0" + babel-helper-call-delegate "^6.22.0" + babel-helper-get-function-arity "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" -babel-plugin-transform-es2015-shorthand-properties@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.18.0.tgz#e2ede3b7df47bf980151926534d1dd0cbea58f43" +babel-plugin-transform-es2015-shorthand-properties@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.22.0.tgz#8ba776e0affaa60bff21e921403b8a652a2ff723" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-es2015-spread@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.8.0.tgz#0217f737e3b821fa5a669f187c6ed59205f05e9c" +babel-plugin-transform-es2015-spread@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-sticky-regex@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.8.0.tgz#e73d300a440a35d5c64f5c2a344dc236e3df47be" +babel-plugin-transform-es2015-sticky-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.22.0.tgz#ab316829e866ee3f4b9eb96939757d19a5bc4593" dependencies: - babel-helper-regex "^6.8.0" - babel-runtime "^6.0.0" - babel-types "^6.8.0" + babel-helper-regex "^6.22.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-es2015-template-literals@^6.6.0: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.8.0.tgz#86eb876d0a2c635da4ec048b4f7de9dfc897e66b" +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-typeof-symbol@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.18.0.tgz#0b14c48629c90ff47a0650077f6aa699bee35798" +babel-plugin-transform-es2015-typeof-symbol@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" dependencies: - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-es2015-unicode-regex@^6.3.13: - version "6.11.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.11.0.tgz#6298ceabaad88d50a3f4f392d8de997260f6ef2c" +babel-plugin-transform-es2015-unicode-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.22.0.tgz#8d9cc27e7ee1decfe65454fb986452a04a613d20" dependencies: - babel-helper-regex "^6.8.0" - babel-runtime "^6.0.0" + babel-helper-regex "^6.22.0" + babel-runtime "^6.22.0" regexpu-core "^2.0.0" -babel-plugin-transform-exponentiation-operator@^6.3.13, babel-plugin-transform-exponentiation-operator@^6.8.0: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.8.0.tgz#db25742e9339eade676ca9acec46f955599a68a4" +babel-plugin-transform-exponentiation-operator@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.22.0.tgz#d57c8335281918e54ef053118ce6eb108468084d" dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.8.0" + babel-helper-builder-binary-assignment-operator-visitor "^6.22.0" babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-export-default-name-forked@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-default-name-forked/-/babel-plugin-transform-export-default-name-forked-1.0.6.tgz#c90c770995f41c8935c633eab4c98c8c6e788ac2" +babel-plugin-transform-export-default-name-forked@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-default-name-forked/-/babel-plugin-transform-export-default-name-forked-1.2.2.tgz#43efdd18b5c6f9cd0aa432165df3f90afad7b950" dependencies: lodash.camelcase "^4.3.0" -babel-plugin-transform-export-extensions@^6.3.13: - version "6.8.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.8.0.tgz#fa80ff655b636549431bfd38f6b817bd82e47f5b" +babel-plugin-transform-export-extensions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz#53738b47e75e8218589eea946cbbd39109bbe653" dependencies: babel-plugin-syntax-export-extensions "^6.8.0" - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-flow-strip-types@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.18.0.tgz#4d3e642158661e9b40db457c004a30817fa32592" +babel-plugin-transform-flow-strip-types@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" dependencies: babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.0.0" + babel-runtime "^6.22.0" -babel-plugin-transform-object-rest-spread@^6.16.0, babel-plugin-transform-object-rest-spread@^6.19.0: - version "6.19.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.19.0.tgz#f6ac428ee3cb4c6aa00943ed1422ce813603b34c" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.0.0" +babel-plugin-transform-inline-consecutive-adds@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.0.2.tgz#a58fcecfc09c08fbf9373a5a3e70746c03d01fc1" -babel-plugin-transform-react-jsx-self@^6.11.0: - version "6.11.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.11.0.tgz#605c9450c1429f97a930f7e1dfe3f0d9d0dbd0f4" +babel-plugin-transform-object-rest-spread@^6.22.0, babel-plugin-transform-object-rest-spread@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.23.0.tgz#875d6bc9be761c58a2ae3feee5dc4895d8c7f921" dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.9.0" + babel-plugin-syntax-object-rest-spread "^6.8.0" + babel-runtime "^6.22.0" -babel-plugin-transform-react-jsx-source@^6.9.0: - version "6.9.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.9.0.tgz#af684a05c2067a86e0957d4f343295ccf5dccf00" +babel-plugin-transform-regenerator@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.22.0.tgz#65740593a319c44522157538d690b84094617ea6" dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.9.0" + regenerator-transform "0.9.8" -babel-plugin-transform-regenerator@^6.16.0: - version "6.16.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.16.1.tgz#a75de6b048a14154aae14b0122756c5bed392f59" +babel-plugin-transform-strict-mode@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.22.0.tgz#e008df01340fdc87e959da65991b7e05970c8c7c" dependencies: - babel-runtime "^6.9.0" - babel-types "^6.16.0" - private "~0.1.5" + babel-runtime "^6.22.0" + babel-types "^6.22.0" -babel-plugin-transform-strict-mode@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.18.0.tgz#df7cf2991fe046f44163dcd110d5ca43bc652b9d" +babel-preset-babili-optimizations@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-babili-optimizations/-/babel-preset-babili-optimizations-0.2.0.tgz#469262093ba792fbbe25f4eee0d5c058e258fdca" + dependencies: + babel-plugin-minify-constant-folding "^0.0.4" + babel-plugin-minify-dead-code-elimination "^0.1.3" + babel-plugin-minify-guarded-expressions "^0.0.4" + babel-plugin-transform-inline-consecutive-adds "^0.0.2" + +babel-preset-es2015@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.22.0.tgz#af5a98ecb35eb8af764ad8a5a05eb36dc4386835" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.22.0" + babel-plugin-transform-es2015-classes "^6.22.0" + babel-plugin-transform-es2015-computed-properties "^6.22.0" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.22.0" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.22.0" + babel-plugin-transform-es2015-modules-commonjs "^6.22.0" + babel-plugin-transform-es2015-modules-systemjs "^6.22.0" + babel-plugin-transform-es2015-modules-umd "^6.22.0" + babel-plugin-transform-es2015-object-super "^6.22.0" + babel-plugin-transform-es2015-parameters "^6.22.0" + babel-plugin-transform-es2015-shorthand-properties "^6.22.0" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.22.0" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.22.0" + babel-plugin-transform-regenerator "^6.22.0" + +babel-preset-es2016@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-es2016/-/babel-preset-es2016-6.22.0.tgz#b061aaa3983d40c9fbacfa3743b5df37f336156c" + dependencies: + babel-plugin-transform-exponentiation-operator "^6.22.0" + +babel-preset-es2017@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-es2017/-/babel-preset-es2017-6.22.0.tgz#de2f9da5a30c50d293fb54a0ba15d6ddc573f0f2" + dependencies: + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-to-generator "^6.22.0" + +babel-preset-flow-runtime@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/babel-preset-flow-runtime/-/babel-preset-flow-runtime-0.6.1.tgz#77679e9a243f558f822fcaacfbc70926be733b14" dependencies: - babel-runtime "^6.0.0" - babel-types "^6.18.0" + babel-plugin-flow-runtime "^0.6.1" + babel-plugin-syntax-flow "^6.18.0" -babel-preset-es2015-node6@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-es2015-node6/-/babel-preset-es2015-node6-0.4.0.tgz#f8893f81b6533747924c657348867bd63b4f9dc2" +babel-preset-flow@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" dependencies: - babel-plugin-transform-es2015-destructuring "^6.6.5" - babel-plugin-transform-es2015-function-name "^6.5.0" - babel-plugin-transform-es2015-modules-commonjs "^6.7.4" - babel-plugin-transform-es2015-parameters "^6.8.0" + babel-plugin-transform-flow-strip-types "^6.22.0" -babel-preset-es2015@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.18.0.tgz#b8c70df84ec948c43dcf2bf770e988eb7da88312" - dependencies: - babel-plugin-check-es2015-constants "^6.3.13" - babel-plugin-transform-es2015-arrow-functions "^6.3.13" - babel-plugin-transform-es2015-block-scoped-functions "^6.3.13" - babel-plugin-transform-es2015-block-scoping "^6.18.0" - babel-plugin-transform-es2015-classes "^6.18.0" - babel-plugin-transform-es2015-computed-properties "^6.3.13" - babel-plugin-transform-es2015-destructuring "^6.18.0" - babel-plugin-transform-es2015-duplicate-keys "^6.6.0" - babel-plugin-transform-es2015-for-of "^6.18.0" - babel-plugin-transform-es2015-function-name "^6.9.0" - babel-plugin-transform-es2015-literals "^6.3.13" - babel-plugin-transform-es2015-modules-amd "^6.18.0" - babel-plugin-transform-es2015-modules-commonjs "^6.18.0" - babel-plugin-transform-es2015-modules-systemjs "^6.18.0" - babel-plugin-transform-es2015-modules-umd "^6.18.0" - babel-plugin-transform-es2015-object-super "^6.3.13" - babel-plugin-transform-es2015-parameters "^6.18.0" - babel-plugin-transform-es2015-shorthand-properties "^6.18.0" - babel-plugin-transform-es2015-spread "^6.3.13" - babel-plugin-transform-es2015-sticky-regex "^6.3.13" - babel-plugin-transform-es2015-template-literals "^6.6.0" - babel-plugin-transform-es2015-typeof-symbol "^6.18.0" - babel-plugin-transform-es2015-unicode-regex "^6.3.13" - babel-plugin-transform-regenerator "^6.16.0" - -babel-preset-modern-browsers@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-modern-browsers/-/babel-preset-modern-browsers-7.0.0.tgz#f5fbe2960c6aa250e0c90104767cd4287ad2b409" - dependencies: - babel-plugin-check-es2015-constants "^6.8.0" - babel-plugin-transform-es2015-arrow-functions "^6.8.0" - babel-plugin-transform-es2015-block-scoping "^6.18.0" - babel-plugin-transform-es2015-destructuring "^6.19.0" - babel-plugin-transform-es2015-for-of "^6.18.0" - babel-plugin-transform-es2015-function-name "^6.9.0" - babel-plugin-transform-es2015-modules-commonjs "^6.18.0" - babel-plugin-transform-es2015-parameters "^6.18.0" - babel-plugin-transform-exponentiation-operator "^6.8.0" - babel-plugin-transform-strict-mode "^6.18.0" - -babel-preset-stage-1@^6.16.0: - version "6.16.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.16.0.tgz#9d31fbbdae7b17c549fd3ac93e3cf6902695e479" +babel-preset-latest-node@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-latest-node/-/babel-preset-latest-node-0.1.0.tgz#d94792ad37e5a25fbbbed3500741bfdaf9122115" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-to-generator "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-modules-commonjs "^6.23.0" + babel-plugin-transform-exponentiation-operator "^6.22.0" + +babel-preset-latest@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-latest/-/babel-preset-latest-6.22.0.tgz#47b800531350a3dc69126e8c375a40655cd1eeff" + dependencies: + babel-preset-es2015 "^6.22.0" + babel-preset-es2016 "^6.22.0" + babel-preset-es2017 "^6.22.0" + +babel-preset-modern-browsers@^8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/babel-preset-modern-browsers/-/babel-preset-modern-browsers-8.1.1.tgz#79c483cff502d3f6d0de6261b531326dc31eb715" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-to-generator "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-modules-commonjs "^6.22.0" + babel-plugin-transform-es2015-parameters "^6.22.0" + babel-plugin-transform-exponentiation-operator "^6.22.0" + babel-plugin-transform-strict-mode "^6.22.0" + +babel-preset-pob-stages@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-pob-stages/-/babel-preset-pob-stages-0.1.0.tgz#c63bc1d19e188d5af1b8a55b4dd71210c9e7c1f1" dependencies: - babel-plugin-transform-class-constructor-call "^6.3.13" - babel-plugin-transform-export-extensions "^6.3.13" - babel-preset-stage-2 "^6.16.0" + babel-plugin-syntax-dynamic-import "^6.18.0" + babel-plugin-transform-class-properties "^6.23.0" + babel-plugin-transform-export-extensions "^6.22.0" + babel-plugin-transform-object-rest-spread "^6.23.0" -babel-preset-stage-2@^6.16.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.18.0.tgz#9eb7bf9a8e91c68260d5ba7500493caaada4b5b5" +babel-preset-pob@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/babel-preset-pob/-/babel-preset-pob-0.1.1.tgz#66890b43d1e73dfaf1eff205e1cbbec4b3873cd9" dependencies: - babel-plugin-syntax-dynamic-import "^6.18.0" - babel-plugin-transform-class-properties "^6.18.0" - babel-plugin-transform-decorators "^6.13.0" - babel-preset-stage-3 "^6.17.0" + babel-plugin-import-export-rename "^1.0.1" + babel-plugin-minify-replace "^0.0.3" + babel-plugin-transform-export-default-name-forked "^1.2.2" + babel-preset-flow "^6.23.0" + babel-preset-flow-runtime "^0.6.1" -babel-preset-stage-3@^6.17.0: - version "6.17.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.17.0.tgz#b6638e46db6e91e3f889013d8ce143917c685e39" +babel-preset-stage-1@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.22.0.tgz#7da05bffea6ad5a10aef93e320cfc6dd465dbc1a" dependencies: - babel-plugin-syntax-trailing-function-commas "^6.3.13" - babel-plugin-transform-async-generator-functions "^6.17.0" - babel-plugin-transform-async-to-generator "^6.16.0" - babel-plugin-transform-exponentiation-operator "^6.3.13" - babel-plugin-transform-object-rest-spread "^6.16.0" + babel-plugin-transform-class-constructor-call "^6.22.0" + babel-plugin-transform-export-extensions "^6.22.0" + babel-preset-stage-2 "^6.22.0" -babel-register@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.18.0.tgz#892e2e03865078dd90ad2c715111ec4449b32a68" +babel-preset-stage-2@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.22.0.tgz#ccd565f19c245cade394b21216df704a73b27c07" dependencies: - babel-core "^6.18.0" - babel-runtime "^6.11.6" + babel-plugin-syntax-dynamic-import "^6.18.0" + babel-plugin-transform-class-properties "^6.22.0" + babel-plugin-transform-decorators "^6.22.0" + babel-preset-stage-3 "^6.22.0" + +babel-preset-stage-3@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.22.0.tgz#a4e92bbace7456fafdf651d7a7657ee0bbca9c2e" + dependencies: + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-generator-functions "^6.22.0" + babel-plugin-transform-async-to-generator "^6.22.0" + babel-plugin-transform-exponentiation-operator "^6.22.0" + babel-plugin-transform-object-rest-spread "^6.22.0" + +babel-register@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.23.0.tgz#c9aa3d4cca94b51da34826c4a0f9e08145d74ff3" + dependencies: + babel-core "^6.23.0" + babel-runtime "^6.22.0" core-js "^2.4.0" home-or-tmp "^2.0.0" lodash "^4.2.0" mkdirp "^0.5.1" source-map-support "^0.4.2" -babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.9.0, babel-runtime@^6.9.1: +babel-runtime@^6.0.0, babel-runtime@^6.9.0, babel-runtime@^6.9.1: version "6.18.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.18.0.tgz#0f4177ffd98492ef13b9f823e9994a02584c9078" dependencies: core-js "^2.4.0" regenerator-runtime "^0.9.5" -babel-template@^6.14.0, babel-template@^6.15.0, babel-template@^6.16.0, babel-template@^6.8.0: - version "6.16.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.16.0.tgz#e149dd1a9f03a35f817ddbc4d0481988e7ebc8ca" +babel-runtime@^6.18.0, babel-runtime@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" dependencies: - babel-runtime "^6.9.0" - babel-traverse "^6.16.0" - babel-types "^6.16.0" + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-template@^6.22.0, babel-template@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638" + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" babylon "^6.11.0" lodash "^4.2.0" -babel-traverse@^6.15.0, babel-traverse@^6.16.0, babel-traverse@^6.18.0: +babel-traverse@^6.15.0: version "6.19.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.19.0.tgz#68363fb821e26247d52a519a84b2ceab8df4f55a" dependencies: @@ -833,7 +930,21 @@ babel-traverse@^6.15.0, babel-traverse@^6.16.0, babel-traverse@^6.18.0: invariant "^2.2.0" lodash "^4.2.0" -babel-types@^6.13.0, babel-types@^6.15.0, babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.8.0, babel-types@^6.9.0: +babel-traverse@^6.20.0, babel-traverse@^6.22.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: + version "6.23.1" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48" + dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + babylon "^6.15.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.15.0, babel-types@^6.19.0: version "6.19.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.19.0.tgz#8db2972dbed01f1192a8b602ba1e1e4c516240b9" dependencies: @@ -842,10 +953,23 @@ babel-types@^6.13.0, babel-types@^6.15.0, babel-types@^6.16.0, babel-types@^6.18 lodash "^4.2.0" to-fast-properties "^1.0.1" +babel-types@^6.16.0, babel-types@^6.22.0, babel-types@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.23.0.tgz#bb17179d7538bad38cd0c9e115d340f77e7e9acf" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + babylon@^6.11.0, babylon@^6.13.0: version "6.14.1" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815" +babylon@^6.15.0, babylon@^6.16.1: + version "6.16.1" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" + balanced-match@^0.4.1: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" @@ -924,6 +1048,10 @@ camelcase@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + caseless@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" @@ -964,15 +1092,21 @@ circular-json@^0.3.0: version "0.3.1" resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" -cli-cursor@^1.0.1, cli-cursor@^1.0.2: +cli-cursor@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" dependencies: restore-cursor "^1.0.1" -cli-spinners@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-0.2.0.tgz#85078737913b880f6ec9ffe7b65e83ec7776284f" +cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + dependencies: + restore-cursor "^2.0.0" + +cli-spinners@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-1.0.0.tgz#ef987ed3d48391ac3dab9180b406a742180d6e6a" cli-width@^2.0.0: version "2.1.0" @@ -1016,11 +1150,18 @@ commander@2.9.0, commander@^2.9.0: dependencies: graceful-readlink ">= 1.0.0" +compare-func@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648" + dependencies: + array-ify "^1.0.0" + dot-prop "^3.0.0" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -concat-stream@^1.4.6, concat-stream@^1.4.7: +concat-stream@^1.4.10, concat-stream@^1.4.6, concat-stream@^1.4.7: version "1.5.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266" dependencies: @@ -1036,6 +1177,93 @@ contains-path@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" +conventional-changelog-angular@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-0.1.0.tgz#ac3d4b869878de5ad57726696b21eedd798ae3c7" + dependencies: + compare-func "^1.3.1" + q "^1.4.1" + +conventional-changelog-core@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-0.0.2.tgz#795a298de84f8801398cd0fee20fb799a1f02089" + dependencies: + conventional-changelog-writer "^0.4.1" + conventional-commits-parser "^0.1.2" + dateformat "^1.0.12" + get-pkg-repo "^0.1.0" + git-raw-commits "^0.1.2" + git-semver-tags "^1.1.0" + lodash "^4.0.0" + q "^1.4.1" + read-pkg "^1.1.0" + read-pkg-up "^1.0.1" + through2 "^2.0.0" + +conventional-changelog-writer@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-0.4.2.tgz#ccb03c5ebd17ceb94a236cb80b27f4ef6bee7731" + dependencies: + compare-func "^1.3.1" + conventional-commits-filter "^0.1.0" + dateformat "^1.0.11" + handlebars "^4.0.2" + lodash "^4.0.0" + meow "^3.3.0" + semver "^5.0.1" + split "^1.0.0" + through2 "^2.0.0" + +conventional-commits-filter@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-0.1.1.tgz#d9d26c7599f89de3d249cba3def7911fc51c0dab" + dependencies: + is-subset "^0.1.1" + modify-values "^1.0.0" + +conventional-commits-filter@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-1.0.0.tgz#6fc2a659372bc3f2339cf9ffff7e1b0344b93039" + dependencies: + is-subset "^0.1.1" + modify-values "^1.0.0" + +conventional-commits-parser@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-0.1.2.tgz#4a624010634f02122520ecbaf19ca0ba23120437" + dependencies: + JSONStream "^1.0.4" + is-text-path "^1.0.0" + lodash "^3.3.1" + meow "^3.3.0" + split "^1.0.0" + through2 "^2.0.0" + trim-off-newlines "^1.0.0" + +conventional-commits-parser@^1.0.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-1.3.0.tgz#e327b53194e1a7ad5dc63479ee9099a52b024865" + dependencies: + JSONStream "^1.0.4" + is-text-path "^1.0.0" + lodash "^4.2.1" + meow "^3.3.0" + split2 "^2.0.0" + through2 "^2.0.0" + trim-off-newlines "^1.0.0" + +conventional-recommended-bump@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-0.3.0.tgz#e839de8f57cbb43445c8b4967401de0644c425d8" + dependencies: + concat-stream "^1.4.10" + conventional-commits-filter "^1.0.0" + conventional-commits-parser "^1.0.1" + git-latest-semver-tag "^1.0.0" + git-raw-commits "^1.0.0" + meow "^3.3.0" + object-assign "^4.0.1" + convert-source-map@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" @@ -1066,13 +1294,19 @@ d@^0.1.1, d@~0.1.1: dependencies: es5-ext "~0.10.2" +dargs@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17" + dependencies: + number-is-nan "^1.0.0" + dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" dependencies: assert-plus "^1.0.0" -dateformat@^1.0.12: +dateformat@^1.0.11, dateformat@^1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9" dependencies: @@ -1123,12 +1357,6 @@ delegates@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" -detect-file@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63" - dependencies: - fs-exists-sync "^0.1.0" - detect-indent@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" @@ -1146,6 +1374,12 @@ doctrine@1.5.0, doctrine@^1.2.2: esutils "^2.0.2" isarray "^1.0.0" +dot-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" + dependencies: + is-obj "^1.0.0" + ecc-jsbn@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" @@ -1234,13 +1468,13 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-airbnb-base@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-10.0.1.tgz#f17d4e52992c1d45d1b7713efbcd5ecd0e7e0506" +eslint-config-airbnb-base@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.0.tgz#dc9b3ec70b8c74dcbe6d6257c9da3992c39ca2ca" -eslint-config-pob@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-pob/-/eslint-config-pob-10.0.1.tgz#e878486c58beee051d94dee7c3d7f404e22f9381" +eslint-config-pob@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-pob/-/eslint-config-pob-11.1.0.tgz#a02acd41480c9637369222d01c28eb3cb2358408" eslint-import-resolver-node@^0.2.0: version "0.2.3" @@ -1257,9 +1491,9 @@ eslint-module-utils@^2.0.0: debug "2.2.0" pkg-dir "^1.0.0" -eslint-plugin-babel@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-4.0.0.tgz#a92114e2c493ac3034b030d7ecf96e174a76ef3f" +eslint-plugin-babel@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-4.1.0.tgz#837a74c092ad4d74f9fc74aed43f750906adc827" eslint-plugin-import@^2.2.0: version "2.2.0" @@ -1276,9 +1510,9 @@ eslint-plugin-import@^2.2.0: minimatch "^3.0.3" pkg-up "^1.0.0" -eslint@^3.10.2: - version "3.11.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.11.1.tgz#408be581041385cba947cd8d1cd2227782b55dbf" +eslint@^3.16.1: + version "3.16.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.16.1.tgz#9bc31fc7341692cf772e80607508f67d711c5609" dependencies: babel-code-frame "^6.16.0" chalk "^1.1.3" @@ -1286,12 +1520,12 @@ eslint@^3.10.2: debug "^2.1.1" doctrine "^1.2.2" escope "^3.6.0" - espree "^3.3.1" + espree "^3.4.0" estraverse "^4.2.0" esutils "^2.0.2" file-entry-cache "^2.0.0" glob "^7.0.3" - globals "^9.2.0" + globals "^9.14.0" ignore "^3.2.0" imurmurhash "^0.1.4" inquirer "^0.12.0" @@ -1310,22 +1544,26 @@ eslint@^3.10.2: require-uncached "^1.0.2" shelljs "^0.7.5" strip-bom "^3.0.0" - strip-json-comments "~1.0.1" + strip-json-comments "~2.0.1" table "^3.7.8" text-table "~0.2.0" user-home "^2.0.0" -espree@^3.3.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.3.2.tgz#dbf3fadeb4ecb4d4778303e50103b3d36c88b89c" +espree@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.4.0.tgz#41656fa5628e042878025ef467e78f125cb86e1d" dependencies: - acorn "^4.0.1" + acorn "4.0.4" acorn-jsx "^3.0.0" esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" +esprima@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + esrecurse@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" @@ -1372,12 +1610,6 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -expand-tilde@^1.2.1, expand-tilde@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449" - dependencies: - os-homedir "^1.0.1" - extend@^3.0.0, extend@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" @@ -1390,6 +1622,12 @@ external-editor@^1.1.0: spawn-sync "^1.0.15" tmp "^0.0.29" +external-editor@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.1.tgz#4c597c6c88fa6410e41dbbaa7b1be2336aa31095" + dependencies: + tmp "^0.0.31" + extglob@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" @@ -1411,6 +1649,12 @@ figures@^1.3.5: escape-string-regexp "^1.0.5" object-assign "^4.1.0" +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + dependencies: + escape-string-regexp "^1.0.5" + file-entry-cache@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" @@ -1439,30 +1683,11 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" -findup-sync@^0.4.2: - version "0.4.3" - resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.3.tgz#40043929e7bc60adf0b7f4827c4c6e75a0deca12" - dependencies: - detect-file "^0.1.0" - is-glob "^2.0.1" - micromatch "^2.3.7" - resolve-dir "^0.1.0" - -fined@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/fined/-/fined-1.0.2.tgz#5b28424b760d7598960b7ef8480dff8ad3660e97" +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" dependencies: - expand-tilde "^1.2.1" - lodash.assignwith "^4.0.7" - lodash.isempty "^4.2.1" - lodash.isplainobject "^4.0.4" - lodash.isstring "^4.0.1" - lodash.pick "^4.2.1" - parse-filepath "^1.0.1" - -flagged-respawn@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-0.3.2.tgz#ff191eddcd7088a675b2610fffc976be9b8074b5" + locate-path "^2.0.0" flat-cache@^1.2.1: version "1.2.1" @@ -1473,6 +1698,14 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" +flow-config-parser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/flow-config-parser/-/flow-config-parser-0.3.0.tgz#704916efba88cd2518ab4d8f933079571276138f" + +flow-runtime@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/flow-runtime/-/flow-runtime-0.6.1.tgz#dfb5c29983d99df0ca2f045e2a3da8f20b461c0d" + for-in@^0.1.5: version "0.1.6" resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8" @@ -1495,10 +1728,6 @@ form-data@~2.1.1: combined-stream "^1.0.5" mime-types "^2.1.12" -fs-exists-sync@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" - fs-readdir-recursive@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.0.0.tgz#8cd1745c8b4f8a29c8caec392476921ba195f560" @@ -1559,6 +1788,15 @@ generate-object-property@^1.1.0: dependencies: is-property "^1.0.0" +get-pkg-repo@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-0.1.0.tgz#7f04d968564bf9cd2e901810577f84c37f2b03bd" + dependencies: + hosted-git-info "^2.1.4" + meow "^3.3.0" + normalize-package-data "^2.3.0" + through2 "^2.0.0" + get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" @@ -1569,6 +1807,40 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" +git-latest-semver-tag@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/git-latest-semver-tag/-/git-latest-semver-tag-1.0.2.tgz#061130cbf4274111cc6be4612b3ff3a6d93e2660" + dependencies: + git-semver-tags "^1.1.2" + meow "^3.3.0" + +git-raw-commits@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-0.1.2.tgz#2becbdcd3f96ef0b19f16863f7a2f6d9d8ab8369" + dependencies: + dargs "^4.0.1" + lodash.template "^3.6.1" + meow "^3.1.0" + split2 "^1.0.0" + through2 "^2.0.0" + +git-raw-commits@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-1.1.2.tgz#a12d8492aeba2881802d700825ed81c9f39e6f2f" + dependencies: + dargs "^4.0.1" + lodash.template "^4.0.2" + meow "^3.3.0" + split2 "^2.0.0" + through2 "^2.0.0" + +git-semver-tags@^1.1.0, git-semver-tags@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.1.2.tgz#aecf9b1b2447a6b548d48647f53edba0acad879f" + dependencies: + meow "^3.3.0" + semver "^5.0.1" + glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -1614,23 +1886,7 @@ glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1: once "^1.3.0" path-is-absolute "^1.0.0" -global-modules@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" - dependencies: - global-prefix "^0.1.4" - is-windows "^0.2.0" - -global-prefix@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f" - dependencies: - homedir-polyfill "^1.0.0" - ini "^1.3.4" - is-windows "^0.2.0" - which "^1.2.12" - -globals@^9.0.0, globals@^9.2.0: +globals@^9.0.0, globals@^9.14.0: version "9.14.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034" @@ -1657,7 +1913,7 @@ growl@1.9.2: version "1.9.2" resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" -handlebars@^4.0.1: +handlebars@^4.0.1, handlebars@^4.0.2: version "4.0.6" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7" dependencies: @@ -1716,12 +1972,6 @@ home-or-tmp@^2.0.0: os-homedir "^1.0.0" os-tmpdir "^1.0.1" -homedir-polyfill@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" - dependencies: - parse-passwd "^1.0.0" - hosted-git-info@^2.1.4: version "2.1.5" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.1.5.tgz#0ba81d90da2e25ab34a332e6ec77936e1598118b" @@ -1759,7 +2009,7 @@ inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" -ini@^1.3.4, ini@~1.3.0: +ini@~1.3.0: version "1.3.4" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" @@ -1781,22 +2031,40 @@ inquirer@^0.12.0: strip-ansi "^3.0.0" through "^2.3.6" -inquirer@^1.1.2, inquirer@^1.2.1: - version "1.2.3" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-1.2.3.tgz#4dec6f32f37ef7bb0b2ed3f1d1a5c3f545074918" +inquirer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-2.0.0.tgz#e1351687b90d150ca403ceaa3cefb1e3065bef4b" dependencies: ansi-escapes "^1.1.0" chalk "^1.0.0" cli-cursor "^1.0.1" cli-width "^2.0.0" external-editor "^1.1.0" - figures "^1.3.5" + figures "^2.0.0" lodash "^4.3.0" mute-stream "0.0.6" pinkie-promise "^2.0.0" run-async "^2.2.0" rx "^4.1.0" - string-width "^1.0.1" + string-width "^2.0.0" + strip-ansi "^3.0.0" + through "^2.3.6" + +inquirer@^3.0.1: + version "3.0.5" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.0.5.tgz#172cabc8eacbfb91d595f5d7c354b446b8141f65" + dependencies: + ansi-escapes "^1.1.0" + chalk "^1.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^2.0.1" + figures "^2.0.0" + lodash "^4.3.0" + mute-stream "0.0.7" + run-async "^2.2.0" + rx "^4.1.0" + string-width "^2.0.0" strip-ansi "^3.0.0" through "^2.3.6" @@ -1810,13 +2078,6 @@ invariant@^2.2.0: dependencies: loose-envify "^1.0.0" -is-absolute@^0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-0.2.6.tgz#20de69f3db942ef2d87b9c2da36f172235b1b5eb" - dependencies: - is-relative "^0.2.1" - is-windows "^0.2.0" - is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -1892,6 +2153,10 @@ is-number@^2.0.2, is-number@^2.1.0: dependencies: kind-of "^3.0.2" +is-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" + is-path-cwd@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" @@ -1924,36 +2189,30 @@ is-property@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" -is-relative@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-0.2.1.tgz#d27f4c7d516d175fb610db84bbeef23c3bc97aa5" - dependencies: - is-unc-path "^0.1.1" - is-resolvable@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" dependencies: tryit "^1.0.1" +is-subset@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" + +is-text-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" + dependencies: + text-extensions "^1.0.0" + is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" -is-unc-path@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-0.1.1.tgz#ab2533d77ad733561124c3dc0f5cd8b90054c86b" - dependencies: - unc-path-regex "^0.1.0" - is-utf8@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" -is-windows@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" - isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -2001,13 +2260,24 @@ js-tokens@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-2.0.0.tgz#79903f5563ee778cc1162e6dcf1a0027c97f9cb5" -js-yaml@3.x, js-yaml@^3.5.1, js-yaml@^3.7.0: +js-tokens@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" + +js-yaml@3.x, js-yaml@^3.5.1: version "3.7.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" dependencies: argparse "^1.0.7" esprima "^2.6.0" +js-yaml@^3.8.1: + version "3.8.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628" + dependencies: + argparse "^1.0.7" + esprima "^3.1.1" + jsbn@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd" @@ -2016,6 +2286,10 @@ jsesc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" +jsesc@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.4.0.tgz#8568d223ff69c0b5e081b4f8edf5a23d978c9867" + jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" @@ -2046,6 +2320,10 @@ jsonify@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" +jsonparse@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.0.tgz#85fc245b1d9259acc6941960b905adf64e7de0e8" + jsonpointer@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.0.tgz#6661e161d2fc445f19f98430231343722e1fcbd5" @@ -2064,19 +2342,17 @@ kind-of@^3.0.2: dependencies: is-buffer "^1.0.2" -komet-karma@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/komet-karma/-/komet-karma-0.2.3.tgz#08e332ac1ffe61e92ebd203c7ca0f600fd675532" - dependencies: - minimist-argv "^1.0.0" +komet-karma@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/komet-karma/-/komet-karma-0.2.5.tgz#c444229933b61684c14dc01342c76ab9c6538acf" -komet@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/komet/-/komet-0.1.3.tgz#cd1e4a601b1ece1695d5b00f3ae0d1214d4b87fc" +komet@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/komet/-/komet-0.1.4.tgz#1788a21720694d1c64defd3368bd7c70297b8be4" dependencies: chalk "^1.1.3" - inquirer "^1.2.1" - liftoff "^2.3.0" + find-up "^2.1.0" + inquirer "^2.0.0" minimist-argv "^1.0.0" lazy-cache@^1.0.3: @@ -2090,20 +2366,6 @@ levn@^0.3.0, levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -liftoff@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-2.3.0.tgz#a98f2ff67183d8ba7cfaca10548bd7ff0550b385" - dependencies: - extend "^3.0.0" - findup-sync "^0.4.2" - fined "^1.0.1" - flagged-respawn "^0.3.2" - lodash.isplainobject "^4.0.4" - lodash.isstring "^4.0.1" - lodash.mapvalues "^4.4.0" - rechoir "^0.6.2" - resolve "^1.1.7" - load-json-file@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" @@ -2114,6 +2376,13 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + lock@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/lock/-/lock-0.1.3.tgz#f66c1caa0c41956e1426608039ed59b71bdf1854" @@ -2133,6 +2402,14 @@ lodash._basecreate@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" +lodash._basetostring@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz#d1861d877f824a52f669832dcaf3ee15566a07d5" + +lodash._basevalues@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz#5b775762802bde3d3297503e26300820fdf661b7" + lodash._getnative@^3.0.0: version "3.9.1" resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" @@ -2141,9 +2418,13 @@ lodash._isiterateecall@^3.0.0: version "3.0.9" resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" -lodash.assignwith@^4.0.7: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz#127a97f02adc41751a954d24b0de17e100e038eb" +lodash._reinterpolate@^3.0.0, lodash._reinterpolate@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" + +lodash._root@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" lodash.camelcase@^4.3.0: version "4.3.0" @@ -2161,9 +2442,11 @@ lodash.create@3.1.1: lodash._basecreate "^3.0.0" lodash._isiterateecall "^3.0.0" -lodash.find@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/lodash.find/-/lodash.find-4.6.0.tgz#cb0704d47ab71789ffa0de8b97dd926fb88b13b1" +lodash.escape@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698" + dependencies: + lodash._root "^3.0.0" lodash.isarguments@^3.0.0: version "3.1.0" @@ -2173,18 +2456,6 @@ lodash.isarray@^3.0.0: version "3.0.4" resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" -lodash.isempty@^4.2.1: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.isempty/-/lodash.isempty-4.4.0.tgz#6f86cbedd8be4ec987be9aaf33c9684db1b31e7e" - -lodash.isplainobject@^4.0.4: - version "4.0.6" - resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" - -lodash.isstring@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" - lodash.keys@^3.0.0: version "3.1.2" resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" @@ -2193,23 +2464,57 @@ lodash.keys@^3.0.0: lodash.isarguments "^3.0.0" lodash.isarray "^3.0.0" -lodash.mapvalues@^4.4.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz#1bafa5005de9dd6f4f26668c30ca37230cc9689c" - -lodash.pick@^4.2.1: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" - lodash.pickby@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.pickby/-/lodash.pickby-4.6.0.tgz#7dea21d8c18d7703a27c704c15d3b84a67e33aff" +lodash.restparam@^3.0.0: + version "3.6.1" + resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" + lodash.some@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.some/-/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d" -lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0: +lodash.template@^3.6.1: + version "3.6.2" + resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-3.6.2.tgz#f8cdecc6169a255be9098ae8b0c53d378931d14f" + dependencies: + lodash._basecopy "^3.0.0" + lodash._basetostring "^3.0.0" + lodash._basevalues "^3.0.0" + lodash._isiterateecall "^3.0.0" + lodash._reinterpolate "^3.0.0" + lodash.escape "^3.0.0" + lodash.keys "^3.0.0" + lodash.restparam "^3.0.0" + lodash.templatesettings "^3.0.0" + +lodash.template@^4.0.2: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.4.0.tgz#e73a0385c8355591746e020b99679c690e68fba0" + dependencies: + lodash._reinterpolate "~3.0.0" + lodash.templatesettings "^4.0.0" + +lodash.templatesettings@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz#fb307844753b66b9f1afa54e262c745307dba8e5" + dependencies: + lodash._reinterpolate "^3.0.0" + lodash.escape "^3.0.0" + +lodash.templatesettings@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz#2b4d4e95ba440d915ff08bc899e4553666713316" + dependencies: + lodash._reinterpolate "~3.0.0" + +lodash@^3.3.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" + +lodash@^4.0.0, lodash@^4.1.0, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0: version "4.17.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.2.tgz#34a3055babe04ce42467b607d700072c7ff6bf42" @@ -2236,15 +2541,11 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" -map-cache@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - map-obj@^1.0.0, map-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" -meow@^3.3.0: +meow@^3.1.0, meow@^3.3.0, meow@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" dependencies: @@ -2259,7 +2560,7 @@ meow@^3.3.0: redent "^1.0.0" trim-newlines "^1.0.0" -micromatch@^2.1.5, micromatch@^2.3.7: +micromatch@^2.1.5: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" dependencies: @@ -2287,6 +2588,10 @@ mime-types@^2.1.12, mime-types@~2.1.7: dependencies: mime-db "~1.25.0" +mimic-fn@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" + "minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" @@ -2313,7 +2618,7 @@ mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi dependencies: minimist "0.0.8" -mocha@^3.1.0: +mocha@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.2.0.tgz#7dc4f45e5088075171a68896814e6ae9eb7a85e3" dependencies: @@ -2329,6 +2634,10 @@ mocha@^3.1.0: mkdirp "0.5.1" supports-color "3.1.2" +modify-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.0.tgz#e2b6cdeb9ce19f99317a53722f3dbf5df5eaaab2" + ms@0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" @@ -2345,6 +2654,10 @@ mute-stream@0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.6.tgz#48962b19e169fd1dfc240b3f1e7317627bbc47db" +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + nan@^2.3.0: version "2.4.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.4.0.tgz#fb3c59d45fe4effe215f0b890f8adf6eb32d2232" @@ -2366,7 +2679,7 @@ nightingale-console-output@^1.2.0: dependencies: nightingale-levels "^1.0.0" -nightingale-console@^2.1.0: +nightingale-console@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/nightingale-console/-/nightingale-console-2.2.0.tgz#ea24ae47aea99e48c4beb508c03040a5c88f08a9" dependencies: @@ -2390,18 +2703,18 @@ nightingale-levels@^1.0.0, nightingale-levels@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/nightingale-levels/-/nightingale-levels-1.1.0.tgz#d20cd00d050f557e1c29026fd75ec5b9a9752af3" -nightingale-logger@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/nightingale-logger/-/nightingale-logger-3.1.0.tgz#9593c4c35d37608823a98ee8a79ec443c0ae3025" +nightingale-logger@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/nightingale-logger/-/nightingale-logger-3.1.1.tgz#49c5716a2b0b957407cee56907686f32c70a6e88" dependencies: nightingale-levels "^1.1.0" -nightingale@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/nightingale/-/nightingale-6.0.1.tgz#13c854e9bb006aef34f5d109246162903ad51f0e" +nightingale@^6.0.1: + version "6.0.3" + resolved "https://registry.yarnpkg.com/nightingale/-/nightingale-6.0.3.tgz#15bdae1084df27c15f35dc18f6bbb00b8f9a9ba1" dependencies: nightingale-levels "^1.1.0" - nightingale-logger "^3.1.0" + nightingale-logger "^3.1.1" node-pre-gyp@^0.6.29: version "0.6.32" @@ -2423,7 +2736,7 @@ nopt@3.x, nopt@~3.0.6: dependencies: abbrev "1" -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: +normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: version "2.3.5" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.5.tgz#8d924f142960e1777e7ffe170543631cc7cb02df" dependencies: @@ -2480,6 +2793,12 @@ onetime@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" +onetime@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.0.tgz#52aa8110e52fc5126ffc667bd8ec21c2ed209ce6" + dependencies: + mimic-fn "^1.0.0" + optimist@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" @@ -2498,16 +2817,16 @@ optionator@^0.8.1, optionator@^0.8.2: type-check "~0.3.2" wordwrap "~1.0.0" -ora@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-0.3.0.tgz#367a078ad25cfb096da501115eb5b401e07d7495" +ora@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-1.1.0.tgz#69aaa4a209630e43b142c5f7ff41820da87e2faf" dependencies: chalk "^1.1.1" - cli-cursor "^1.0.2" - cli-spinners "^0.2.0" + cli-cursor "^2.1.0" + cli-spinners "^1.0.0" log-symbols "^1.0.2" -os-homedir@^1.0.0, os-homedir@^1.0.1: +os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -2515,17 +2834,19 @@ os-shim@^0.1.2: version "0.1.3" resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" -os-tmpdir@^1.0.1, os-tmpdir@~1.0.1: +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" -parse-filepath@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.1.tgz#159d6155d43904d16c10ef698911da1e91969b73" +p-limit@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" dependencies: - is-absolute "^0.2.3" - map-cache "^0.2.0" - path-root "^0.1.1" + p-limit "^1.1.0" parse-glob@^3.0.4: version "3.0.4" @@ -2542,16 +2863,16 @@ parse-json@^2.2.0: dependencies: error-ex "^1.2.0" -parse-passwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" - path-exists@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" dependencies: pinkie-promise "^2.0.0" +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" @@ -2560,16 +2881,6 @@ path-is-inside@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" -path-root-regex@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d" - -path-root@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7" - dependencies: - path-root-regex "^0.1.0" - path-type@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" @@ -2608,46 +2919,38 @@ pluralize@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" -pob-babel@^12.5.0: - version "12.8.1" - resolved "https://registry.yarnpkg.com/pob-babel/-/pob-babel-12.8.1.tgz#b22cb3b454678ecec83909b3d94fe3f67a4219a7" +pob-babel@^16.1.0: + version "16.1.0" + resolved "https://registry.yarnpkg.com/pob-babel/-/pob-babel-16.1.0.tgz#3f2047061f29a7ae7ae3426839ac88fb2fcabe8f" dependencies: - babel-core "^6.18.2" + babel-core "^6.23.1" babel-plugin-discard-module-references "^1.1.2" - babel-plugin-import-export-rename "^1.0.1" - babel-plugin-minify-constant-folding "0.0.1" - babel-plugin-minify-dead-code-elimination "0.1.0" - babel-plugin-minify-guarded-expressions "0.0.3" - babel-plugin-minify-replace "0.0.1" - babel-plugin-react-require "^3.0.0" - babel-plugin-syntax-flow "^6.18.0" - babel-plugin-tcomb-forked "^0.3.23" - babel-plugin-transform-export-default-name-forked "^1.0.6" - babel-plugin-transform-flow-strip-types "^6.18.0" - babel-plugin-transform-object-rest-spread "^6.19.0" - babel-plugin-transform-react-jsx-self "^6.11.0" - babel-plugin-transform-react-jsx-source "^6.9.0" - babel-preset-stage-1 "^6.16.0" + babel-preset-babili-optimizations "^0.2.0" + babel-preset-pob "^0.1.1" + babel-preset-pob-stages "^0.1.0" + babel-preset-stage-1 "^6.22.0" chokidar "^1.6.1" fs-readdir-recursive "^1.0.0" glob "^7.1.1" - js-yaml "^3.7.0" + js-yaml "^3.8.1" lock "^0.1.3" - nightingale "^6.0.0" - nightingale-console "^2.1.0" - ora "^0.3.0" - pob-release "^2.3.0" - promise-callback-factory "^1.0.0" + mkdirp "^0.5.1" + nightingale "^6.0.1" + nightingale-console "^2.2.0" + ora "^1.1.0" + promise-callback-factory "^1.1.0" promise-queue "^2.2.3" slash "^1.0.0" -pob-release@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pob-release/-/pob-release-2.3.0.tgz#f1dea541f2132c55e97c9ed13aa5693e7a773bd3" +pob-release@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/pob-release/-/pob-release-3.1.0.tgz#36003372cec1f1dbf627db04b667302d6291ad37" dependencies: - inquirer "^1.1.2" + conventional-recommended-bump "^0.3.0" + inquirer "^3.0.1" minimist-argv "^1.0.0" semver "^5.3.0" + standard-changelog "0.0.1" prelude-ls@~1.1.2: version "1.1.2" @@ -2657,7 +2960,7 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -private@^0.1.6, private@~0.1.5: +private@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/private/-/private-0.1.6.tgz#55c6a976d0f9bafb9924851350fe47b9b5fbb7c1" @@ -2669,9 +2972,9 @@ progress@^1.1.8: version "1.1.8" resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" -promise-callback-factory@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/promise-callback-factory/-/promise-callback-factory-1.0.0.tgz#2859ee21a497d5b09eb5b379f021a12877c6f5ad" +promise-callback-factory@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/promise-callback-factory/-/promise-callback-factory-1.1.0.tgz#d2ac02a51d7b858e0068eb324455e21cf28ce442" promise-queue@^2.2.3: version "2.2.3" @@ -2681,6 +2984,10 @@ punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" +q@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" + qs@~6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442" @@ -2708,7 +3015,7 @@ read-pkg-up@^1.0.1: find-up "^1.0.0" read-pkg "^1.0.0" -read-pkg@^1.0.0: +read-pkg@^1.0.0, read-pkg@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" dependencies: @@ -2716,7 +3023,7 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" -"readable-stream@^2.0.0 || ^1.1.13", readable-stream@~2.1.4: +"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.1.5, readable-stream@~2.1.4: version "2.1.5" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" dependencies: @@ -2773,10 +3080,22 @@ regenerate@^1.2.1: version "1.3.2" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" +regenerator-runtime@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" + regenerator-runtime@^0.9.5: version "0.9.6" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.9.6.tgz#d33eb95d0d2001a4be39659707c51b0cb71ce029" +regenerator-transform@0.9.8: + version "0.9.8" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.8.tgz#0f88bb2bc03932ddb7b6b7312e68078f01026d6c" + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + regex-cache@^0.4.2: version "0.4.3" resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" @@ -2848,18 +3167,11 @@ require-uncached@^1.0.2: caller-path "^0.1.0" resolve-from "^1.0.0" -resolve-dir@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" - dependencies: - expand-tilde "^1.2.2" - global-modules "^0.2.3" - resolve-from@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" -resolve@1.1.x, resolve@^1.1.6, resolve@^1.1.7: +resolve@1.1.x, resolve@^1.1.6: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" @@ -2870,6 +3182,13 @@ restore-cursor@^1.0.1: exit-hook "^1.0.0" onetime "^1.0.0" +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + right-align@^0.1.1: version "0.1.3" resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" @@ -2902,7 +3221,7 @@ rx@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782" -"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@~5.3.0: +"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.3.0, semver@~5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" @@ -2922,7 +3241,7 @@ shelljs@^0.7.5: interpret "^1.0.0" rechoir "^0.6.2" -signal-exit@^3.0.0: +signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" @@ -2983,6 +3302,24 @@ spdx-license-ids@^1.0.2: version "1.2.2" resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" +split2@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-1.1.1.tgz#162d9b18865f02ab2f2ad9585522db9b54c481f9" + dependencies: + through2 "~2.0.0" + +split2@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-2.1.1.tgz#7a1f551e176a90ecd3345f7246a0cfe175ef4fd0" + dependencies: + through2 "^2.0.2" + +split@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/split/-/split-1.0.0.tgz#c4395ce683abcd254bc28fe1dabb6e5c27dcffae" + dependencies: + through "2" + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -3002,6 +3339,17 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" +standard-changelog@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/standard-changelog/-/standard-changelog-0.0.1.tgz#b367266fce05ca39ef2bbc09c0d24ddbd4191891" + dependencies: + add-stream "^1.0.0" + conventional-changelog-angular "^0.1.0" + conventional-changelog-core "^0.0.2" + lodash "^4.1.0" + meow "^3.7.0" + tempfile "^1.1.1" + string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -3047,10 +3395,14 @@ strip-indent@^1.0.1: dependencies: get-stdin "^4.0.1" -strip-json-comments@~1.0.1, strip-json-comments@~1.0.4: +strip-json-comments@~1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91" +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + supports-color@3.1.2, supports-color@^3.1.0: version "3.1.2" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" @@ -3097,15 +3449,29 @@ tar@~2.2.1: fstream "^1.0.2" inherits "2" -tcomb-forked@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/tcomb-forked/-/tcomb-forked-3.4.0.tgz#90cd9977076463df3c0f7c644c9f571fda3f1780" +tempfile@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/tempfile/-/tempfile-1.1.1.tgz#5bcc4eaecc4ab2c707d8bc11d99ccc9a2cb287f2" + dependencies: + os-tmpdir "^1.0.0" + uuid "^2.0.1" + +text-extensions@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.4.0.tgz#c385d2e80879fe6ef97893e1709d88d9453726e9" text-table@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" -through@^2.3.6: +through2@^2.0.0, through2@^2.0.2, through2@~2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + +through@2, "through@>=2.2.7 <3", through@^2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -3115,6 +3481,12 @@ tmp@^0.0.29: dependencies: os-tmpdir "~1.0.1" +tmp@^0.0.31: + version "0.0.31" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7" + dependencies: + os-tmpdir "~1.0.1" + to-fast-properties@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" @@ -3129,6 +3501,14 @@ trim-newlines@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" +trim-off-newlines@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + tryit@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" @@ -3168,10 +3548,6 @@ uid-number@~0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" -unc-path-regex@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - user-home@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" @@ -3182,6 +3558,10 @@ util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" +uuid@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" + uuid@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" @@ -3199,7 +3579,7 @@ verror@1.3.6: dependencies: extsprintf "1.0.2" -which@^1.1.1, which@^1.2.12: +which@^1.1.1: version "1.2.12" resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192" dependencies: @@ -3237,7 +3617,7 @@ write@^0.2.1: dependencies: mkdirp "^0.5.1" -xtend@^4.0.0: +xtend@^4.0.0, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"