Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
10
node_modules/ava/node_modules/globby/ignore.js
generated
vendored
10
node_modules/ava/node_modules/globby/ignore.js
generated
vendored
|
|
@ -58,12 +58,14 @@ const getIsIgnoredPredicate = (files, cwd) => {
|
|||
|
||||
const normalizeOptions = (options = {}) => ({
|
||||
cwd: toPath(options.cwd) || process.cwd(),
|
||||
suppressErrors: Boolean(options.suppressErrors),
|
||||
deep: typeof options.deep === 'number' ? options.deep : Number.POSITIVE_INFINITY,
|
||||
});
|
||||
|
||||
export const isIgnoredByIgnoreFiles = async (patterns, options) => {
|
||||
const {cwd} = normalizeOptions(options);
|
||||
const {cwd, suppressErrors, deep} = normalizeOptions(options);
|
||||
|
||||
const paths = await fastGlob(patterns, {cwd, ...ignoreFilesGlobOptions});
|
||||
const paths = await fastGlob(patterns, {cwd, suppressErrors, deep, ...ignoreFilesGlobOptions});
|
||||
|
||||
const files = await Promise.all(
|
||||
paths.map(async filePath => ({
|
||||
|
|
@ -76,9 +78,9 @@ export const isIgnoredByIgnoreFiles = async (patterns, options) => {
|
|||
};
|
||||
|
||||
export const isIgnoredByIgnoreFilesSync = (patterns, options) => {
|
||||
const {cwd} = normalizeOptions(options);
|
||||
const {cwd, suppressErrors, deep} = normalizeOptions(options);
|
||||
|
||||
const paths = fastGlob.sync(patterns, {cwd, ...ignoreFilesGlobOptions});
|
||||
const paths = fastGlob.sync(patterns, {cwd, suppressErrors, deep, ...ignoreFilesGlobOptions});
|
||||
|
||||
const files = paths.map(filePath => ({
|
||||
filePath,
|
||||
|
|
|
|||
1
node_modules/ava/node_modules/globby/index.d.ts
generated
vendored
1
node_modules/ava/node_modules/globby/index.d.ts
generated
vendored
|
|
@ -1,4 +1,3 @@
|
|||
import {URL} from 'node:url'; // TODO: Remove this when https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 is fixed.
|
||||
import {Options as FastGlobOptions, Entry} from 'fast-glob';
|
||||
|
||||
export type GlobEntry = Entry;
|
||||
|
|
|
|||
10
node_modules/ava/node_modules/globby/index.js
generated
vendored
10
node_modules/ava/node_modules/globby/index.js
generated
vendored
|
|
@ -41,9 +41,11 @@ const checkCwdOption = options => {
|
|||
|
||||
const normalizeOptions = (options = {}) => {
|
||||
options = {
|
||||
ignore: [],
|
||||
expandDirectories: true,
|
||||
...options,
|
||||
ignore: options.ignore || [],
|
||||
expandDirectories: options.expandDirectories === undefined
|
||||
? true
|
||||
: options.expandDirectories,
|
||||
cwd: toPath(options.cwd),
|
||||
};
|
||||
|
||||
|
|
@ -69,14 +71,14 @@ const getIgnoreFilesPatterns = options => {
|
|||
const getFilter = async options => {
|
||||
const ignoreFilesPatterns = getIgnoreFilesPatterns(options);
|
||||
return createFilterFunction(
|
||||
ignoreFilesPatterns.length > 0 && await isIgnoredByIgnoreFiles(ignoreFilesPatterns, {cwd: options.cwd}),
|
||||
ignoreFilesPatterns.length > 0 && await isIgnoredByIgnoreFiles(ignoreFilesPatterns, options),
|
||||
);
|
||||
};
|
||||
|
||||
const getFilterSync = options => {
|
||||
const ignoreFilesPatterns = getIgnoreFilesPatterns(options);
|
||||
return createFilterFunction(
|
||||
ignoreFilesPatterns.length > 0 && isIgnoredByIgnoreFilesSync(ignoreFilesPatterns, {cwd: options.cwd}),
|
||||
ignoreFilesPatterns.length > 0 && isIgnoredByIgnoreFilesSync(ignoreFilesPatterns, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
23
node_modules/ava/node_modules/globby/node_modules/slash/index.d.ts
generated
vendored
23
node_modules/ava/node_modules/globby/node_modules/slash/index.d.ts
generated
vendored
|
|
@ -1,23 +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 path from 'path';
|
||||
import slash from 'slash';
|
||||
|
||||
const string = path.join('foo', 'bar');
|
||||
// Unix => foo/bar
|
||||
// Windows => foo\\bar
|
||||
|
||||
slash(string);
|
||||
// Unix => foo/bar
|
||||
// Windows => foo/bar
|
||||
```
|
||||
*/
|
||||
export default function slash(path: string): string;
|
||||
10
node_modules/ava/node_modules/globby/node_modules/slash/index.js
generated
vendored
10
node_modules/ava/node_modules/globby/node_modules/slash/index.js
generated
vendored
|
|
@ -1,10 +0,0 @@
|
|||
export default function slash(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, '/');
|
||||
}
|
||||
9
node_modules/ava/node_modules/globby/node_modules/slash/license
generated
vendored
9
node_modules/ava/node_modules/globby/node_modules/slash/license
generated
vendored
|
|
@ -1,9 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
|
||||
38
node_modules/ava/node_modules/globby/node_modules/slash/package.json
generated
vendored
38
node_modules/ava/node_modules/globby/node_modules/slash/package.json
generated
vendored
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"name": "slash",
|
||||
"version": "4.0.0",
|
||||
"description": "Convert Windows backslash paths to slash paths",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/slash",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"path",
|
||||
"seperator",
|
||||
"slash",
|
||||
"backslash",
|
||||
"windows",
|
||||
"convert"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.38.2"
|
||||
}
|
||||
}
|
||||
48
node_modules/ava/node_modules/globby/node_modules/slash/readme.md
generated
vendored
48
node_modules/ava/node_modules/globby/node_modules/slash/readme.md
generated
vendored
|
|
@ -1,48 +0,0 @@
|
|||
# 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
|
||||
import path from 'path';
|
||||
import slash from '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.
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-slash?utm_source=npm-slash&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
29
node_modules/ava/node_modules/globby/package.json
generated
vendored
29
node_modules/ava/node_modules/globby/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "globby",
|
||||
"version": "13.1.3",
|
||||
"version": "13.2.2",
|
||||
"description": "User-friendly glob matching",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/globby",
|
||||
|
|
@ -60,27 +60,32 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"dir-glob": "^3.0.1",
|
||||
"fast-glob": "^3.2.11",
|
||||
"ignore": "^5.2.0",
|
||||
"fast-glob": "^3.3.0",
|
||||
"ignore": "^5.2.4",
|
||||
"merge2": "^1.4.1",
|
||||
"slash": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@globby/main-branch": "sindresorhus/globby#main",
|
||||
"@types/node": "^17.0.10",
|
||||
"ava": "^4.0.1",
|
||||
"@types/node": "^20.3.3",
|
||||
"ava": "^5.3.1",
|
||||
"benchmark": "2.1.4",
|
||||
"get-stream": "^6.0.1",
|
||||
"glob-stream": "^7.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsd": "^0.19.1",
|
||||
"typescript": "^4.5.5",
|
||||
"xo": "^0.47.0"
|
||||
"glob-stream": "^8.0.0",
|
||||
"rimraf": "^5.0.1",
|
||||
"tempy": "^3.0.0",
|
||||
"tsd": "^0.28.1",
|
||||
"typescript": "^5.1.6",
|
||||
"xo": "^0.54.2"
|
||||
},
|
||||
"xo": {
|
||||
"ignores": [
|
||||
"fixtures"
|
||||
]
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/consistent-type-definitions": "off",
|
||||
"n/prefer-global/url": "off",
|
||||
"@typescript-eslint/consistent-type-imports": "off"
|
||||
}
|
||||
},
|
||||
"ava": {
|
||||
"files": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue