Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-flow

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-flow - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-alpha.1

13

bin/parser.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc