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

editorconfig-checker

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editorconfig-checker - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

10

dist/utils/exclude-utils.js

@@ -10,2 +10,8 @@ 'use strict';

// Quickfix for this issue
// https://github.com/editorconfig-checker/editorconfig-checker.javascript/issues/18
var getDefaultExcludesRegexp = function getDefaultExcludesRegexp() {
return ['vendor', 'node_modules', 'coverage/', '.DS_Store/', '.git/', '.gif', '.png', '.bmp', '.jpg', '.svg', '.ico', '.lock', '.eot', '.woff', '.woff2', '.ttf', '.bak', '.bin', '.min.js', '.min.css', '.pdf', '.jpeg'];
};
var getExcludePatternFromArgs = function getExcludePatternFromArgs(args) {

@@ -31,2 +37,6 @@ var excludesArray = [];

if (!args['ignore-defaults']) {
excludesArray.push(getDefaultExcludesRegexp());
}
var excludeString = [].concat.apply([], excludesArray).join('|');

@@ -33,0 +43,0 @@

2

package.json
{
"name": "editorconfig-checker",
"version": "1.1.2",
"version": "1.1.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -28,2 +28,31 @@ const getDefaultExcludes = () => {

// Quickfix for this issue
// https://github.com/editorconfig-checker/editorconfig-checker.javascript/issues/18
const getDefaultExcludesRegexp = () => {
return [
'vendor',
'node_modules',
'coverage/',
'.DS_Store/',
'.git/',
'.gif',
'.png',
'.bmp',
'.jpg',
'.svg',
'.ico',
'.lock',
'.eot',
'.woff',
'.woff2',
'.ttf',
'.bak',
'.bin',
'.min.js',
'.min.css',
'.pdf',
'.jpeg'
];
};
const getExcludePatternFromArgs = args => {

@@ -49,2 +78,6 @@ const excludesArray = [];

if (!args['ignore-defaults']) {
excludesArray.push(getDefaultExcludesRegexp());
}
const excludeString = []

@@ -51,0 +84,0 @@ .concat.apply([], excludesArray)

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