prettier 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +63 -18
- package/doc.d.ts +3 -0
- package/index.cjs +1 -1
- package/index.d.ts +9 -0
- package/index.mjs +105 -50
- package/internal/cli.mjs +290 -8
- package/package.json +3 -2
- package/plugins/babel.js +7 -7
- package/plugins/babel.mjs +7 -7
- package/plugins/estree.js +14 -14
- package/plugins/estree.mjs +14 -14
- package/plugins/markdown.js +1 -1
- package/plugins/markdown.mjs +1 -1
- package/plugins/postcss.js +4 -4
- package/plugins/postcss.mjs +4 -4
- package/plugins/typescript.js +20 -20
- package/plugins/typescript.mjs +20 -20
- package/standalone.js +1 -1
- package/standalone.mjs +1 -1
package/LICENSE
CHANGED
|
@@ -17,7 +17,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0
|
|
|
17
17
|
|
|
18
18
|
## Bundled dependencies
|
|
19
19
|
|
|
20
|
-
### @angular/compiler@v16.2.
|
|
20
|
+
### @angular/compiler@v16.2.2
|
|
21
21
|
|
|
22
22
|
> Angular - the compiler library
|
|
23
23
|
|
|
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
128
128
|
|
|
129
129
|
----------------------------------------
|
|
130
130
|
|
|
131
|
-
### @babel/parser@v7.22.
|
|
131
|
+
### @babel/parser@v7.22.11
|
|
132
132
|
|
|
133
133
|
> A JavaScript parser
|
|
134
134
|
|
|
@@ -430,7 +430,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
|
|
|
430
430
|
|
|
431
431
|
----------------------------------------
|
|
432
432
|
|
|
433
|
-
### @typescript-eslint/types@v6.
|
|
433
|
+
### @typescript-eslint/types@v6.5.0
|
|
434
434
|
|
|
435
435
|
> Types for the TypeScript-ESTree AST spec
|
|
436
436
|
|
|
@@ -461,7 +461,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
461
461
|
|
|
462
462
|
----------------------------------------
|
|
463
463
|
|
|
464
|
-
### @typescript-eslint/typescript-estree@v6.
|
|
464
|
+
### @typescript-eslint/typescript-estree@v6.5.0
|
|
465
465
|
|
|
466
466
|
> A parser that converts TypeScript source code into an ESTree compatible form
|
|
467
467
|
|
|
@@ -1591,7 +1591,7 @@ Contributors:
|
|
|
1591
1591
|
|
|
1592
1592
|
----------------------------------------
|
|
1593
1593
|
|
|
1594
|
-
### fast-glob@v3.
|
|
1594
|
+
### fast-glob@v3.3.1
|
|
1595
1595
|
|
|
1596
1596
|
> It's a very fast and efficient glob library for Node.js
|
|
1597
1597
|
|
|
@@ -1680,16 +1680,16 @@ Author: Matteo Collina <hello@matteocollina.com>
|
|
|
1680
1680
|
|
|
1681
1681
|
----------------------------------------
|
|
1682
1682
|
|
|
1683
|
-
### file-entry-cache@
|
|
1683
|
+
### file-entry-cache@v7.0.0
|
|
1684
1684
|
|
|
1685
1685
|
> Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process
|
|
1686
1686
|
|
|
1687
1687
|
License: MIT
|
|
1688
|
-
Author:
|
|
1688
|
+
Author: Jared Wray (https://jaredwray.com)
|
|
1689
1689
|
|
|
1690
1690
|
> The MIT License (MIT)
|
|
1691
1691
|
>
|
|
1692
|
-
> Copyright (c)
|
|
1692
|
+
> Copyright (c) Roy Riojas & Jared Wray
|
|
1693
1693
|
>
|
|
1694
1694
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1695
1695
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1823,16 +1823,16 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
1823
1823
|
|
|
1824
1824
|
----------------------------------------
|
|
1825
1825
|
|
|
1826
|
-
### flat-cache@v3.0
|
|
1826
|
+
### flat-cache@v3.1.0
|
|
1827
1827
|
|
|
1828
1828
|
> A stupidly simple key/value storage using files to persist some data
|
|
1829
1829
|
|
|
1830
1830
|
License: MIT
|
|
1831
|
-
Author:
|
|
1831
|
+
Author: Jared Wray (https://jaredwray.com)
|
|
1832
1832
|
|
|
1833
1833
|
> The MIT License (MIT)
|
|
1834
1834
|
>
|
|
1835
|
-
> Copyright (c)
|
|
1835
|
+
> Copyright (c) Roy Riojas and Jared Wray
|
|
1836
1836
|
>
|
|
1837
1837
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1838
1838
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1916,7 +1916,7 @@ Contributors:
|
|
|
1916
1916
|
|
|
1917
1917
|
----------------------------------------
|
|
1918
1918
|
|
|
1919
|
-
### flow-parser@v0.
|
|
1919
|
+
### flow-parser@v0.215.1
|
|
1920
1920
|
|
|
1921
1921
|
> JavaScript parser written in OCaml. Produces ESTree AST
|
|
1922
1922
|
|
|
@@ -2060,7 +2060,7 @@ Contributors:
|
|
|
2060
2060
|
|
|
2061
2061
|
----------------------------------------
|
|
2062
2062
|
|
|
2063
|
-
### graphql@v16.
|
|
2063
|
+
### graphql@v16.8.0
|
|
2064
2064
|
|
|
2065
2065
|
> A Query Language and Runtime which can target any service.
|
|
2066
2066
|
|
|
@@ -2724,10 +2724,10 @@ Contributors:
|
|
|
2724
2724
|
|
|
2725
2725
|
----------------------------------------
|
|
2726
2726
|
|
|
2727
|
-
### jest-docblock@v29.
|
|
2727
|
+
### jest-docblock@v29.6.3
|
|
2728
2728
|
|
|
2729
2729
|
License: MIT
|
|
2730
|
-
Repository: <https://github.com/
|
|
2730
|
+
Repository: <https://github.com/jestjs/jest.git>
|
|
2731
2731
|
|
|
2732
2732
|
> MIT License
|
|
2733
2733
|
>
|
|
@@ -2819,6 +2819,40 @@ Contributors:
|
|
|
2819
2819
|
|
|
2820
2820
|
----------------------------------------
|
|
2821
2821
|
|
|
2822
|
+
### json-buffer@v3.0.1
|
|
2823
|
+
|
|
2824
|
+
> JSON parse & stringify that supports binary via bops & base64
|
|
2825
|
+
|
|
2826
|
+
License: MIT
|
|
2827
|
+
Homepage: <https://github.com/dominictarr/json-buffer>
|
|
2828
|
+
Repository: <git://github.com/dominictarr/json-buffer.git>
|
|
2829
|
+
Author: Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)
|
|
2830
|
+
|
|
2831
|
+
> Copyright (c) 2013 Dominic Tarr
|
|
2832
|
+
>
|
|
2833
|
+
> Permission is hereby granted, free of charge,
|
|
2834
|
+
> to any person obtaining a copy of this software and
|
|
2835
|
+
> associated documentation files (the "Software"), to
|
|
2836
|
+
> deal in the Software without restriction, including
|
|
2837
|
+
> without limitation the rights to use, copy, modify,
|
|
2838
|
+
> merge, publish, distribute, sublicense, and/or sell
|
|
2839
|
+
> copies of the Software, and to permit persons to whom
|
|
2840
|
+
> the Software is furnished to do so,
|
|
2841
|
+
> subject to the following conditions:
|
|
2842
|
+
>
|
|
2843
|
+
> The above copyright notice and this permission notice
|
|
2844
|
+
> shall be included in all copies or substantial portions of the Software.
|
|
2845
|
+
>
|
|
2846
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
2847
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
2848
|
+
> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
2849
|
+
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
2850
|
+
> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
2851
|
+
> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
2852
|
+
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2853
|
+
|
|
2854
|
+
----------------------------------------
|
|
2855
|
+
|
|
2822
2856
|
### json-parse-even-better-errors@v2.3.1
|
|
2823
2857
|
|
|
2824
2858
|
> JSON.parse with context information on error
|
|
@@ -2893,6 +2927,17 @@ Contributors:
|
|
|
2893
2927
|
|
|
2894
2928
|
----------------------------------------
|
|
2895
2929
|
|
|
2930
|
+
### keyv@v4.5.3
|
|
2931
|
+
|
|
2932
|
+
> Simple key-value storage with support for multiple backends
|
|
2933
|
+
|
|
2934
|
+
License: MIT
|
|
2935
|
+
Homepage: <https://github.com/jaredwray/keyv>
|
|
2936
|
+
Repository: <git+https://github.com/jaredwray/keyv.git>
|
|
2937
|
+
Author: Jared Wray <me@jaredwray.com> (http://jaredwray.com)
|
|
2938
|
+
|
|
2939
|
+
----------------------------------------
|
|
2940
|
+
|
|
2896
2941
|
### leven@v4.0.0
|
|
2897
2942
|
|
|
2898
2943
|
> Measure the difference between two strings using the Levenshtein distance algorithm
|
|
@@ -3657,7 +3702,7 @@ Author: typicode
|
|
|
3657
3702
|
|
|
3658
3703
|
----------------------------------------
|
|
3659
3704
|
|
|
3660
|
-
### postcss@v8.4.
|
|
3705
|
+
### postcss@v8.4.28
|
|
3661
3706
|
|
|
3662
3707
|
> Tool for transforming styles with JS plugins
|
|
3663
3708
|
|
|
@@ -3734,7 +3779,7 @@ Author: dryoma
|
|
|
3734
3779
|
|
|
3735
3780
|
----------------------------------------
|
|
3736
3781
|
|
|
3737
|
-
### postcss-scss@v4.0.
|
|
3782
|
+
### postcss-scss@v4.0.7
|
|
3738
3783
|
|
|
3739
3784
|
> SCSS parser for PostCSS
|
|
3740
3785
|
|
|
@@ -4462,7 +4507,7 @@ Author: Josh Goldberg <npm@joshuakgoldberg.com>
|
|
|
4462
4507
|
|
|
4463
4508
|
----------------------------------------
|
|
4464
4509
|
|
|
4465
|
-
### typescript@v5.
|
|
4510
|
+
### typescript@v5.2.2
|
|
4466
4511
|
|
|
4467
4512
|
> TypeScript is a language for application scale JavaScript development
|
|
4468
4513
|
|
package/doc.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export namespace builders {
|
|
|
38
38
|
|
|
39
39
|
interface Group {
|
|
40
40
|
type: "group";
|
|
41
|
+
id?: symbol;
|
|
41
42
|
contents: Doc;
|
|
42
43
|
break: boolean;
|
|
43
44
|
expandedStates: Doc[];
|
|
@@ -64,6 +65,8 @@ export namespace builders {
|
|
|
64
65
|
|
|
65
66
|
interface Label {
|
|
66
67
|
type: "label";
|
|
68
|
+
label: any;
|
|
69
|
+
contents: Doc;
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
interface Line {
|
package/index.cjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -870,11 +870,20 @@ export namespace util {
|
|
|
870
870
|
options?: SkipOptions | undefined,
|
|
871
871
|
): boolean;
|
|
872
872
|
|
|
873
|
+
function getNextNonSpaceNonCommentCharacterIndex(
|
|
874
|
+
text: string,
|
|
875
|
+
startIndex: number,
|
|
876
|
+
): number | false;
|
|
877
|
+
|
|
873
878
|
function getNextNonSpaceNonCommentCharacter(
|
|
874
879
|
text: string,
|
|
875
880
|
startIndex: number,
|
|
876
881
|
): string;
|
|
877
882
|
|
|
883
|
+
function isNextLineEmpty(text: string, startIndex: number): boolean;
|
|
884
|
+
|
|
885
|
+
function isPreviousLineEmpty(text: string, startIndex: number): boolean;
|
|
886
|
+
|
|
878
887
|
function makeString(
|
|
879
888
|
rawText: string,
|
|
880
889
|
enclosingQuote: Quote,
|
package/index.mjs
CHANGED
|
@@ -125,10 +125,15 @@ var require_path = __commonJS({
|
|
|
125
125
|
"node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
126
126
|
"use strict";
|
|
127
127
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
128
|
-
exports.
|
|
128
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
129
|
+
var os2 = __require("os");
|
|
129
130
|
var path9 = __require("path");
|
|
131
|
+
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
130
132
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
131
|
-
var
|
|
133
|
+
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
134
|
+
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
|
|
135
|
+
var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
|
|
136
|
+
var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
|
|
132
137
|
function unixify(filepath) {
|
|
133
138
|
return filepath.replace(/\\/g, "/");
|
|
134
139
|
}
|
|
@@ -137,10 +142,6 @@ var require_path = __commonJS({
|
|
|
137
142
|
return path9.resolve(cwd, filepath);
|
|
138
143
|
}
|
|
139
144
|
exports.makeAbsolute = makeAbsolute;
|
|
140
|
-
function escape(pattern) {
|
|
141
|
-
return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
142
|
-
}
|
|
143
|
-
exports.escape = escape;
|
|
144
145
|
function removeLeadingDotSegment(entry) {
|
|
145
146
|
if (entry.charAt(0) === ".") {
|
|
146
147
|
const secondCharactery = entry.charAt(1);
|
|
@@ -151,6 +152,24 @@ var require_path = __commonJS({
|
|
|
151
152
|
return entry;
|
|
152
153
|
}
|
|
153
154
|
exports.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
155
|
+
exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
156
|
+
function escapeWindowsPath(pattern) {
|
|
157
|
+
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
158
|
+
}
|
|
159
|
+
exports.escapeWindowsPath = escapeWindowsPath;
|
|
160
|
+
function escapePosixPath(pattern) {
|
|
161
|
+
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
162
|
+
}
|
|
163
|
+
exports.escapePosixPath = escapePosixPath;
|
|
164
|
+
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
165
|
+
function convertWindowsPathToPattern(filepath) {
|
|
166
|
+
return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
|
|
167
|
+
}
|
|
168
|
+
exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
169
|
+
function convertPosixPathToPattern(filepath) {
|
|
170
|
+
return escapePosixPath(filepath);
|
|
171
|
+
}
|
|
172
|
+
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
154
173
|
}
|
|
155
174
|
});
|
|
156
175
|
|
|
@@ -3130,7 +3149,7 @@ var require_pattern = __commonJS({
|
|
|
3130
3149
|
"node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
3131
3150
|
"use strict";
|
|
3132
3151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3133
|
-
exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
3152
|
+
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
3134
3153
|
var path9 = __require("path");
|
|
3135
3154
|
var globParent = require_glob_parent();
|
|
3136
3155
|
var micromatch2 = require_micromatch();
|
|
@@ -3141,6 +3160,7 @@ var require_pattern = __commonJS({
|
|
|
3141
3160
|
var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
3142
3161
|
var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
|
|
3143
3162
|
var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
|
|
3163
|
+
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3144
3164
|
function isStaticPattern(pattern, options8 = {}) {
|
|
3145
3165
|
return !isDynamicPattern(pattern, options8);
|
|
3146
3166
|
}
|
|
@@ -3236,10 +3256,9 @@ var require_pattern = __commonJS({
|
|
|
3236
3256
|
}
|
|
3237
3257
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
3238
3258
|
function expandBraceExpansion(pattern) {
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
});
|
|
3259
|
+
const patterns = micromatch2.braces(pattern, { expand: true, nodupes: true });
|
|
3260
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
3261
|
+
return patterns.filter((pattern2) => pattern2 !== "");
|
|
3243
3262
|
}
|
|
3244
3263
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
3245
3264
|
function getPatternParts(pattern, options8) {
|
|
@@ -3266,6 +3285,10 @@ var require_pattern = __commonJS({
|
|
|
3266
3285
|
return patternsRe.some((patternRe) => patternRe.test(entry));
|
|
3267
3286
|
}
|
|
3268
3287
|
exports.matchAny = matchAny;
|
|
3288
|
+
function removeDuplicateSlashes(pattern) {
|
|
3289
|
+
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3290
|
+
}
|
|
3291
|
+
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3269
3292
|
}
|
|
3270
3293
|
});
|
|
3271
3294
|
|
|
@@ -3458,9 +3481,11 @@ var require_tasks = __commonJS({
|
|
|
3458
3481
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3459
3482
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
3460
3483
|
var utils = require_utils3();
|
|
3461
|
-
function generate(
|
|
3484
|
+
function generate(input, settings) {
|
|
3485
|
+
const patterns = processPatterns(input, settings);
|
|
3486
|
+
const ignore = processPatterns(settings.ignore, settings);
|
|
3462
3487
|
const positivePatterns = getPositivePatterns(patterns);
|
|
3463
|
-
const negativePatterns = getNegativePatternsAsPositive(patterns,
|
|
3488
|
+
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
3464
3489
|
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
3465
3490
|
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
3466
3491
|
const staticTasks = convertPatternsToTasks(
|
|
@@ -3478,6 +3503,16 @@ var require_tasks = __commonJS({
|
|
|
3478
3503
|
return staticTasks.concat(dynamicTasks);
|
|
3479
3504
|
}
|
|
3480
3505
|
exports.generate = generate;
|
|
3506
|
+
function processPatterns(input, settings) {
|
|
3507
|
+
let patterns = input;
|
|
3508
|
+
if (settings.braceExpansion) {
|
|
3509
|
+
patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
3510
|
+
}
|
|
3511
|
+
if (settings.baseNameMatch) {
|
|
3512
|
+
patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
3513
|
+
}
|
|
3514
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
3515
|
+
}
|
|
3481
3516
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
3482
3517
|
const tasks = [];
|
|
3483
3518
|
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
@@ -3535,24 +3570,6 @@ var require_tasks = __commonJS({
|
|
|
3535
3570
|
}
|
|
3536
3571
|
});
|
|
3537
3572
|
|
|
3538
|
-
// node_modules/fast-glob/out/managers/patterns.js
|
|
3539
|
-
var require_patterns = __commonJS({
|
|
3540
|
-
"node_modules/fast-glob/out/managers/patterns.js"(exports) {
|
|
3541
|
-
"use strict";
|
|
3542
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3543
|
-
exports.removeDuplicateSlashes = exports.transform = void 0;
|
|
3544
|
-
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3545
|
-
function transform2(patterns) {
|
|
3546
|
-
return patterns.map((pattern) => removeDuplicateSlashes(pattern));
|
|
3547
|
-
}
|
|
3548
|
-
exports.transform = transform2;
|
|
3549
|
-
function removeDuplicateSlashes(pattern) {
|
|
3550
|
-
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3551
|
-
}
|
|
3552
|
-
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3553
|
-
}
|
|
3554
|
-
});
|
|
3555
|
-
|
|
3556
3573
|
// node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3557
3574
|
var require_async = __commonJS({
|
|
3558
3575
|
"node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
@@ -4900,8 +4917,7 @@ var require_matcher = __commonJS({
|
|
|
4900
4917
|
this._fillStorage();
|
|
4901
4918
|
}
|
|
4902
4919
|
_fillStorage() {
|
|
4903
|
-
const
|
|
4904
|
-
for (const pattern of patterns) {
|
|
4920
|
+
for (const pattern of this._patterns) {
|
|
4905
4921
|
const segments = this._getPatternSegments(pattern);
|
|
4906
4922
|
const sections = this._splitSegmentsIntoSections(segments);
|
|
4907
4923
|
this._storage.push({
|
|
@@ -5053,32 +5069,32 @@ var require_entry = __commonJS({
|
|
|
5053
5069
|
}
|
|
5054
5070
|
getFilter(positive, negative) {
|
|
5055
5071
|
const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
|
|
5056
|
-
const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions);
|
|
5072
|
+
const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
|
|
5057
5073
|
return (entry) => this._filter(entry, positiveRe, negativeRe);
|
|
5058
5074
|
}
|
|
5059
5075
|
_filter(entry, positiveRe, negativeRe) {
|
|
5060
|
-
|
|
5076
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5077
|
+
if (this._settings.unique && this._isDuplicateEntry(filepath)) {
|
|
5061
5078
|
return false;
|
|
5062
5079
|
}
|
|
5063
5080
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
|
|
5064
5081
|
return false;
|
|
5065
5082
|
}
|
|
5066
|
-
if (this._isSkippedByAbsoluteNegativePatterns(
|
|
5083
|
+
if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
|
|
5067
5084
|
return false;
|
|
5068
5085
|
}
|
|
5069
|
-
const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
|
|
5070
5086
|
const isDirectory = entry.dirent.isDirectory();
|
|
5071
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(
|
|
5087
|
+
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
|
5072
5088
|
if (this._settings.unique && isMatched) {
|
|
5073
|
-
this._createIndexRecord(
|
|
5089
|
+
this._createIndexRecord(filepath);
|
|
5074
5090
|
}
|
|
5075
5091
|
return isMatched;
|
|
5076
5092
|
}
|
|
5077
|
-
_isDuplicateEntry(
|
|
5078
|
-
return this.index.has(
|
|
5093
|
+
_isDuplicateEntry(filepath) {
|
|
5094
|
+
return this.index.has(filepath);
|
|
5079
5095
|
}
|
|
5080
|
-
_createIndexRecord(
|
|
5081
|
-
this.index.set(
|
|
5096
|
+
_createIndexRecord(filepath) {
|
|
5097
|
+
this.index.set(filepath, void 0);
|
|
5082
5098
|
}
|
|
5083
5099
|
_onlyFileFilter(entry) {
|
|
5084
5100
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -5093,8 +5109,7 @@ var require_entry = __commonJS({
|
|
|
5093
5109
|
const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
|
|
5094
5110
|
return utils.pattern.matchAny(fullpath, patternsRe);
|
|
5095
5111
|
}
|
|
5096
|
-
_isMatchToPatterns(
|
|
5097
|
-
const filepath = utils.path.removeLeadingDotSegment(entryPath);
|
|
5112
|
+
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
5098
5113
|
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
5099
5114
|
if (!isMatched && isDirectory) {
|
|
5100
5115
|
return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
@@ -5400,6 +5415,7 @@ var require_settings4 = __commonJS({
|
|
|
5400
5415
|
if (this.stats) {
|
|
5401
5416
|
this.objectMode = true;
|
|
5402
5417
|
}
|
|
5418
|
+
this.ignore = [].concat(this.ignore);
|
|
5403
5419
|
}
|
|
5404
5420
|
_getValue(option, value) {
|
|
5405
5421
|
return option === void 0 ? value : option;
|
|
@@ -5417,7 +5433,6 @@ var require_out4 = __commonJS({
|
|
|
5417
5433
|
"node_modules/fast-glob/out/index.js"(exports, module) {
|
|
5418
5434
|
"use strict";
|
|
5419
5435
|
var taskManager = require_tasks();
|
|
5420
|
-
var patternManager = require_patterns();
|
|
5421
5436
|
var async_1 = require_async6();
|
|
5422
5437
|
var stream_1 = require_stream4();
|
|
5423
5438
|
var sync_1 = require_sync6();
|
|
@@ -5430,6 +5445,10 @@ var require_out4 = __commonJS({
|
|
|
5430
5445
|
return utils.array.flatten(result);
|
|
5431
5446
|
}
|
|
5432
5447
|
(function(FastGlob2) {
|
|
5448
|
+
FastGlob2.glob = FastGlob2;
|
|
5449
|
+
FastGlob2.globSync = sync;
|
|
5450
|
+
FastGlob2.globStream = stream;
|
|
5451
|
+
FastGlob2.async = FastGlob2;
|
|
5433
5452
|
function sync(source, options8) {
|
|
5434
5453
|
assertPatternsInput(source);
|
|
5435
5454
|
const works = getWorks(source, sync_1.default, options8);
|
|
@@ -5444,7 +5463,7 @@ var require_out4 = __commonJS({
|
|
|
5444
5463
|
FastGlob2.stream = stream;
|
|
5445
5464
|
function generateTasks(source, options8) {
|
|
5446
5465
|
assertPatternsInput(source);
|
|
5447
|
-
const patterns =
|
|
5466
|
+
const patterns = [].concat(source);
|
|
5448
5467
|
const settings = new settings_1.default(options8);
|
|
5449
5468
|
return taskManager.generate(patterns, settings);
|
|
5450
5469
|
}
|
|
@@ -5460,9 +5479,40 @@ var require_out4 = __commonJS({
|
|
|
5460
5479
|
return utils.path.escape(source);
|
|
5461
5480
|
}
|
|
5462
5481
|
FastGlob2.escapePath = escapePath;
|
|
5482
|
+
function convertPathToPattern(source) {
|
|
5483
|
+
assertPatternsInput(source);
|
|
5484
|
+
return utils.path.convertPathToPattern(source);
|
|
5485
|
+
}
|
|
5486
|
+
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
5487
|
+
let posix;
|
|
5488
|
+
(function(posix2) {
|
|
5489
|
+
function escapePath2(source) {
|
|
5490
|
+
assertPatternsInput(source);
|
|
5491
|
+
return utils.path.escapePosixPath(source);
|
|
5492
|
+
}
|
|
5493
|
+
posix2.escapePath = escapePath2;
|
|
5494
|
+
function convertPathToPattern2(source) {
|
|
5495
|
+
assertPatternsInput(source);
|
|
5496
|
+
return utils.path.convertPosixPathToPattern(source);
|
|
5497
|
+
}
|
|
5498
|
+
posix2.convertPathToPattern = convertPathToPattern2;
|
|
5499
|
+
})(posix = FastGlob2.posix || (FastGlob2.posix = {}));
|
|
5500
|
+
let win32;
|
|
5501
|
+
(function(win322) {
|
|
5502
|
+
function escapePath2(source) {
|
|
5503
|
+
assertPatternsInput(source);
|
|
5504
|
+
return utils.path.escapeWindowsPath(source);
|
|
5505
|
+
}
|
|
5506
|
+
win322.escapePath = escapePath2;
|
|
5507
|
+
function convertPathToPattern2(source) {
|
|
5508
|
+
assertPatternsInput(source);
|
|
5509
|
+
return utils.path.convertWindowsPathToPattern(source);
|
|
5510
|
+
}
|
|
5511
|
+
win322.convertPathToPattern = convertPathToPattern2;
|
|
5512
|
+
})(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
5463
5513
|
})(FastGlob || (FastGlob = {}));
|
|
5464
5514
|
function getWorks(source, _Provider, options8) {
|
|
5465
|
-
const patterns =
|
|
5515
|
+
const patterns = [].concat(source);
|
|
5466
5516
|
const settings = new settings_1.default(options8);
|
|
5467
5517
|
const tasks = taskManager.generate(patterns, settings);
|
|
5468
5518
|
const provider = new _Provider(settings);
|
|
@@ -19865,11 +19915,16 @@ function importFromFile(specifier, parent) {
|
|
|
19865
19915
|
var import_from_file_default = importFromFile;
|
|
19866
19916
|
|
|
19867
19917
|
// src/config/load-external-config.js
|
|
19918
|
+
var requireErrorCodesShouldBeIgnored = /* @__PURE__ */ new Set([
|
|
19919
|
+
"MODULE_NOT_FOUND",
|
|
19920
|
+
"ERR_REQUIRE_ESM",
|
|
19921
|
+
"ERR_PACKAGE_PATH_NOT_EXPORTED"
|
|
19922
|
+
]);
|
|
19868
19923
|
async function loadExternalConfig(config, filepath) {
|
|
19869
19924
|
try {
|
|
19870
19925
|
return require_from_file_default(config, filepath);
|
|
19871
19926
|
} catch (error) {
|
|
19872
|
-
if (
|
|
19927
|
+
if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) {
|
|
19873
19928
|
throw error;
|
|
19874
19929
|
}
|
|
19875
19930
|
}
|
|
@@ -21426,7 +21481,7 @@ function isNextLineEmpty2(text, startIndex) {
|
|
|
21426
21481
|
import * as doc from "./doc.mjs";
|
|
21427
21482
|
|
|
21428
21483
|
// src/main/version.evaluate.cjs
|
|
21429
|
-
var version_evaluate_default = "3.0.
|
|
21484
|
+
var version_evaluate_default = "3.0.3";
|
|
21430
21485
|
|
|
21431
21486
|
// src/index.js
|
|
21432
21487
|
function withPlugins(fn, optionsArgumentIndex = 1) {
|