summaryrefslogtreecommitdiffstats
path: root/node_modules/fast-glob/out/providers
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/fast-glob/out/providers
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/fast-glob/out/providers')
-rw-r--r--node_modules/fast-glob/out/providers/async.d.ts11
-rw-r--r--node_modules/fast-glob/out/providers/async.js28
-rw-r--r--node_modules/fast-glob/out/providers/filters/deep.d.ts16
-rw-r--r--node_modules/fast-glob/out/providers/filters/deep.js62
-rw-r--r--node_modules/fast-glob/out/providers/filters/entry.d.ts16
-rw-r--r--node_modules/fast-glob/out/providers/filters/entry.js56
-rw-r--r--node_modules/fast-glob/out/providers/filters/error.d.ts8
-rw-r--r--node_modules/fast-glob/out/providers/filters/error.js15
-rw-r--r--node_modules/fast-glob/out/providers/matchers/matcher.d.ts33
-rw-r--r--node_modules/fast-glob/out/providers/matchers/matcher.js50
-rw-r--r--node_modules/fast-glob/out/providers/matchers/partial.d.ts4
-rw-r--r--node_modules/fast-glob/out/providers/matchers/partial.js38
-rw-r--r--node_modules/fast-glob/out/providers/provider.d.ts19
-rw-r--r--node_modules/fast-glob/out/providers/provider.js48
-rw-r--r--node_modules/fast-glob/out/providers/stream.d.ts11
-rw-r--r--node_modules/fast-glob/out/providers/stream.js31
-rw-r--r--node_modules/fast-glob/out/providers/sync.d.ts9
-rw-r--r--node_modules/fast-glob/out/providers/sync.js23
-rw-r--r--node_modules/fast-glob/out/providers/transformers/entry.d.ts8
-rw-r--r--node_modules/fast-glob/out/providers/transformers/entry.js26
20 files changed, 0 insertions, 512 deletions
diff --git a/node_modules/fast-glob/out/providers/async.d.ts b/node_modules/fast-glob/out/providers/async.d.ts
deleted file mode 100644
index d8f1ff8..0000000
--- a/node_modules/fast-glob/out/providers/async.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/// <reference types="node" />
-import { Readable } from 'stream';
-import { Task } from '../managers/tasks';
-import ReaderStream from '../readers/stream';
-import { EntryItem, ReaderOptions } from '../types';
-import Provider from './provider';
-export default class ProviderAsync extends Provider<Promise<EntryItem[]>> {
- protected _reader: ReaderStream;
- read(task: Task): Promise<EntryItem[]>;
- api(root: string, task: Task, options: ReaderOptions): Readable;
-}
diff --git a/node_modules/fast-glob/out/providers/async.js b/node_modules/fast-glob/out/providers/async.js
deleted file mode 100644
index 7b2b668..0000000
--- a/node_modules/fast-glob/out/providers/async.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const stream_1 = require("../readers/stream");
-const provider_1 = require("./provider");
-class ProviderAsync extends provider_1.default {
- constructor() {
- super(...arguments);
- this._reader = new stream_1.default(this._settings);
- }
- read(task) {
- const root = this._getRootDirectory(task);
- const options = this._getReaderOptions(task);
- const entries = [];
- return new Promise((resolve, reject) => {
- const stream = this.api(root, task, options);
- stream.once('error', reject);
- stream.on('data', (entry) => entries.push(options.transform(entry)));
- stream.once('end', () => resolve(entries));
- });
- }
- api(root, task, options) {
- if (task.dynamic) {
- return this._reader.dynamic(root, options);
- }
- return this._reader.static(task.patterns, options);
- }
-}
-exports.default = ProviderAsync;
diff --git a/node_modules/fast-glob/out/providers/filters/deep.d.ts b/node_modules/fast-glob/out/providers/filters/deep.d.ts
deleted file mode 100644
index 22586a9..0000000
--- a/node_modules/fast-glob/out/providers/filters/deep.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types';
-import Settings from '../../settings';
-export default class DeepFilter {
- private readonly _settings;
- private readonly _micromatchOptions;
- constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
- getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
- private _getMatcher;
- private _getNegativePatternsRe;
- private _filter;
- private _isSkippedByDeep;
- private _getEntryLevel;
- private _isSkippedSymbolicLink;
- private _isSkippedByPositivePatterns;
- private _isSkippedByNegativePatterns;
-}
diff --git a/node_modules/fast-glob/out/providers/filters/deep.js b/node_modules/fast-glob/out/providers/filters/deep.js
deleted file mode 100644
index 819c260..0000000
--- a/node_modules/fast-glob/out/providers/filters/deep.js
+++ /dev/null
@@ -1,62 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils = require("../../utils");
-const partial_1 = require("../matchers/partial");
-class DeepFilter {
- constructor(_settings, _micromatchOptions) {
- this._settings = _settings;
- this._micromatchOptions = _micromatchOptions;
- }
- getFilter(basePath, positive, negative) {
- const matcher = this._getMatcher(positive);
- const negativeRe = this._getNegativePatternsRe(negative);
- return (entry) => this._filter(basePath, entry, matcher, negativeRe);
- }
- _getMatcher(patterns) {
- return new partial_1.default(patterns, this._settings, this._micromatchOptions);
- }
- _getNegativePatternsRe(patterns) {
- const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
- return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
- }
- _filter(basePath, entry, matcher, negativeRe) {
- if (this._isSkippedByDeep(basePath, entry.path)) {
- return false;
- }
- if (this._isSkippedSymbolicLink(entry)) {
- return false;
- }
- const filepath = utils.path.removeLeadingDotSegment(entry.path);
- if (this._isSkippedByPositivePatterns(filepath, matcher)) {
- return false;
- }
- return this._isSkippedByNegativePatterns(filepath, negativeRe);
- }
- _isSkippedByDeep(basePath, entryPath) {
- /**
- * Avoid unnecessary depth calculations when it doesn't matter.
- */
- if (this._settings.deep === Infinity) {
- return false;
- }
- return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
- }
- _getEntryLevel(basePath, entryPath) {
- const entryPathDepth = entryPath.split('/').length;
- if (basePath === '') {
- return entryPathDepth;
- }
- const basePathDepth = basePath.split('/').length;
- return entryPathDepth - basePathDepth;
- }
- _isSkippedSymbolicLink(entry) {
- return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
- }
- _isSkippedByPositivePatterns(entryPath, matcher) {
- return !this._settings.baseNameMatch && !matcher.match(entryPath);
- }
- _isSkippedByNegativePatterns(entryPath, patternsRe) {
- return !utils.pattern.matchAny(entryPath, patternsRe);
- }
-}
-exports.default = DeepFilter;
diff --git a/node_modules/fast-glob/out/providers/filters/entry.d.ts b/node_modules/fast-glob/out/providers/filters/entry.d.ts
deleted file mode 100644
index 2f21c43..0000000
--- a/node_modules/fast-glob/out/providers/filters/entry.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-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;
- private _isMatchToPatterns;
-}
diff --git a/node_modules/fast-glob/out/providers/filters/entry.js b/node_modules/fast-glob/out/providers/filters/entry.js
deleted file mode 100644
index 4e86438..0000000
--- a/node_modules/fast-glob/out/providers/filters/entry.js
+++ /dev/null
@@ -1,56 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils = require("../../utils");
-class EntryFilter {
- constructor(_settings, _micromatchOptions) {
- this._settings = _settings;
- this._micromatchOptions = _micromatchOptions;
- this.index = new Map();
- }
- getFilter(positive, negative) {
- const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
- const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions);
- return (entry) => this._filter(entry, positiveRe, negativeRe);
- }
- _filter(entry, positiveRe, negativeRe) {
- if (this._settings.unique && this._isDuplicateEntry(entry)) {
- return false;
- }
- if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
- return false;
- }
- if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) {
- return false;
- }
- const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
- const isMatched = this._isMatchToPatterns(filepath, positiveRe) && !this._isMatchToPatterns(entry.path, negativeRe);
- if (this._settings.unique && isMatched) {
- this._createIndexRecord(entry);
- }
- return isMatched;
- }
- _isDuplicateEntry(entry) {
- return this.index.has(entry.path);
- }
- _createIndexRecord(entry) {
- this.index.set(entry.path, undefined);
- }
- _onlyFileFilter(entry) {
- return this._settings.onlyFiles && !entry.dirent.isFile();
- }
- _onlyDirectoryFilter(entry) {
- return this._settings.onlyDirectories && !entry.dirent.isDirectory();
- }
- _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
- if (!this._settings.absolute) {
- return false;
- }
- const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
- return utils.pattern.matchAny(fullpath, patternsRe);
- }
- _isMatchToPatterns(entryPath, patternsRe) {
- const filepath = utils.path.removeLeadingDotSegment(entryPath);
- return utils.pattern.matchAny(filepath, patternsRe);
- }
-}
-exports.default = EntryFilter;
diff --git a/node_modules/fast-glob/out/providers/filters/error.d.ts b/node_modules/fast-glob/out/providers/filters/error.d.ts
deleted file mode 100644
index 1e9d738..0000000
--- a/node_modules/fast-glob/out/providers/filters/error.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import Settings from '../../settings';
-import { ErrorFilterFunction } from '../../types';
-export default class ErrorFilter {
- private readonly _settings;
- constructor(_settings: Settings);
- getFilter(): ErrorFilterFunction;
- private _isNonFatalError;
-}
diff --git a/node_modules/fast-glob/out/providers/filters/error.js b/node_modules/fast-glob/out/providers/filters/error.js
deleted file mode 100644
index f93bdc0..0000000
--- a/node_modules/fast-glob/out/providers/filters/error.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils = require("../../utils");
-class ErrorFilter {
- constructor(_settings) {
- this._settings = _settings;
- }
- getFilter() {
- return (error) => this._isNonFatalError(error);
- }
- _isNonFatalError(error) {
- return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
- }
-}
-exports.default = ErrorFilter;
diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.d.ts b/node_modules/fast-glob/out/providers/matchers/matcher.d.ts
deleted file mode 100644
index fde0bd5..0000000
--- a/node_modules/fast-glob/out/providers/matchers/matcher.d.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { Pattern, MicromatchOptions, PatternRe } from '../../types';
-import Settings from '../../settings';
-export declare type PatternSegment = StaticPatternSegment | DynamicPatternSegment;
-declare type StaticPatternSegment = {
- dynamic: false;
- pattern: Pattern;
-};
-declare type DynamicPatternSegment = {
- dynamic: true;
- pattern: Pattern;
- patternRe: PatternRe;
-};
-export declare type PatternSection = PatternSegment[];
-export declare type PatternInfo = {
- /**
- * Indicates that the pattern has a globstar (more than a single section).
- */
- complete: boolean;
- pattern: Pattern;
- segments: PatternSegment[];
- sections: PatternSection[];
-};
-export default abstract class Matcher {
- private readonly _patterns;
- private readonly _settings;
- private readonly _micromatchOptions;
- protected readonly _storage: PatternInfo[];
- constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions);
- private _fillStorage;
- private _getPatternSegments;
- private _splitSegmentsIntoSections;
-}
-export {};
diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.js b/node_modules/fast-glob/out/providers/matchers/matcher.js
deleted file mode 100644
index 44b2cc7..0000000
--- a/node_modules/fast-glob/out/providers/matchers/matcher.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils = require("../../utils");
-class Matcher {
- constructor(_patterns, _settings, _micromatchOptions) {
- this._patterns = _patterns;
- this._settings = _settings;
- this._micromatchOptions = _micromatchOptions;
- this._storage = [];
- this._fillStorage();
- }
- _fillStorage() {
- /**
- * The original pattern may include `{,*,**,a/*}`, which will lead to problems with matching (unresolved level).
- * So, before expand patterns with brace expansion into separated patterns.
- */
- const patterns = utils.pattern.expandPatternsWithBraceExpansion(this._patterns);
- for (const pattern of patterns) {
- const segments = this._getPatternSegments(pattern);
- const sections = this._splitSegmentsIntoSections(segments);
- this._storage.push({
- complete: sections.length <= 1,
- pattern,
- segments,
- sections
- });
- }
- }
- _getPatternSegments(pattern) {
- const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions);
- return parts.map((part) => {
- const dynamic = utils.pattern.isDynamicPattern(part, this._settings);
- if (!dynamic) {
- return {
- dynamic: false,
- pattern: part
- };
- }
- return {
- dynamic: true,
- pattern: part,
- patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
- };
- });
- }
- _splitSegmentsIntoSections(segments) {
- return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
- }
-}
-exports.default = Matcher;
diff --git a/node_modules/fast-glob/out/providers/matchers/partial.d.ts b/node_modules/fast-glob/out/providers/matchers/partial.d.ts
deleted file mode 100644
index a5c93ba..0000000
--- a/node_modules/fast-glob/out/providers/matchers/partial.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import Matcher from './matcher';
-export default class PartialMatcher extends Matcher {
- match(filepath: string): boolean;
-}
diff --git a/node_modules/fast-glob/out/providers/matchers/partial.js b/node_modules/fast-glob/out/providers/matchers/partial.js
deleted file mode 100644
index f6a77e0..0000000
--- a/node_modules/fast-glob/out/providers/matchers/partial.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const matcher_1 = require("./matcher");
-class PartialMatcher extends matcher_1.default {
- match(filepath) {
- const parts = filepath.split('/');
- const levels = parts.length;
- const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
- for (const pattern of patterns) {
- const section = pattern.sections[0];
- /**
- * In this case, the pattern has a globstar and we must read all directories unconditionally,
- * but only if the level has reached the end of the first group.
- *
- * fixtures/{a,b}/**
- * ^ true/false ^ always true
- */
- if (!pattern.complete && levels > section.length) {
- return true;
- }
- const match = parts.every((part, index) => {
- const segment = pattern.segments[index];
- if (segment.dynamic && segment.patternRe.test(part)) {
- return true;
- }
- if (!segment.dynamic && segment.pattern === part) {
- return true;
- }
- return false;
- });
- if (match) {
- return true;
- }
- }
- return false;
- }
-}
-exports.default = PartialMatcher;
diff --git a/node_modules/fast-glob/out/providers/provider.d.ts b/node_modules/fast-glob/out/providers/provider.d.ts
deleted file mode 100644
index ccafd17..0000000
--- a/node_modules/fast-glob/out/providers/provider.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { Task } from '../managers/tasks';
-import Settings from '../settings';
-import { MicromatchOptions, ReaderOptions } from '../types';
-import DeepFilter from './filters/deep';
-import EntryFilter from './filters/entry';
-import ErrorFilter from './filters/error';
-import EntryTransformer from './transformers/entry';
-export default abstract class Provider<T> {
- protected readonly _settings: Settings;
- readonly errorFilter: ErrorFilter;
- readonly entryFilter: EntryFilter;
- readonly deepFilter: DeepFilter;
- readonly entryTransformer: EntryTransformer;
- constructor(_settings: Settings);
- abstract read(_task: Task): T;
- protected _getRootDirectory(task: Task): string;
- protected _getReaderOptions(task: Task): ReaderOptions;
- protected _getMicromatchOptions(): MicromatchOptions;
-}
diff --git a/node_modules/fast-glob/out/providers/provider.js b/node_modules/fast-glob/out/providers/provider.js
deleted file mode 100644
index 5afb389..0000000
--- a/node_modules/fast-glob/out/providers/provider.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const path = require("path");
-const deep_1 = require("./filters/deep");
-const entry_1 = require("./filters/entry");
-const error_1 = require("./filters/error");
-const entry_2 = require("./transformers/entry");
-class Provider {
- constructor(_settings) {
- this._settings = _settings;
- this.errorFilter = new error_1.default(this._settings);
- this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions());
- this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions());
- this.entryTransformer = new entry_2.default(this._settings);
- }
- _getRootDirectory(task) {
- return path.resolve(this._settings.cwd, task.base);
- }
- _getReaderOptions(task) {
- const basePath = task.base === '.' ? '' : task.base;
- return {
- basePath,
- pathSegmentSeparator: '/',
- concurrency: this._settings.concurrency,
- deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative),
- entryFilter: this.entryFilter.getFilter(task.positive, task.negative),
- errorFilter: this.errorFilter.getFilter(),
- followSymbolicLinks: this._settings.followSymbolicLinks,
- fs: this._settings.fs,
- stats: this._settings.stats,
- throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
- transform: this.entryTransformer.getTransformer()
- };
- }
- _getMicromatchOptions() {
- return {
- dot: this._settings.dot,
- matchBase: this._settings.baseNameMatch,
- nobrace: !this._settings.braceExpansion,
- nocase: !this._settings.caseSensitiveMatch,
- noext: !this._settings.extglob,
- noglobstar: !this._settings.globstar,
- posix: true,
- strictSlashes: false
- };
- }
-}
-exports.default = Provider;
diff --git a/node_modules/fast-glob/out/providers/stream.d.ts b/node_modules/fast-glob/out/providers/stream.d.ts
deleted file mode 100644
index bfa9201..0000000
--- a/node_modules/fast-glob/out/providers/stream.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/// <reference types="node" />
-import { Readable } from 'stream';
-import { Task } from '../managers/tasks';
-import ReaderStream from '../readers/stream';
-import { ReaderOptions } from '../types';
-import Provider from './provider';
-export default class ProviderStream extends Provider<Readable> {
- protected _reader: ReaderStream;
- read(task: Task): Readable;
- api(root: string, task: Task, options: ReaderOptions): Readable;
-}
diff --git a/node_modules/fast-glob/out/providers/stream.js b/node_modules/fast-glob/out/providers/stream.js
deleted file mode 100644
index 9e81c21..0000000
--- a/node_modules/fast-glob/out/providers/stream.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const stream_1 = require("stream");
-const stream_2 = require("../readers/stream");
-const provider_1 = require("./provider");
-class ProviderStream extends provider_1.default {
- constructor() {
- super(...arguments);
- this._reader = new stream_2.default(this._settings);
- }
- read(task) {
- const root = this._getRootDirectory(task);
- const options = this._getReaderOptions(task);
- const source = this.api(root, task, options);
- const destination = new stream_1.Readable({ objectMode: true, read: () => { } });
- source
- .once('error', (error) => destination.emit('error', error))
- .on('data', (entry) => destination.emit('data', options.transform(entry)))
- .once('end', () => destination.emit('end'));
- destination
- .once('close', () => source.destroy());
- return destination;
- }
- api(root, task, options) {
- if (task.dynamic) {
- return this._reader.dynamic(root, options);
- }
- return this._reader.static(task.patterns, options);
- }
-}
-exports.default = ProviderStream;
diff --git a/node_modules/fast-glob/out/providers/sync.d.ts b/node_modules/fast-glob/out/providers/sync.d.ts
deleted file mode 100644
index 5861db4..0000000
--- a/node_modules/fast-glob/out/providers/sync.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { Task } from '../managers/tasks';
-import ReaderSync from '../readers/sync';
-import { Entry, EntryItem, ReaderOptions } from '../types';
-import Provider from './provider';
-export default class ProviderSync extends Provider<EntryItem[]> {
- protected _reader: ReaderSync;
- read(task: Task): EntryItem[];
- api(root: string, task: Task, options: ReaderOptions): Entry[];
-}
diff --git a/node_modules/fast-glob/out/providers/sync.js b/node_modules/fast-glob/out/providers/sync.js
deleted file mode 100644
index 9ed8f7c..0000000
--- a/node_modules/fast-glob/out/providers/sync.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const sync_1 = require("../readers/sync");
-const provider_1 = require("./provider");
-class ProviderSync extends provider_1.default {
- constructor() {
- super(...arguments);
- this._reader = new sync_1.default(this._settings);
- }
- read(task) {
- const root = this._getRootDirectory(task);
- const options = this._getReaderOptions(task);
- const entries = this.api(root, task, options);
- return entries.map(options.transform);
- }
- api(root, task, options) {
- if (task.dynamic) {
- return this._reader.dynamic(root, options);
- }
- return this._reader.static(task.patterns, options);
- }
-}
-exports.default = ProviderSync;
diff --git a/node_modules/fast-glob/out/providers/transformers/entry.d.ts b/node_modules/fast-glob/out/providers/transformers/entry.d.ts
deleted file mode 100644
index 1874a38..0000000
--- a/node_modules/fast-glob/out/providers/transformers/entry.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import Settings from '../../settings';
-import { EntryTransformerFunction } from '../../types';
-export default class EntryTransformer {
- private readonly _settings;
- constructor(_settings: Settings);
- getTransformer(): EntryTransformerFunction;
- private _transform;
-}
diff --git a/node_modules/fast-glob/out/providers/transformers/entry.js b/node_modules/fast-glob/out/providers/transformers/entry.js
deleted file mode 100644
index 3bef803..0000000
--- a/node_modules/fast-glob/out/providers/transformers/entry.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils = require("../../utils");
-class EntryTransformer {
- constructor(_settings) {
- this._settings = _settings;
- }
- getTransformer() {
- return (entry) => this._transform(entry);
- }
- _transform(entry) {
- let filepath = entry.path;
- if (this._settings.absolute) {
- filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
- filepath = utils.path.unixify(filepath);
- }
- if (this._settings.markDirectories && entry.dirent.isDirectory()) {
- filepath += '/';
- }
- if (!this._settings.objectMode) {
- return filepath;
- }
- return Object.assign(Object.assign({}, entry), { path: filepath });
- }
-}
-exports.default = EntryTransformer;