@forsakringskassan/vite-lib-config 4.1.4 → 4.2.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/api-extractor.js +10 -6
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +2 -2
- package/dist/vite.config.mjs +2 -2
- package/package.json +2 -2
package/dist/api-extractor.js
CHANGED
|
@@ -9140,12 +9140,12 @@ var typeMappings = {
|
|
|
9140
9140
|
file: "isFile"
|
|
9141
9141
|
};
|
|
9142
9142
|
function checkType(type) {
|
|
9143
|
-
if (Object.
|
|
9143
|
+
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
9144
9144
|
return;
|
|
9145
9145
|
}
|
|
9146
9146
|
throw new Error(`Invalid type specified: ${type}`);
|
|
9147
9147
|
}
|
|
9148
|
-
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
9148
|
+
var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
|
|
9149
9149
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url3.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9150
9150
|
async function locatePath(paths, {
|
|
9151
9151
|
cwd = import_node_process.default.cwd(),
|
|
@@ -9168,17 +9168,21 @@ async function locatePath(paths, {
|
|
|
9168
9168
|
}
|
|
9169
9169
|
|
|
9170
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");
|
|
9171
9173
|
var import_node_url4 = require("node:url");
|
|
9174
|
+
var execFileOriginal = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
9172
9175
|
function toPath2(urlOrPath) {
|
|
9173
9176
|
return urlOrPath instanceof URL ? (0, import_node_url4.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9174
9177
|
}
|
|
9178
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
9175
9179
|
|
|
9176
9180
|
// node_modules/find-up/index.js
|
|
9177
9181
|
var findUpStop = Symbol("findUpStop");
|
|
9178
9182
|
async function findUpMultiple(name, options = {}) {
|
|
9179
9183
|
let directory = import_node_path3.default.resolve(toPath2(options.cwd) ?? "");
|
|
9180
9184
|
const { root } = import_node_path3.default.parse(directory);
|
|
9181
|
-
const stopAt = import_node_path3.default.resolve(directory, toPath2(options.stopAt ?? root)
|
|
9185
|
+
const stopAt = import_node_path3.default.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
9182
9186
|
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
9183
9187
|
const paths = [name].flat();
|
|
9184
9188
|
const runMatcher = async (locateOptions) => {
|
|
@@ -9442,7 +9446,7 @@ async function patchDeclareVarVls(declarationDir) {
|
|
|
9442
9446
|
await Promise.all(promises);
|
|
9443
9447
|
console.groupEnd();
|
|
9444
9448
|
console.log(
|
|
9445
|
-
`${numPatchedFiles} file${numPatchedFiles === 1 ? "" : "s"} patched
|
|
9449
|
+
`${String(numPatchedFiles)} file${numPatchedFiles === 1 ? "" : "s"} patched
|
|
9446
9450
|
`
|
|
9447
9451
|
);
|
|
9448
9452
|
}
|
|
@@ -9467,7 +9471,7 @@ only.
|
|
|
9467
9471
|
}
|
|
9468
9472
|
const configFiles = await getConfigFiles(positional);
|
|
9469
9473
|
const numFiles = configFiles.length;
|
|
9470
|
-
const strFiles = `${numFiles} file${numFiles === 1 ? "" : "s"}`;
|
|
9474
|
+
const strFiles = `${String(numFiles)} file${numFiles === 1 ? "" : "s"}`;
|
|
9471
9475
|
if (import_is_ci.default) {
|
|
9472
9476
|
console.group(`Running API Extractor in CI mode on ${strFiles}:`);
|
|
9473
9477
|
} else {
|
|
@@ -9494,7 +9498,7 @@ only.
|
|
|
9494
9498
|
console.error(
|
|
9495
9499
|
[
|
|
9496
9500
|
"API Extractor completed with",
|
|
9497
|
-
`${errorCount} error(s) and ${warningCount} warning(s)`
|
|
9501
|
+
`${String(errorCount)} error(s) and ${String(warningCount)} warning(s)`
|
|
9498
9502
|
].join("\n")
|
|
9499
9503
|
);
|
|
9500
9504
|
process.exitCode = 1;
|
package/dist/tsdoc-metadata.json
CHANGED
package/dist/vite.config.cjs
CHANGED
|
@@ -11398,7 +11398,7 @@ function middleware(server) {
|
|
|
11398
11398
|
res.end("Internal Server Error");
|
|
11399
11399
|
}
|
|
11400
11400
|
} else {
|
|
11401
|
-
|
|
11401
|
+
next();
|
|
11402
11402
|
}
|
|
11403
11403
|
};
|
|
11404
11404
|
}
|
|
@@ -11690,7 +11690,7 @@ var external = /* @__PURE__ */ new Set([
|
|
|
11690
11690
|
console.log(
|
|
11691
11691
|
"Building",
|
|
11692
11692
|
import_picocolors.default.cyan(packageJson.name),
|
|
11693
|
-
`v${packageJson.version} (Vue ${vueMajor})`
|
|
11693
|
+
`v${packageJson.version} (Vue ${String(vueMajor)})`
|
|
11694
11694
|
);
|
|
11695
11695
|
console.log();
|
|
11696
11696
|
var defaultPlugins = [
|
package/dist/vite.config.mjs
CHANGED
|
@@ -11388,7 +11388,7 @@ function middleware(server) {
|
|
|
11388
11388
|
res.end("Internal Server Error");
|
|
11389
11389
|
}
|
|
11390
11390
|
} else {
|
|
11391
|
-
|
|
11391
|
+
next();
|
|
11392
11392
|
}
|
|
11393
11393
|
};
|
|
11394
11394
|
}
|
|
@@ -11682,7 +11682,7 @@ var external = /* @__PURE__ */ new Set([
|
|
|
11682
11682
|
console.log(
|
|
11683
11683
|
"Building",
|
|
11684
11684
|
import_picocolors.default.cyan(packageJson.name),
|
|
11685
|
-
`v${packageJson.version} (Vue ${vueMajor})`
|
|
11685
|
+
`v${packageJson.version} (Vue ${String(vueMajor)})`
|
|
11686
11686
|
);
|
|
11687
11687
|
console.log();
|
|
11688
11688
|
var defaultPlugins = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/vite-lib-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
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.52.
|
|
45
|
+
"@microsoft/api-extractor": "7.52.13",
|
|
46
46
|
"@vue/babel-preset-app": "5.0.9"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|