summaryrefslogtreecommitdiffstats
path: root/node_modules/fast-glob/out/utils
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/fast-glob/out/utils')
-rw-r--r--node_modules/fast-glob/out/utils/array.d.ts2
-rw-r--r--node_modules/fast-glob/out/utils/array.js22
-rw-r--r--node_modules/fast-glob/out/utils/errno.d.ts2
-rw-r--r--node_modules/fast-glob/out/utils/errno.js7
-rw-r--r--node_modules/fast-glob/out/utils/fs.d.ts4
-rw-r--r--node_modules/fast-glob/out/utils/fs.js19
-rw-r--r--node_modules/fast-glob/out/utils/index.d.ts8
-rw-r--r--node_modules/fast-glob/out/utils/index.js17
-rw-r--r--node_modules/fast-glob/out/utils/path.d.ts8
-rw-r--r--node_modules/fast-glob/out/utils/path.js33
-rw-r--r--node_modules/fast-glob/out/utils/pattern.d.ts25
-rw-r--r--node_modules/fast-glob/out/utils/pattern.js132
-rw-r--r--node_modules/fast-glob/out/utils/stream.d.ts3
-rw-r--r--node_modules/fast-glob/out/utils/stream.js17
-rw-r--r--node_modules/fast-glob/out/utils/string.d.ts2
-rw-r--r--node_modules/fast-glob/out/utils/string.js11
16 files changed, 0 insertions, 312 deletions
diff --git a/node_modules/fast-glob/out/utils/array.d.ts b/node_modules/fast-glob/out/utils/array.d.ts
deleted file mode 100644
index 7e585bc..0000000
--- a/node_modules/fast-glob/out/utils/array.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare function flatten<T>(items: T[][]): T[];
-export declare function splitWhen<T>(items: T[], predicate: (item: T) => boolean): T[][];
diff --git a/node_modules/fast-glob/out/utils/array.js b/node_modules/fast-glob/out/utils/array.js
deleted file mode 100644
index f43f114..0000000
--- a/node_modules/fast-glob/out/utils/array.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.splitWhen = exports.flatten = void 0;
-function flatten(items) {
- return items.reduce((collection, item) => [].concat(collection, item), []);
-}
-exports.flatten = flatten;
-function splitWhen(items, predicate) {
- const result = [[]];
- let groupIndex = 0;
- for (const item of items) {
- if (predicate(item)) {
- groupIndex++;
- result[groupIndex] = [];
- }
- else {
- result[groupIndex].push(item);
- }
- }
- return result;
-}
-exports.splitWhen = splitWhen;
diff --git a/node_modules/fast-glob/out/utils/errno.d.ts b/node_modules/fast-glob/out/utils/errno.d.ts
deleted file mode 100644
index 0e52c0d..0000000
--- a/node_modules/fast-glob/out/utils/errno.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { ErrnoException } from '../types';
-export declare function isEnoentCodeError(error: ErrnoException): boolean;
diff --git a/node_modules/fast-glob/out/utils/errno.js b/node_modules/fast-glob/out/utils/errno.js
deleted file mode 100644
index 178ace6..0000000
--- a/node_modules/fast-glob/out/utils/errno.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isEnoentCodeError = void 0;
-function isEnoentCodeError(error) {
- return error.code === 'ENOENT';
-}
-exports.isEnoentCodeError = isEnoentCodeError;
diff --git a/node_modules/fast-glob/out/utils/fs.d.ts b/node_modules/fast-glob/out/utils/fs.d.ts
deleted file mode 100644
index 926c5ae..0000000
--- a/node_modules/fast-glob/out/utils/fs.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/// <reference types="node" />
-import * as fs from 'fs';
-import { Dirent } from '@nodelib/fs.walk';
-export declare function createDirentFromStats(name: string, stats: fs.Stats): Dirent;
diff --git a/node_modules/fast-glob/out/utils/fs.js b/node_modules/fast-glob/out/utils/fs.js
deleted file mode 100644
index f15b8cf..0000000
--- a/node_modules/fast-glob/out/utils/fs.js
+++ /dev/null
@@ -1,19 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.createDirentFromStats = void 0;
-class DirentFromStats {
- constructor(name, stats) {
- this.name = name;
- this.isBlockDevice = stats.isBlockDevice.bind(stats);
- this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
- this.isDirectory = stats.isDirectory.bind(stats);
- this.isFIFO = stats.isFIFO.bind(stats);
- this.isFile = stats.isFile.bind(stats);
- this.isSocket = stats.isSocket.bind(stats);
- this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
- }
-}
-function createDirentFromStats(name, stats) {
- return new DirentFromStats(name, stats);
-}
-exports.createDirentFromStats = createDirentFromStats;
diff --git a/node_modules/fast-glob/out/utils/index.d.ts b/node_modules/fast-glob/out/utils/index.d.ts
deleted file mode 100644
index d3e4f8f..0000000
--- a/node_modules/fast-glob/out/utils/index.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import * as array from './array';
-import * as errno from './errno';
-import * as fs from './fs';
-import * as path from './path';
-import * as pattern from './pattern';
-import * as stream from './stream';
-import * as string from './string';
-export { array, errno, fs, path, pattern, stream, string };
diff --git a/node_modules/fast-glob/out/utils/index.js b/node_modules/fast-glob/out/utils/index.js
deleted file mode 100644
index 8fc6703..0000000
--- a/node_modules/fast-glob/out/utils/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
-const array = require("./array");
-exports.array = array;
-const errno = require("./errno");
-exports.errno = errno;
-const fs = require("./fs");
-exports.fs = fs;
-const path = require("./path");
-exports.path = path;
-const pattern = require("./pattern");
-exports.pattern = pattern;
-const stream = require("./stream");
-exports.stream = stream;
-const string = require("./string");
-exports.string = string;
diff --git a/node_modules/fast-glob/out/utils/path.d.ts b/node_modules/fast-glob/out/utils/path.d.ts
deleted file mode 100644
index f90dc54..0000000
--- a/node_modules/fast-glob/out/utils/path.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { Pattern } from '../types';
-/**
- * Designed to work only with simple paths: `dir\\file`.
- */
-export declare function unixify(filepath: string): string;
-export declare function makeAbsolute(cwd: string, filepath: string): string;
-export declare function escape(pattern: Pattern): Pattern;
-export declare function removeLeadingDotSegment(entry: string): string;
diff --git a/node_modules/fast-glob/out/utils/path.js b/node_modules/fast-glob/out/utils/path.js
deleted file mode 100644
index 966fcc9..0000000
--- a/node_modules/fast-glob/out/utils/path.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
-const path = require("path");
-const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
-const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
-/**
- * Designed to work only with simple paths: `dir\\file`.
- */
-function unixify(filepath) {
- return filepath.replace(/\\/g, '/');
-}
-exports.unixify = unixify;
-function makeAbsolute(cwd, filepath) {
- return path.resolve(cwd, filepath);
-}
-exports.makeAbsolute = makeAbsolute;
-function escape(pattern) {
- return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
-}
-exports.escape = escape;
-function removeLeadingDotSegment(entry) {
- // We do not use `startsWith` because this is 10x slower than current implementation for some cases.
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
- if (entry.charAt(0) === '.') {
- const secondCharactery = entry.charAt(1);
- if (secondCharactery === '/' || secondCharactery === '\\') {
- return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
- }
- }
- return entry;
-}
-exports.removeLeadingDotSegment = removeLeadingDotSegment;
diff --git a/node_modules/fast-glob/out/utils/pattern.d.ts b/node_modules/fast-glob/out/utils/pattern.d.ts
deleted file mode 100644
index 5a2f23a..0000000
--- a/node_modules/fast-glob/out/utils/pattern.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { MicromatchOptions, Pattern, PatternRe } from '../types';
-declare type PatternTypeOptions = {
- braceExpansion?: boolean;
- caseSensitiveMatch?: boolean;
- extglob?: boolean;
-};
-export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
-export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
-export declare function convertToPositivePattern(pattern: Pattern): Pattern;
-export declare function convertToNegativePattern(pattern: Pattern): Pattern;
-export declare function isNegativePattern(pattern: Pattern): boolean;
-export declare function isPositivePattern(pattern: Pattern): boolean;
-export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
-export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
-export declare function getBaseDirectory(pattern: Pattern): string;
-export declare function hasGlobStar(pattern: Pattern): boolean;
-export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
-export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
-export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
-export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
-export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
-export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
-export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
-export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
-export {};
diff --git a/node_modules/fast-glob/out/utils/pattern.js b/node_modules/fast-glob/out/utils/pattern.js
deleted file mode 100644
index 7dcadd5..0000000
--- a/node_modules/fast-glob/out/utils/pattern.js
+++ /dev/null
@@ -1,132 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
-const path = require("path");
-const globParent = require("glob-parent");
-const micromatch = require("micromatch");
-const picomatch = require("picomatch");
-const GLOBSTAR = '**';
-const ESCAPE_SYMBOL = '\\';
-const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
-const REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[.*]/;
-const REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\(.*\|.*\)/;
-const GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\(.*\)/;
-const BRACE_EXPANSIONS_SYMBOLS_RE = /{.*(?:,|\.\.).*}/;
-function isStaticPattern(pattern, options = {}) {
- return !isDynamicPattern(pattern, options);
-}
-exports.isStaticPattern = isStaticPattern;
-function isDynamicPattern(pattern, options = {}) {
- /**
- * A special case with an empty string is necessary for matching patterns that start with a forward slash.
- * An empty string cannot be a dynamic pattern.
- * For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
- */
- if (pattern === '') {
- return false;
- }
- /**
- * When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
- * filepath directly (without read directory).
- */
- if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) {
- return true;
- }
- if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) {
- return true;
- }
- if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) {
- return true;
- }
- if (options.braceExpansion !== false && BRACE_EXPANSIONS_SYMBOLS_RE.test(pattern)) {
- return true;
- }
- return false;
-}
-exports.isDynamicPattern = isDynamicPattern;
-function convertToPositivePattern(pattern) {
- return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
-}
-exports.convertToPositivePattern = convertToPositivePattern;
-function convertToNegativePattern(pattern) {
- return '!' + pattern;
-}
-exports.convertToNegativePattern = convertToNegativePattern;
-function isNegativePattern(pattern) {
- return pattern.startsWith('!') && pattern[1] !== '(';
-}
-exports.isNegativePattern = isNegativePattern;
-function isPositivePattern(pattern) {
- return !isNegativePattern(pattern);
-}
-exports.isPositivePattern = isPositivePattern;
-function getNegativePatterns(patterns) {
- return patterns.filter(isNegativePattern);
-}
-exports.getNegativePatterns = getNegativePatterns;
-function getPositivePatterns(patterns) {
- return patterns.filter(isPositivePattern);
-}
-exports.getPositivePatterns = getPositivePatterns;
-function getBaseDirectory(pattern) {
- return globParent(pattern, { flipBackslashes: false });
-}
-exports.getBaseDirectory = getBaseDirectory;
-function hasGlobStar(pattern) {
- return pattern.includes(GLOBSTAR);
-}
-exports.hasGlobStar = hasGlobStar;
-function endsWithSlashGlobStar(pattern) {
- return pattern.endsWith('/' + GLOBSTAR);
-}
-exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
-function isAffectDepthOfReadingPattern(pattern) {
- const basename = path.basename(pattern);
- return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
-}
-exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
-function expandPatternsWithBraceExpansion(patterns) {
- return patterns.reduce((collection, pattern) => {
- return collection.concat(expandBraceExpansion(pattern));
- }, []);
-}
-exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
-function expandBraceExpansion(pattern) {
- return micromatch.braces(pattern, {
- expand: true,
- nodupes: true
- });
-}
-exports.expandBraceExpansion = expandBraceExpansion;
-function getPatternParts(pattern, options) {
- let { parts } = picomatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
- /**
- * The scan method returns an empty array in some cases.
- * See micromatch/picomatch#58 for more details.
- */
- if (parts.length === 0) {
- parts = [pattern];
- }
- /**
- * The scan method does not return an empty part for the pattern with a forward slash.
- * This is another part of micromatch/picomatch#58.
- */
- if (parts[0].startsWith('/')) {
- parts[0] = parts[0].slice(1);
- parts.unshift('');
- }
- return parts;
-}
-exports.getPatternParts = getPatternParts;
-function makeRe(pattern, options) {
- return micromatch.makeRe(pattern, options);
-}
-exports.makeRe = makeRe;
-function convertPatternsToRe(patterns, options) {
- return patterns.map((pattern) => makeRe(pattern, options));
-}
-exports.convertPatternsToRe = convertPatternsToRe;
-function matchAny(entry, patternsRe) {
- return patternsRe.some((patternRe) => patternRe.test(entry));
-}
-exports.matchAny = matchAny;
diff --git a/node_modules/fast-glob/out/utils/stream.d.ts b/node_modules/fast-glob/out/utils/stream.d.ts
deleted file mode 100644
index 167fab0..0000000
--- a/node_modules/fast-glob/out/utils/stream.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-/// <reference types="node" />
-import { Readable } from 'stream';
-export declare function merge(streams: Readable[]): NodeJS.ReadableStream;
diff --git a/node_modules/fast-glob/out/utils/stream.js b/node_modules/fast-glob/out/utils/stream.js
deleted file mode 100644
index f1ab1f5..0000000
--- a/node_modules/fast-glob/out/utils/stream.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.merge = void 0;
-const merge2 = require("merge2");
-function merge(streams) {
- const mergedStream = merge2(streams);
- streams.forEach((stream) => {
- stream.once('error', (error) => mergedStream.emit('error', error));
- });
- mergedStream.once('close', () => propagateCloseEventToSources(streams));
- mergedStream.once('end', () => propagateCloseEventToSources(streams));
- return mergedStream;
-}
-exports.merge = merge;
-function propagateCloseEventToSources(streams) {
- streams.forEach((stream) => stream.emit('close'));
-}
diff --git a/node_modules/fast-glob/out/utils/string.d.ts b/node_modules/fast-glob/out/utils/string.d.ts
deleted file mode 100644
index d306bc9..0000000
--- a/node_modules/fast-glob/out/utils/string.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare function isString(input: unknown): input is string;
-export declare function isEmpty(input: string): boolean;
diff --git a/node_modules/fast-glob/out/utils/string.js b/node_modules/fast-glob/out/utils/string.js
deleted file mode 100644
index 738c227..0000000
--- a/node_modules/fast-glob/out/utils/string.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isEmpty = exports.isString = void 0;
-function isString(input) {
- return typeof input === 'string';
-}
-exports.isString = isString;
-function isEmpty(input) {
- return input === '';
-}
-exports.isEmpty = isEmpty;