@forsakringskassan/vite-lib-config 4.2.1 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-extractor.js +262 -242
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +30 -4
- package/dist/vite.config.mjs +29 -3
- package/package.json +2 -2
package/dist/api-extractor.js
CHANGED
|
@@ -625,6 +625,9 @@ var require_identifiers = __commonJS({
|
|
|
625
625
|
"use strict";
|
|
626
626
|
var numeric2 = /^[0-9]+$/;
|
|
627
627
|
var compareIdentifiers = (a, b) => {
|
|
628
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
629
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
630
|
+
}
|
|
628
631
|
const anum = numeric2.test(a);
|
|
629
632
|
const bnum = numeric2.test(b);
|
|
630
633
|
if (anum && bnum) {
|
|
@@ -731,7 +734,25 @@ var require_semver = __commonJS({
|
|
|
731
734
|
if (!(other instanceof _SemVer)) {
|
|
732
735
|
other = new _SemVer(other, this.options);
|
|
733
736
|
}
|
|
734
|
-
|
|
737
|
+
if (this.major < other.major) {
|
|
738
|
+
return -1;
|
|
739
|
+
}
|
|
740
|
+
if (this.major > other.major) {
|
|
741
|
+
return 1;
|
|
742
|
+
}
|
|
743
|
+
if (this.minor < other.minor) {
|
|
744
|
+
return -1;
|
|
745
|
+
}
|
|
746
|
+
if (this.minor > other.minor) {
|
|
747
|
+
return 1;
|
|
748
|
+
}
|
|
749
|
+
if (this.patch < other.patch) {
|
|
750
|
+
return -1;
|
|
751
|
+
}
|
|
752
|
+
if (this.patch > other.patch) {
|
|
753
|
+
return 1;
|
|
754
|
+
}
|
|
755
|
+
return 0;
|
|
735
756
|
}
|
|
736
757
|
comparePre(other) {
|
|
737
758
|
if (!(other instanceof _SemVer)) {
|
|
@@ -1492,6 +1513,7 @@ var require_range = __commonJS({
|
|
|
1492
1513
|
return result;
|
|
1493
1514
|
};
|
|
1494
1515
|
var parseComparator = (comp, options) => {
|
|
1516
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
1495
1517
|
debug("comp", comp, options);
|
|
1496
1518
|
comp = replaceCarets(comp, options);
|
|
1497
1519
|
debug("caret", comp);
|
|
@@ -2387,6 +2409,233 @@ module.exports = __toCommonJS(api_extractor_exports);
|
|
|
2387
2409
|
var import_node_fs2 = require("node:fs");
|
|
2388
2410
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
|
2389
2411
|
var import_node_path4 = __toESM(require("node:path"));
|
|
2412
|
+
var import_api_extractor = require("@microsoft/api-extractor");
|
|
2413
|
+
|
|
2414
|
+
// node_modules/find-up/index.js
|
|
2415
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
2416
|
+
|
|
2417
|
+
// node_modules/locate-path/index.js
|
|
2418
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
2419
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
2420
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
2421
|
+
var import_node_url = require("node:url");
|
|
2422
|
+
|
|
2423
|
+
// node_modules/p-locate/node_modules/yocto-queue/index.js
|
|
2424
|
+
var Node = class {
|
|
2425
|
+
value;
|
|
2426
|
+
next;
|
|
2427
|
+
constructor(value) {
|
|
2428
|
+
this.value = value;
|
|
2429
|
+
}
|
|
2430
|
+
};
|
|
2431
|
+
var Queue = class {
|
|
2432
|
+
#head;
|
|
2433
|
+
#tail;
|
|
2434
|
+
#size;
|
|
2435
|
+
constructor() {
|
|
2436
|
+
this.clear();
|
|
2437
|
+
}
|
|
2438
|
+
enqueue(value) {
|
|
2439
|
+
const node = new Node(value);
|
|
2440
|
+
if (this.#head) {
|
|
2441
|
+
this.#tail.next = node;
|
|
2442
|
+
this.#tail = node;
|
|
2443
|
+
} else {
|
|
2444
|
+
this.#head = node;
|
|
2445
|
+
this.#tail = node;
|
|
2446
|
+
}
|
|
2447
|
+
this.#size++;
|
|
2448
|
+
}
|
|
2449
|
+
dequeue() {
|
|
2450
|
+
const current = this.#head;
|
|
2451
|
+
if (!current) {
|
|
2452
|
+
return;
|
|
2453
|
+
}
|
|
2454
|
+
this.#head = this.#head.next;
|
|
2455
|
+
this.#size--;
|
|
2456
|
+
return current.value;
|
|
2457
|
+
}
|
|
2458
|
+
clear() {
|
|
2459
|
+
this.#head = void 0;
|
|
2460
|
+
this.#tail = void 0;
|
|
2461
|
+
this.#size = 0;
|
|
2462
|
+
}
|
|
2463
|
+
get size() {
|
|
2464
|
+
return this.#size;
|
|
2465
|
+
}
|
|
2466
|
+
*[Symbol.iterator]() {
|
|
2467
|
+
let current = this.#head;
|
|
2468
|
+
while (current) {
|
|
2469
|
+
yield current.value;
|
|
2470
|
+
current = current.next;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
// node_modules/p-locate/node_modules/p-limit/index.js
|
|
2476
|
+
function pLimit(concurrency) {
|
|
2477
|
+
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
2478
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
2479
|
+
}
|
|
2480
|
+
const queue = new Queue();
|
|
2481
|
+
let activeCount = 0;
|
|
2482
|
+
const next = () => {
|
|
2483
|
+
activeCount--;
|
|
2484
|
+
if (queue.size > 0) {
|
|
2485
|
+
queue.dequeue()();
|
|
2486
|
+
}
|
|
2487
|
+
};
|
|
2488
|
+
const run2 = async (fn, resolve, args) => {
|
|
2489
|
+
activeCount++;
|
|
2490
|
+
const result = (async () => fn(...args))();
|
|
2491
|
+
resolve(result);
|
|
2492
|
+
try {
|
|
2493
|
+
await result;
|
|
2494
|
+
} catch {
|
|
2495
|
+
}
|
|
2496
|
+
next();
|
|
2497
|
+
};
|
|
2498
|
+
const enqueue = (fn, resolve, args) => {
|
|
2499
|
+
queue.enqueue(run2.bind(void 0, fn, resolve, args));
|
|
2500
|
+
(async () => {
|
|
2501
|
+
await Promise.resolve();
|
|
2502
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
2503
|
+
queue.dequeue()();
|
|
2504
|
+
}
|
|
2505
|
+
})();
|
|
2506
|
+
};
|
|
2507
|
+
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
2508
|
+
enqueue(fn, resolve, args);
|
|
2509
|
+
});
|
|
2510
|
+
Object.defineProperties(generator, {
|
|
2511
|
+
activeCount: {
|
|
2512
|
+
get: () => activeCount
|
|
2513
|
+
},
|
|
2514
|
+
pendingCount: {
|
|
2515
|
+
get: () => queue.size
|
|
2516
|
+
},
|
|
2517
|
+
clearQueue: {
|
|
2518
|
+
value: () => {
|
|
2519
|
+
queue.clear();
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
return generator;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
// node_modules/p-locate/index.js
|
|
2527
|
+
var EndError = class extends Error {
|
|
2528
|
+
constructor(value) {
|
|
2529
|
+
super();
|
|
2530
|
+
this.value = value;
|
|
2531
|
+
}
|
|
2532
|
+
};
|
|
2533
|
+
var testElement = async (element, tester) => tester(await element);
|
|
2534
|
+
var finder = async (element) => {
|
|
2535
|
+
const values = await Promise.all(element);
|
|
2536
|
+
if (values[1] === true) {
|
|
2537
|
+
throw new EndError(values[0]);
|
|
2538
|
+
}
|
|
2539
|
+
return false;
|
|
2540
|
+
};
|
|
2541
|
+
async function pLocate(iterable, tester, {
|
|
2542
|
+
concurrency = Number.POSITIVE_INFINITY,
|
|
2543
|
+
preserveOrder = true
|
|
2544
|
+
} = {}) {
|
|
2545
|
+
const limit = pLimit(concurrency);
|
|
2546
|
+
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
|
2547
|
+
const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
|
|
2548
|
+
try {
|
|
2549
|
+
await Promise.all(items.map((element) => checkLimit(finder, element)));
|
|
2550
|
+
} catch (error) {
|
|
2551
|
+
if (error instanceof EndError) {
|
|
2552
|
+
return error.value;
|
|
2553
|
+
}
|
|
2554
|
+
throw error;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
// node_modules/locate-path/index.js
|
|
2559
|
+
var typeMappings = {
|
|
2560
|
+
directory: "isDirectory",
|
|
2561
|
+
file: "isFile"
|
|
2562
|
+
};
|
|
2563
|
+
function checkType(type) {
|
|
2564
|
+
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
2565
|
+
return;
|
|
2566
|
+
}
|
|
2567
|
+
throw new Error(`Invalid type specified: ${type}`);
|
|
2568
|
+
}
|
|
2569
|
+
var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
|
|
2570
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
2571
|
+
async function locatePath(paths, {
|
|
2572
|
+
cwd = import_node_process.default.cwd(),
|
|
2573
|
+
type = "file",
|
|
2574
|
+
allowSymlinks = true,
|
|
2575
|
+
concurrency,
|
|
2576
|
+
preserveOrder
|
|
2577
|
+
} = {}) {
|
|
2578
|
+
checkType(type);
|
|
2579
|
+
cwd = toPath(cwd);
|
|
2580
|
+
const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
|
|
2581
|
+
return pLocate(paths, async (path_) => {
|
|
2582
|
+
try {
|
|
2583
|
+
const stat = await statFunction(import_node_path.default.resolve(cwd, path_));
|
|
2584
|
+
return matchType(type, stat);
|
|
2585
|
+
} catch {
|
|
2586
|
+
return false;
|
|
2587
|
+
}
|
|
2588
|
+
}, { concurrency, preserveOrder });
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
// node_modules/unicorn-magic/node.js
|
|
2592
|
+
var import_node_util = require("node:util");
|
|
2593
|
+
var import_node_child_process = require("node:child_process");
|
|
2594
|
+
var import_node_url2 = require("node:url");
|
|
2595
|
+
var execFileOriginal = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
2596
|
+
function toPath2(urlOrPath) {
|
|
2597
|
+
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
2598
|
+
}
|
|
2599
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
2600
|
+
|
|
2601
|
+
// node_modules/find-up/index.js
|
|
2602
|
+
var findUpStop = Symbol("findUpStop");
|
|
2603
|
+
async function findUpMultiple(name, options = {}) {
|
|
2604
|
+
let directory = import_node_path2.default.resolve(toPath2(options.cwd) ?? "");
|
|
2605
|
+
const { root } = import_node_path2.default.parse(directory);
|
|
2606
|
+
const stopAt = import_node_path2.default.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
2607
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
2608
|
+
const paths = [name].flat();
|
|
2609
|
+
const runMatcher = async (locateOptions) => {
|
|
2610
|
+
if (typeof name !== "function") {
|
|
2611
|
+
return locatePath(paths, locateOptions);
|
|
2612
|
+
}
|
|
2613
|
+
const foundPath = await name(locateOptions.cwd);
|
|
2614
|
+
if (typeof foundPath === "string") {
|
|
2615
|
+
return locatePath([foundPath], locateOptions);
|
|
2616
|
+
}
|
|
2617
|
+
return foundPath;
|
|
2618
|
+
};
|
|
2619
|
+
const matches = [];
|
|
2620
|
+
while (true) {
|
|
2621
|
+
const foundPath = await runMatcher({ ...options, cwd: directory });
|
|
2622
|
+
if (foundPath === findUpStop) {
|
|
2623
|
+
break;
|
|
2624
|
+
}
|
|
2625
|
+
if (foundPath) {
|
|
2626
|
+
matches.push(import_node_path2.default.resolve(directory, foundPath));
|
|
2627
|
+
}
|
|
2628
|
+
if (directory === stopAt || matches.length >= limit) {
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
directory = import_node_path2.default.dirname(directory);
|
|
2632
|
+
}
|
|
2633
|
+
return matches;
|
|
2634
|
+
}
|
|
2635
|
+
async function findUp(name, options = {}) {
|
|
2636
|
+
const matches = await findUpMultiple(name, { ...options, limit: 1 });
|
|
2637
|
+
return matches[0];
|
|
2638
|
+
}
|
|
2390
2639
|
|
|
2391
2640
|
// node_modules/@isaacs/balanced-match/dist/esm/index.js
|
|
2392
2641
|
var balanced = (a, b, str) => {
|
|
@@ -3267,11 +3516,11 @@ var qmarksTestNoExtDot = ([$0]) => {
|
|
|
3267
3516
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
3268
3517
|
};
|
|
3269
3518
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
3270
|
-
var
|
|
3519
|
+
var path3 = {
|
|
3271
3520
|
win32: { sep: "\\" },
|
|
3272
3521
|
posix: { sep: "/" }
|
|
3273
3522
|
};
|
|
3274
|
-
var sep = defaultPlatform === "win32" ?
|
|
3523
|
+
var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
3275
3524
|
minimatch.sep = sep;
|
|
3276
3525
|
var GLOBSTAR = Symbol("globstar **");
|
|
3277
3526
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -3927,7 +4176,7 @@ minimatch.escape = escape;
|
|
|
3927
4176
|
minimatch.unescape = unescape;
|
|
3928
4177
|
|
|
3929
4178
|
// node_modules/glob/dist/esm/glob.js
|
|
3930
|
-
var
|
|
4179
|
+
var import_node_url4 = require("node:url");
|
|
3931
4180
|
|
|
3932
4181
|
// node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
|
|
3933
4182
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
@@ -5317,8 +5566,8 @@ var LRUCache = class _LRUCache {
|
|
|
5317
5566
|
};
|
|
5318
5567
|
|
|
5319
5568
|
// node_modules/path-scurry/dist/esm/index.js
|
|
5320
|
-
var
|
|
5321
|
-
var
|
|
5569
|
+
var import_node_path3 = require("node:path");
|
|
5570
|
+
var import_node_url3 = require("node:url");
|
|
5322
5571
|
var import_fs = require("fs");
|
|
5323
5572
|
var actualFS = __toESM(require("node:fs"), 1);
|
|
5324
5573
|
var import_promises = require("node:fs/promises");
|
|
@@ -7224,7 +7473,7 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
7224
7473
|
* @internal
|
|
7225
7474
|
*/
|
|
7226
7475
|
getRootString(path5) {
|
|
7227
|
-
return
|
|
7476
|
+
return import_node_path3.win32.parse(path5).root;
|
|
7228
7477
|
}
|
|
7229
7478
|
/**
|
|
7230
7479
|
* @internal
|
|
@@ -7323,7 +7572,7 @@ var PathScurryBase = class {
|
|
|
7323
7572
|
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs3 = defaultFS } = {}) {
|
|
7324
7573
|
this.#fs = fsFromOption(fs3);
|
|
7325
7574
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
7326
|
-
cwd = (0,
|
|
7575
|
+
cwd = (0, import_node_url3.fileURLToPath)(cwd);
|
|
7327
7576
|
}
|
|
7328
7577
|
const cwdPath = pathImpl.resolve(cwd);
|
|
7329
7578
|
this.roots = /* @__PURE__ */ Object.create(null);
|
|
@@ -7864,7 +8113,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
7864
8113
|
sep = "\\";
|
|
7865
8114
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
7866
8115
|
const { nocase = true } = opts;
|
|
7867
|
-
super(cwd,
|
|
8116
|
+
super(cwd, import_node_path3.win32, "\\", { ...opts, nocase });
|
|
7868
8117
|
this.nocase = nocase;
|
|
7869
8118
|
for (let p = this.cwd; p; p = p.parent) {
|
|
7870
8119
|
p.nocase = this.nocase;
|
|
@@ -7874,7 +8123,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
7874
8123
|
* @internal
|
|
7875
8124
|
*/
|
|
7876
8125
|
parseRootPath(dir) {
|
|
7877
|
-
return
|
|
8126
|
+
return import_node_path3.win32.parse(dir).root.toUpperCase();
|
|
7878
8127
|
}
|
|
7879
8128
|
/**
|
|
7880
8129
|
* @internal
|
|
@@ -7896,7 +8145,7 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
7896
8145
|
sep = "/";
|
|
7897
8146
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
7898
8147
|
const { nocase = false } = opts;
|
|
7899
|
-
super(cwd,
|
|
8148
|
+
super(cwd, import_node_path3.posix, "/", { ...opts, nocase });
|
|
7900
8149
|
this.nocase = nocase;
|
|
7901
8150
|
}
|
|
7902
8151
|
/**
|
|
@@ -8788,7 +9037,7 @@ var Glob = class {
|
|
|
8788
9037
|
if (!opts.cwd) {
|
|
8789
9038
|
this.cwd = "";
|
|
8790
9039
|
} else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
|
|
8791
|
-
opts.cwd = (0,
|
|
9040
|
+
opts.cwd = (0, import_node_url4.fileURLToPath)(opts.cwd);
|
|
8792
9041
|
}
|
|
8793
9042
|
this.cwd = opts.cwd || "";
|
|
8794
9043
|
this.root = opts.root;
|
|
@@ -8990,238 +9239,9 @@ glob.glob = glob;
|
|
|
8990
9239
|
// src/api-extractor.ts
|
|
8991
9240
|
var import_is_ci = __toESM(require_is_ci());
|
|
8992
9241
|
|
|
8993
|
-
// node_modules/find-up/index.js
|
|
8994
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
8995
|
-
|
|
8996
|
-
// node_modules/locate-path/index.js
|
|
8997
|
-
var import_node_process = __toESM(require("node:process"), 1);
|
|
8998
|
-
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
8999
|
-
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
9000
|
-
var import_node_url3 = require("node:url");
|
|
9001
|
-
|
|
9002
|
-
// node_modules/p-locate/node_modules/yocto-queue/index.js
|
|
9003
|
-
var Node = class {
|
|
9004
|
-
value;
|
|
9005
|
-
next;
|
|
9006
|
-
constructor(value) {
|
|
9007
|
-
this.value = value;
|
|
9008
|
-
}
|
|
9009
|
-
};
|
|
9010
|
-
var Queue = class {
|
|
9011
|
-
#head;
|
|
9012
|
-
#tail;
|
|
9013
|
-
#size;
|
|
9014
|
-
constructor() {
|
|
9015
|
-
this.clear();
|
|
9016
|
-
}
|
|
9017
|
-
enqueue(value) {
|
|
9018
|
-
const node = new Node(value);
|
|
9019
|
-
if (this.#head) {
|
|
9020
|
-
this.#tail.next = node;
|
|
9021
|
-
this.#tail = node;
|
|
9022
|
-
} else {
|
|
9023
|
-
this.#head = node;
|
|
9024
|
-
this.#tail = node;
|
|
9025
|
-
}
|
|
9026
|
-
this.#size++;
|
|
9027
|
-
}
|
|
9028
|
-
dequeue() {
|
|
9029
|
-
const current = this.#head;
|
|
9030
|
-
if (!current) {
|
|
9031
|
-
return;
|
|
9032
|
-
}
|
|
9033
|
-
this.#head = this.#head.next;
|
|
9034
|
-
this.#size--;
|
|
9035
|
-
return current.value;
|
|
9036
|
-
}
|
|
9037
|
-
clear() {
|
|
9038
|
-
this.#head = void 0;
|
|
9039
|
-
this.#tail = void 0;
|
|
9040
|
-
this.#size = 0;
|
|
9041
|
-
}
|
|
9042
|
-
get size() {
|
|
9043
|
-
return this.#size;
|
|
9044
|
-
}
|
|
9045
|
-
*[Symbol.iterator]() {
|
|
9046
|
-
let current = this.#head;
|
|
9047
|
-
while (current) {
|
|
9048
|
-
yield current.value;
|
|
9049
|
-
current = current.next;
|
|
9050
|
-
}
|
|
9051
|
-
}
|
|
9052
|
-
};
|
|
9053
|
-
|
|
9054
|
-
// node_modules/p-locate/node_modules/p-limit/index.js
|
|
9055
|
-
function pLimit(concurrency) {
|
|
9056
|
-
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
9057
|
-
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
9058
|
-
}
|
|
9059
|
-
const queue = new Queue();
|
|
9060
|
-
let activeCount = 0;
|
|
9061
|
-
const next = () => {
|
|
9062
|
-
activeCount--;
|
|
9063
|
-
if (queue.size > 0) {
|
|
9064
|
-
queue.dequeue()();
|
|
9065
|
-
}
|
|
9066
|
-
};
|
|
9067
|
-
const run2 = async (fn, resolve, args) => {
|
|
9068
|
-
activeCount++;
|
|
9069
|
-
const result = (async () => fn(...args))();
|
|
9070
|
-
resolve(result);
|
|
9071
|
-
try {
|
|
9072
|
-
await result;
|
|
9073
|
-
} catch {
|
|
9074
|
-
}
|
|
9075
|
-
next();
|
|
9076
|
-
};
|
|
9077
|
-
const enqueue = (fn, resolve, args) => {
|
|
9078
|
-
queue.enqueue(run2.bind(void 0, fn, resolve, args));
|
|
9079
|
-
(async () => {
|
|
9080
|
-
await Promise.resolve();
|
|
9081
|
-
if (activeCount < concurrency && queue.size > 0) {
|
|
9082
|
-
queue.dequeue()();
|
|
9083
|
-
}
|
|
9084
|
-
})();
|
|
9085
|
-
};
|
|
9086
|
-
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
9087
|
-
enqueue(fn, resolve, args);
|
|
9088
|
-
});
|
|
9089
|
-
Object.defineProperties(generator, {
|
|
9090
|
-
activeCount: {
|
|
9091
|
-
get: () => activeCount
|
|
9092
|
-
},
|
|
9093
|
-
pendingCount: {
|
|
9094
|
-
get: () => queue.size
|
|
9095
|
-
},
|
|
9096
|
-
clearQueue: {
|
|
9097
|
-
value: () => {
|
|
9098
|
-
queue.clear();
|
|
9099
|
-
}
|
|
9100
|
-
}
|
|
9101
|
-
});
|
|
9102
|
-
return generator;
|
|
9103
|
-
}
|
|
9104
|
-
|
|
9105
|
-
// node_modules/p-locate/index.js
|
|
9106
|
-
var EndError = class extends Error {
|
|
9107
|
-
constructor(value) {
|
|
9108
|
-
super();
|
|
9109
|
-
this.value = value;
|
|
9110
|
-
}
|
|
9111
|
-
};
|
|
9112
|
-
var testElement = async (element, tester) => tester(await element);
|
|
9113
|
-
var finder = async (element) => {
|
|
9114
|
-
const values = await Promise.all(element);
|
|
9115
|
-
if (values[1] === true) {
|
|
9116
|
-
throw new EndError(values[0]);
|
|
9117
|
-
}
|
|
9118
|
-
return false;
|
|
9119
|
-
};
|
|
9120
|
-
async function pLocate(iterable, tester, {
|
|
9121
|
-
concurrency = Number.POSITIVE_INFINITY,
|
|
9122
|
-
preserveOrder = true
|
|
9123
|
-
} = {}) {
|
|
9124
|
-
const limit = pLimit(concurrency);
|
|
9125
|
-
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
|
9126
|
-
const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
|
|
9127
|
-
try {
|
|
9128
|
-
await Promise.all(items.map((element) => checkLimit(finder, element)));
|
|
9129
|
-
} catch (error) {
|
|
9130
|
-
if (error instanceof EndError) {
|
|
9131
|
-
return error.value;
|
|
9132
|
-
}
|
|
9133
|
-
throw error;
|
|
9134
|
-
}
|
|
9135
|
-
}
|
|
9136
|
-
|
|
9137
|
-
// node_modules/locate-path/index.js
|
|
9138
|
-
var typeMappings = {
|
|
9139
|
-
directory: "isDirectory",
|
|
9140
|
-
file: "isFile"
|
|
9141
|
-
};
|
|
9142
|
-
function checkType(type) {
|
|
9143
|
-
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
9144
|
-
return;
|
|
9145
|
-
}
|
|
9146
|
-
throw new Error(`Invalid type specified: ${type}`);
|
|
9147
|
-
}
|
|
9148
|
-
var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
|
|
9149
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url3.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9150
|
-
async function locatePath(paths, {
|
|
9151
|
-
cwd = import_node_process.default.cwd(),
|
|
9152
|
-
type = "file",
|
|
9153
|
-
allowSymlinks = true,
|
|
9154
|
-
concurrency,
|
|
9155
|
-
preserveOrder
|
|
9156
|
-
} = {}) {
|
|
9157
|
-
checkType(type);
|
|
9158
|
-
cwd = toPath(cwd);
|
|
9159
|
-
const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
|
|
9160
|
-
return pLocate(paths, async (path_) => {
|
|
9161
|
-
try {
|
|
9162
|
-
const stat = await statFunction(import_node_path2.default.resolve(cwd, path_));
|
|
9163
|
-
return matchType(type, stat);
|
|
9164
|
-
} catch {
|
|
9165
|
-
return false;
|
|
9166
|
-
}
|
|
9167
|
-
}, { concurrency, preserveOrder });
|
|
9168
|
-
}
|
|
9169
|
-
|
|
9170
|
-
// node_modules/unicorn-magic/node.js
|
|
9171
|
-
var import_node_util = require("node:util");
|
|
9172
|
-
var import_node_child_process = require("node:child_process");
|
|
9173
|
-
var import_node_url4 = require("node:url");
|
|
9174
|
-
var execFileOriginal = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
9175
|
-
function toPath2(urlOrPath) {
|
|
9176
|
-
return urlOrPath instanceof URL ? (0, import_node_url4.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9177
|
-
}
|
|
9178
|
-
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
9179
|
-
|
|
9180
|
-
// node_modules/find-up/index.js
|
|
9181
|
-
var findUpStop = Symbol("findUpStop");
|
|
9182
|
-
async function findUpMultiple(name, options = {}) {
|
|
9183
|
-
let directory = import_node_path3.default.resolve(toPath2(options.cwd) ?? "");
|
|
9184
|
-
const { root } = import_node_path3.default.parse(directory);
|
|
9185
|
-
const stopAt = import_node_path3.default.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
9186
|
-
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
9187
|
-
const paths = [name].flat();
|
|
9188
|
-
const runMatcher = async (locateOptions) => {
|
|
9189
|
-
if (typeof name !== "function") {
|
|
9190
|
-
return locatePath(paths, locateOptions);
|
|
9191
|
-
}
|
|
9192
|
-
const foundPath = await name(locateOptions.cwd);
|
|
9193
|
-
if (typeof foundPath === "string") {
|
|
9194
|
-
return locatePath([foundPath], locateOptions);
|
|
9195
|
-
}
|
|
9196
|
-
return foundPath;
|
|
9197
|
-
};
|
|
9198
|
-
const matches = [];
|
|
9199
|
-
while (true) {
|
|
9200
|
-
const foundPath = await runMatcher({ ...options, cwd: directory });
|
|
9201
|
-
if (foundPath === findUpStop) {
|
|
9202
|
-
break;
|
|
9203
|
-
}
|
|
9204
|
-
if (foundPath) {
|
|
9205
|
-
matches.push(import_node_path3.default.resolve(directory, foundPath));
|
|
9206
|
-
}
|
|
9207
|
-
if (directory === stopAt || matches.length >= limit) {
|
|
9208
|
-
break;
|
|
9209
|
-
}
|
|
9210
|
-
directory = import_node_path3.default.dirname(directory);
|
|
9211
|
-
}
|
|
9212
|
-
return matches;
|
|
9213
|
-
}
|
|
9214
|
-
async function findUp(name, options = {}) {
|
|
9215
|
-
const matches = await findUpMultiple(name, { ...options, limit: 1 });
|
|
9216
|
-
return matches[0];
|
|
9217
|
-
}
|
|
9218
|
-
|
|
9219
|
-
// src/api-extractor.ts
|
|
9220
|
-
var import_api_extractor = require("@microsoft/api-extractor");
|
|
9221
|
-
|
|
9222
9242
|
// src/utils/detect-vue-major.ts
|
|
9223
|
-
var import_semver = __toESM(require_semver2());
|
|
9224
9243
|
var import_vue = require("vue");
|
|
9244
|
+
var import_semver = __toESM(require_semver2());
|
|
9225
9245
|
|
|
9226
9246
|
// node_modules/dedent/dist/dedent.mjs
|
|
9227
9247
|
function ownKeys(object, enumerableOnly) {
|
package/dist/tsdoc-metadata.json
CHANGED
package/dist/vite.config.cjs
CHANGED
|
@@ -1078,6 +1078,9 @@ var require_identifiers = __commonJS({
|
|
|
1078
1078
|
"use strict";
|
|
1079
1079
|
var numeric2 = /^[0-9]+$/;
|
|
1080
1080
|
var compareIdentifiers = (a, b) => {
|
|
1081
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
1082
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
1083
|
+
}
|
|
1081
1084
|
const anum = numeric2.test(a);
|
|
1082
1085
|
const bnum = numeric2.test(b);
|
|
1083
1086
|
if (anum && bnum) {
|
|
@@ -1184,7 +1187,25 @@ var require_semver = __commonJS({
|
|
|
1184
1187
|
if (!(other instanceof _SemVer)) {
|
|
1185
1188
|
other = new _SemVer(other, this.options);
|
|
1186
1189
|
}
|
|
1187
|
-
|
|
1190
|
+
if (this.major < other.major) {
|
|
1191
|
+
return -1;
|
|
1192
|
+
}
|
|
1193
|
+
if (this.major > other.major) {
|
|
1194
|
+
return 1;
|
|
1195
|
+
}
|
|
1196
|
+
if (this.minor < other.minor) {
|
|
1197
|
+
return -1;
|
|
1198
|
+
}
|
|
1199
|
+
if (this.minor > other.minor) {
|
|
1200
|
+
return 1;
|
|
1201
|
+
}
|
|
1202
|
+
if (this.patch < other.patch) {
|
|
1203
|
+
return -1;
|
|
1204
|
+
}
|
|
1205
|
+
if (this.patch > other.patch) {
|
|
1206
|
+
return 1;
|
|
1207
|
+
}
|
|
1208
|
+
return 0;
|
|
1188
1209
|
}
|
|
1189
1210
|
comparePre(other) {
|
|
1190
1211
|
if (!(other instanceof _SemVer)) {
|
|
@@ -1945,6 +1966,7 @@ var require_range = __commonJS({
|
|
|
1945
1966
|
return result;
|
|
1946
1967
|
};
|
|
1947
1968
|
var parseComparator = (comp, options) => {
|
|
1969
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
1948
1970
|
debug2("comp", comp, options);
|
|
1949
1971
|
comp = replaceCarets(comp, options);
|
|
1950
1972
|
debug2("caret", comp);
|
|
@@ -2842,8 +2864,6 @@ __export(vite_config_exports, {
|
|
|
2842
2864
|
module.exports = __toCommonJS(vite_config_exports);
|
|
2843
2865
|
var import_apimock_express = require("@forsakringskassan/apimock-express");
|
|
2844
2866
|
var import_ufuzzy = __toESM(require_uFuzzy());
|
|
2845
|
-
var import_deepmerge = __toESM(require_cjs());
|
|
2846
|
-
var import_picocolors = __toESM(require_picocolors());
|
|
2847
2867
|
|
|
2848
2868
|
// node_modules/@vitejs/plugin-vue/dist/index.js
|
|
2849
2869
|
var import_node_module = require("node:module");
|
|
@@ -4706,6 +4726,9 @@ Object.assign(vuePluginCjs, {
|
|
|
4706
4726
|
parseVueRequest
|
|
4707
4727
|
});
|
|
4708
4728
|
|
|
4729
|
+
// src/vite.config.ts
|
|
4730
|
+
var import_deepmerge = __toESM(require_cjs());
|
|
4731
|
+
|
|
4709
4732
|
// node_modules/@isaacs/balanced-match/dist/esm/index.js
|
|
4710
4733
|
var balanced = (a, b, str) => {
|
|
4711
4734
|
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
@@ -11305,6 +11328,9 @@ var glob = Object.assign(glob_, {
|
|
|
11305
11328
|
});
|
|
11306
11329
|
glob.glob = glob;
|
|
11307
11330
|
|
|
11331
|
+
// src/vite.config.ts
|
|
11332
|
+
var import_picocolors = __toESM(require_picocolors());
|
|
11333
|
+
|
|
11308
11334
|
// src/plugins/babel-plugin.ts
|
|
11309
11335
|
var babel = __toESM(require("@babel/core"));
|
|
11310
11336
|
var filter2 = /\.(js|ts|vue)$/;
|
|
@@ -11478,8 +11504,8 @@ function readJsonFile(filename) {
|
|
|
11478
11504
|
}
|
|
11479
11505
|
|
|
11480
11506
|
// src/utils/detect-vue-major.ts
|
|
11481
|
-
var import_semver = __toESM(require_semver2());
|
|
11482
11507
|
var import_vue2 = require("vue");
|
|
11508
|
+
var import_semver = __toESM(require_semver2());
|
|
11483
11509
|
function detectVueMajor() {
|
|
11484
11510
|
try {
|
|
11485
11511
|
return (0, import_semver.major)(import_vue2.version);
|
package/dist/vite.config.mjs
CHANGED
|
@@ -1076,6 +1076,9 @@ var require_identifiers = __commonJS({
|
|
|
1076
1076
|
"use strict";
|
|
1077
1077
|
var numeric2 = /^[0-9]+$/;
|
|
1078
1078
|
var compareIdentifiers = (a, b) => {
|
|
1079
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
1080
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
1081
|
+
}
|
|
1079
1082
|
const anum = numeric2.test(a);
|
|
1080
1083
|
const bnum = numeric2.test(b);
|
|
1081
1084
|
if (anum && bnum) {
|
|
@@ -1182,7 +1185,25 @@ var require_semver = __commonJS({
|
|
|
1182
1185
|
if (!(other instanceof _SemVer)) {
|
|
1183
1186
|
other = new _SemVer(other, this.options);
|
|
1184
1187
|
}
|
|
1185
|
-
|
|
1188
|
+
if (this.major < other.major) {
|
|
1189
|
+
return -1;
|
|
1190
|
+
}
|
|
1191
|
+
if (this.major > other.major) {
|
|
1192
|
+
return 1;
|
|
1193
|
+
}
|
|
1194
|
+
if (this.minor < other.minor) {
|
|
1195
|
+
return -1;
|
|
1196
|
+
}
|
|
1197
|
+
if (this.minor > other.minor) {
|
|
1198
|
+
return 1;
|
|
1199
|
+
}
|
|
1200
|
+
if (this.patch < other.patch) {
|
|
1201
|
+
return -1;
|
|
1202
|
+
}
|
|
1203
|
+
if (this.patch > other.patch) {
|
|
1204
|
+
return 1;
|
|
1205
|
+
}
|
|
1206
|
+
return 0;
|
|
1186
1207
|
}
|
|
1187
1208
|
comparePre(other) {
|
|
1188
1209
|
if (!(other instanceof _SemVer)) {
|
|
@@ -1943,6 +1964,7 @@ var require_range = __commonJS({
|
|
|
1943
1964
|
return result;
|
|
1944
1965
|
};
|
|
1945
1966
|
var parseComparator = (comp, options) => {
|
|
1967
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
1946
1968
|
debug2("comp", comp, options);
|
|
1947
1969
|
comp = replaceCarets(comp, options);
|
|
1948
1970
|
debug2("caret", comp);
|
|
@@ -2831,8 +2853,6 @@ var require_semver2 = __commonJS({
|
|
|
2831
2853
|
|
|
2832
2854
|
// src/vite.config.ts
|
|
2833
2855
|
var import_ufuzzy = __toESM(require_uFuzzy());
|
|
2834
|
-
var import_deepmerge = __toESM(require_cjs());
|
|
2835
|
-
var import_picocolors = __toESM(require_picocolors());
|
|
2836
2856
|
import { vitePlugin as apimockPlugin } from "@forsakringskassan/apimock-express";
|
|
2837
2857
|
|
|
2838
2858
|
// node_modules/@vitejs/plugin-vue/dist/index.js
|
|
@@ -4696,6 +4716,9 @@ Object.assign(vuePluginCjs, {
|
|
|
4696
4716
|
parseVueRequest
|
|
4697
4717
|
});
|
|
4698
4718
|
|
|
4719
|
+
// src/vite.config.ts
|
|
4720
|
+
var import_deepmerge = __toESM(require_cjs());
|
|
4721
|
+
|
|
4699
4722
|
// node_modules/@isaacs/balanced-match/dist/esm/index.js
|
|
4700
4723
|
var balanced = (a, b, str) => {
|
|
4701
4724
|
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
@@ -11295,6 +11318,9 @@ var glob = Object.assign(glob_, {
|
|
|
11295
11318
|
});
|
|
11296
11319
|
glob.glob = glob;
|
|
11297
11320
|
|
|
11321
|
+
// src/vite.config.ts
|
|
11322
|
+
var import_picocolors = __toESM(require_picocolors());
|
|
11323
|
+
|
|
11298
11324
|
// src/plugins/babel-plugin.ts
|
|
11299
11325
|
import * as babel from "@babel/core";
|
|
11300
11326
|
var filter2 = /\.(js|ts|vue)$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/vite-lib-config",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "Försäkringskassan toolchain to build libraries with Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "7.53.
|
|
45
|
+
"@microsoft/api-extractor": "7.53.3",
|
|
46
46
|
"@vue/babel-preset-app": "5.0.9"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|