@forsakringskassan/docs-generator 3.20.1 → 3.21.1
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-Bm-yRJ38.mjs → create-markdown-renderer-CX0kOizk.mjs} +3 -3
- package/dist/{create-markdown-renderer-Bm-yRJ38.mjs.map → create-markdown-renderer-CX0kOizk.mjs.map} +1 -1
- package/dist/{format-code.worker-NI_KIDrb.mjs → format-code.worker-BsMUHGd2.mjs} +2 -2
- package/dist/{format-code.worker-NI_KIDrb.mjs.map → format-code.worker-BsMUHGd2.mjs.map} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -2
- package/dist/processors/search.mjs +41 -10
- package/dist/style/core.css +1 -0
- package/dist/style/index.css +19 -1
- package/dist/style/site.css +18 -1
- package/dist/{vendor-GtJZoX7J.mjs → vendor-DBujHFR5.mjs} +9 -5
- package/dist/{vendor-GtJZoX7J.mjs.map → vendor-DBujHFR5.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -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-DBujHFR5.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-BsMUHGd2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-code.worker-
|
|
1
|
+
{"version":3,"file":"format-code.worker-BsMUHGd2.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\n/* eslint-disable-next-line unicorn/no-top-level-side-effects -- required for worker to function */\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;AAGA,WAAA,CAAY,UAAU,CAAA;;"}
|
package/dist/index.d.mts
CHANGED
|
@@ -898,7 +898,7 @@ export declare interface ProcessorHandler {
|
|
|
898
898
|
enabled?: boolean;
|
|
899
899
|
/** List of runtime client scripts required by this processor */
|
|
900
900
|
runtime?: ProcessorRuntime[];
|
|
901
|
-
handler(context: ProcessorContext): void | string[] | Promise<void> | Promise<string[]>;
|
|
901
|
+
handler?(context: ProcessorContext): void | string[] | Promise<void> | Promise<string[]>;
|
|
902
902
|
/**
|
|
903
903
|
* Resolve a link from a `{@link ...}` tag.
|
|
904
904
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ 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 { Z as Ze, M as MarkdownItCallable, g as fm, s as strToU8, z as zlibSync, h as strFromU8, d as dedent, i as closest, j as distance, k as isCI, m as moduleImporter, l as cliProgress, t as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-
|
|
6
|
+
import { Z as Ze, M as MarkdownItCallable, g as fm, s as strToU8, z as zlibSync, h as strFromU8, d as dedent, i as closest, j as distance, k as isCI, m as moduleImporter, l as cliProgress, t as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-DBujHFR5.mjs';
|
|
7
7
|
import path__default from 'node:path';
|
|
8
8
|
import fs from 'node:fs/promises';
|
|
9
9
|
import crypto from 'node:crypto';
|
|
10
10
|
import path from 'node:path/posix';
|
|
11
11
|
import { exec, execSync } from 'node:child_process';
|
|
12
|
-
import { g as generateId, f as formatCode, p as parseInfostring, a as getFingerprint, h as hasTag, b as parseImport, d as findTag, e as getOutputFilePath, i as isDocumentPage, j as findDocument, k as getDocumentBody, n as normalizePath, l as htmlencode, c as createMarkdownRenderer } from './create-markdown-renderer-
|
|
12
|
+
import { g as generateId, f as formatCode, p as parseInfostring, a as getFingerprint, h as hasTag, b as parseImport, d as findTag, e as getOutputFilePath, i as isDocumentPage, j as findDocument, k as getDocumentBody, n as normalizePath, l as htmlencode, c as createMarkdownRenderer } from './create-markdown-renderer-CX0kOizk.mjs';
|
|
13
13
|
import { DocExcerpt } from '@microsoft/tsdoc';
|
|
14
14
|
import pkg from '../package.json' with { type: "json" };
|
|
15
15
|
import fs__default, { existsSync, readFileSync, copyFileSync } from 'node:fs';
|
|
@@ -4140,6 +4140,9 @@ async function stage(stage2, context, processors, options) {
|
|
|
4140
4140
|
if (verbose) {
|
|
4141
4141
|
console.log(isLast ? " \u2514\u2500" : " \u251C\u2500", processor.name);
|
|
4142
4142
|
}
|
|
4143
|
+
if (!processor.handler) {
|
|
4144
|
+
continue;
|
|
4145
|
+
}
|
|
4143
4146
|
try {
|
|
4144
4147
|
const prefix = (() => {
|
|
4145
4148
|
if (verbose) {
|