Socket
Socket
Sign inDemoInstall

fast-glob

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-glob - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

2

out/managers/tasks.d.ts

@@ -35,3 +35,3 @@ import { Pattern, PatternsGroup } from '../types/patterns';

/**
* Returns those negative patterns whose base paths includes positive base path.
* Returns those negative patterns whose base paths includes positive base path or positive base path includes base paths.
*/

@@ -38,0 +38,0 @@ export declare function findLocalNegativePatterns(positiveBase: string, negative: PatternsGroup): Pattern[];

@@ -99,7 +99,7 @@ "use strict";

/**
* Returns those negative patterns whose base paths includes positive base path.
* Returns those negative patterns whose base paths includes positive base path or positive base path includes base paths.
*/
function findLocalNegativePatterns(positiveBase, negative) {
return Object.keys(negative).reduce(function (collection, base) {
if (base.startsWith(positiveBase)) {
if (base.startsWith(positiveBase) || positiveBase.startsWith(base)) {
collection.push.apply(collection, __spread(negative[base]));

@@ -106,0 +106,0 @@ }

@@ -1,2 +0,1 @@

/// <reference types="micromatch" />
import micromatch = require('micromatch');

@@ -17,35 +16,35 @@ import { IOptions } from '../../managers/options';

*/
private getMaxPatternDepth(patterns);
private getMaxPatternDepth;
/**
* Returns RegExp's for patterns that can affect the depth of reading.
*/
private getNegativePatternsRe(patterns);
private getNegativePatternsRe;
/**
* Returns «true» for directory that should be readed.
*/
private filter(entry, negativeRe, maxPatternDepth);
private filter;
/**
* Returns «true» when the directory can be skipped by nesting level.
*/
private isSkippedByNestingLevel(entryDepth, maxPatternDepth);
private isSkippedByNestingLevel;
/**
* Returns «true» when the «deep» option is disabled or number and depth of the entry is greater that the option value.
*/
private isSkippedByDeepOption(entryDepth);
private isSkippedByDeepOption;
/**
* Returns «true» when depth parameter is not an Infinity and entry depth greater that the parameter value.
*/
private isSkippedByMaxPatternDepth(entryDepth, maxPatternDepth);
private isSkippedByMaxPatternDepth;
/**
* Returns «true» for symlinked directory if the «followSymlinkedDirectories» option is disabled.
*/
private isSkippedSymlinkedDirectory(entry);
private isSkippedSymlinkedDirectory;
/**
* Returns «true» for a directory whose name starts with a period if «dot» option is disabled.
*/
private isSkippedDotDirectory(entry);
private isSkippedDotDirectory;
/**
* Returns «true» for a directory whose path math to any negative pattern.
*/
private isSkippedByNegativePatterns(entry, negativeRe);
private isSkippedByNegativePatterns;
}

@@ -1,2 +0,1 @@

/// <reference types="micromatch" />
import micromatch = require('micromatch');

@@ -18,19 +17,19 @@ import { IOptions } from '../../managers/options';

*/
private filter(entry, positiveRe, negativeRe);
private filter;
/**
* Return true if the entry already has in the cross reader index.
*/
private isDuplicateEntry(entry);
private isDuplicateEntry;
/**
* Create record in the cross reader index.
*/
private createIndexRecord(entry);
private createIndexRecord;
/**
* Returns true for non-files if the «onlyFiles» option is enabled.
*/
private onlyFileFilter(entry);
private onlyFileFilter;
/**
* Returns true for non-directories if the «onlyDirectories» option is enabled.
*/
private onlyDirectoryFilter(entry);
private onlyDirectoryFilter;
/**

@@ -42,3 +41,3 @@ * Return true when entry match to provided patterns.

*/
private isMatchToPatterns(entry, patternsRe);
private isMatchToPatterns;
}

@@ -1,2 +0,1 @@

/// <reference types="micromatch" />
/// <reference types="node" />

@@ -3,0 +2,0 @@ import micromatch = require('micromatch');

@@ -1,2 +0,1 @@

/// <reference types="micromatch" />
import micromatch = require('micromatch');

@@ -3,0 +2,0 @@ import { Pattern, PatternRe } from '../types/patterns';

@@ -135,2 +135,3 @@ "use strict";

function matchAny(entry, patternsRe) {
var e_1, _a;
try {

@@ -152,4 +153,3 @@ for (var patternsRe_1 = __values(patternsRe), patternsRe_1_1 = patternsRe_1.next(); !patternsRe_1_1.done; patternsRe_1_1 = patternsRe_1.next()) {

return false;
var e_1, _a;
}
exports.matchAny = matchAny;
{
"name": "fast-glob",
"version": "2.2.2",
"version": "2.2.3",
"description": "Is a faster `node-glob` alternative",

@@ -5,0 +5,0 @@ "license": "MIT",

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