summaryrefslogtreecommitdiffstats
path: root/node_modules/globby
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/globby
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/globby')
-rw-r--r--node_modules/globby/gitignore.js118
-rw-r--r--node_modules/globby/index.d.ts176
-rw-r--r--node_modules/globby/index.js177
-rw-r--r--node_modules/globby/license9
-rw-r--r--node_modules/globby/node_modules/slash/index.d.ts25
-rw-r--r--node_modules/globby/node_modules/slash/index.js11
-rw-r--r--node_modules/globby/node_modules/slash/license9
-rw-r--r--node_modules/globby/node_modules/slash/package.json67
-rw-r--r--node_modules/globby/node_modules/slash/readme.md44
-rw-r--r--node_modules/globby/package.json114
-rw-r--r--node_modules/globby/readme.md170
-rw-r--r--node_modules/globby/stream-utils.js46
12 files changed, 0 insertions, 966 deletions
diff --git a/node_modules/globby/gitignore.js b/node_modules/globby/gitignore.js
deleted file mode 100644
index 6a1a57a..0000000
--- a/node_modules/globby/gitignore.js
+++ /dev/null
@@ -1,118 +0,0 @@
-'use strict';
-const {promisify} = require('util');
-const fs = require('fs');
-const path = require('path');
-const fastGlob = require('fast-glob');
-const gitIgnore = require('ignore');
-const slash = require('slash');
-
-const DEFAULT_IGNORE = [
- '**/node_modules/**',
- '**/flow-typed/**',
- '**/coverage/**',
- '**/.git'
-];
-
-const readFileP = promisify(fs.readFile);
-
-const mapGitIgnorePatternTo = base => ignore => {
- if (ignore.startsWith('!')) {
- return '!' + path.posix.join(base, ignore.slice(1));
- }
-
- return path.posix.join(base, ignore);
-};
-
-const parseGitIgnore = (content, options) => {
- const base = slash(path.relative(options.cwd, path.dirname(options.fileName)));
-
- return content
- .split(/\r?\n/)
- .filter(Boolean)
- .filter(line => !line.startsWith('#'))
- .map(mapGitIgnorePatternTo(base));
-};
-
-const reduceIgnore = files => {
- return files.reduce((ignores, file) => {
- ignores.add(parseGitIgnore(file.content, {
- cwd: file.cwd,
- fileName: file.filePath
- }));
- return ignores;
- }, gitIgnore());
-};
-
-const ensureAbsolutePathForCwd = (cwd, p) => {
- cwd = slash(cwd);
- if (path.isAbsolute(p)) {
- if (p.startsWith(cwd)) {
- return p;
- }
-
- throw new Error(`Path ${p} is not in cwd ${cwd}`);
- }
-
- return path.join(cwd, p);
-};
-
-const getIsIgnoredPredecate = (ignores, cwd) => {
- return p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p))));
-};
-
-const getFile = async (file, cwd) => {
- const filePath = path.join(cwd, file);
- const content = await readFileP(filePath, 'utf8');
-
- return {
- cwd,
- filePath,
- content
- };
-};
-
-const getFileSync = (file, cwd) => {
- const filePath = path.join(cwd, file);
- const content = fs.readFileSync(filePath, 'utf8');
-
- return {
- cwd,
- filePath,
- content
- };
-};
-
-const normalizeOptions = ({
- ignore = [],
- cwd = slash(process.cwd())
-} = {}) => {
- return {ignore, cwd};
-};
-
-module.exports = async options => {
- options = normalizeOptions(options);
-
- const paths = await fastGlob('**/.gitignore', {
- ignore: DEFAULT_IGNORE.concat(options.ignore),
- cwd: options.cwd
- });
-
- const files = await Promise.all(paths.map(file => getFile(file, options.cwd)));
- const ignores = reduceIgnore(files);
-
- return getIsIgnoredPredecate(ignores, options.cwd);
-};
-
-module.exports.sync = options => {
- options = normalizeOptions(options);
-
- const paths = fastGlob.sync('**/.gitignore', {
- ignore: DEFAULT_IGNORE.concat(options.ignore),
- cwd: options.cwd
- });
-
- const files = paths.map(file => getFileSync(file, options.cwd));
- const ignores = reduceIgnore(files);
-
- return getIsIgnoredPredecate(ignores, options.cwd);
-};
diff --git a/node_modules/globby/index.d.ts b/node_modules/globby/index.d.ts
deleted file mode 100644
index c40e4fe..0000000
--- a/node_modules/globby/index.d.ts
+++ /dev/null
@@ -1,176 +0,0 @@
-import {Options as FastGlobOptions} from 'fast-glob';
-
-declare namespace globby {
- type ExpandDirectoriesOption =
- | boolean
- | readonly string[]
- | {files?: readonly string[]; extensions?: readonly string[]};
-
- interface GlobbyOptions extends FastGlobOptions {
- /**
- If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like in the example below.
-
- Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
-
- @default true
-
- @example
- ```
- import globby = require('globby');
-
- (async () => {
- const paths = await globby('images', {
- expandDirectories: {
- files: ['cat', 'unicorn', '*.jpg'],
- extensions: ['png']
- }
- });
-
- console.log(paths);
- //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
- })();
- ```
- */
- readonly expandDirectories?: ExpandDirectoriesOption;
-
- /**
- Respect ignore patterns in `.gitignore` files that apply to the globbed files.
-
- @default false
- */
- readonly gitignore?: boolean;
- }
-
- interface GlobTask {
- readonly pattern: string;
- readonly options: globby.GlobbyOptions;
- }
-
- interface GitignoreOptions {
- readonly cwd?: string;
- readonly ignore?: readonly string[];
- }
-
- type FilterFunction = (path: string) => boolean;
-}
-
-interface Gitignore {
- /**
- `.gitignore` files matched by the ignore config are not used for the resulting filter function.
-
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
-
- @example
- ```
- import {gitignore} from 'globby';
-
- (async () => {
- const isIgnored = await gitignore();
- console.log(isIgnored('some/file'));
- })();
- ```
- */
- (options?: globby.GitignoreOptions): Promise<globby.FilterFunction>;
-
- /**
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
- */
- sync(options?: globby.GitignoreOptions): globby.FilterFunction;
-}
-
-declare const globby: {
- /**
- Find files and directories using glob patterns.
-
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
-
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
- @returns The matching paths.
-
- @example
- ```
- import globby = require('globby');
-
- (async () => {
- const paths = await globby(['*', '!cake']);
-
- console.log(paths);
- //=> ['unicorn', 'rainbow']
- })();
- ```
- */
- (
- patterns: string | readonly string[],
- options?: globby.GlobbyOptions
- ): Promise<string[]>;
-
- /**
- Find files and directories using glob patterns.
-
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
-
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
- @returns The matching paths.
- */
- sync(
- patterns: string | readonly string[],
- options?: globby.GlobbyOptions
- ): string[];
-
- /**
- Find files and directories using glob patterns.
-
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
-
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
- @returns The stream of matching paths.
-
- @example
- ```
- import globby = require('globby');
-
- (async () => {
- for await (const path of globby.stream('*.tmp')) {
- console.log(path);
- }
- })();
- ```
- */
- stream(
- patterns: string | readonly string[],
- options?: globby.GlobbyOptions
- ): NodeJS.ReadableStream;
-
- /**
- Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
-
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
- @returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
- */
- generateGlobTasks(
- patterns: string | readonly string[],
- options?: globby.GlobbyOptions
- ): globby.GlobTask[];
-
- /**
- Note that the options affect the results.
-
- This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
-
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
- @returns Whether there are any special glob characters in the `patterns`.
- */
- hasMagic(
- patterns: string | readonly string[],
- options?: FastGlobOptions
- ): boolean;
-
- readonly gitignore: Gitignore;
-};
-
-export = globby;
diff --git a/node_modules/globby/index.js b/node_modules/globby/index.js
deleted file mode 100644
index 3504057..0000000
--- a/node_modules/globby/index.js
+++ /dev/null
@@ -1,177 +0,0 @@
-'use strict';
-const fs = require('fs');
-const arrayUnion = require('array-union');
-const merge2 = require('merge2');
-const fastGlob = require('fast-glob');
-const dirGlob = require('dir-glob');
-const gitignore = require('./gitignore');
-const {FilterStream, UniqueStream} = require('./stream-utils');
-
-const DEFAULT_FILTER = () => false;
-
-const isNegative = pattern => pattern[0] === '!';
-
-const assertPatternsInput = patterns => {
- if (!patterns.every(pattern => typeof pattern === 'string')) {
- throw new TypeError('Patterns must be a string or an array of strings');
- }
-};
-
-const checkCwdOption = (options = {}) => {
- if (!options.cwd) {
- return;
- }
-
- let stat;
- try {
- stat = fs.statSync(options.cwd);
- } catch (_) {
- return;
- }
-
- if (!stat.isDirectory()) {
- throw new Error('The `cwd` option must be a path to a directory');
- }
-};
-
-const getPathString = p => p.stats instanceof fs.Stats ? p.path : p;
-
-const generateGlobTasks = (patterns, taskOptions) => {
- patterns = arrayUnion([].concat(patterns));
- assertPatternsInput(patterns);
- checkCwdOption(taskOptions);
-
- const globTasks = [];
-
- taskOptions = {
- ignore: [],
- expandDirectories: true,
- ...taskOptions
- };
-
- for (const [index, pattern] of patterns.entries()) {
- if (isNegative(pattern)) {
- continue;
- }
-
- const ignore = patterns
- .slice(index)
- .filter(isNegative)
- .map(pattern => pattern.slice(1));
-
- const options = {
- ...taskOptions,
- ignore: taskOptions.ignore.concat(ignore)
- };
-
- globTasks.push({pattern, options});
- }
-
- return globTasks;
-};
-
-const globDirs = (task, fn) => {
- let options = {};
- if (task.options.cwd) {
- options.cwd = task.options.cwd;
- }
-
- if (Array.isArray(task.options.expandDirectories)) {
- options = {
- ...options,
- files: task.options.expandDirectories
- };
- } else if (typeof task.options.expandDirectories === 'object') {
- options = {
- ...options,
- ...task.options.expandDirectories
- };
- }
-
- return fn(task.pattern, options);
-};
-
-const getPattern = (task, fn) => task.options.expandDirectories ? globDirs(task, fn) : [task.pattern];
-
-const getFilterSync = options => {
- return options && options.gitignore ?
- gitignore.sync({cwd: options.cwd, ignore: options.ignore}) :
- DEFAULT_FILTER;
-};
-
-const globToTask = task => glob => {
- const {options} = task;
- if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) {
- options.ignore = dirGlob.sync(options.ignore);
- }
-
- return {
- pattern: glob,
- options
- };
-};
-
-module.exports = async (patterns, options) => {
- const globTasks = generateGlobTasks(patterns, options);
-
- const getFilter = async () => {
- return options && options.gitignore ?
- gitignore({cwd: options.cwd, ignore: options.ignore}) :
- DEFAULT_FILTER;
- };
-
- const getTasks = async () => {
- const tasks = await Promise.all(globTasks.map(async task => {
- const globs = await getPattern(task, dirGlob);
- return Promise.all(globs.map(globToTask(task)));
- }));
-
- return arrayUnion(...tasks);
- };
-
- const [filter, tasks] = await Promise.all([getFilter(), getTasks()]);
- const paths = await Promise.all(tasks.map(task => fastGlob(task.pattern, task.options)));
-
- return arrayUnion(...paths).filter(path_ => !filter(getPathString(path_)));
-};
-
-module.exports.sync = (patterns, options) => {
- const globTasks = generateGlobTasks(patterns, options);
-
- const tasks = globTasks.reduce((tasks, task) => {
- const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
- return tasks.concat(newTask);
- }, []);
-
- const filter = getFilterSync(options);
-
- return tasks.reduce(
- (matches, task) => arrayUnion(matches, fastGlob.sync(task.pattern, task.options)),
- []
- ).filter(path_ => !filter(path_));
-};
-
-module.exports.stream = (patterns, options) => {
- const globTasks = generateGlobTasks(patterns, options);
-
- const tasks = globTasks.reduce((tasks, task) => {
- const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
- return tasks.concat(newTask);
- }, []);
-
- const filter = getFilterSync(options);
- const filterStream = new FilterStream(p => !filter(p));
- const uniqueStream = new UniqueStream();
-
- return merge2(tasks.map(task => fastGlob.stream(task.pattern, task.options)))
- .pipe(filterStream)
- .pipe(uniqueStream);
-};
-
-module.exports.generateGlobTasks = generateGlobTasks;
-
-module.exports.hasMagic = (patterns, options) => []
- .concat(patterns)
- .some(pattern => fastGlob.isDynamicPattern(pattern, options));
-
-module.exports.gitignore = gitignore;
diff --git a/node_modules/globby/license b/node_modules/globby/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/globby/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/globby/node_modules/slash/index.d.ts b/node_modules/globby/node_modules/slash/index.d.ts
deleted file mode 100644
index f9d07d1..0000000
--- a/node_modules/globby/node_modules/slash/index.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
-Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`.
-
-[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
-
-@param path - A Windows backslash path.
-@returns A path with forward slashes.
-
-@example
-```
-import * as path from 'path';
-import slash = require('slash');
-
-const string = path.join('foo', 'bar');
-// Unix => foo/bar
-// Windows => foo\\bar
-
-slash(string);
-// Unix => foo/bar
-// Windows => foo/bar
-```
-*/
-declare function slash(path: string): string;
-
-export = slash;
diff --git a/node_modules/globby/node_modules/slash/index.js b/node_modules/globby/node_modules/slash/index.js
deleted file mode 100644
index 103fbea..0000000
--- a/node_modules/globby/node_modules/slash/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-module.exports = path => {
- const isExtendedLengthPath = /^\\\\\?\\/.test(path);
- const hasNonAscii = /[^\u0000-\u0080]+/.test(path); // eslint-disable-line no-control-regex
-
- if (isExtendedLengthPath || hasNonAscii) {
- return path;
- }
-
- return path.replace(/\\/g, '/');
-};
diff --git a/node_modules/globby/node_modules/slash/license b/node_modules/globby/node_modules/slash/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/globby/node_modules/slash/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/globby/node_modules/slash/package.json b/node_modules/globby/node_modules/slash/package.json
deleted file mode 100644
index bc212fb..0000000
--- a/node_modules/globby/node_modules/slash/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "slash@^3.0.0",
- "_id": "slash@3.0.0",
- "_inBundle": false,
- "_integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
- "_location": "/globby/slash",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "slash@^3.0.0",
- "name": "slash",
- "escapedName": "slash",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/globby"
- ],
- "_resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
- "_shasum": "6539be870c165adbd5240220dbe361f1bc4d4634",
- "_spec": "slash@^3.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/globby",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/slash/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Convert Windows backslash paths to slash paths",
- "devDependencies": {
- "ava": "^1.4.1",
- "tsd": "^0.7.2",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=8"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/sindresorhus/slash#readme",
- "keywords": [
- "path",
- "seperator",
- "slash",
- "backslash",
- "windows",
- "convert"
- ],
- "license": "MIT",
- "name": "slash",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/slash.git"
- },
- "scripts": {
- "test": "xo && ava && tsd"
- },
- "version": "3.0.0"
-}
diff --git a/node_modules/globby/node_modules/slash/readme.md b/node_modules/globby/node_modules/slash/readme.md
deleted file mode 100644
index f0ef4ac..0000000
--- a/node_modules/globby/node_modules/slash/readme.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# slash [![Build Status](https://travis-ci.org/sindresorhus/slash.svg?branch=master)](https://travis-ci.org/sindresorhus/slash)
-
-> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`
-
-[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
-
-This was created since the `path` methods in Node.js outputs `\\` paths on Windows.
-
-
-## Install
-
-```
-$ npm install slash
-```
-
-
-## Usage
-
-```js
-const path = require('path');
-const slash = require('slash');
-
-const string = path.join('foo', 'bar');
-// Unix => foo/bar
-// Windows => foo\\bar
-
-slash(string);
-// Unix => foo/bar
-// Windows => foo/bar
-```
-
-
-## API
-
-### slash(path)
-
-Type: `string`
-
-Accepts a Windows backslash path and returns a path with forward slashes.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/globby/package.json b/node_modules/globby/package.json
deleted file mode 100644
index b4fee09..0000000
--- a/node_modules/globby/package.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "_from": "globby@^11.0.1",
- "_id": "globby@11.0.1",
- "_inBundle": false,
- "_integrity": "sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==",
- "_location": "/globby",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "globby@^11.0.1",
- "name": "globby",
- "escapedName": "globby",
- "rawSpec": "^11.0.1",
- "saveSpec": null,
- "fetchSpec": "^11.0.1"
- },
- "_requiredBy": [
- "/copy-webpack-plugin"
- ],
- "_resolved": "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz",
- "_shasum": "9a2bf107a068f3ffeabc49ad702c79ede8cfd357",
- "_spec": "globby@^11.0.1",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/copy-webpack-plugin",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/globby/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "array-union": "^2.1.0",
- "dir-glob": "^3.0.1",
- "fast-glob": "^3.1.1",
- "ignore": "^5.1.4",
- "merge2": "^1.3.0",
- "slash": "^3.0.0"
- },
- "deprecated": false,
- "description": "User-friendly glob matching",
- "devDependencies": {
- "ava": "^2.1.0",
- "get-stream": "^5.1.0",
- "glob-stream": "^6.1.0",
- "globby": "github:sindresorhus/globby#master",
- "matcha": "^0.7.0",
- "rimraf": "^3.0.0",
- "tsd": "^0.11.0",
- "xo": "^0.25.3"
- },
- "engines": {
- "node": ">=10"
- },
- "files": [
- "index.js",
- "index.d.ts",
- "gitignore.js",
- "stream-utils.js"
- ],
- "funding": "https://github.com/sponsors/sindresorhus",
- "homepage": "https://github.com/sindresorhus/globby#readme",
- "keywords": [
- "all",
- "array",
- "directories",
- "expand",
- "files",
- "filesystem",
- "filter",
- "find",
- "fnmatch",
- "folders",
- "fs",
- "glob",
- "globbing",
- "globs",
- "gulpfriendly",
- "match",
- "matcher",
- "minimatch",
- "multi",
- "multiple",
- "paths",
- "pattern",
- "patterns",
- "traverse",
- "util",
- "utility",
- "wildcard",
- "wildcards",
- "promise",
- "gitignore",
- "git"
- ],
- "license": "MIT",
- "name": "globby",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/globby.git"
- },
- "scripts": {
- "bench": "npm update glob-stream fast-glob && matcha bench.js",
- "test": "xo && ava && tsd"
- },
- "version": "11.0.1",
- "xo": {
- "ignores": [
- "fixtures"
- ]
- }
-}
diff --git a/node_modules/globby/readme.md b/node_modules/globby/readme.md
deleted file mode 100644
index 709e5aa..0000000
--- a/node_modules/globby/readme.md
+++ /dev/null
@@ -1,170 +0,0 @@
-# globby [![Build Status](https://travis-ci.org/sindresorhus/globby.svg?branch=master)](https://travis-ci.org/sindresorhus/globby)
-
-> User-friendly glob matching
-
-Based on [`fast-glob`](https://github.com/mrmlnc/fast-glob) but adds a bunch of useful features.
-
-## Features
-
-- Promise API
-- Multiple patterns
-- Negated patterns: `['foo*', '!foobar']`
-- Expands directories: `foo` → `foo/**/*`
-- Supports `.gitignore`
-
-## Install
-
-```
-$ npm install globby
-```
-
-## Usage
-
-```
-├── unicorn
-├── cake
-└── rainbow
-```
-
-```js
-const globby = require('globby');
-
-(async () => {
- const paths = await globby(['*', '!cake']);
-
- console.log(paths);
- //=> ['unicorn', 'rainbow']
-})();
-```
-
-## API
-
-Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
-
-### globby(patterns, options?)
-
-Returns a `Promise<string[]>` of matching paths.
-
-#### patterns
-
-Type: `string | string[]`
-
-See supported `minimatch` [patterns](https://github.com/isaacs/minimatch#usage).
-
-#### options
-
-Type: `object`
-
-See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones below.
-
-##### expandDirectories
-
-Type: `boolean | string[] | object`\
-Default: `true`
-
-If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `object` with `files` and `extensions` like below:
-
-```js
-const globby = require('globby');
-
-(async () => {
- const paths = await globby('images', {
- expandDirectories: {
- files: ['cat', 'unicorn', '*.jpg'],
- extensions: ['png']
- }
- });
-
- console.log(paths);
- //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
-})();
-```
-
-Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
-
-##### gitignore
-
-Type: `boolean`\
-Default: `false`
-
-Respect ignore patterns in `.gitignore` files that apply to the globbed files.
-
-### globby.sync(patterns, options?)
-
-Returns `string[]` of matching paths.
-
-### globby.stream(patterns, options?)
-
-Returns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams) of matching paths.
-
-Since Node.js 10, [readable streams are iterable](https://nodejs.org/api/stream.html#stream_readable_symbol_asynciterator), so you can loop over glob matches in a [`for await...of` loop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) like this:
-
-```js
-const globby = require('globby');
-
-(async () => {
- for await (const path of globby.stream('*.tmp')) {
- console.log(path);
- }
-})();
-```
-
-### globby.generateGlobTasks(patterns, options?)
-
-Returns an `object[]` in the format `{pattern: string, options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
-
-Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
-
-### globby.hasMagic(patterns, options?)
-
-Returns a `boolean` of whether there are any special glob characters in the `patterns`.
-
-Note that the options affect the results.
-
-This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
-
-### globby.gitignore(options?)
-
-Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.
-
-Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function.
-
-```js
-const {gitignore} = require('globby');
-
-(async () => {
- const isIgnored = await gitignore();
- console.log(isIgnored('some/file'));
-})();
-```
-
-### globby.gitignore.sync(options?)
-
-Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file.
-
-Takes the same options as `globby.gitignore`.
-
-## Globbing patterns
-
-Just a quick overview.
-
-- `*` matches any number of characters, but not `/`
-- `?` matches a single character, but not `/`
-- `**` matches any number of characters, including `/`, as long as it's the only thing in a path part
-- `{}` allows for a comma-separated list of "or" expressions
-- `!` at the beginning of a pattern will negate the match
-
-[Various patterns and expected matches.](https://github.com/sindresorhus/multimatch/blob/master/test/test.js)
-
-## globby for enterprise
-
-Available as part of the Tidelift Subscription.
-
-The maintainers of globby and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-globby?utm_source=npm-globby&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
-
-## Related
-
-- [multimatch](https://github.com/sindresorhus/multimatch) - Match against a list instead of the filesystem
-- [matcher](https://github.com/sindresorhus/matcher) - Simple wildcard matching
-- [del](https://github.com/sindresorhus/del) - Delete files and directories
-- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed
diff --git a/node_modules/globby/stream-utils.js b/node_modules/globby/stream-utils.js
deleted file mode 100644
index 98aedc8..0000000
--- a/node_modules/globby/stream-utils.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-const {Transform} = require('stream');
-
-class ObjectTransform extends Transform {
- constructor() {
- super({
- objectMode: true
- });
- }
-}
-
-class FilterStream extends ObjectTransform {
- constructor(filter) {
- super();
- this._filter = filter;
- }
-
- _transform(data, encoding, callback) {
- if (this._filter(data)) {
- this.push(data);
- }
-
- callback();
- }
-}
-
-class UniqueStream extends ObjectTransform {
- constructor() {
- super();
- this._pushed = new Set();
- }
-
- _transform(data, encoding, callback) {
- if (!this._pushed.has(data)) {
- this.push(data);
- this._pushed.add(data);
- }
-
- callback();
- }
-}
-
-module.exports = {
- FilterStream,
- UniqueStream
-};