@forsakringskassan/docs-generator 3.6.3 → 3.6.4
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-BIxSnQmL.mjs → create-markdown-renderer-BJc20Dbn.mjs} +3 -3
- package/dist/{create-markdown-renderer-BIxSnQmL.mjs.map → create-markdown-renderer-BJc20Dbn.mjs.map} +1 -1
- package/dist/{format-code.worker-BMOlrpuE.mjs → format-code.worker-BK9EqG4l.mjs} +2 -2
- package/dist/{format-code.worker-BMOlrpuE.mjs.map → format-code.worker-BK9EqG4l.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime-internal.mjs +34 -18
- package/dist/{vendor-O--Ker5M.mjs → vendor-CxVzCwEN.mjs} +2 -2
- package/dist/{vendor-O--Ker5M.mjs.map → vendor-CxVzCwEN.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-CxVzCwEN.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-BK9EqG4l.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-code.worker-
|
|
1
|
+
{"version":3,"file":"format-code.worker-BK9EqG4l.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.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 MarkdownItCallable, s as strToU8, z as zlibSync, g as strFromU8, d as dedent, h as closest, i as distance, j as fm, k as isCI, m as moduleImporter, l as cliProgress, n as tinylr, w as watch, o as createInstance, p as fse, q as inter } from './vendor-
|
|
6
|
+
import { t as ts, Z as Ze, M as MarkdownItCallable, s as strToU8, z as zlibSync, g as strFromU8, d as dedent, h as closest, i as distance, j as fm, k as isCI, m as moduleImporter, l as cliProgress, n as tinylr, w as watch, o as createInstance, p as fse, q as inter } from './vendor-CxVzCwEN.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 parseImport, d as findTag, e as getOutputFilePath, j as htmlencode, k as filePath, c as createMarkdownRenderer, l 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 parseImport, d as findTag, e as getOutputFilePath, j as htmlencode, k as filePath, c as createMarkdownRenderer, l as generateExample } from './create-markdown-renderer-BJc20Dbn.mjs';
|
|
12
12
|
import { DocExcerpt } from '@microsoft/tsdoc';
|
|
13
13
|
import fs from 'node:fs/promises';
|
|
14
14
|
import util, { promisify, styleText } from 'node:util';
|
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-BJc20Dbn.mjs';
|
|
6
|
+
import './vendor-CxVzCwEN.mjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'fs';
|
|
@@ -1516,7 +1516,7 @@ function isRegex(value2) {
|
|
|
1516
1516
|
function createDOMPurify() {
|
|
1517
1517
|
let window3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
1518
1518
|
const DOMPurify = (root4) => createDOMPurify(root4);
|
|
1519
|
-
DOMPurify.version = "3.4.
|
|
1519
|
+
DOMPurify.version = "3.4.15";
|
|
1520
1520
|
DOMPurify.removed = [];
|
|
1521
1521
|
if (!window3 || !window3.document || window3.document.nodeType !== NODE_TYPE.document || !window3.Element) {
|
|
1522
1522
|
DOMPurify.isSupported = false;
|
|
@@ -1533,6 +1533,7 @@ function createDOMPurify() {
|
|
|
1533
1533
|
const ElementPrototype = Element3.prototype;
|
|
1534
1534
|
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
1535
1535
|
const remove3 = lookupGetter(ElementPrototype, "remove");
|
|
1536
|
+
const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
|
|
1536
1537
|
const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
|
|
1537
1538
|
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
1538
1539
|
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
@@ -1966,7 +1967,7 @@ function createDOMPurify() {
|
|
|
1966
1967
|
};
|
|
1967
1968
|
const _stripAttributeNode = function _stripAttributeNode2(element3, attribute, name) {
|
|
1968
1969
|
try {
|
|
1969
|
-
|
|
1970
|
+
removeAttributeNode(element3, attribute);
|
|
1970
1971
|
} catch (_3) {
|
|
1971
1972
|
try {
|
|
1972
1973
|
element3.removeAttribute(name);
|
|
@@ -2014,7 +2015,7 @@ function createDOMPurify() {
|
|
|
2014
2015
|
});
|
|
2015
2016
|
try {
|
|
2016
2017
|
if (attr) {
|
|
2017
|
-
|
|
2018
|
+
removeAttributeNode(element3, attr);
|
|
2018
2019
|
} else {
|
|
2019
2020
|
element3.removeAttribute(name);
|
|
2020
2021
|
}
|
|
@@ -2202,7 +2203,16 @@ function createDOMPurify() {
|
|
|
2202
2203
|
// makes the direct read diverge from the cached read; a clean form
|
|
2203
2204
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
2204
2205
|
// canonical NamedNodeMap.
|
|
2205
|
-
element3.attributes !== getAttributes(element3) || typeof element3.removeAttribute !== "function" ||
|
|
2206
|
+
element3.attributes !== getAttributes(element3) || typeof element3.removeAttribute !== "function" || // A form descendant named "removeAttributeNode" or "getAttributeNode"
|
|
2207
|
+
// shadows these Attr-node methods via [LegacyOverrideBuiltIns].
|
|
2208
|
+
// _removeAttribute() / _stripAttributeNode() reach for
|
|
2209
|
+
// element.removeAttributeNode(attr) first; when it is shadowed the call
|
|
2210
|
+
// throws and the name-based fallback element.removeAttribute(name)
|
|
2211
|
+
// ASCII-lowercases its lookup key in an HTML document, silently missing
|
|
2212
|
+
// a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
|
|
2213
|
+
// that reached the sanitizer through an XML/XHTML parse). Flag the form
|
|
2214
|
+
// so it is removed wholesale, exactly as for the other shadowed methods.
|
|
2215
|
+
typeof element3.removeAttributeNode !== "function" || typeof element3.getAttributeNode !== "function" || typeof element3.setAttribute !== "function" || typeof element3.namespaceURI !== "string" || typeof element3.insertBefore !== "function" || typeof element3.hasChildNodes !== "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
2206
2216
|
// returns the integer 1 for any Element regardless of realm; direct
|
|
2207
2217
|
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
2208
2218
|
// the named child element. Cheap addition — nodeType is read from
|
|
@@ -2428,11 +2438,12 @@ function createDOMPurify() {
|
|
|
2428
2438
|
}
|
|
2429
2439
|
if (_isClobbered(currentNode)) {
|
|
2430
2440
|
_forceRemove(currentNode);
|
|
2431
|
-
|
|
2432
|
-
arrayPop(DOMPurify.removed);
|
|
2441
|
+
return false;
|
|
2433
2442
|
}
|
|
2443
|
+
return true;
|
|
2434
2444
|
} catch (_3) {
|
|
2435
2445
|
_removeAttribute(name, currentNode);
|
|
2446
|
+
return false;
|
|
2436
2447
|
}
|
|
2437
2448
|
};
|
|
2438
2449
|
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
|
|
@@ -2457,6 +2468,7 @@ function createDOMPurify() {
|
|
|
2457
2468
|
const lcName = transformCaseFunc(name);
|
|
2458
2469
|
const initValue = attrValue;
|
|
2459
2470
|
let value2 = name === "value" ? initValue : stringTrim(initValue);
|
|
2471
|
+
let recreatedNamedProp = false;
|
|
2460
2472
|
hookEvent.attrName = lcName;
|
|
2461
2473
|
hookEvent.attrValue = value2;
|
|
2462
2474
|
hookEvent.keepAttr = true;
|
|
@@ -2466,6 +2478,7 @@ function createDOMPurify() {
|
|
|
2466
2478
|
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value2, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
|
|
2467
2479
|
_removeAttribute(name, currentNode, attr);
|
|
2468
2480
|
value2 = SANITIZE_NAMED_PROPS_PREFIX + value2;
|
|
2481
|
+
recreatedNamedProp = true;
|
|
2469
2482
|
}
|
|
2470
2483
|
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value2)) {
|
|
2471
2484
|
_removeAttribute(name, currentNode, attr);
|
|
@@ -2495,7 +2508,10 @@ function createDOMPurify() {
|
|
|
2495
2508
|
}
|
|
2496
2509
|
value2 = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value2);
|
|
2497
2510
|
if (value2 !== initValue) {
|
|
2498
|
-
_setAttributeValue(currentNode, name, namespaceURI, value2);
|
|
2511
|
+
const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value2);
|
|
2512
|
+
if (cleanWrite && recreatedNamedProp) {
|
|
2513
|
+
arrayPop(DOMPurify.removed);
|
|
2514
|
+
}
|
|
2499
2515
|
}
|
|
2500
2516
|
}
|
|
2501
2517
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -2633,7 +2649,7 @@ function createDOMPurify() {
|
|
|
2633
2649
|
} else {
|
|
2634
2650
|
body.appendChild(importedNode);
|
|
2635
2651
|
}
|
|
2636
|
-
_sanitizeAttachedShadowRoots(
|
|
2652
|
+
_sanitizeAttachedShadowRoots(body);
|
|
2637
2653
|
} else {
|
|
2638
2654
|
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
|
|
2639
2655
|
dirty.indexOf("<") === -1) {
|
|
@@ -30731,13 +30747,14 @@ function iconToSVG(icon2, customisations) {
|
|
|
30731
30747
|
const hFlip = props.hFlip;
|
|
30732
30748
|
const vFlip = props.vFlip;
|
|
30733
30749
|
let rotation = props.rotate;
|
|
30734
|
-
if (hFlip)
|
|
30735
|
-
|
|
30736
|
-
|
|
30737
|
-
|
|
30738
|
-
|
|
30739
|
-
|
|
30740
|
-
|
|
30750
|
+
if (hFlip) {
|
|
30751
|
+
if (vFlip) rotation += 2;
|
|
30752
|
+
else {
|
|
30753
|
+
transformations.push("translate(" + (box.width + box.left).toString() + " " + (0 - box.top).toString() + ")");
|
|
30754
|
+
transformations.push("scale(-1 1)");
|
|
30755
|
+
box.top = box.left = 0;
|
|
30756
|
+
}
|
|
30757
|
+
} else if (vFlip) {
|
|
30741
30758
|
transformations.push("translate(" + (0 - box.left).toString() + " " + (box.height + box.top).toString() + ")");
|
|
30742
30759
|
transformations.push("scale(1 -1)");
|
|
30743
30760
|
box.top = box.left = 0;
|
|
@@ -30756,7 +30773,6 @@ function iconToSVG(icon2, customisations) {
|
|
|
30756
30773
|
case 3:
|
|
30757
30774
|
tempValue = box.width / 2 + box.left;
|
|
30758
30775
|
transformations.unshift("rotate(-90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
30759
|
-
break;
|
|
30760
30776
|
}
|
|
30761
30777
|
if (rotation % 2 === 1) {
|
|
30762
30778
|
if (box.left !== box.top) {
|
|
@@ -31647,7 +31663,7 @@ function mergeWithDeep(target, source, merge6, stack) {
|
|
|
31647
31663
|
stack.set(source, target);
|
|
31648
31664
|
if (Array.isArray(source)) {
|
|
31649
31665
|
source = source.slice();
|
|
31650
|
-
for (let i4 = 0; i4 < source.length; i4++)
|
|
31666
|
+
for (let i4 = 0; i4 < source.length; i4++) if (!(i4 in source)) source[i4] = void 0;
|
|
31651
31667
|
}
|
|
31652
31668
|
const sourceKeys = [...Object.keys(source), ...getSymbols(source)];
|
|
31653
31669
|
for (let i4 = 0; i4 < sourceKeys.length; i4++) {
|
|
@@ -186041,7 +186057,7 @@ export {
|
|
|
186041
186057
|
/*! Bundled license information:
|
|
186042
186058
|
|
|
186043
186059
|
dompurify/dist/purify.es.mjs:
|
|
186044
|
-
(*! @license DOMPurify 3.4.
|
|
186060
|
+
(*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE *)
|
|
186045
186061
|
|
|
186046
186062
|
lodash-es/lodash.js:
|
|
186047
186063
|
(**
|
|
@@ -16438,7 +16438,7 @@ class Interpolator {
|
|
|
16438
16438
|
interpolationkey: match[1].trim()
|
|
16439
16439
|
}), value.trim());
|
|
16440
16440
|
}
|
|
16441
|
-
str = str.replace(match[0], value);
|
|
16441
|
+
str = str.replace(match[0], regexSafe(makeString$1(value)));
|
|
16442
16442
|
this.regexp.lastIndex = 0;
|
|
16443
16443
|
}
|
|
16444
16444
|
return str;
|
|
@@ -69002,4 +69002,4 @@ var yaml = /*#__PURE__*/Object.freeze({
|
|
|
69002
69002
|
});
|
|
69003
69003
|
|
|
69004
69004
|
export { HighlightJS as H, MarkdownItCallable as M, Ze$b as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, strFromU8 as g, closest as h, distance as i, fm$3 as j, isCI as k, cliProgress as l, moduleImporter as m, tinylr as n, createInstance as o, fse as p, inter as q, runAsWorker as r, strToU8 as s, ts$9 as t, watch$1 as w, zlibSync as z };
|
|
69005
|
-
//# sourceMappingURL=vendor-
|
|
69005
|
+
//# sourceMappingURL=vendor-CxVzCwEN.mjs.map
|