@descent-vtt/spec-guard 0.11.0 → 0.12.0
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/CHANGELOG.md +354 -3
- package/README.md +377 -22
- package/dist/cites.d.ts +192 -0
- package/dist/cites.d.ts.map +1 -0
- package/dist/cites.js +599 -0
- package/dist/cites.js.map +1 -0
- package/dist/cli.d.ts +14 -6
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +315 -22
- package/dist/cli.js.map +1 -1
- package/dist/comments.d.ts +1 -1
- package/dist/comments.js +1 -1
- package/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +46 -5
- package/dist/config.js.map +1 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +38 -14
- package/dist/engine.js.map +1 -1
- package/dist/glob.d.ts +128 -24
- package/dist/glob.d.ts.map +1 -1
- package/dist/glob.js +304 -61
- package/dist/glob.js.map +1 -1
- package/dist/impact.d.ts +179 -0
- package/dist/impact.d.ts.map +1 -0
- package/dist/impact.js +360 -0
- package/dist/impact.js.map +1 -0
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +16 -75
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +198 -370
- package/dist/mcp.js.map +1 -1
- package/dist/overlay.d.ts +39 -0
- package/dist/overlay.d.ts.map +1 -0
- package/dist/overlay.js +133 -0
- package/dist/overlay.js.map +1 -0
- package/dist/parser.d.ts +41 -24
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +217 -160
- package/dist/parser.js.map +1 -1
- package/dist/prove.d.ts +46 -0
- package/dist/prove.d.ts.map +1 -0
- package/dist/prove.js +549 -0
- package/dist/prove.js.map +1 -0
- package/dist/query.d.ts +11 -0
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +9 -3
- package/dist/query.js.map +1 -1
- package/dist/reporter.d.ts +139 -1
- package/dist/reporter.d.ts.map +1 -1
- package/dist/reporter.js +593 -21
- package/dist/reporter.js.map +1 -1
- package/dist/rules.js +3 -3
- package/dist/rules.js.map +1 -1
- package/dist/runner.d.ts +24 -1
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +84 -21
- package/dist/runner.js.map +1 -1
- package/dist/specs.d.ts +5 -1
- package/dist/specs.d.ts.map +1 -1
- package/dist/specs.js +5 -1
- package/dist/specs.js.map +1 -1
- package/dist/structure.d.ts.map +1 -1
- package/dist/structure.js +7 -6
- package/dist/structure.js.map +1 -1
- package/dist/types.d.ts +193 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/vendor/spec-core/jsonrpc/index.d.ts +3 -0
- package/dist/vendor/spec-core/jsonrpc/index.d.ts.map +1 -0
- package/dist/vendor/spec-core/jsonrpc/index.js +2 -0
- package/dist/vendor/spec-core/jsonrpc/index.js.map +1 -0
- package/dist/vendor/spec-core/jsonrpc/mcp.d.ts +158 -0
- package/dist/vendor/spec-core/jsonrpc/mcp.d.ts.map +1 -0
- package/dist/vendor/spec-core/jsonrpc/mcp.js +353 -0
- package/dist/vendor/spec-core/jsonrpc/mcp.js.map +1 -0
- package/dist/vendor/spec-core/markdown/frontmatter.d.ts +104 -0
- package/dist/vendor/spec-core/markdown/frontmatter.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/frontmatter.js +459 -0
- package/dist/vendor/spec-core/markdown/frontmatter.js.map +1 -0
- package/dist/vendor/spec-core/markdown/headings.d.ts +46 -0
- package/dist/vendor/spec-core/markdown/headings.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/headings.js +199 -0
- package/dist/vendor/spec-core/markdown/headings.js.map +1 -0
- package/dist/vendor/spec-core/markdown/index.d.ts +6 -0
- package/dist/vendor/spec-core/markdown/index.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/index.js +4 -0
- package/dist/vendor/spec-core/markdown/index.js.map +1 -0
- package/dist/vendor/spec-core/markdown/layout.d.ts +40 -0
- package/dist/vendor/spec-core/markdown/layout.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/layout.js +28 -0
- package/dist/vendor/spec-core/markdown/layout.js.map +1 -0
- package/dist/vendor/spec-core/markdown/links.d.ts +23 -0
- package/dist/vendor/spec-core/markdown/links.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/links.js +364 -0
- package/dist/vendor/spec-core/markdown/links.js.map +1 -0
- package/dist/vendor/spec-core/markdown/lists.d.ts +23 -0
- package/dist/vendor/spec-core/markdown/lists.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/lists.js +127 -0
- package/dist/vendor/spec-core/markdown/lists.js.map +1 -0
- package/dist/vendor/spec-core/markdown/scan.d.ts +37 -0
- package/dist/vendor/spec-core/markdown/scan.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/scan.js +439 -0
- package/dist/vendor/spec-core/markdown/scan.js.map +1 -0
- package/dist/vendor/spec-core/markdown/syntax.d.ts +76 -0
- package/dist/vendor/spec-core/markdown/syntax.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/syntax.js +181 -0
- package/dist/vendor/spec-core/markdown/syntax.js.map +1 -0
- package/dist/vendor/spec-core/markdown/tables.d.ts +19 -0
- package/dist/vendor/spec-core/markdown/tables.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/tables.js +86 -0
- package/dist/vendor/spec-core/markdown/tables.js.map +1 -0
- package/dist/vendor/spec-core/markdown/types.d.ts +288 -0
- package/dist/vendor/spec-core/markdown/types.d.ts.map +1 -0
- package/dist/vendor/spec-core/markdown/types.js +9 -0
- package/dist/vendor/spec-core/markdown/types.js.map +1 -0
- package/dist/vendor/spec-core/path/index.d.ts +2 -0
- package/dist/vendor/spec-core/path/index.d.ts.map +1 -0
- package/dist/vendor/spec-core/path/index.js +2 -0
- package/dist/vendor/spec-core/path/index.js.map +1 -0
- package/dist/vendor/spec-core/path/posix.d.ts +84 -0
- package/dist/vendor/spec-core/path/posix.d.ts.map +1 -0
- package/dist/vendor/spec-core/path/posix.js +150 -0
- package/dist/vendor/spec-core/path/posix.js.map +1 -0
- package/dist/vendor/spec-core/pattern/automaton.d.ts +130 -0
- package/dist/vendor/spec-core/pattern/automaton.d.ts.map +1 -0
- package/dist/vendor/spec-core/pattern/automaton.js +340 -0
- package/dist/vendor/spec-core/pattern/automaton.js.map +1 -0
- package/dist/vendor/spec-core/pattern/charset.d.ts +59 -0
- package/dist/vendor/spec-core/pattern/charset.d.ts.map +1 -0
- package/dist/vendor/spec-core/pattern/charset.js +116 -0
- package/dist/vendor/spec-core/pattern/charset.js.map +1 -0
- package/dist/vendor/spec-core/pattern/glob.d.ts +122 -0
- package/dist/vendor/spec-core/pattern/glob.d.ts.map +1 -0
- package/dist/vendor/spec-core/pattern/glob.js +481 -0
- package/dist/vendor/spec-core/pattern/glob.js.map +1 -0
- package/dist/vendor/spec-core/pattern/index.d.ts +7 -0
- package/dist/vendor/spec-core/pattern/index.d.ts.map +1 -0
- package/dist/vendor/spec-core/pattern/index.js +4 -0
- package/dist/vendor/spec-core/pattern/index.js.map +1 -0
- package/dist/vendor/spec-core/pattern/regex.d.ts +68 -0
- package/dist/vendor/spec-core/pattern/regex.d.ts.map +1 -0
- package/dist/vendor/spec-core/pattern/regex.js +813 -0
- package/dist/vendor/spec-core/pattern/regex.js.map +1 -0
- package/dist/vendor/spec-core/text/index.d.ts +3 -0
- package/dist/vendor/spec-core/text/index.d.ts.map +1 -0
- package/dist/vendor/spec-core/text/index.js +2 -0
- package/dist/vendor/spec-core/text/index.js.map +1 -0
- package/dist/vendor/spec-core/text/lines.d.ts +73 -0
- package/dist/vendor/spec-core/text/lines.d.ts.map +1 -0
- package/dist/vendor/spec-core/text/lines.js +156 -0
- package/dist/vendor/spec-core/text/lines.js.map +1 -0
- package/package.json +8 -1
- package/src/vendor/spec-core/LICENSE +21 -0
- package/src/vendor/spec-core/README.md +8 -0
package/dist/glob.d.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Glob matching and directory walking.
|
|
3
3
|
*
|
|
4
4
|
* Windows shells do not expand globs, so `spec-guard "docs/**\/*.md"` must
|
|
5
5
|
* behave identically on every platform. spec-guard therefore always expands
|
|
6
6
|
* patterns itself instead of trusting the shell.
|
|
7
|
+
*
|
|
8
|
+
* Matching is spec-core's, copied into src/vendor/spec-core: one automaton that
|
|
9
|
+
* keeps a set of live states and so cannot backtrack, in three named dialects.
|
|
10
|
+
* Each kind of pattern here is one of them, read case-sensitively on every host.
|
|
11
|
+
* `glob=` is `ripgrep`, `exclude=`, `module=` and a layer are `gitignore`, and
|
|
12
|
+
* a pattern matched against a whole path from where it starts - `dirs=`, a
|
|
13
|
+
* required entry's name - is `path`. What is walked, and what the walk skips,
|
|
14
|
+
* stays here. ADR-0015.
|
|
7
15
|
*/
|
|
8
16
|
import { type Io } from './io.js';
|
|
9
17
|
import { type ScopePolicy, type SkipReason } from './scope.js';
|
|
18
|
+
import { type Glob } from './vendor/spec-core/pattern/index.js';
|
|
10
19
|
/** True when the pattern contains glob metacharacters. */
|
|
11
20
|
export declare function isGlob(pattern: string): boolean;
|
|
12
21
|
/** Normalises Windows separators so every internal path uses `/`. */
|
|
@@ -15,47 +24,107 @@ export declare function toPosix(value: string): string;
|
|
|
15
24
|
* Converts a glob to an anchored RegExp.
|
|
16
25
|
* Supports `*`, `**`, `?`, `[...]` and `{a,b}` - the subset every developer
|
|
17
26
|
* already knows from .gitignore and ripgrep.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated Nothing in spec-guard matches with this any more: a glob is read
|
|
29
|
+
* by spec-core's automaton, which cannot backtrack (ADR-0015). This compiled
|
|
30
|
+
* `*-*-*-*-*-*x` to a pattern that took 28 seconds to fail a 121-character
|
|
31
|
+
* name, read `**` inside a segment as crossing directories, and took an unclosed
|
|
32
|
+
* `[` or `{` as a literal. It stays for callers of the API, and the tests keep
|
|
33
|
+
* it as the oracle for everything the two readings agree on.
|
|
18
34
|
*/
|
|
19
35
|
export declare function globToRegExp(pattern: string, options?: {
|
|
20
36
|
ignoreCase?: boolean;
|
|
21
37
|
}): RegExp;
|
|
22
38
|
/**
|
|
23
39
|
* An include glob in the one form both engines are given: forward slashes, no
|
|
24
|
-
* leading `./`, and a trailing slash read as everything
|
|
40
|
+
* surrounding space, no leading `./`, and a trailing slash read as everything
|
|
41
|
+
* under the directory.
|
|
25
42
|
*
|
|
26
43
|
* ripgrep used to be handed the glob as written, and matched nothing for
|
|
27
|
-
* `./src/*.ts` or `src/` while the scanner matched the files. ADR-0014.
|
|
44
|
+
* `./src/*.ts` or `src/` while the scanner matched the files. ADR-0014. The
|
|
45
|
+
* space is trimmed because spec-core trims it, and ripgrep would have read it
|
|
46
|
+
* as part of a name.
|
|
28
47
|
*/
|
|
29
48
|
export declare function normalizeGlob(pattern: string): string;
|
|
30
49
|
/**
|
|
31
50
|
* An `exclude` pattern in the one form both engines are given: forward slashes,
|
|
32
|
-
* no leading `./` and no trailing slash. A leading `/`
|
|
33
|
-
* something: see `createExcludeMatcher`.
|
|
51
|
+
* no surrounding space, no leading `./` and no trailing slash. A leading `/`
|
|
52
|
+
* stays, because it means something: see `createExcludeMatcher`.
|
|
34
53
|
*
|
|
35
54
|
* ripgrep used to be handed the pattern as written, and read three shapes
|
|
36
55
|
* differently from the scanner. `./build` and `src\build` excluded nothing, and
|
|
37
56
|
* `build/` did not exclude a file named `build`. ADR-0014.
|
|
38
57
|
*/
|
|
39
58
|
export declare function normalizeExclude(pattern: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Which part of a path decides whether a pattern matches it: its last segment,
|
|
61
|
+
* any one of its segments, or only the whole of it.
|
|
62
|
+
*/
|
|
63
|
+
export type PatternShape = 'last' | 'any' | 'whole';
|
|
64
|
+
/** What of a path decides whether a glob or an exclusion matches it. */
|
|
65
|
+
export declare function patternShape(pattern: string, kind: 'include' | 'exclude'): PatternShape;
|
|
66
|
+
/**
|
|
67
|
+
* A predicate over paths from one compiled glob, asking the glob no more often
|
|
68
|
+
* than the pattern's shape requires.
|
|
69
|
+
*
|
|
70
|
+
* Every answer is the automaton's. But a Thompson automaton keeps a set of live
|
|
71
|
+
* states per character where a RegExp compiled to machine code, and asked of
|
|
72
|
+
* every path the matching took 26 times as long: 261 ms against 10 over the
|
|
73
|
+
* 10,446 paths in this repository's node_modules, for three globs and four
|
|
74
|
+
* exclusions (ADR-0015). A tree repeats its names - those paths hold 6,714
|
|
75
|
+
* distinct segments - and most patterns are one segment in every alternative,
|
|
76
|
+
* `*.ts`, `tests`, `node:fs`, whose answer for a path is their answer for its
|
|
77
|
+
* last segment or for one of its segments. So those are asked once per segment.
|
|
78
|
+
* Any other pattern can only match below the directories spec-core names as its
|
|
79
|
+
* bases, and a path outside all of them is answered without asking.
|
|
80
|
+
*/
|
|
81
|
+
export declare function globPredicate(glob: Pick<Glob, 'match' | 'bases'>, shape: PatternShape): (relativePath: string) => boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Why an include glob cannot be read, or null when it can.
|
|
84
|
+
*
|
|
85
|
+
* A malformed glob - an unclosed `[` or `{`, an extended glob such as `+(a|b)`,
|
|
86
|
+
* a `..` - used to be read anyway: as a literal, or as whatever the regular
|
|
87
|
+
* expression it compiled to happened to mean. A typo read as a literal is a
|
|
88
|
+
* filter that matches nothing and reports clean, so it is refused.
|
|
89
|
+
*/
|
|
90
|
+
export declare function globPatternError(pattern: string): string | null;
|
|
91
|
+
/** Why a module pattern or a layer cannot be read, or null when it can. */
|
|
92
|
+
export declare function modulePatternError(pattern: string, kind?: 'module' | 'layer'): string | null;
|
|
93
|
+
/**
|
|
94
|
+
* A name a module pattern or a layer matches, or null when it matches none.
|
|
95
|
+
*
|
|
96
|
+
* The shortest spec-core's witness search finds, so a literal is itself -
|
|
97
|
+
* `node:fs`, `src/db` - and `@app/db/**` is a name just below `@app/db`.
|
|
98
|
+
* `spec-guard prove` imports it, to show a rule about the module that it can
|
|
99
|
+
* fail (ADR-0016).
|
|
100
|
+
*/
|
|
101
|
+
export declare function moduleWitness(pattern: string): string | null;
|
|
102
|
+
/** Why a pattern read against a whole path - `dirs=`, a required entry's name - cannot be read, or null. */
|
|
103
|
+
export declare function pathPatternError(pattern: string): string | null;
|
|
40
104
|
/**
|
|
41
105
|
* Why an exclude pattern can never leave anything out, or null when it can.
|
|
42
106
|
*
|
|
43
|
-
* Each of
|
|
44
|
-
* one that matters is `!`: in `.gitignore` it re-includes a path, and a
|
|
45
|
-
* copied from one kept `build` and silently lost
|
|
46
|
-
* so the exclusion was wider than the list reads.
|
|
47
|
-
* outside the root, where nothing is searched,
|
|
48
|
-
* itself, which no path under it is.
|
|
107
|
+
* Each of the first four matched nothing under both engines, and nothing said
|
|
108
|
+
* so. The one that matters is `!`: in `.gitignore` it re-includes a path, and a
|
|
109
|
+
* list copied from one kept `build` and silently lost
|
|
110
|
+
* `!build/generated/needed.ts`, so the exclusion was wider than the list reads.
|
|
111
|
+
* A `..` or a drive path points outside the root, where nothing is searched,
|
|
112
|
+
* and `.` or `/` names the root itself, which no path under it is. After those,
|
|
113
|
+
* whatever spec-core refuses: a malformed pattern excludes nothing either.
|
|
49
114
|
*/
|
|
50
115
|
export declare function excludePatternError(pattern: string): string | null;
|
|
116
|
+
/** The error for the first pattern in a list that cannot be read, by the given check, or null. */
|
|
117
|
+
export declare function patternListError(patterns: readonly string[], check: (pattern: string) => string | null): string | null;
|
|
51
118
|
/** The error for the first pattern in a list that can never exclude anything, or null. */
|
|
52
119
|
export declare function excludeListError(patterns: readonly string[]): string | null;
|
|
53
120
|
/**
|
|
54
121
|
* Builds a predicate over root-relative POSIX paths.
|
|
55
122
|
*
|
|
56
123
|
* Following ripgrep's `-g` semantics, a pattern without a `/` is matched
|
|
57
|
-
* against the file's
|
|
58
|
-
* containing `/` is matched against the whole relative path.
|
|
124
|
+
* against the file's name at any depth (`*.ts` matches `src/deep/a.ts`), while
|
|
125
|
+
* a pattern containing `/` is matched against the whole relative path. Each
|
|
126
|
+
* alternative of a `{a,b}` decides that for itself. Throws for a pattern that
|
|
127
|
+
* cannot be read; a directive's patterns are refused before a matcher is built.
|
|
59
128
|
*/
|
|
60
129
|
export declare function createGlobMatcher(patterns: readonly string[]): (relativePath: string) => boolean;
|
|
61
130
|
/**
|
|
@@ -68,18 +137,43 @@ export declare function createGlobMatcher(patterns: readonly string[]): (relativ
|
|
|
68
137
|
* directory, not a file of that name. ripgrep's `-g !pattern` already behaves
|
|
69
138
|
* this way; matching it here is what keeps the two engines from disagreeing.
|
|
70
139
|
*
|
|
71
|
-
* The rule is one line: a pattern
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* `/target` gave a different count on a tree large enough for `auto` to pick
|
|
79
|
-
* ripgrep. The slash is not part of any path, so it is dropped once it has
|
|
80
|
-
* anchored the pattern.
|
|
140
|
+
* The rule is one line: a pattern matches a path or any directory above it,
|
|
141
|
+
* and it is anchored at the root when it holds a `/` anywhere but at its end.
|
|
142
|
+
* A leading slash anchors and is otherwise dropped, as it is in `.gitignore`:
|
|
143
|
+
* `/build` is the `build` at the root, where `build` is one at any depth.
|
|
144
|
+
* ripgrep always read it that way, and the scanner used to match nothing for
|
|
145
|
+
* it, so a rule excluding `/target` gave a different count on a tree large
|
|
146
|
+
* enough for `auto` to pick ripgrep.
|
|
81
147
|
*/
|
|
82
148
|
export declare function createExcludeMatcher(patterns: readonly string[]): (relativePath: string) => boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Builds a predicate for one pattern matched against a whole path from where
|
|
151
|
+
* it starts: `dirs="*"` against a directory below a target, a required entry's
|
|
152
|
+
* name against the names in a directory. `*` is one segment, `**` any number of
|
|
153
|
+
* them, and a pattern with no glob syntax names one path exactly.
|
|
154
|
+
*/
|
|
155
|
+
export declare function createPathMatcher(pattern: string): (relativePath: string) => boolean;
|
|
156
|
+
/**
|
|
157
|
+
* The globs ripgrep is handed for one normalised pattern: the same set of
|
|
158
|
+
* paths spec-core reads it as, spelled so that ripgrep's globset reads it the
|
|
159
|
+
* same way.
|
|
160
|
+
*
|
|
161
|
+
* Handed the pattern as spec-guard normalised it, ripgrep still read four
|
|
162
|
+
* shapes differently from the scanner, and each is measured in ADR-0015:
|
|
163
|
+
* - it decides whether a glob is anchored from the whole glob, where spec-core
|
|
164
|
+
* decides for each alternative of its braces, so `{src/*.ts,*.md}` found
|
|
165
|
+
* `*.md` only at the root;
|
|
166
|
+
* - it drops an empty alternative, so `{,src/}a.ts` never found `a.ts`;
|
|
167
|
+
* - it keeps `.` and empty segments, which spec-core drops, so `src/./a.ts`
|
|
168
|
+
* matched nothing;
|
|
169
|
+
* - it refuses a `}` that closes nothing, which spec-core reads as itself.
|
|
170
|
+
*
|
|
171
|
+
* So the braces are expanded here, one glob per alternative, each alternative
|
|
172
|
+
* is cleaned of `.` and empty segments and anchored or not by its own shape,
|
|
173
|
+
* and a lone `}` is written as the class `[}]`. Only ever given a pattern
|
|
174
|
+
* spec-core accepts, since a directive's are refused before anything runs.
|
|
175
|
+
*/
|
|
176
|
+
export declare function ripgrepGlobs(normalized: string): string[];
|
|
83
177
|
export interface WalkOptions {
|
|
84
178
|
/**
|
|
85
179
|
* What may be walked. Defaults to DEFAULT_SCOPE.
|
|
@@ -157,10 +251,20 @@ export declare function globBase(pattern: string): {
|
|
|
157
251
|
base: string;
|
|
158
252
|
rest: string;
|
|
159
253
|
};
|
|
254
|
+
/**
|
|
255
|
+
* Why a spec pattern cannot be read, or null when it can.
|
|
256
|
+
*
|
|
257
|
+
* Asked by the command line and the configuration before anything runs, in the
|
|
258
|
+
* words `expandSpecPatterns` would throw. A path with no glob syntax is a path,
|
|
259
|
+
* found or not; only a glob can be malformed.
|
|
260
|
+
*/
|
|
261
|
+
export declare function specPatternError(pattern: string): string | null;
|
|
160
262
|
/**
|
|
161
263
|
* Expands CLI spec patterns into a sorted, de-duplicated list of absolute file
|
|
162
264
|
* paths. Plain paths are taken literally; a directory expands to the Markdown
|
|
163
|
-
* files it contains
|
|
265
|
+
* files it contains; a glob is read by `readSpecGlob`. A pattern spec-core
|
|
266
|
+
* refuses is an error that names it, where it used to be read as a literal and
|
|
267
|
+
* match nothing.
|
|
164
268
|
*/
|
|
165
269
|
export declare function expandSpecPatterns(patterns: readonly string[], root: string, defaultExtensions?: readonly string[], io?: Io): Promise<string[]>;
|
|
166
270
|
//# sourceMappingURL=glob.d.ts.map
|
package/dist/glob.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAU,KAAK,EAAE,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAiB,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAA0B,KAAK,IAAI,EAAoC,MAAM,qCAAqC,CAAC;AAI1H,0DAA0D;AAC1D,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,qEAAqE;AACrE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CAiE5F;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAaD;;;GAGG;AACH,MAAM,MAAM,YAA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