check-flow
Advanced tools
Comparing version 1.1.0 to 1.1.1-alpha.1
@@ -18,2 +18,4 @@ "use strict"; | ||
var _stripAnsi = _interopRequireDefault(require("strip-ansi")); | ||
var _ignore = _interopRequireDefault(require("ignore")); | ||
@@ -38,3 +40,3 @@ | ||
const log = (0, _debug.default)('check-flow:parser'); | ||
const ERROR_MATCHING_REGEX = /(Error|Warning) -+ (.+):(\d*):(\d*)$/; | ||
const ERROR_MATCHING_REGEX = /^(Error|Warning) [-┈]+ (.+):(\d+):(\d+)/; | ||
const FOUND_ERRORS_REGEX = /Found \d+ errors?/; | ||
@@ -99,3 +101,3 @@ /** | ||
if (FOUND_ERRORS_REGEX.test(line)) { | ||
if (FOUND_ERRORS_REGEX.test((0, _stripAnsi.default)(line))) { | ||
this.lines = []; // Stop the loop | ||
@@ -106,3 +108,3 @@ | ||
const match = line.match(ERROR_MATCHING_REGEX); | ||
const match = (0, _stripAnsi.default)(line).match(ERROR_MATCHING_REGEX); | ||
@@ -132,3 +134,3 @@ if (match) { | ||
getErrorLines(lines) { | ||
if (ERROR_MATCHING_REGEX.test(this.lines[0]) || FOUND_ERRORS_REGEX.test(this.lines[0])) { | ||
if (ERROR_MATCHING_REGEX.test((0, _stripAnsi.default)(this.lines[0])) || FOUND_ERRORS_REGEX.test((0, _stripAnsi.default)(this.lines[0]))) { | ||
return lines; | ||
@@ -141,3 +143,4 @@ } | ||
includeError(filepath) { | ||
// Ignore the error when the file path is in the ignored files | ||
log('Found error in file:', filepath); // Ignore the error when the file path is in the ignored files | ||
if (this.ignoreFiles.ignores(filepath)) { | ||
@@ -144,0 +147,0 @@ log('Ignoring error in file:', filepath, 'because it\'s an ignored file'); |
{ | ||
"name": "check-flow", | ||
"version": "1.1.0", | ||
"version": "1.1.1-alpha.1", | ||
"description": "A better flow cli with ignoring files from node_modules", | ||
@@ -26,10 +26,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"debug": "3.1.0", | ||
"debug": "4.0.1", | ||
"ignore": "5.0.2", | ||
"ora": "3.0.0", | ||
"yargs": "12.0.1" | ||
"strip-ansi": "^4.0.0", | ||
"yargs": "12.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.0.0", | ||
"@babel/core": "7.0.0", | ||
"@babel/core": "7.0.1", | ||
"@babel/node": "7.0.0", | ||
@@ -36,0 +37,0 @@ "@babel/plugin-proposal-class-properties": "7.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17795
262
6
2
+ Addedstrip-ansi@^4.0.0
+ Addedcross-spawn@6.0.6(transitive)
+ Addeddebug@4.0.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedinvert-kv@2.0.0(transitive)
+ Addedlcid@2.0.0(transitive)
+ Addedmap-age-cleaner@0.1.3(transitive)
+ Addedmem@4.3.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-locale@3.1.0(transitive)
+ Addedp-defer@1.0.0(transitive)
+ Addedp-is-promise@2.1.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyargs@12.0.2(transitive)
- Removedcross-spawn@5.1.0(transitive)
- Removeddebug@3.1.0(transitive)
- Removedexeca@0.7.0(transitive)
- Removedget-stream@3.0.0(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedlcid@1.0.0(transitive)
- Removedlru-cache@4.1.5(transitive)
- Removedmem@1.1.0(transitive)
- Removedms@2.0.0(transitive)
- Removedos-locale@2.1.0(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedyallist@2.1.2(transitive)
- Removedyargs@12.0.1(transitive)
Updateddebug@4.0.1
Updatedyargs@12.0.2