@forsakringskassan/docs-generator 1.29.2 → 1.30.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/dist/compile-example.js +7 -5
- package/dist/{create-markdown-renderer-IsFf8Wbo.js → create-markdown-renderer-Bo7YoF2w.js} +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +46 -21
- package/dist/markdown.js +8 -6
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-D7cNMveZ.js → vendor-xbC24N4h.js} +215 -176
- package/dist/{vue3-DoboNqXW.js → vue3-CjV_X9qw.js} +1 -1
- package/package.json +2 -2
- package/templates/partials/theme-select.html +2 -2
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var path$j = require('node:path');
|
|
4
3
|
var node_url = require('node:url');
|
|
5
|
-
var
|
|
4
|
+
var path$j = require('node:path');
|
|
5
|
+
var require$$0$1 = require('fs');
|
|
6
6
|
var fs$o = require('node:fs');
|
|
7
7
|
var fs$n = require('node:fs/promises');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var require$$0$
|
|
8
|
+
var node_events = require('node:events');
|
|
9
|
+
var Stream$4 = require('node:stream');
|
|
10
|
+
var node_string_decoder = require('node:string_decoder');
|
|
11
|
+
var require$$0$2 = require('constants');
|
|
12
|
+
var require$$0$3 = require('stream');
|
|
12
13
|
var require$$2 = require('util');
|
|
13
14
|
var require$$5 = require('assert');
|
|
14
15
|
var require$$1 = require('path');
|
|
15
|
-
var require$$0$
|
|
16
|
+
var require$$0$4 = require('readline');
|
|
17
|
+
var require$$0$5 = require('events');
|
|
16
18
|
var require$$0$6 = require('child_process');
|
|
17
19
|
var node_buffer = require('node:buffer');
|
|
18
20
|
var childProcess = require('node:child_process');
|
|
19
21
|
var process$2 = require('node:process');
|
|
20
22
|
var os = require('node:os');
|
|
21
23
|
var promises = require('node:timers/promises');
|
|
22
|
-
var
|
|
24
|
+
var util$c = require('node:util');
|
|
23
25
|
var require$$0$7 = require('@vue/compiler-sfc');
|
|
24
26
|
var require$$1$1 = require('typescript');
|
|
25
27
|
var require$$2$1 = require('os');
|
|
@@ -13143,6 +13145,9 @@ class AST {
|
|
|
13143
13145
|
_glob: glob,
|
|
13144
13146
|
});
|
|
13145
13147
|
}
|
|
13148
|
+
get options() {
|
|
13149
|
+
return this.#options;
|
|
13150
|
+
}
|
|
13146
13151
|
// returns the string match, the regexp source, whether there's magic
|
|
13147
13152
|
// in the regexp (so a regular expression is required) and whether or
|
|
13148
13153
|
// not the uflag is needed for the regular expression (for posix classes)
|
|
@@ -13738,6 +13743,7 @@ class Minimatch {
|
|
|
13738
13743
|
globParts = this.levelOneOptimize(globParts);
|
|
13739
13744
|
}
|
|
13740
13745
|
else {
|
|
13746
|
+
// just collapse multiple ** portions into one
|
|
13741
13747
|
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
13742
13748
|
}
|
|
13743
13749
|
return globParts;
|
|
@@ -14227,7 +14233,11 @@ class Minimatch {
|
|
|
14227
14233
|
fastTest = dotStarTest;
|
|
14228
14234
|
}
|
|
14229
14235
|
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
14230
|
-
|
|
14236
|
+
if (fastTest && typeof re === 'object') {
|
|
14237
|
+
// Avoids overriding in frozen environments
|
|
14238
|
+
Reflect.defineProperty(re, 'test', { value: fastTest });
|
|
14239
|
+
}
|
|
14240
|
+
return re;
|
|
14231
14241
|
}
|
|
14232
14242
|
makeRe() {
|
|
14233
14243
|
if (this.regexp || this.regexp === false)
|
|
@@ -15849,7 +15859,7 @@ const proc = typeof process === 'object' && process
|
|
|
15849
15859
|
const isStream$1 = (s) => !!s &&
|
|
15850
15860
|
typeof s === 'object' &&
|
|
15851
15861
|
(s instanceof Minipass ||
|
|
15852
|
-
s instanceof
|
|
15862
|
+
s instanceof Stream$4 ||
|
|
15853
15863
|
isReadable(s) ||
|
|
15854
15864
|
isWritable$1(s));
|
|
15855
15865
|
/**
|
|
@@ -15857,16 +15867,16 @@ const isStream$1 = (s) => !!s &&
|
|
|
15857
15867
|
*/
|
|
15858
15868
|
const isReadable = (s) => !!s &&
|
|
15859
15869
|
typeof s === 'object' &&
|
|
15860
|
-
s instanceof
|
|
15870
|
+
s instanceof node_events.EventEmitter &&
|
|
15861
15871
|
typeof s.pipe === 'function' &&
|
|
15862
15872
|
// node core Writable streams have a pipe() method, but it throws
|
|
15863
|
-
s.pipe !==
|
|
15873
|
+
s.pipe !== Stream$4.Writable.prototype.pipe;
|
|
15864
15874
|
/**
|
|
15865
15875
|
* Return true if the argument is a valid {@link Minipass.Writable}
|
|
15866
15876
|
*/
|
|
15867
15877
|
const isWritable$1 = (s) => !!s &&
|
|
15868
15878
|
typeof s === 'object' &&
|
|
15869
|
-
s instanceof
|
|
15879
|
+
s instanceof node_events.EventEmitter &&
|
|
15870
15880
|
typeof s.write === 'function' &&
|
|
15871
15881
|
typeof s.end === 'function';
|
|
15872
15882
|
const EOF = Symbol('EOF');
|
|
@@ -15972,7 +15982,7 @@ const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !==
|
|
|
15972
15982
|
* `Events` is the set of event handler signatures that this object
|
|
15973
15983
|
* will emit, see {@link Minipass.Events}
|
|
15974
15984
|
*/
|
|
15975
|
-
class Minipass extends
|
|
15985
|
+
class Minipass extends node_events.EventEmitter {
|
|
15976
15986
|
[FLOWING] = false;
|
|
15977
15987
|
[PAUSED] = false;
|
|
15978
15988
|
[PIPES] = [];
|
|
@@ -16027,7 +16037,7 @@ class Minipass extends require$$0$1.EventEmitter {
|
|
|
16027
16037
|
}
|
|
16028
16038
|
this[ASYNC] = !!options.async;
|
|
16029
16039
|
this[DECODER] = this[ENCODING]
|
|
16030
|
-
? new
|
|
16040
|
+
? new node_string_decoder.StringDecoder(this[ENCODING])
|
|
16031
16041
|
: null;
|
|
16032
16042
|
//@ts-ignore - private option for debugging and testing
|
|
16033
16043
|
if (options && options.debugExposeBuffer === true) {
|
|
@@ -16851,12 +16861,12 @@ class Minipass extends require$$0$1.EventEmitter {
|
|
|
16851
16861
|
}
|
|
16852
16862
|
}
|
|
16853
16863
|
|
|
16854
|
-
const realpathSync = require$$0$
|
|
16864
|
+
const realpathSync = require$$0$1.realpathSync.native;
|
|
16855
16865
|
const defaultFS = {
|
|
16856
|
-
lstatSync: require$$0$
|
|
16857
|
-
readdir: require$$0$
|
|
16858
|
-
readdirSync: require$$0$
|
|
16859
|
-
readlinkSync: require$$0$
|
|
16866
|
+
lstatSync: require$$0$1.lstatSync,
|
|
16867
|
+
readdir: require$$0$1.readdir,
|
|
16868
|
+
readdirSync: require$$0$1.readdirSync,
|
|
16869
|
+
readlinkSync: require$$0$1.readlinkSync,
|
|
16860
16870
|
realpathSync,
|
|
16861
16871
|
promises: {
|
|
16862
16872
|
lstat: fs$n.lstat,
|
|
@@ -18929,9 +18939,9 @@ class Pattern {
|
|
|
18929
18939
|
globString() {
|
|
18930
18940
|
return (this.#globString =
|
|
18931
18941
|
this.#globString ||
|
|
18932
|
-
(this.#index === 0
|
|
18933
|
-
|
|
18934
|
-
|
|
18942
|
+
(this.#index === 0 ?
|
|
18943
|
+
this.isAbsolute() ?
|
|
18944
|
+
this.#globList[0] + this.#globList.slice(1).join('/')
|
|
18935
18945
|
: this.#globList.join('/')
|
|
18936
18946
|
: this.#globList.slice(this.#index).join('/')));
|
|
18937
18947
|
}
|
|
@@ -18960,8 +18970,8 @@ class Pattern {
|
|
|
18960
18970
|
*/
|
|
18961
18971
|
isUNC() {
|
|
18962
18972
|
const pl = this.#patternList;
|
|
18963
|
-
return this.#isUNC !== undefined
|
|
18964
|
-
|
|
18973
|
+
return this.#isUNC !== undefined ?
|
|
18974
|
+
this.#isUNC
|
|
18965
18975
|
: (this.#isUNC =
|
|
18966
18976
|
this.#platform === 'win32' &&
|
|
18967
18977
|
this.#index === 0 &&
|
|
@@ -18982,8 +18992,8 @@ class Pattern {
|
|
|
18982
18992
|
*/
|
|
18983
18993
|
isDrive() {
|
|
18984
18994
|
const pl = this.#patternList;
|
|
18985
|
-
return this.#isDrive !== undefined
|
|
18986
|
-
|
|
18995
|
+
return this.#isDrive !== undefined ?
|
|
18996
|
+
this.#isDrive
|
|
18987
18997
|
: (this.#isDrive =
|
|
18988
18998
|
this.#platform === 'win32' &&
|
|
18989
18999
|
this.#index === 0 &&
|
|
@@ -18999,8 +19009,8 @@ class Pattern {
|
|
|
18999
19009
|
*/
|
|
19000
19010
|
isAbsolute() {
|
|
19001
19011
|
const pl = this.#patternList;
|
|
19002
|
-
return this.#isAbsolute !== undefined
|
|
19003
|
-
|
|
19012
|
+
return this.#isAbsolute !== undefined ?
|
|
19013
|
+
this.#isAbsolute
|
|
19004
19014
|
: (this.#isAbsolute =
|
|
19005
19015
|
(pl[0] === '' && pl.length > 1) ||
|
|
19006
19016
|
this.isDrive() ||
|
|
@@ -19011,8 +19021,8 @@ class Pattern {
|
|
|
19011
19021
|
*/
|
|
19012
19022
|
root() {
|
|
19013
19023
|
const p = this.#patternList[0];
|
|
19014
|
-
return typeof p === 'string' && this.isAbsolute() && this.#index === 0
|
|
19015
|
-
|
|
19024
|
+
return (typeof p === 'string' && this.isAbsolute() && this.#index === 0) ?
|
|
19025
|
+
p
|
|
19016
19026
|
: '';
|
|
19017
19027
|
}
|
|
19018
19028
|
/**
|
|
@@ -19039,10 +19049,10 @@ class Pattern {
|
|
|
19039
19049
|
// a given path should be ignored.
|
|
19040
19050
|
// Ignoring a path ignores its children if the pattern ends in /**
|
|
19041
19051
|
// Ignores are always parsed in dot:true mode
|
|
19042
|
-
const defaultPlatform$1 = typeof process === 'object' &&
|
|
19052
|
+
const defaultPlatform$1 = (typeof process === 'object' &&
|
|
19043
19053
|
process &&
|
|
19044
|
-
typeof process.platform === 'string'
|
|
19045
|
-
|
|
19054
|
+
typeof process.platform === 'string') ?
|
|
19055
|
+
process.platform
|
|
19046
19056
|
: 'linux';
|
|
19047
19057
|
/**
|
|
19048
19058
|
* Class used to process ignored patterns
|
|
@@ -19052,12 +19062,15 @@ class Ignore {
|
|
|
19052
19062
|
relativeChildren;
|
|
19053
19063
|
absolute;
|
|
19054
19064
|
absoluteChildren;
|
|
19065
|
+
platform;
|
|
19066
|
+
mmopts;
|
|
19055
19067
|
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform$1, }) {
|
|
19056
19068
|
this.relative = [];
|
|
19057
19069
|
this.absolute = [];
|
|
19058
19070
|
this.relativeChildren = [];
|
|
19059
19071
|
this.absoluteChildren = [];
|
|
19060
|
-
|
|
19072
|
+
this.platform = platform;
|
|
19073
|
+
this.mmopts = {
|
|
19061
19074
|
dot: true,
|
|
19062
19075
|
nobrace,
|
|
19063
19076
|
nocase,
|
|
@@ -19068,6 +19081,10 @@ class Ignore {
|
|
|
19068
19081
|
nocomment: true,
|
|
19069
19082
|
nonegate: true,
|
|
19070
19083
|
};
|
|
19084
|
+
for (const ign of ignored)
|
|
19085
|
+
this.add(ign);
|
|
19086
|
+
}
|
|
19087
|
+
add(ign) {
|
|
19071
19088
|
// this is a little weird, but it gives us a clean set of optimized
|
|
19072
19089
|
// minimatch matchers, without getting tripped up if one of them
|
|
19073
19090
|
// ends in /** inside a brace section, and it's only inefficient at
|
|
@@ -19080,36 +19097,34 @@ class Ignore {
|
|
|
19080
19097
|
// for absolute-ness.
|
|
19081
19098
|
// Yet another way, Minimatch could take an array of glob strings, and
|
|
19082
19099
|
// a cwd option, and do the right thing.
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19100
|
+
const mm = new Minimatch(ign, this.mmopts);
|
|
19101
|
+
for (let i = 0; i < mm.set.length; i++) {
|
|
19102
|
+
const parsed = mm.set[i];
|
|
19103
|
+
const globParts = mm.globParts[i];
|
|
19104
|
+
/* c8 ignore start */
|
|
19105
|
+
if (!parsed || !globParts) {
|
|
19106
|
+
throw new Error('invalid pattern object');
|
|
19107
|
+
}
|
|
19108
|
+
// strip off leading ./ portions
|
|
19109
|
+
// https://github.com/isaacs/node-glob/issues/570
|
|
19110
|
+
while (parsed[0] === '.' && globParts[0] === '.') {
|
|
19111
|
+
parsed.shift();
|
|
19112
|
+
globParts.shift();
|
|
19113
|
+
}
|
|
19114
|
+
/* c8 ignore stop */
|
|
19115
|
+
const p = new Pattern(parsed, globParts, 0, this.platform);
|
|
19116
|
+
const m = new Minimatch(p.globString(), this.mmopts);
|
|
19117
|
+
const children = globParts[globParts.length - 1] === '**';
|
|
19118
|
+
const absolute = p.isAbsolute();
|
|
19119
|
+
if (absolute)
|
|
19120
|
+
this.absolute.push(m);
|
|
19121
|
+
else
|
|
19122
|
+
this.relative.push(m);
|
|
19123
|
+
if (children) {
|
|
19103
19124
|
if (absolute)
|
|
19104
|
-
this.
|
|
19125
|
+
this.absoluteChildren.push(m);
|
|
19105
19126
|
else
|
|
19106
|
-
this.
|
|
19107
|
-
if (children) {
|
|
19108
|
-
if (absolute)
|
|
19109
|
-
this.absoluteChildren.push(m);
|
|
19110
|
-
else
|
|
19111
|
-
this.relativeChildren.push(m);
|
|
19112
|
-
}
|
|
19127
|
+
this.relativeChildren.push(m);
|
|
19113
19128
|
}
|
|
19114
19129
|
}
|
|
19115
19130
|
}
|
|
@@ -19241,9 +19256,8 @@ class Processor {
|
|
|
19241
19256
|
this.opts = opts;
|
|
19242
19257
|
this.follow = !!opts.follow;
|
|
19243
19258
|
this.dot = !!opts.dot;
|
|
19244
|
-
this.hasWalkedCache =
|
|
19245
|
-
? hasWalkedCache.copy()
|
|
19246
|
-
: new HasWalkedCache();
|
|
19259
|
+
this.hasWalkedCache =
|
|
19260
|
+
hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache();
|
|
19247
19261
|
}
|
|
19248
19262
|
processPatterns(target, patterns) {
|
|
19249
19263
|
this.patterns = patterns;
|
|
@@ -19256,8 +19270,8 @@ class Processor {
|
|
|
19256
19270
|
const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
|
|
19257
19271
|
// start absolute patterns at root
|
|
19258
19272
|
if (root) {
|
|
19259
|
-
t = t.resolve(root === '/' && this.opts.root !== undefined
|
|
19260
|
-
|
|
19273
|
+
t = t.resolve(root === '/' && this.opts.root !== undefined ?
|
|
19274
|
+
this.opts.root
|
|
19261
19275
|
: root);
|
|
19262
19276
|
const rest = pattern.rest();
|
|
19263
19277
|
if (!rest) {
|
|
@@ -19443,10 +19457,8 @@ class Processor {
|
|
|
19443
19457
|
*
|
|
19444
19458
|
* @module
|
|
19445
19459
|
*/
|
|
19446
|
-
const makeIgnore = (ignore, opts) => typeof ignore === 'string'
|
|
19447
|
-
? new Ignore(
|
|
19448
|
-
: Array.isArray(ignore)
|
|
19449
|
-
? new Ignore(ignore, opts)
|
|
19460
|
+
const makeIgnore = (ignore, opts) => typeof ignore === 'string' ? new Ignore([ignore], opts)
|
|
19461
|
+
: Array.isArray(ignore) ? new Ignore(ignore, opts)
|
|
19450
19462
|
: ignore;
|
|
19451
19463
|
/**
|
|
19452
19464
|
* basic walking utilities that all the glob walker types use
|
|
@@ -19463,13 +19475,20 @@ class GlobUtil {
|
|
|
19463
19475
|
#sep;
|
|
19464
19476
|
signal;
|
|
19465
19477
|
maxDepth;
|
|
19478
|
+
includeChildMatches;
|
|
19466
19479
|
constructor(patterns, path, opts) {
|
|
19467
19480
|
this.patterns = patterns;
|
|
19468
19481
|
this.path = path;
|
|
19469
19482
|
this.opts = opts;
|
|
19470
19483
|
this.#sep = !opts.posix && opts.platform === 'win32' ? '\\' : '/';
|
|
19471
|
-
|
|
19472
|
-
|
|
19484
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
19485
|
+
if (opts.ignore || !this.includeChildMatches) {
|
|
19486
|
+
this.#ignore = makeIgnore(opts.ignore ?? [], opts);
|
|
19487
|
+
if (!this.includeChildMatches &&
|
|
19488
|
+
typeof this.#ignore.add !== 'function') {
|
|
19489
|
+
const m = 'cannot ignore child matches, ignore lacks add() method.';
|
|
19490
|
+
throw new Error(m);
|
|
19491
|
+
}
|
|
19473
19492
|
}
|
|
19474
19493
|
// ignore, always set with maxDepth, but it's optional on the
|
|
19475
19494
|
// GlobOptions type
|
|
@@ -19541,7 +19560,7 @@ class GlobUtil {
|
|
|
19541
19560
|
return this.matchCheckTest(s, ifDir);
|
|
19542
19561
|
}
|
|
19543
19562
|
matchCheckTest(e, ifDir) {
|
|
19544
|
-
return e &&
|
|
19563
|
+
return (e &&
|
|
19545
19564
|
(this.maxDepth === Infinity || e.depth() <= this.maxDepth) &&
|
|
19546
19565
|
(!ifDir || e.canReaddir()) &&
|
|
19547
19566
|
(!this.opts.nodir || !e.isDirectory()) &&
|
|
@@ -19549,8 +19568,8 @@ class GlobUtil {
|
|
|
19549
19568
|
!this.opts.follow ||
|
|
19550
19569
|
!e.isSymbolicLink() ||
|
|
19551
19570
|
!e.realpathCached()?.isDirectory()) &&
|
|
19552
|
-
!this.#ignored(e)
|
|
19553
|
-
|
|
19571
|
+
!this.#ignored(e)) ?
|
|
19572
|
+
e
|
|
19554
19573
|
: undefined;
|
|
19555
19574
|
}
|
|
19556
19575
|
matchCheckSync(e, ifDir) {
|
|
@@ -19576,6 +19595,11 @@ class GlobUtil {
|
|
|
19576
19595
|
matchFinish(e, absolute) {
|
|
19577
19596
|
if (this.#ignored(e))
|
|
19578
19597
|
return;
|
|
19598
|
+
// we know we have an ignore if this is false, but TS doesn't
|
|
19599
|
+
if (!this.includeChildMatches && this.#ignore?.add) {
|
|
19600
|
+
const ign = `${e.relativePosix()}/**`;
|
|
19601
|
+
this.#ignore.add(ign);
|
|
19602
|
+
}
|
|
19579
19603
|
const abs = this.opts.absolute === undefined ? absolute : this.opts.absolute;
|
|
19580
19604
|
this.seen.add(e);
|
|
19581
19605
|
const mark = this.opts.mark && e.isDirectory() ? this.#sep : '';
|
|
@@ -19589,8 +19613,8 @@ class GlobUtil {
|
|
|
19589
19613
|
}
|
|
19590
19614
|
else {
|
|
19591
19615
|
const rel = this.opts.posix ? e.relativePosix() : e.relative();
|
|
19592
|
-
const pre = this.opts.dotRelative && !rel.startsWith('..' + this.#sep)
|
|
19593
|
-
|
|
19616
|
+
const pre = this.opts.dotRelative && !rel.startsWith('..' + this.#sep) ?
|
|
19617
|
+
'.' + this.#sep
|
|
19594
19618
|
: '';
|
|
19595
19619
|
this.matchEmit(!rel ? '.' + mark : pre + rel + mark);
|
|
19596
19620
|
}
|
|
@@ -19729,10 +19753,9 @@ class GlobUtil {
|
|
|
19729
19753
|
}
|
|
19730
19754
|
}
|
|
19731
19755
|
class GlobWalker extends GlobUtil {
|
|
19732
|
-
matches;
|
|
19756
|
+
matches = new Set();
|
|
19733
19757
|
constructor(patterns, path, opts) {
|
|
19734
19758
|
super(patterns, path, opts);
|
|
19735
|
-
this.matches = new Set();
|
|
19736
19759
|
}
|
|
19737
19760
|
matchEmit(e) {
|
|
19738
19761
|
this.matches.add(e);
|
|
@@ -19808,10 +19831,10 @@ class GlobStream extends GlobUtil {
|
|
|
19808
19831
|
|
|
19809
19832
|
// if no process global, just call it linux.
|
|
19810
19833
|
// so we default to case-sensitive, / separators
|
|
19811
|
-
const defaultPlatform = typeof process === 'object' &&
|
|
19834
|
+
const defaultPlatform = (typeof process === 'object' &&
|
|
19812
19835
|
process &&
|
|
19813
|
-
typeof process.platform === 'string'
|
|
19814
|
-
|
|
19836
|
+
typeof process.platform === 'string') ?
|
|
19837
|
+
process.platform
|
|
19815
19838
|
: 'linux';
|
|
19816
19839
|
/**
|
|
19817
19840
|
* An object that can perform glob pattern traversals.
|
|
@@ -19841,6 +19864,7 @@ class Glob {
|
|
|
19841
19864
|
signal;
|
|
19842
19865
|
windowsPathsNoEscape;
|
|
19843
19866
|
withFileTypes;
|
|
19867
|
+
includeChildMatches;
|
|
19844
19868
|
/**
|
|
19845
19869
|
* The options provided to the constructor.
|
|
19846
19870
|
*/
|
|
@@ -19886,6 +19910,7 @@ class Glob {
|
|
|
19886
19910
|
this.noext = !!opts.noext;
|
|
19887
19911
|
this.realpath = !!opts.realpath;
|
|
19888
19912
|
this.absolute = opts.absolute;
|
|
19913
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
19889
19914
|
this.noglobstar = !!opts.noglobstar;
|
|
19890
19915
|
this.matchBase = !!opts.matchBase;
|
|
19891
19916
|
this.maxDepth =
|
|
@@ -19900,7 +19925,8 @@ class Glob {
|
|
|
19900
19925
|
}
|
|
19901
19926
|
this.windowsPathsNoEscape =
|
|
19902
19927
|
!!opts.windowsPathsNoEscape ||
|
|
19903
|
-
opts.allowWindowsEscape ===
|
|
19928
|
+
opts.allowWindowsEscape ===
|
|
19929
|
+
false;
|
|
19904
19930
|
if (this.windowsPathsNoEscape) {
|
|
19905
19931
|
pattern = pattern.map(p => p.replace(/\\/g, '/'));
|
|
19906
19932
|
}
|
|
@@ -19921,12 +19947,9 @@ class Glob {
|
|
|
19921
19947
|
}
|
|
19922
19948
|
}
|
|
19923
19949
|
else {
|
|
19924
|
-
const Scurry = opts.platform === 'win32'
|
|
19925
|
-
?
|
|
19926
|
-
|
|
19927
|
-
? PathScurryDarwin
|
|
19928
|
-
: opts.platform
|
|
19929
|
-
? PathScurryPosix
|
|
19950
|
+
const Scurry = opts.platform === 'win32' ? PathScurryWin32
|
|
19951
|
+
: opts.platform === 'darwin' ? PathScurryDarwin
|
|
19952
|
+
: opts.platform ? PathScurryPosix
|
|
19930
19953
|
: PathScurry;
|
|
19931
19954
|
this.scurry = new Scurry(this.cwd, {
|
|
19932
19955
|
nocase: opts.nocase,
|
|
@@ -19978,11 +20001,12 @@ class Glob {
|
|
|
19978
20001
|
return [
|
|
19979
20002
|
...(await new GlobWalker(this.patterns, this.scurry.cwd, {
|
|
19980
20003
|
...this.opts,
|
|
19981
|
-
maxDepth: this.maxDepth !== Infinity
|
|
19982
|
-
|
|
20004
|
+
maxDepth: this.maxDepth !== Infinity ?
|
|
20005
|
+
this.maxDepth + this.scurry.cwd.depth()
|
|
19983
20006
|
: Infinity,
|
|
19984
20007
|
platform: this.platform,
|
|
19985
20008
|
nocase: this.nocase,
|
|
20009
|
+
includeChildMatches: this.includeChildMatches,
|
|
19986
20010
|
}).walk()),
|
|
19987
20011
|
];
|
|
19988
20012
|
}
|
|
@@ -19990,32 +20014,35 @@ class Glob {
|
|
|
19990
20014
|
return [
|
|
19991
20015
|
...new GlobWalker(this.patterns, this.scurry.cwd, {
|
|
19992
20016
|
...this.opts,
|
|
19993
|
-
maxDepth: this.maxDepth !== Infinity
|
|
19994
|
-
|
|
20017
|
+
maxDepth: this.maxDepth !== Infinity ?
|
|
20018
|
+
this.maxDepth + this.scurry.cwd.depth()
|
|
19995
20019
|
: Infinity,
|
|
19996
20020
|
platform: this.platform,
|
|
19997
20021
|
nocase: this.nocase,
|
|
20022
|
+
includeChildMatches: this.includeChildMatches,
|
|
19998
20023
|
}).walkSync(),
|
|
19999
20024
|
];
|
|
20000
20025
|
}
|
|
20001
20026
|
stream() {
|
|
20002
20027
|
return new GlobStream(this.patterns, this.scurry.cwd, {
|
|
20003
20028
|
...this.opts,
|
|
20004
|
-
maxDepth: this.maxDepth !== Infinity
|
|
20005
|
-
|
|
20029
|
+
maxDepth: this.maxDepth !== Infinity ?
|
|
20030
|
+
this.maxDepth + this.scurry.cwd.depth()
|
|
20006
20031
|
: Infinity,
|
|
20007
20032
|
platform: this.platform,
|
|
20008
20033
|
nocase: this.nocase,
|
|
20034
|
+
includeChildMatches: this.includeChildMatches,
|
|
20009
20035
|
}).stream();
|
|
20010
20036
|
}
|
|
20011
20037
|
streamSync() {
|
|
20012
20038
|
return new GlobStream(this.patterns, this.scurry.cwd, {
|
|
20013
20039
|
...this.opts,
|
|
20014
|
-
maxDepth: this.maxDepth !== Infinity
|
|
20015
|
-
|
|
20040
|
+
maxDepth: this.maxDepth !== Infinity ?
|
|
20041
|
+
this.maxDepth + this.scurry.cwd.depth()
|
|
20016
20042
|
: Infinity,
|
|
20017
20043
|
platform: this.platform,
|
|
20018
20044
|
nocase: this.nocase,
|
|
20045
|
+
includeChildMatches: this.includeChildMatches,
|
|
20019
20046
|
}).streamSync();
|
|
20020
20047
|
}
|
|
20021
20048
|
/**
|
|
@@ -20091,7 +20118,6 @@ const sync$1 = Object.assign(globSync, {
|
|
|
20091
20118
|
stream: globStreamSync,
|
|
20092
20119
|
iterate: globIterateSync,
|
|
20093
20120
|
});
|
|
20094
|
-
/* c8 ignore stop */
|
|
20095
20121
|
const glob = Object.assign(glob_, {
|
|
20096
20122
|
glob: glob_,
|
|
20097
20123
|
globSync,
|
|
@@ -20138,7 +20164,7 @@ universalify$1.fromPromise = function (fn) {
|
|
|
20138
20164
|
}, 'name', { value: fn.name })
|
|
20139
20165
|
};
|
|
20140
20166
|
|
|
20141
|
-
var constants$5 = require$$0$
|
|
20167
|
+
var constants$5 = require$$0$2;
|
|
20142
20168
|
|
|
20143
20169
|
var origCwd = process.cwd;
|
|
20144
20170
|
var cwd = null;
|
|
@@ -20494,7 +20520,7 @@ function patch$1 (fs) {
|
|
|
20494
20520
|
}
|
|
20495
20521
|
}
|
|
20496
20522
|
|
|
20497
|
-
var Stream$3 = require$$0$
|
|
20523
|
+
var Stream$3 = require$$0$3.Stream;
|
|
20498
20524
|
|
|
20499
20525
|
var legacyStreams = legacy$2;
|
|
20500
20526
|
|
|
@@ -20635,7 +20661,7 @@ function clone$1 (obj) {
|
|
|
20635
20661
|
return copy
|
|
20636
20662
|
}
|
|
20637
20663
|
|
|
20638
|
-
var fs$l = require$$0$
|
|
20664
|
+
var fs$l = require$$0$1;
|
|
20639
20665
|
var polyfills = polyfills$1;
|
|
20640
20666
|
var legacy$1 = legacyStreams;
|
|
20641
20667
|
var clone = clone_1;
|
|
@@ -22255,7 +22281,7 @@ let _fs;
|
|
|
22255
22281
|
try {
|
|
22256
22282
|
_fs = gracefulFs;
|
|
22257
22283
|
} catch (_) {
|
|
22258
|
-
_fs = require$$0$
|
|
22284
|
+
_fs = require$$0$1;
|
|
22259
22285
|
}
|
|
22260
22286
|
const universalify = universalify$1;
|
|
22261
22287
|
const { stringify: stringify$9, stripBom } = utils$b;
|
|
@@ -22625,7 +22651,7 @@ class ETA{
|
|
|
22625
22651
|
|
|
22626
22652
|
var eta = ETA;
|
|
22627
22653
|
|
|
22628
|
-
const _readline = require$$0$
|
|
22654
|
+
const _readline = require$$0$4;
|
|
22629
22655
|
|
|
22630
22656
|
// low-level terminal interactions
|
|
22631
22657
|
class Terminal{
|
|
@@ -23172,7 +23198,7 @@ const _ETA = eta;
|
|
|
23172
23198
|
const _Terminal$1 = terminal;
|
|
23173
23199
|
const _formatter = formatter;
|
|
23174
23200
|
const _options$2 = options;
|
|
23175
|
-
const _EventEmitter$1 = require$$0$
|
|
23201
|
+
const _EventEmitter$1 = require$$0$5;
|
|
23176
23202
|
|
|
23177
23203
|
// Progress-Bar constructor
|
|
23178
23204
|
var genericBar = class GenericBar extends _EventEmitter$1{
|
|
@@ -23548,7 +23574,7 @@ var singleBar = class SingleBar extends _GenericBar{
|
|
|
23548
23574
|
const _Terminal = terminal;
|
|
23549
23575
|
const _BarElement = genericBar;
|
|
23550
23576
|
const _options = options;
|
|
23551
|
-
const _EventEmitter = require$$0$
|
|
23577
|
+
const _EventEmitter = require$$0$5;
|
|
23552
23578
|
|
|
23553
23579
|
// Progress-Bar constructor
|
|
23554
23580
|
var multiBar = class MultiBar extends _EventEmitter{
|
|
@@ -23870,7 +23896,7 @@ function requireWindows () {
|
|
|
23870
23896
|
windows = isexe;
|
|
23871
23897
|
isexe.sync = sync;
|
|
23872
23898
|
|
|
23873
|
-
var fs = require$$0$
|
|
23899
|
+
var fs = require$$0$1;
|
|
23874
23900
|
|
|
23875
23901
|
function checkPathExt (path, options) {
|
|
23876
23902
|
var pathext = options.pathExt !== undefined ?
|
|
@@ -23921,7 +23947,7 @@ function requireMode () {
|
|
|
23921
23947
|
mode = isexe;
|
|
23922
23948
|
isexe.sync = sync;
|
|
23923
23949
|
|
|
23924
|
-
var fs = require$$0$
|
|
23950
|
+
var fs = require$$0$1;
|
|
23925
23951
|
|
|
23926
23952
|
function isexe (path, options, cb) {
|
|
23927
23953
|
fs.stat(path, function (er, stat) {
|
|
@@ -24282,7 +24308,7 @@ var shebangCommand$1 = (string = '') => {
|
|
|
24282
24308
|
return argument ? `${binary} ${argument}` : binary;
|
|
24283
24309
|
};
|
|
24284
24310
|
|
|
24285
|
-
const fs$4 = require$$0$
|
|
24311
|
+
const fs$4 = require$$0$1;
|
|
24286
24312
|
const shebangCommand = shebangCommand$1;
|
|
24287
24313
|
|
|
24288
24314
|
function readShebang$1(command) {
|
|
@@ -25888,7 +25914,7 @@ const stringMethods = {
|
|
|
25888
25914
|
finalize: getContentsProp,
|
|
25889
25915
|
};
|
|
25890
25916
|
|
|
25891
|
-
const { PassThrough } = require$$0$
|
|
25917
|
+
const { PassThrough } = require$$0$3;
|
|
25892
25918
|
|
|
25893
25919
|
var mergeStream = function (/*streams...*/) {
|
|
25894
25920
|
var sources = [];
|
|
@@ -26097,7 +26123,7 @@ const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');
|
|
|
26097
26123
|
|
|
26098
26124
|
const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');
|
|
26099
26125
|
|
|
26100
|
-
const verboseDefault =
|
|
26126
|
+
const verboseDefault = util$c.debuglog('execa').enabled;
|
|
26101
26127
|
|
|
26102
26128
|
const padField = (field, padding) => String(field).padStart(padding, '0');
|
|
26103
26129
|
|
|
@@ -43629,8 +43655,8 @@ var picomatch_1 = picomatch$3;
|
|
|
43629
43655
|
|
|
43630
43656
|
var picomatch$2 = picomatch_1;
|
|
43631
43657
|
|
|
43632
|
-
const fs$3 = require$$0$
|
|
43633
|
-
const { Readable } = require$$0$
|
|
43658
|
+
const fs$3 = require$$0$1;
|
|
43659
|
+
const { Readable } = require$$0$3;
|
|
43634
43660
|
const sysPath$3 = require$$1;
|
|
43635
43661
|
const { promisify: promisify$3 } = require$$2;
|
|
43636
43662
|
const picomatch$1 = picomatch$2;
|
|
@@ -44308,7 +44334,7 @@ var utils$6 = {};
|
|
|
44308
44334
|
*/
|
|
44309
44335
|
|
|
44310
44336
|
exports.escapeNode = (block, n = 0, type) => {
|
|
44311
|
-
|
|
44337
|
+
const node = block.nodes[n];
|
|
44312
44338
|
if (!node) return;
|
|
44313
44339
|
|
|
44314
44340
|
if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
|
|
@@ -44377,13 +44403,23 @@ var utils$6 = {};
|
|
|
44377
44403
|
|
|
44378
44404
|
exports.flatten = (...args) => {
|
|
44379
44405
|
const result = [];
|
|
44406
|
+
|
|
44380
44407
|
const flat = arr => {
|
|
44381
44408
|
for (let i = 0; i < arr.length; i++) {
|
|
44382
|
-
|
|
44383
|
-
|
|
44409
|
+
const ele = arr[i];
|
|
44410
|
+
|
|
44411
|
+
if (Array.isArray(ele)) {
|
|
44412
|
+
flat(ele);
|
|
44413
|
+
continue;
|
|
44414
|
+
}
|
|
44415
|
+
|
|
44416
|
+
if (ele !== undefined) {
|
|
44417
|
+
result.push(ele);
|
|
44418
|
+
}
|
|
44384
44419
|
}
|
|
44385
44420
|
return result;
|
|
44386
44421
|
};
|
|
44422
|
+
|
|
44387
44423
|
flat(args);
|
|
44388
44424
|
return result;
|
|
44389
44425
|
};
|
|
@@ -44392,9 +44428,9 @@ var utils$6 = {};
|
|
|
44392
44428
|
const utils$5 = utils$6;
|
|
44393
44429
|
|
|
44394
44430
|
var stringify$6 = (ast, options = {}) => {
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44431
|
+
const stringify = (node, parent = {}) => {
|
|
44432
|
+
const invalidBlock = options.escapeInvalid && utils$5.isInvalidBrace(parent);
|
|
44433
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
44398
44434
|
let output = '';
|
|
44399
44435
|
|
|
44400
44436
|
if (node.value) {
|
|
@@ -44409,7 +44445,7 @@ var stringify$6 = (ast, options = {}) => {
|
|
|
44409
44445
|
}
|
|
44410
44446
|
|
|
44411
44447
|
if (node.nodes) {
|
|
44412
|
-
for (
|
|
44448
|
+
for (const child of node.nodes) {
|
|
44413
44449
|
output += stringify(child);
|
|
44414
44450
|
}
|
|
44415
44451
|
}
|
|
@@ -44783,7 +44819,7 @@ const toMaxLen = (input, maxLength) => {
|
|
|
44783
44819
|
return negative ? ('-' + input) : input;
|
|
44784
44820
|
};
|
|
44785
44821
|
|
|
44786
|
-
const toSequence = (parts, options) => {
|
|
44822
|
+
const toSequence = (parts, options, maxLen) => {
|
|
44787
44823
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
44788
44824
|
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
44789
44825
|
|
|
@@ -44793,11 +44829,11 @@ const toSequence = (parts, options) => {
|
|
|
44793
44829
|
let result;
|
|
44794
44830
|
|
|
44795
44831
|
if (parts.positives.length) {
|
|
44796
|
-
positives = parts.positives.join('|');
|
|
44832
|
+
positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|');
|
|
44797
44833
|
}
|
|
44798
44834
|
|
|
44799
44835
|
if (parts.negatives.length) {
|
|
44800
|
-
negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
44836
|
+
negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`;
|
|
44801
44837
|
}
|
|
44802
44838
|
|
|
44803
44839
|
if (positives && negatives) {
|
|
@@ -44895,7 +44931,7 @@ const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
|
44895
44931
|
|
|
44896
44932
|
if (options.toRegex === true) {
|
|
44897
44933
|
return step > 1
|
|
44898
|
-
? toSequence(parts, options)
|
|
44934
|
+
? toSequence(parts, options, maxLen)
|
|
44899
44935
|
: toRegex(range, null, { wrap: false, ...options });
|
|
44900
44936
|
}
|
|
44901
44937
|
|
|
@@ -44907,7 +44943,6 @@ const fillLetters = (start, end, step = 1, options = {}) => {
|
|
|
44907
44943
|
return invalidRange(start, end, options);
|
|
44908
44944
|
}
|
|
44909
44945
|
|
|
44910
|
-
|
|
44911
44946
|
let format = options.transform || (val => String.fromCharCode(val));
|
|
44912
44947
|
let a = `${start}`.charCodeAt(0);
|
|
44913
44948
|
let b = `${end}`.charCodeAt(0);
|
|
@@ -44975,30 +45010,32 @@ const fill$1 = fillRange;
|
|
|
44975
45010
|
const utils$4 = utils$6;
|
|
44976
45011
|
|
|
44977
45012
|
const compile$1 = (ast, options = {}) => {
|
|
44978
|
-
|
|
44979
|
-
|
|
44980
|
-
|
|
44981
|
-
|
|
44982
|
-
|
|
45013
|
+
const walk = (node, parent = {}) => {
|
|
45014
|
+
const invalidBlock = utils$4.isInvalidBrace(parent);
|
|
45015
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
45016
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
45017
|
+
const prefix = options.escapeInvalid === true ? '\\' : '';
|
|
44983
45018
|
let output = '';
|
|
44984
45019
|
|
|
44985
45020
|
if (node.isOpen === true) {
|
|
44986
45021
|
return prefix + node.value;
|
|
44987
45022
|
}
|
|
45023
|
+
|
|
44988
45024
|
if (node.isClose === true) {
|
|
45025
|
+
console.log('node.isClose', prefix, node.value);
|
|
44989
45026
|
return prefix + node.value;
|
|
44990
45027
|
}
|
|
44991
45028
|
|
|
44992
45029
|
if (node.type === 'open') {
|
|
44993
|
-
return invalid ?
|
|
45030
|
+
return invalid ? prefix + node.value : '(';
|
|
44994
45031
|
}
|
|
44995
45032
|
|
|
44996
45033
|
if (node.type === 'close') {
|
|
44997
|
-
return invalid ?
|
|
45034
|
+
return invalid ? prefix + node.value : ')';
|
|
44998
45035
|
}
|
|
44999
45036
|
|
|
45000
45037
|
if (node.type === 'comma') {
|
|
45001
|
-
return node.prev.type === 'comma' ? '' :
|
|
45038
|
+
return node.prev.type === 'comma' ? '' : invalid ? node.value : '|';
|
|
45002
45039
|
}
|
|
45003
45040
|
|
|
45004
45041
|
if (node.value) {
|
|
@@ -45006,8 +45043,8 @@ const compile$1 = (ast, options = {}) => {
|
|
|
45006
45043
|
}
|
|
45007
45044
|
|
|
45008
45045
|
if (node.nodes && node.ranges > 0) {
|
|
45009
|
-
|
|
45010
|
-
|
|
45046
|
+
const args = utils$4.reduce(node.nodes);
|
|
45047
|
+
const range = fill$1(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
|
45011
45048
|
|
|
45012
45049
|
if (range.length !== 0) {
|
|
45013
45050
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
@@ -45015,10 +45052,11 @@ const compile$1 = (ast, options = {}) => {
|
|
|
45015
45052
|
}
|
|
45016
45053
|
|
|
45017
45054
|
if (node.nodes) {
|
|
45018
|
-
for (
|
|
45055
|
+
for (const child of node.nodes) {
|
|
45019
45056
|
output += walk(child, node);
|
|
45020
45057
|
}
|
|
45021
45058
|
}
|
|
45059
|
+
|
|
45022
45060
|
return output;
|
|
45023
45061
|
};
|
|
45024
45062
|
|
|
@@ -45032,7 +45070,7 @@ const stringify$4 = stringify$6;
|
|
|
45032
45070
|
const utils$3 = utils$6;
|
|
45033
45071
|
|
|
45034
45072
|
const append = (queue = '', stash = '', enclose = false) => {
|
|
45035
|
-
|
|
45073
|
+
const result = [];
|
|
45036
45074
|
|
|
45037
45075
|
queue = [].concat(queue);
|
|
45038
45076
|
stash = [].concat(stash);
|
|
@@ -45042,15 +45080,15 @@ const append = (queue = '', stash = '', enclose = false) => {
|
|
|
45042
45080
|
return enclose ? utils$3.flatten(stash).map(ele => `{${ele}}`) : stash;
|
|
45043
45081
|
}
|
|
45044
45082
|
|
|
45045
|
-
for (
|
|
45083
|
+
for (const item of queue) {
|
|
45046
45084
|
if (Array.isArray(item)) {
|
|
45047
|
-
for (
|
|
45085
|
+
for (const value of item) {
|
|
45048
45086
|
result.push(append(value, stash, enclose));
|
|
45049
45087
|
}
|
|
45050
45088
|
} else {
|
|
45051
45089
|
for (let ele of stash) {
|
|
45052
45090
|
if (enclose === true && typeof ele === 'string') ele = `{${ele}}`;
|
|
45053
|
-
result.push(Array.isArray(ele) ? append(item, ele, enclose) :
|
|
45091
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
45054
45092
|
}
|
|
45055
45093
|
}
|
|
45056
45094
|
}
|
|
@@ -45058,9 +45096,9 @@ const append = (queue = '', stash = '', enclose = false) => {
|
|
|
45058
45096
|
};
|
|
45059
45097
|
|
|
45060
45098
|
const expand$1 = (ast, options = {}) => {
|
|
45061
|
-
|
|
45099
|
+
const rangeLimit = options.rangeLimit === undefined ? 1000 : options.rangeLimit;
|
|
45062
45100
|
|
|
45063
|
-
|
|
45101
|
+
const walk = (node, parent = {}) => {
|
|
45064
45102
|
node.queue = [];
|
|
45065
45103
|
|
|
45066
45104
|
let p = parent;
|
|
@@ -45082,7 +45120,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
45082
45120
|
}
|
|
45083
45121
|
|
|
45084
45122
|
if (node.nodes && node.ranges > 0) {
|
|
45085
|
-
|
|
45123
|
+
const args = utils$3.reduce(node.nodes);
|
|
45086
45124
|
|
|
45087
45125
|
if (utils$3.exceedsLimit(...args, options.step, rangeLimit)) {
|
|
45088
45126
|
throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
|
|
@@ -45098,7 +45136,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
45098
45136
|
return;
|
|
45099
45137
|
}
|
|
45100
45138
|
|
|
45101
|
-
|
|
45139
|
+
const enclose = utils$3.encloseBrace(node);
|
|
45102
45140
|
let queue = node.queue;
|
|
45103
45141
|
let block = node;
|
|
45104
45142
|
|
|
@@ -45108,7 +45146,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
45108
45146
|
}
|
|
45109
45147
|
|
|
45110
45148
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
45111
|
-
|
|
45149
|
+
const child = node.nodes[i];
|
|
45112
45150
|
|
|
45113
45151
|
if (child.type === 'comma' && node.type === 'brace') {
|
|
45114
45152
|
if (i === 1) queue.push('');
|
|
@@ -45140,7 +45178,7 @@ const expand$1 = (ast, options = {}) => {
|
|
|
45140
45178
|
var expand_1 = expand$1;
|
|
45141
45179
|
|
|
45142
45180
|
var constants$1 = {
|
|
45143
|
-
MAX_LENGTH:
|
|
45181
|
+
MAX_LENGTH: 10000,
|
|
45144
45182
|
|
|
45145
45183
|
// Digits
|
|
45146
45184
|
CHAR_0: '0', /* 0 */
|
|
@@ -45228,18 +45266,18 @@ const parse$3 = (input, options = {}) => {
|
|
|
45228
45266
|
throw new TypeError('Expected a string');
|
|
45229
45267
|
}
|
|
45230
45268
|
|
|
45231
|
-
|
|
45232
|
-
|
|
45269
|
+
const opts = options || {};
|
|
45270
|
+
const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
45233
45271
|
if (input.length > max) {
|
|
45234
45272
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
45235
45273
|
}
|
|
45236
45274
|
|
|
45237
|
-
|
|
45238
|
-
|
|
45275
|
+
const ast = { type: 'root', input, nodes: [] };
|
|
45276
|
+
const stack = [ast];
|
|
45239
45277
|
let block = ast;
|
|
45240
45278
|
let prev = ast;
|
|
45241
45279
|
let brackets = 0;
|
|
45242
|
-
|
|
45280
|
+
const length = input.length;
|
|
45243
45281
|
let index = 0;
|
|
45244
45282
|
let depth = 0;
|
|
45245
45283
|
let value;
|
|
@@ -45304,6 +45342,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45304
45342
|
|
|
45305
45343
|
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
45306
45344
|
brackets++;
|
|
45345
|
+
|
|
45307
45346
|
let next;
|
|
45308
45347
|
|
|
45309
45348
|
while (index < length && (next = advance())) {
|
|
@@ -45359,7 +45398,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45359
45398
|
*/
|
|
45360
45399
|
|
|
45361
45400
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
45362
|
-
|
|
45401
|
+
const open = value;
|
|
45363
45402
|
let next;
|
|
45364
45403
|
|
|
45365
45404
|
if (options.keepQuotes !== true) {
|
|
@@ -45391,8 +45430,8 @@ const parse$3 = (input, options = {}) => {
|
|
|
45391
45430
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
45392
45431
|
depth++;
|
|
45393
45432
|
|
|
45394
|
-
|
|
45395
|
-
|
|
45433
|
+
const dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
|
|
45434
|
+
const brace = {
|
|
45396
45435
|
type: 'brace',
|
|
45397
45436
|
open: true,
|
|
45398
45437
|
close: false,
|
|
@@ -45419,7 +45458,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45419
45458
|
continue;
|
|
45420
45459
|
}
|
|
45421
45460
|
|
|
45422
|
-
|
|
45461
|
+
const type = 'close';
|
|
45423
45462
|
block = stack.pop();
|
|
45424
45463
|
block.close = true;
|
|
45425
45464
|
|
|
@@ -45437,7 +45476,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45437
45476
|
if (value === CHAR_COMMA && depth > 0) {
|
|
45438
45477
|
if (block.ranges > 0) {
|
|
45439
45478
|
block.ranges = 0;
|
|
45440
|
-
|
|
45479
|
+
const open = block.nodes.shift();
|
|
45441
45480
|
block.nodes = [open, { type: 'text', value: stringify$3(block) }];
|
|
45442
45481
|
}
|
|
45443
45482
|
|
|
@@ -45451,7 +45490,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45451
45490
|
*/
|
|
45452
45491
|
|
|
45453
45492
|
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
45454
|
-
|
|
45493
|
+
const siblings = block.nodes;
|
|
45455
45494
|
|
|
45456
45495
|
if (depth === 0 || siblings.length === 0) {
|
|
45457
45496
|
push({ type: 'text', value });
|
|
@@ -45478,7 +45517,7 @@ const parse$3 = (input, options = {}) => {
|
|
|
45478
45517
|
if (prev.type === 'range') {
|
|
45479
45518
|
siblings.pop();
|
|
45480
45519
|
|
|
45481
|
-
|
|
45520
|
+
const before = siblings[siblings.length - 1];
|
|
45482
45521
|
before.value += prev.value + value;
|
|
45483
45522
|
prev = before;
|
|
45484
45523
|
block.ranges--;
|
|
@@ -45511,8 +45550,8 @@ const parse$3 = (input, options = {}) => {
|
|
|
45511
45550
|
});
|
|
45512
45551
|
|
|
45513
45552
|
// get the location of the block on parent.nodes (block's siblings)
|
|
45514
|
-
|
|
45515
|
-
|
|
45553
|
+
const parent = stack[stack.length - 1];
|
|
45554
|
+
const index = parent.nodes.indexOf(block);
|
|
45516
45555
|
// replace the (invalid) block with it's nodes
|
|
45517
45556
|
parent.nodes.splice(index, 1, ...block.nodes);
|
|
45518
45557
|
}
|
|
@@ -45547,8 +45586,8 @@ const braces$1 = (input, options = {}) => {
|
|
|
45547
45586
|
let output = [];
|
|
45548
45587
|
|
|
45549
45588
|
if (Array.isArray(input)) {
|
|
45550
|
-
for (
|
|
45551
|
-
|
|
45589
|
+
for (const pattern of input) {
|
|
45590
|
+
const result = braces$1.create(pattern, options);
|
|
45552
45591
|
if (Array.isArray(result)) {
|
|
45553
45592
|
output.push(...result);
|
|
45554
45593
|
} else {
|
|
@@ -45682,7 +45721,7 @@ braces$1.create = (input, options = {}) => {
|
|
|
45682
45721
|
return [input];
|
|
45683
45722
|
}
|
|
45684
45723
|
|
|
45685
|
-
|
|
45724
|
+
return options.expand !== true
|
|
45686
45725
|
? braces$1.compile(input, options)
|
|
45687
45726
|
: braces$1.expand(input, options);
|
|
45688
45727
|
};
|
|
@@ -46033,7 +46072,7 @@ var constants = {};
|
|
|
46033
46072
|
exports.isIBMi = os.type() === 'OS400';
|
|
46034
46073
|
} (constants));
|
|
46035
46074
|
|
|
46036
|
-
const fs$2 = require$$0$
|
|
46075
|
+
const fs$2 = require$$0$1;
|
|
46037
46076
|
const sysPath$2 = require$$1;
|
|
46038
46077
|
const { promisify: promisify$2 } = require$$2;
|
|
46039
46078
|
const isBinaryPath = isBinaryPath$1;
|
|
@@ -46684,7 +46723,7 @@ var nodefsHandler = NodeFsHandler$1;
|
|
|
46684
46723
|
|
|
46685
46724
|
var fseventsHandler = {exports: {}};
|
|
46686
46725
|
|
|
46687
|
-
const fs$1 = require$$0$
|
|
46726
|
+
const fs$1 = require$$0$1;
|
|
46688
46727
|
const sysPath$1 = require$$1;
|
|
46689
46728
|
const { promisify: promisify$1 } = require$$2;
|
|
46690
46729
|
|
|
@@ -47211,8 +47250,8 @@ fseventsHandler.exports.canUse = canUse;
|
|
|
47211
47250
|
|
|
47212
47251
|
var fseventsHandlerExports = fseventsHandler.exports;
|
|
47213
47252
|
|
|
47214
|
-
const { EventEmitter } = require$$0$
|
|
47215
|
-
const fs = require$$0$
|
|
47253
|
+
const { EventEmitter } = require$$0$5;
|
|
47254
|
+
const fs = require$$0$1;
|
|
47216
47255
|
const sysPath = require$$1;
|
|
47217
47256
|
const { promisify } = require$$2;
|
|
47218
47257
|
const readdirp = readdirp_1;
|
|
@@ -48307,7 +48346,7 @@ driver having these two methods.
|
|
|
48307
48346
|
**/
|
|
48308
48347
|
|
|
48309
48348
|
|
|
48310
|
-
var Stream$2 = require$$0$
|
|
48349
|
+
var Stream$2 = require$$0$3.Stream,
|
|
48311
48350
|
util$9 = require$$2;
|
|
48312
48351
|
|
|
48313
48352
|
|
|
@@ -48512,7 +48551,7 @@ StreamReader.prototype.eachByte = function(callback, context) {
|
|
|
48512
48551
|
var stream_reader = StreamReader;
|
|
48513
48552
|
|
|
48514
48553
|
var Buffer$9 = safeBufferExports.Buffer,
|
|
48515
|
-
Emitter = require$$0$
|
|
48554
|
+
Emitter = require$$0$5.EventEmitter,
|
|
48516
48555
|
util$8 = require$$2,
|
|
48517
48556
|
streams = streams$1,
|
|
48518
48557
|
Headers$1 = headers,
|
|
@@ -50369,7 +50408,7 @@ for (var key$6 in instance$6)
|
|
|
50369
50408
|
var hybi = Hybi$2;
|
|
50370
50409
|
|
|
50371
50410
|
var Buffer$5 = safeBufferExports.Buffer,
|
|
50372
|
-
Stream$1 = require$$0$
|
|
50411
|
+
Stream$1 = require$$0$3.Stream,
|
|
50373
50412
|
url$1 = require$$2$2,
|
|
50374
50413
|
util$6 = require$$2,
|
|
50375
50414
|
Base$5 = base,
|
|
@@ -51048,7 +51087,7 @@ var EventTarget$1 = {
|
|
|
51048
51087
|
|
|
51049
51088
|
var event_target = EventTarget$1;
|
|
51050
51089
|
|
|
51051
|
-
var Stream = require$$0$
|
|
51090
|
+
var Stream = require$$0$3.Stream,
|
|
51052
51091
|
util$1 = require$$2,
|
|
51053
51092
|
driver$1 = driver$2,
|
|
51054
51093
|
EventTarget = event_target,
|
|
@@ -51350,7 +51389,7 @@ function requireEventsource () {
|
|
|
51350
51389
|
if (hasRequiredEventsource) return eventsource;
|
|
51351
51390
|
hasRequiredEventsource = 1;
|
|
51352
51391
|
|
|
51353
|
-
var Stream = require$$0$
|
|
51392
|
+
var Stream = require$$0$3.Stream,
|
|
51354
51393
|
util = require$$2,
|
|
51355
51394
|
driver = driver$2,
|
|
51356
51395
|
Headers = headers,
|
|
@@ -52593,7 +52632,7 @@ var srcExports$1 = src$1.exports;
|
|
|
52593
52632
|
|
|
52594
52633
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
52595
52634
|
|
|
52596
|
-
var _events = require$$0$
|
|
52635
|
+
var _events = require$$0$5;
|
|
52597
52636
|
|
|
52598
52637
|
var _events2 = _interopRequireDefault(_events);
|
|
52599
52638
|
|
|
@@ -55685,7 +55724,7 @@ var lib = {
|
|
|
55685
55724
|
|
|
55686
55725
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
55687
55726
|
|
|
55688
|
-
var _fs = require$$0$
|
|
55727
|
+
var _fs = require$$0$1;
|
|
55689
55728
|
|
|
55690
55729
|
var _fs2 = _interopRequireDefault(_fs);
|
|
55691
55730
|
|
|
@@ -55697,7 +55736,7 @@ var lib = {
|
|
|
55697
55736
|
|
|
55698
55737
|
var _https2 = _interopRequireDefault(_https);
|
|
55699
55738
|
|
|
55700
|
-
var _events = require$$0$
|
|
55739
|
+
var _events = require$$0$5;
|
|
55701
55740
|
|
|
55702
55741
|
var _events2 = _interopRequireDefault(_events);
|
|
55703
55742
|
|