Urara-Blog/node_modules/.pnpm-store/v3/files/4c/0047aadf154da6993c551b823b6339d4d539a779d350ae88da63148375e127f5809be58c7c91dc9f5f30d4fa7056d11ddec9441ad9d6f176575f131604f095
2022-08-14 01:14:53 +08:00

20 lines
799 B
Text

import Settings from '../../settings';
import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types';
export default class EntryFilter {
private readonly _settings;
private readonly _micromatchOptions;
readonly index: Map<string, undefined>;
constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
private _filter;
private _isDuplicateEntry;
private _createIndexRecord;
private _onlyFileFilter;
private _onlyDirectoryFilter;
private _isSkippedByAbsoluteNegativePatterns;
/**
* First, just trying to apply patterns to the path.
* Second, trying to apply patterns to the path with final slash.
*/
private _isMatchToPatterns;
}