@forsakringskassan/vite-lib-config 1.7.6 → 1.7.8
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/api-extractor.js +66 -45
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.js +66 -45
- package/package.json +2 -2
package/dist/api-extractor.js
CHANGED
|
@@ -3806,6 +3806,9 @@ minimatch.Minimatch = Minimatch;
|
|
|
3806
3806
|
minimatch.escape = escape;
|
|
3807
3807
|
minimatch.unescape = unescape;
|
|
3808
3808
|
|
|
3809
|
+
// node_modules/glob/dist/esm/glob.js
|
|
3810
|
+
var import_node_url2 = require("node:url");
|
|
3811
|
+
|
|
3809
3812
|
// node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
|
|
3810
3813
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
3811
3814
|
var warned = /* @__PURE__ */ new Set();
|
|
@@ -5098,17 +5101,17 @@ var actualFS = __toESM(require("node:fs"), 1);
|
|
|
5098
5101
|
var import_promises = require("node:fs/promises");
|
|
5099
5102
|
|
|
5100
5103
|
// node_modules/minipass/dist/esm/index.js
|
|
5101
|
-
var
|
|
5102
|
-
var
|
|
5103
|
-
var
|
|
5104
|
+
var import_node_events = require("node:events");
|
|
5105
|
+
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
5106
|
+
var import_node_string_decoder = require("node:string_decoder");
|
|
5104
5107
|
var proc = typeof process === "object" && process ? process : {
|
|
5105
5108
|
stdout: null,
|
|
5106
5109
|
stderr: null
|
|
5107
5110
|
};
|
|
5108
|
-
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof
|
|
5109
|
-
var isReadable = (s) => !!s && typeof s === "object" && s instanceof
|
|
5110
|
-
s.pipe !==
|
|
5111
|
-
var isWritable = (s) => !!s && typeof s === "object" && s instanceof
|
|
5111
|
+
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
|
|
5112
|
+
var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
5113
|
+
s.pipe !== import_node_stream.default.Writable.prototype.pipe;
|
|
5114
|
+
var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
|
|
5112
5115
|
var EOF = Symbol("EOF");
|
|
5113
5116
|
var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
|
|
5114
5117
|
var EMITTED_END = Symbol("emittedEnd");
|
|
@@ -5184,7 +5187,7 @@ var PipeProxyErrors = class extends Pipe {
|
|
|
5184
5187
|
};
|
|
5185
5188
|
var isObjectModeOptions = (o) => !!o.objectMode;
|
|
5186
5189
|
var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
|
|
5187
|
-
var Minipass = class extends
|
|
5190
|
+
var Minipass = class extends import_node_events.EventEmitter {
|
|
5188
5191
|
[FLOWING] = false;
|
|
5189
5192
|
[PAUSED] = false;
|
|
5190
5193
|
[PIPES] = [];
|
|
@@ -5235,7 +5238,7 @@ var Minipass = class extends import_events.EventEmitter {
|
|
|
5235
5238
|
this[ENCODING] = null;
|
|
5236
5239
|
}
|
|
5237
5240
|
this[ASYNC] = !!options.async;
|
|
5238
|
-
this[DECODER] = this[ENCODING] ? new
|
|
5241
|
+
this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
|
|
5239
5242
|
if (options && options.debugExposeBuffer === true) {
|
|
5240
5243
|
Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
|
|
5241
5244
|
}
|
|
@@ -7703,9 +7706,6 @@ var PathScurryDarwin = class extends PathScurryPosix {
|
|
|
7703
7706
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
7704
7707
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
7705
7708
|
|
|
7706
|
-
// node_modules/glob/dist/esm/glob.js
|
|
7707
|
-
var import_node_url2 = require("node:url");
|
|
7708
|
-
|
|
7709
7709
|
// node_modules/glob/dist/esm/pattern.js
|
|
7710
7710
|
var isPatternList = (pl) => pl.length >= 1;
|
|
7711
7711
|
var isGlobList = (gl) => gl.length >= 1;
|
|
@@ -7878,12 +7878,15 @@ var Ignore = class {
|
|
|
7878
7878
|
relativeChildren;
|
|
7879
7879
|
absolute;
|
|
7880
7880
|
absoluteChildren;
|
|
7881
|
+
platform;
|
|
7882
|
+
mmopts;
|
|
7881
7883
|
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
|
|
7882
7884
|
this.relative = [];
|
|
7883
7885
|
this.absolute = [];
|
|
7884
7886
|
this.relativeChildren = [];
|
|
7885
7887
|
this.absoluteChildren = [];
|
|
7886
|
-
|
|
7888
|
+
this.platform = platform;
|
|
7889
|
+
this.mmopts = {
|
|
7887
7890
|
dot: true,
|
|
7888
7891
|
nobrace,
|
|
7889
7892
|
nocase,
|
|
@@ -7894,32 +7897,34 @@ var Ignore = class {
|
|
|
7894
7897
|
nocomment: true,
|
|
7895
7898
|
nonegate: true
|
|
7896
7899
|
};
|
|
7897
|
-
for (const ign of ignored)
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7900
|
+
for (const ign of ignored)
|
|
7901
|
+
this.add(ign);
|
|
7902
|
+
}
|
|
7903
|
+
add(ign) {
|
|
7904
|
+
const mm = new Minimatch(ign, this.mmopts);
|
|
7905
|
+
for (let i = 0; i < mm.set.length; i++) {
|
|
7906
|
+
const parsed = mm.set[i];
|
|
7907
|
+
const globParts = mm.globParts[i];
|
|
7908
|
+
if (!parsed || !globParts) {
|
|
7909
|
+
throw new Error("invalid pattern object");
|
|
7910
|
+
}
|
|
7911
|
+
while (parsed[0] === "." && globParts[0] === ".") {
|
|
7912
|
+
parsed.shift();
|
|
7913
|
+
globParts.shift();
|
|
7914
|
+
}
|
|
7915
|
+
const p = new Pattern(parsed, globParts, 0, this.platform);
|
|
7916
|
+
const m = new Minimatch(p.globString(), this.mmopts);
|
|
7917
|
+
const children = globParts[globParts.length - 1] === "**";
|
|
7918
|
+
const absolute = p.isAbsolute();
|
|
7919
|
+
if (absolute)
|
|
7920
|
+
this.absolute.push(m);
|
|
7921
|
+
else
|
|
7922
|
+
this.relative.push(m);
|
|
7923
|
+
if (children) {
|
|
7913
7924
|
if (absolute)
|
|
7914
|
-
this.
|
|
7925
|
+
this.absoluteChildren.push(m);
|
|
7915
7926
|
else
|
|
7916
|
-
this.
|
|
7917
|
-
if (children) {
|
|
7918
|
-
if (absolute)
|
|
7919
|
-
this.absoluteChildren.push(m);
|
|
7920
|
-
else
|
|
7921
|
-
this.relativeChildren.push(m);
|
|
7922
|
-
}
|
|
7927
|
+
this.relativeChildren.push(m);
|
|
7923
7928
|
}
|
|
7924
7929
|
}
|
|
7925
7930
|
}
|
|
@@ -8189,13 +8194,19 @@ var GlobUtil = class {
|
|
|
8189
8194
|
#sep;
|
|
8190
8195
|
signal;
|
|
8191
8196
|
maxDepth;
|
|
8197
|
+
includeChildMatches;
|
|
8192
8198
|
constructor(patterns, path5, opts) {
|
|
8193
8199
|
this.patterns = patterns;
|
|
8194
8200
|
this.path = path5;
|
|
8195
8201
|
this.opts = opts;
|
|
8196
8202
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
8197
|
-
|
|
8198
|
-
|
|
8203
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
8204
|
+
if (opts.ignore || !this.includeChildMatches) {
|
|
8205
|
+
this.#ignore = makeIgnore(opts.ignore ?? [], opts);
|
|
8206
|
+
if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
|
|
8207
|
+
const m = "cannot ignore child matches, ignore lacks add() method.";
|
|
8208
|
+
throw new Error(m);
|
|
8209
|
+
}
|
|
8199
8210
|
}
|
|
8200
8211
|
this.maxDepth = opts.maxDepth || Infinity;
|
|
8201
8212
|
if (opts.signal) {
|
|
@@ -8284,8 +8295,13 @@ var GlobUtil = class {
|
|
|
8284
8295
|
return this.matchCheckTest(s, ifDir);
|
|
8285
8296
|
}
|
|
8286
8297
|
matchFinish(e, absolute) {
|
|
8298
|
+
var _a2;
|
|
8287
8299
|
if (this.#ignored(e))
|
|
8288
8300
|
return;
|
|
8301
|
+
if (!this.includeChildMatches && ((_a2 = this.#ignore) == null ? void 0 : _a2.add)) {
|
|
8302
|
+
const ign = `${e.relativePosix()}/**`;
|
|
8303
|
+
this.#ignore.add(ign);
|
|
8304
|
+
}
|
|
8289
8305
|
const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
|
|
8290
8306
|
this.seen.add(e);
|
|
8291
8307
|
const mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
|
|
@@ -8428,10 +8444,9 @@ var GlobUtil = class {
|
|
|
8428
8444
|
}
|
|
8429
8445
|
};
|
|
8430
8446
|
var GlobWalker = class extends GlobUtil {
|
|
8431
|
-
matches;
|
|
8447
|
+
matches = /* @__PURE__ */ new Set();
|
|
8432
8448
|
constructor(patterns, path5, opts) {
|
|
8433
8449
|
super(patterns, path5, opts);
|
|
8434
|
-
this.matches = /* @__PURE__ */ new Set();
|
|
8435
8450
|
}
|
|
8436
8451
|
matchEmit(e) {
|
|
8437
8452
|
this.matches.add(e);
|
|
@@ -8533,6 +8548,7 @@ var Glob = class {
|
|
|
8533
8548
|
signal;
|
|
8534
8549
|
windowsPathsNoEscape;
|
|
8535
8550
|
withFileTypes;
|
|
8551
|
+
includeChildMatches;
|
|
8536
8552
|
/**
|
|
8537
8553
|
* The options provided to the constructor.
|
|
8538
8554
|
*/
|
|
@@ -8575,6 +8591,7 @@ var Glob = class {
|
|
|
8575
8591
|
this.noext = !!opts.noext;
|
|
8576
8592
|
this.realpath = !!opts.realpath;
|
|
8577
8593
|
this.absolute = opts.absolute;
|
|
8594
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
8578
8595
|
this.noglobstar = !!opts.noglobstar;
|
|
8579
8596
|
this.matchBase = !!opts.matchBase;
|
|
8580
8597
|
this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
|
|
@@ -8648,7 +8665,8 @@ var Glob = class {
|
|
|
8648
8665
|
...this.opts,
|
|
8649
8666
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
8650
8667
|
platform: this.platform,
|
|
8651
|
-
nocase: this.nocase
|
|
8668
|
+
nocase: this.nocase,
|
|
8669
|
+
includeChildMatches: this.includeChildMatches
|
|
8652
8670
|
}).walk()
|
|
8653
8671
|
];
|
|
8654
8672
|
}
|
|
@@ -8658,7 +8676,8 @@ var Glob = class {
|
|
|
8658
8676
|
...this.opts,
|
|
8659
8677
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
8660
8678
|
platform: this.platform,
|
|
8661
|
-
nocase: this.nocase
|
|
8679
|
+
nocase: this.nocase,
|
|
8680
|
+
includeChildMatches: this.includeChildMatches
|
|
8662
8681
|
}).walkSync()
|
|
8663
8682
|
];
|
|
8664
8683
|
}
|
|
@@ -8667,7 +8686,8 @@ var Glob = class {
|
|
|
8667
8686
|
...this.opts,
|
|
8668
8687
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
8669
8688
|
platform: this.platform,
|
|
8670
|
-
nocase: this.nocase
|
|
8689
|
+
nocase: this.nocase,
|
|
8690
|
+
includeChildMatches: this.includeChildMatches
|
|
8671
8691
|
}).stream();
|
|
8672
8692
|
}
|
|
8673
8693
|
streamSync() {
|
|
@@ -8675,7 +8695,8 @@ var Glob = class {
|
|
|
8675
8695
|
...this.opts,
|
|
8676
8696
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
8677
8697
|
platform: this.platform,
|
|
8678
|
-
nocase: this.nocase
|
|
8698
|
+
nocase: this.nocase,
|
|
8699
|
+
includeChildMatches: this.includeChildMatches
|
|
8679
8700
|
}).streamSync();
|
|
8680
8701
|
}
|
|
8681
8702
|
/**
|
package/dist/tsdoc-metadata.json
CHANGED
package/dist/vite.config.js
CHANGED
|
@@ -7284,6 +7284,9 @@ minimatch.Minimatch = Minimatch;
|
|
|
7284
7284
|
minimatch.escape = escape;
|
|
7285
7285
|
minimatch.unescape = unescape;
|
|
7286
7286
|
|
|
7287
|
+
// node_modules/glob/dist/esm/glob.js
|
|
7288
|
+
var import_node_url2 = require("node:url");
|
|
7289
|
+
|
|
7287
7290
|
// node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
|
|
7288
7291
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
7289
7292
|
var warned = /* @__PURE__ */ new Set();
|
|
@@ -8576,17 +8579,17 @@ var actualFS = __toESM(require("node:fs"), 1);
|
|
|
8576
8579
|
var import_promises2 = require("node:fs/promises");
|
|
8577
8580
|
|
|
8578
8581
|
// node_modules/minipass/dist/esm/index.js
|
|
8579
|
-
var
|
|
8580
|
-
var
|
|
8581
|
-
var
|
|
8582
|
+
var import_node_events = require("node:events");
|
|
8583
|
+
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
8584
|
+
var import_node_string_decoder = require("node:string_decoder");
|
|
8582
8585
|
var proc = typeof process === "object" && process ? process : {
|
|
8583
8586
|
stdout: null,
|
|
8584
8587
|
stderr: null
|
|
8585
8588
|
};
|
|
8586
|
-
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof
|
|
8587
|
-
var isReadable = (s) => !!s && typeof s === "object" && s instanceof
|
|
8588
|
-
s.pipe !==
|
|
8589
|
-
var isWritable = (s) => !!s && typeof s === "object" && s instanceof
|
|
8589
|
+
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
|
|
8590
|
+
var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
8591
|
+
s.pipe !== import_node_stream.default.Writable.prototype.pipe;
|
|
8592
|
+
var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
|
|
8590
8593
|
var EOF = Symbol("EOF");
|
|
8591
8594
|
var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
|
|
8592
8595
|
var EMITTED_END = Symbol("emittedEnd");
|
|
@@ -8662,7 +8665,7 @@ var PipeProxyErrors = class extends Pipe {
|
|
|
8662
8665
|
};
|
|
8663
8666
|
var isObjectModeOptions = (o) => !!o.objectMode;
|
|
8664
8667
|
var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
|
|
8665
|
-
var Minipass = class extends
|
|
8668
|
+
var Minipass = class extends import_node_events.EventEmitter {
|
|
8666
8669
|
[FLOWING] = false;
|
|
8667
8670
|
[PAUSED] = false;
|
|
8668
8671
|
[PIPES] = [];
|
|
@@ -8713,7 +8716,7 @@ var Minipass = class extends import_events.EventEmitter {
|
|
|
8713
8716
|
this[ENCODING] = null;
|
|
8714
8717
|
}
|
|
8715
8718
|
this[ASYNC] = !!options.async;
|
|
8716
|
-
this[DECODER] = this[ENCODING] ? new
|
|
8719
|
+
this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
|
|
8717
8720
|
if (options && options.debugExposeBuffer === true) {
|
|
8718
8721
|
Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
|
|
8719
8722
|
}
|
|
@@ -11181,9 +11184,6 @@ var PathScurryDarwin = class extends PathScurryPosix {
|
|
|
11181
11184
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
11182
11185
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
11183
11186
|
|
|
11184
|
-
// node_modules/glob/dist/esm/glob.js
|
|
11185
|
-
var import_node_url2 = require("node:url");
|
|
11186
|
-
|
|
11187
11187
|
// node_modules/glob/dist/esm/pattern.js
|
|
11188
11188
|
var isPatternList = (pl) => pl.length >= 1;
|
|
11189
11189
|
var isGlobList = (gl) => gl.length >= 1;
|
|
@@ -11356,12 +11356,15 @@ var Ignore = class {
|
|
|
11356
11356
|
relativeChildren;
|
|
11357
11357
|
absolute;
|
|
11358
11358
|
absoluteChildren;
|
|
11359
|
+
platform;
|
|
11360
|
+
mmopts;
|
|
11359
11361
|
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
|
|
11360
11362
|
this.relative = [];
|
|
11361
11363
|
this.absolute = [];
|
|
11362
11364
|
this.relativeChildren = [];
|
|
11363
11365
|
this.absoluteChildren = [];
|
|
11364
|
-
|
|
11366
|
+
this.platform = platform;
|
|
11367
|
+
this.mmopts = {
|
|
11365
11368
|
dot: true,
|
|
11366
11369
|
nobrace,
|
|
11367
11370
|
nocase,
|
|
@@ -11372,32 +11375,34 @@ var Ignore = class {
|
|
|
11372
11375
|
nocomment: true,
|
|
11373
11376
|
nonegate: true
|
|
11374
11377
|
};
|
|
11375
|
-
for (const ign of ignored)
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11378
|
+
for (const ign of ignored)
|
|
11379
|
+
this.add(ign);
|
|
11380
|
+
}
|
|
11381
|
+
add(ign) {
|
|
11382
|
+
const mm = new Minimatch(ign, this.mmopts);
|
|
11383
|
+
for (let i = 0; i < mm.set.length; i++) {
|
|
11384
|
+
const parsed = mm.set[i];
|
|
11385
|
+
const globParts = mm.globParts[i];
|
|
11386
|
+
if (!parsed || !globParts) {
|
|
11387
|
+
throw new Error("invalid pattern object");
|
|
11388
|
+
}
|
|
11389
|
+
while (parsed[0] === "." && globParts[0] === ".") {
|
|
11390
|
+
parsed.shift();
|
|
11391
|
+
globParts.shift();
|
|
11392
|
+
}
|
|
11393
|
+
const p = new Pattern(parsed, globParts, 0, this.platform);
|
|
11394
|
+
const m = new Minimatch(p.globString(), this.mmopts);
|
|
11395
|
+
const children = globParts[globParts.length - 1] === "**";
|
|
11396
|
+
const absolute = p.isAbsolute();
|
|
11397
|
+
if (absolute)
|
|
11398
|
+
this.absolute.push(m);
|
|
11399
|
+
else
|
|
11400
|
+
this.relative.push(m);
|
|
11401
|
+
if (children) {
|
|
11391
11402
|
if (absolute)
|
|
11392
|
-
this.
|
|
11403
|
+
this.absoluteChildren.push(m);
|
|
11393
11404
|
else
|
|
11394
|
-
this.
|
|
11395
|
-
if (children) {
|
|
11396
|
-
if (absolute)
|
|
11397
|
-
this.absoluteChildren.push(m);
|
|
11398
|
-
else
|
|
11399
|
-
this.relativeChildren.push(m);
|
|
11400
|
-
}
|
|
11405
|
+
this.relativeChildren.push(m);
|
|
11401
11406
|
}
|
|
11402
11407
|
}
|
|
11403
11408
|
}
|
|
@@ -11667,13 +11672,19 @@ var GlobUtil = class {
|
|
|
11667
11672
|
#sep;
|
|
11668
11673
|
signal;
|
|
11669
11674
|
maxDepth;
|
|
11675
|
+
includeChildMatches;
|
|
11670
11676
|
constructor(patterns, path4, opts) {
|
|
11671
11677
|
this.patterns = patterns;
|
|
11672
11678
|
this.path = path4;
|
|
11673
11679
|
this.opts = opts;
|
|
11674
11680
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
11675
|
-
|
|
11676
|
-
|
|
11681
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
11682
|
+
if (opts.ignore || !this.includeChildMatches) {
|
|
11683
|
+
this.#ignore = makeIgnore(opts.ignore ?? [], opts);
|
|
11684
|
+
if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
|
|
11685
|
+
const m = "cannot ignore child matches, ignore lacks add() method.";
|
|
11686
|
+
throw new Error(m);
|
|
11687
|
+
}
|
|
11677
11688
|
}
|
|
11678
11689
|
this.maxDepth = opts.maxDepth || Infinity;
|
|
11679
11690
|
if (opts.signal) {
|
|
@@ -11762,8 +11773,13 @@ var GlobUtil = class {
|
|
|
11762
11773
|
return this.matchCheckTest(s, ifDir);
|
|
11763
11774
|
}
|
|
11764
11775
|
matchFinish(e, absolute) {
|
|
11776
|
+
var _a2;
|
|
11765
11777
|
if (this.#ignored(e))
|
|
11766
11778
|
return;
|
|
11779
|
+
if (!this.includeChildMatches && ((_a2 = this.#ignore) == null ? void 0 : _a2.add)) {
|
|
11780
|
+
const ign = `${e.relativePosix()}/**`;
|
|
11781
|
+
this.#ignore.add(ign);
|
|
11782
|
+
}
|
|
11767
11783
|
const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
|
|
11768
11784
|
this.seen.add(e);
|
|
11769
11785
|
const mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
|
|
@@ -11906,10 +11922,9 @@ var GlobUtil = class {
|
|
|
11906
11922
|
}
|
|
11907
11923
|
};
|
|
11908
11924
|
var GlobWalker = class extends GlobUtil {
|
|
11909
|
-
matches;
|
|
11925
|
+
matches = /* @__PURE__ */ new Set();
|
|
11910
11926
|
constructor(patterns, path4, opts) {
|
|
11911
11927
|
super(patterns, path4, opts);
|
|
11912
|
-
this.matches = /* @__PURE__ */ new Set();
|
|
11913
11928
|
}
|
|
11914
11929
|
matchEmit(e) {
|
|
11915
11930
|
this.matches.add(e);
|
|
@@ -12011,6 +12026,7 @@ var Glob = class {
|
|
|
12011
12026
|
signal;
|
|
12012
12027
|
windowsPathsNoEscape;
|
|
12013
12028
|
withFileTypes;
|
|
12029
|
+
includeChildMatches;
|
|
12014
12030
|
/**
|
|
12015
12031
|
* The options provided to the constructor.
|
|
12016
12032
|
*/
|
|
@@ -12053,6 +12069,7 @@ var Glob = class {
|
|
|
12053
12069
|
this.noext = !!opts.noext;
|
|
12054
12070
|
this.realpath = !!opts.realpath;
|
|
12055
12071
|
this.absolute = opts.absolute;
|
|
12072
|
+
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
12056
12073
|
this.noglobstar = !!opts.noglobstar;
|
|
12057
12074
|
this.matchBase = !!opts.matchBase;
|
|
12058
12075
|
this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
|
|
@@ -12126,7 +12143,8 @@ var Glob = class {
|
|
|
12126
12143
|
...this.opts,
|
|
12127
12144
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
12128
12145
|
platform: this.platform,
|
|
12129
|
-
nocase: this.nocase
|
|
12146
|
+
nocase: this.nocase,
|
|
12147
|
+
includeChildMatches: this.includeChildMatches
|
|
12130
12148
|
}).walk()
|
|
12131
12149
|
];
|
|
12132
12150
|
}
|
|
@@ -12136,7 +12154,8 @@ var Glob = class {
|
|
|
12136
12154
|
...this.opts,
|
|
12137
12155
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
12138
12156
|
platform: this.platform,
|
|
12139
|
-
nocase: this.nocase
|
|
12157
|
+
nocase: this.nocase,
|
|
12158
|
+
includeChildMatches: this.includeChildMatches
|
|
12140
12159
|
}).walkSync()
|
|
12141
12160
|
];
|
|
12142
12161
|
}
|
|
@@ -12145,7 +12164,8 @@ var Glob = class {
|
|
|
12145
12164
|
...this.opts,
|
|
12146
12165
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
12147
12166
|
platform: this.platform,
|
|
12148
|
-
nocase: this.nocase
|
|
12167
|
+
nocase: this.nocase,
|
|
12168
|
+
includeChildMatches: this.includeChildMatches
|
|
12149
12169
|
}).stream();
|
|
12150
12170
|
}
|
|
12151
12171
|
streamSync() {
|
|
@@ -12153,7 +12173,8 @@ var Glob = class {
|
|
|
12153
12173
|
...this.opts,
|
|
12154
12174
|
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
12155
12175
|
platform: this.platform,
|
|
12156
|
-
nocase: this.nocase
|
|
12176
|
+
nocase: this.nocase,
|
|
12177
|
+
includeChildMatches: this.includeChildMatches
|
|
12157
12178
|
}).streamSync();
|
|
12158
12179
|
}
|
|
12159
12180
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/vite-lib-config",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"description": "Försäkringskassan toolchain to build libraries with Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "7.
|
|
44
|
+
"@microsoft/api-extractor": "7.46.2",
|
|
45
45
|
"@vue/babel-preset-app": "5.0.8"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|