@forsakringskassan/docs-generator 2.29.1 → 2.29.2
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-xNUEILpa.mjs → create-markdown-renderer-B7-jbpT6.mjs} +2 -2
- package/dist/{create-markdown-renderer-xNUEILpa.mjs.map → create-markdown-renderer-B7-jbpT6.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/{vendor-CUZpvssc.mjs → vendor-xg15tfEs.mjs} +18 -9
- package/dist/vendor-xg15tfEs.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/vendor-CUZpvssc.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ const require = $createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import fs from 'node:fs/promises';
|
|
6
6
|
import path from 'node:path/posix';
|
|
7
|
-
import { g as globSync, m as minimatch, M as MarkdownIt, d as dedent, b as closest, e as distance, f as fm, i as isCI, h as glob, j as moduleImporter, k as cliProgress, t as tinylr, w as watch, l as createInstance, n as fse } from './vendor-
|
|
8
|
-
import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as exampleWorkerUrl, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-
|
|
7
|
+
import { g as globSync, m as minimatch, M as MarkdownIt, d as dedent, b as closest, e as distance, f as fm, i as isCI, h as glob, j as moduleImporter, k as cliProgress, t as tinylr, w as watch, l as createInstance, n as fse } from './vendor-xg15tfEs.mjs';
|
|
8
|
+
import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as exampleWorkerUrl, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-B7-jbpT6.mjs';
|
|
9
9
|
import path$1 from 'node:path';
|
|
10
10
|
import require$$1 from 'crypto';
|
|
11
11
|
import 'node:crypto';
|
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-B7-jbpT6.mjs';
|
|
6
|
+
import './vendor-xg15tfEs.mjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'fs';
|
|
@@ -24448,12 +24448,15 @@ class Translator extends EventEmitter {
|
|
|
24448
24448
|
if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
24449
24449
|
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
24450
24450
|
}
|
|
24451
|
-
if (typeof
|
|
24451
|
+
if (typeof opt === 'object') opt = {
|
|
24452
24452
|
...opt
|
|
24453
24453
|
};
|
|
24454
24454
|
if (!opt) opt = {};
|
|
24455
24455
|
if (keys == null) return '';
|
|
24456
|
-
if (typeof keys === 'function') keys = keysFromSelector(keys,
|
|
24456
|
+
if (typeof keys === 'function') keys = keysFromSelector(keys, {
|
|
24457
|
+
...this.options,
|
|
24458
|
+
...opt
|
|
24459
|
+
});
|
|
24457
24460
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
24458
24461
|
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
24459
24462
|
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
@@ -25945,11 +25948,17 @@ class I18n extends EventEmitter {
|
|
|
25945
25948
|
let resultKey;
|
|
25946
25949
|
if (o.keyPrefix && Array.isArray(key)) {
|
|
25947
25950
|
resultKey = key.map(k => {
|
|
25948
|
-
if (typeof k === 'function') k = keysFromSelector(k,
|
|
25951
|
+
if (typeof k === 'function') k = keysFromSelector(k, {
|
|
25952
|
+
...this.options,
|
|
25953
|
+
...opts
|
|
25954
|
+
});
|
|
25949
25955
|
return `${o.keyPrefix}${keySeparator}${k}`;
|
|
25950
25956
|
});
|
|
25951
25957
|
} else {
|
|
25952
|
-
if (typeof key === 'function') key = keysFromSelector(key,
|
|
25958
|
+
if (typeof key === 'function') key = keysFromSelector(key, {
|
|
25959
|
+
...this.options,
|
|
25960
|
+
...opts
|
|
25961
|
+
});
|
|
25953
25962
|
resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
|
|
25954
25963
|
}
|
|
25955
25964
|
return this.t(resultKey, o);
|
|
@@ -27365,11 +27374,11 @@ function requireFormatter () {
|
|
|
27365
27374
|
return formatter;
|
|
27366
27375
|
}
|
|
27367
27376
|
|
|
27368
|
-
var options
|
|
27377
|
+
var options;
|
|
27369
27378
|
var hasRequiredOptions;
|
|
27370
27379
|
|
|
27371
27380
|
function requireOptions () {
|
|
27372
|
-
if (hasRequiredOptions) return options
|
|
27381
|
+
if (hasRequiredOptions) return options;
|
|
27373
27382
|
hasRequiredOptions = 1;
|
|
27374
27383
|
// utility to merge defaults
|
|
27375
27384
|
function mergeOption(v, defaultValue){
|
|
@@ -27380,7 +27389,7 @@ function requireOptions () {
|
|
|
27380
27389
|
}
|
|
27381
27390
|
}
|
|
27382
27391
|
|
|
27383
|
-
options
|
|
27392
|
+
options = {
|
|
27384
27393
|
// set global options
|
|
27385
27394
|
parse: function parse(rawOptions, preset){
|
|
27386
27395
|
|
|
@@ -27481,7 +27490,7 @@ function requireOptions () {
|
|
|
27481
27490
|
return options;
|
|
27482
27491
|
}
|
|
27483
27492
|
};
|
|
27484
|
-
return options
|
|
27493
|
+
return options;
|
|
27485
27494
|
}
|
|
27486
27495
|
|
|
27487
27496
|
var genericBar;
|
|
@@ -56142,4 +56151,4 @@ var srcExports = requireSrc();
|
|
|
56142
56151
|
var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
56143
56152
|
|
|
56144
56153
|
export { HighlightJS as H, MarkdownIt as M, deflist_plugin as a, closest as b, createTwoFilesPatch as c, dedent as d, distance as e, fm as f, globSync as g, glob as h, isCI as i, moduleImporter as j, cliProgress as k, createInstance as l, minimatch as m, fse as n, tinylr as t, watch$1 as w };
|
|
56145
|
-
//# sourceMappingURL=vendor-
|
|
56154
|
+
//# sourceMappingURL=vendor-xg15tfEs.mjs.map
|