@forsakringskassan/docs-generator 2.43.0 → 3.0.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/{create-markdown-renderer-CO5Te-tH.mjs → create-markdown-renderer-CoqQjBrC.mjs} +5 -5
- package/dist/{create-markdown-renderer-CO5Te-tH.mjs.map → create-markdown-renderer-CoqQjBrC.mjs.map} +1 -1
- package/dist/{format-code.worker-D7IOA5jE.mjs → format-code.worker-CE6SMet0.mjs} +2 -2
- package/dist/{format-code.worker-D7IOA5jE.mjs.map → format-code.worker-CE6SMet0.mjs.map} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/markdown.mjs +3 -3
- package/dist/processors/selectable-version.mjs +43 -0
- package/dist/runtime.mjs +30590 -24196
- package/dist/style/core.css +20 -0
- package/dist/style/index.css +20 -0
- package/dist/{vendor-BImorfXU.mjs → vendor-B7bJ2okl.mjs} +443 -423
- package/dist/{vendor-BImorfXU.mjs.map → vendor-B7bJ2okl.mjs.map} +1 -1
- package/dist/{vue3-fRI2JWNs.mjs → vue3-RC792pPN.mjs} +59 -59
- package/dist/{vue3-fRI2JWNs.mjs.map → vue3-RC792pPN.mjs.map} +1 -1
- package/dist/{worker-DEFReXeu.mjs → worker-CpM7V-Ue.mjs} +2 -2
- package/dist/{worker-DEFReXeu.mjs.map → worker-CpM7V-Ue.mjs.map} +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { createRequire as $createRequire } from "node:module";
|
|
|
2
2
|
|
|
3
3
|
const require = $createRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import { r as runAsWorker, f as format2, a as resolveConfig } from './vendor-
|
|
5
|
+
import { r as runAsWorker, f as format2, a as resolveConfig } from './vendor-B7bJ2okl.mjs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'fs';
|
|
@@ -54,4 +54,4 @@ async function formatCode(source, filepath) {
|
|
|
54
54
|
runAsWorker(formatCode);
|
|
55
55
|
|
|
56
56
|
export { formatCode };
|
|
57
|
-
//# sourceMappingURL=format-code.worker-
|
|
57
|
+
//# sourceMappingURL=format-code.worker-CE6SMet0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-code.worker-
|
|
1
|
+
{"version":3,"file":"format-code.worker-CE6SMet0.mjs","sources":["../src/utils/format-code.worker.ts"],"sourcesContent":["import { type Options, format as prettier, resolveConfig } from \"prettier\";\nimport { runAsWorker } from \"synckit\";\n\nconst configCache = new Map<string, Options | null>();\n\nasync function getConfig(filepath: string): Promise<Options | null> {\n const cached = configCache.get(filepath);\n if (cached !== undefined) {\n return cached;\n }\n const options = await resolveConfig(filepath);\n configCache.set(filepath, options);\n return options;\n}\n\n/**\n * @internal\n */\nexport async function formatCode(\n source: string,\n filepath: string,\n): Promise<string> {\n const options = await getConfig(filepath);\n const formatted = await prettier(source, { ...options, filepath });\n return formatted.trim();\n}\n\nrunAsWorker(formatCode);\n"],"names":["prettier"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAM,WAAA,uBAAkB,GAAA,EAA4B;AAEpD,eAAe,UAAU,QAAA,EAA2C;AAChE,EAAA,MAAM,MAAA,GAAS,WAAA,CAAY,GAAA,CAAI,QAAQ,CAAA;AACvC,EAAA,IAAI,WAAW,MAAA,EAAW;AACtB,IAAA,OAAO,MAAA;AAAA,EACX;AACA,EAAA,MAAM,OAAA,GAAU,MAAM,aAAA,CAAc,QAAQ,CAAA;AAC5C,EAAA,WAAA,CAAY,GAAA,CAAI,UAAU,OAAO,CAAA;AACjC,EAAA,OAAO,OAAA;AACX;AAKA,eAAsB,UAAA,CAClB,QACA,QAAA,EACe;AACf,EAAA,MAAM,OAAA,GAAU,MAAM,SAAA,CAAU,QAAQ,CAAA;AACxC,EAAA,MAAM,SAAA,GAAY,MAAMA,OAAA,CAAS,MAAA,EAAQ,EAAE,GAAG,OAAA,EAAS,UAAU,CAAA;AACjE,EAAA,OAAO,UAAU,IAAA,EAAK;AAC1B;AAEA,WAAA,CAAY,UAAU,CAAA;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import { createRequire as $createRequire } from "node:module";
|
|
|
3
3
|
const require = $createRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import { ApiItemKind, ApiModel } from '@microsoft/api-extractor-model';
|
|
6
|
-
import { t as ts, Z as Ze, M as MarkdownIt, d as dedent, g as closest, h as distance, i as fm, j as isCI, m as moduleImporter, k as cliProgress, l as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-
|
|
6
|
+
import { t as ts, Z as Ze, M as MarkdownIt, d as dedent, g as closest, h as distance, i as fm, j as isCI, m as moduleImporter, k as cliProgress, l as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-B7bJ2okl.mjs';
|
|
7
7
|
import path__default from 'node:path';
|
|
8
8
|
import crypto from 'node:crypto';
|
|
9
9
|
import path from 'node:path/posix';
|
|
10
10
|
import { exec, execSync } from 'node:child_process';
|
|
11
|
-
import { g as generateId, f as formatCode, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, b as findTag, d as getOutputFilePath, e as htmlencode, j as filePath, c as createMarkdownRenderer, k as generateExample } from './create-markdown-renderer-
|
|
11
|
+
import { g as generateId, f as formatCode, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, b as findTag, d as getOutputFilePath, e as htmlencode, j as filePath, c as createMarkdownRenderer, k as generateExample } from './create-markdown-renderer-CoqQjBrC.mjs';
|
|
12
12
|
import { DocExcerpt } from '@microsoft/tsdoc';
|
|
13
13
|
import fs from 'node:fs/promises';
|
|
14
14
|
import util, { promisify } from 'node:util';
|
|
@@ -51,7 +51,7 @@ import 'fs/promises';
|
|
|
51
51
|
import 'process';
|
|
52
52
|
import 'v8';
|
|
53
53
|
import 'vue';
|
|
54
|
-
import './vue3-
|
|
54
|
+
import './vue3-RC792pPN.mjs';
|
|
55
55
|
|
|
56
56
|
function toArray$2(value) {
|
|
57
57
|
return Array.isArray(value) ? value : [value];
|
package/dist/markdown.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { createRequire as $createRequire } from "node:module";
|
|
|
2
2
|
|
|
3
3
|
const require = $createRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-
|
|
6
|
-
import './vendor-
|
|
5
|
+
export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-CoqQjBrC.mjs';
|
|
6
|
+
import './vendor-B7bJ2okl.mjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'fs';
|
|
@@ -39,6 +39,6 @@ import 'v8';
|
|
|
39
39
|
import 'node:path/posix';
|
|
40
40
|
import 'node:child_process';
|
|
41
41
|
import 'vue';
|
|
42
|
-
import './vue3-
|
|
42
|
+
import './vue3-RC792pPN.mjs';
|
|
43
43
|
import 'vue/compiler-sfc';
|
|
44
44
|
//# sourceMappingURL=markdown.mjs.map
|
|
@@ -856,6 +856,47 @@ var require_coerce = __commonJS({
|
|
|
856
856
|
}
|
|
857
857
|
});
|
|
858
858
|
|
|
859
|
+
// node_modules/semver/functions/truncate.js
|
|
860
|
+
var require_truncate = __commonJS({
|
|
861
|
+
"node_modules/semver/functions/truncate.js"(exports, module) {
|
|
862
|
+
"use strict";
|
|
863
|
+
var parse = require_parse();
|
|
864
|
+
var constants = require_constants();
|
|
865
|
+
var SemVer = require_semver();
|
|
866
|
+
var truncate = (version, truncation, options) => {
|
|
867
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
|
868
|
+
return null;
|
|
869
|
+
}
|
|
870
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
871
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
872
|
+
};
|
|
873
|
+
var cloneInputVersion = (version, options) => {
|
|
874
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
875
|
+
return parse(versionStringToParse, options);
|
|
876
|
+
};
|
|
877
|
+
var doTruncation = (version, truncation) => {
|
|
878
|
+
if (isPrerelease(truncation)) {
|
|
879
|
+
return version.version;
|
|
880
|
+
}
|
|
881
|
+
version.prerelease = [];
|
|
882
|
+
switch (truncation) {
|
|
883
|
+
case "major":
|
|
884
|
+
version.minor = 0;
|
|
885
|
+
version.patch = 0;
|
|
886
|
+
break;
|
|
887
|
+
case "minor":
|
|
888
|
+
version.patch = 0;
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
return version.format();
|
|
892
|
+
};
|
|
893
|
+
var isPrerelease = (type) => {
|
|
894
|
+
return type.startsWith("pre");
|
|
895
|
+
};
|
|
896
|
+
module.exports = truncate;
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
|
|
859
900
|
// node_modules/semver/internal/lrucache.js
|
|
860
901
|
var require_lrucache = __commonJS({
|
|
861
902
|
"node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
@@ -1890,6 +1931,7 @@ var require_semver2 = __commonJS({
|
|
|
1890
1931
|
var lte = require_lte();
|
|
1891
1932
|
var cmp = require_cmp();
|
|
1892
1933
|
var coerce = require_coerce();
|
|
1934
|
+
var truncate = require_truncate();
|
|
1893
1935
|
var Comparator = require_comparator();
|
|
1894
1936
|
var Range = require_range();
|
|
1895
1937
|
var satisfies = require_satisfies();
|
|
@@ -1928,6 +1970,7 @@ var require_semver2 = __commonJS({
|
|
|
1928
1970
|
lte,
|
|
1929
1971
|
cmp,
|
|
1930
1972
|
coerce,
|
|
1973
|
+
truncate,
|
|
1931
1974
|
Comparator,
|
|
1932
1975
|
Range,
|
|
1933
1976
|
satisfies,
|