@forsakringskassan/docs-generator 3.23.0 → 3.23.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-Dg1icK2a.mjs → create-markdown-renderer-B3_eTszh.mjs} +3 -3
- package/dist/{create-markdown-renderer-Dg1icK2a.mjs.map → create-markdown-renderer-B3_eTszh.mjs.map} +1 -1
- package/dist/{format-code.worker-BK7y5JJw.mjs → format-code.worker-CZVkKuzR.mjs} +2 -2
- package/dist/{format-code.worker-BK7y5JJw.mjs.map → format-code.worker-CZVkKuzR.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime-internal.mjs +264 -275
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-U53saQGg.mjs → vendor-DBCaYx3y.mjs} +77 -27
- package/dist/{vendor-U53saQGg.mjs.map → vendor-DBCaYx3y.mjs.map} +1 -1
- package/package.json +2 -2
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -15917,7 +15917,7 @@ class PluralResolver {
|
|
|
15917
15917
|
|
|
15918
15918
|
const deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {
|
|
15919
15919
|
let path = getPathWithDefaults(data, defaultData, key);
|
|
15920
|
-
if (
|
|
15920
|
+
if (path == null && ignoreJSONStructure && isString(key)) {
|
|
15921
15921
|
path = deepFind(data, key, keySeparator);
|
|
15922
15922
|
if (path === undefined) path = deepFind(defaultData, key, keySeparator);
|
|
15923
15923
|
}
|
|
@@ -17007,7 +17007,12 @@ class I18n extends EventEmitter {
|
|
|
17007
17007
|
}
|
|
17008
17008
|
cloneInstance(options = {}, callback = noop$1) {
|
|
17009
17009
|
const forkResourceStore = options.forkResourceStore;
|
|
17010
|
-
if (forkResourceStore)
|
|
17010
|
+
if (forkResourceStore) {
|
|
17011
|
+
options = {
|
|
17012
|
+
...options
|
|
17013
|
+
};
|
|
17014
|
+
delete options.forkResourceStore;
|
|
17015
|
+
}
|
|
17011
17016
|
const mergedOptions = {
|
|
17012
17017
|
...this.options,
|
|
17013
17018
|
preload: false,
|
|
@@ -48281,7 +48286,8 @@ function requireFormats () {
|
|
|
48281
48286
|
|
|
48282
48287
|
var Format = {
|
|
48283
48288
|
RFC1738: 'RFC1738',
|
|
48284
|
-
RFC3986: 'RFC3986'
|
|
48289
|
+
RFC3986: 'RFC3986',
|
|
48290
|
+
WHATWG: 'WHATWG'
|
|
48285
48291
|
};
|
|
48286
48292
|
|
|
48287
48293
|
formats = {
|
|
@@ -48292,10 +48298,14 @@ function requireFormats () {
|
|
|
48292
48298
|
},
|
|
48293
48299
|
RFC3986: function (value) {
|
|
48294
48300
|
return String(value);
|
|
48301
|
+
},
|
|
48302
|
+
WHATWG: function (value) {
|
|
48303
|
+
return replace.call(value, percentTwenties, '+');
|
|
48295
48304
|
}
|
|
48296
48305
|
},
|
|
48297
48306
|
RFC1738: Format.RFC1738,
|
|
48298
|
-
RFC3986: Format.RFC3986
|
|
48307
|
+
RFC3986: Format.RFC3986,
|
|
48308
|
+
WHATWG: Format.WHATWG
|
|
48299
48309
|
};
|
|
48300
48310
|
return formats;
|
|
48301
48311
|
}
|
|
@@ -48417,6 +48427,17 @@ function requireUtils () {
|
|
|
48417
48427
|
return max;
|
|
48418
48428
|
};
|
|
48419
48429
|
|
|
48430
|
+
// parsed arrays stay sparse until `compact`, so `length` would count the holes left by indices like `a[19]`
|
|
48431
|
+
var countElements = function countElements(arr) {
|
|
48432
|
+
var count = 0;
|
|
48433
|
+
for (var i = 0; i < arr.length; ++i) {
|
|
48434
|
+
if (has.call(arr, i)) {
|
|
48435
|
+
count += 1;
|
|
48436
|
+
}
|
|
48437
|
+
}
|
|
48438
|
+
return count;
|
|
48439
|
+
};
|
|
48440
|
+
|
|
48420
48441
|
var limitedPair = function limitedPair(first, second, options) {
|
|
48421
48442
|
var pair = [first, second];
|
|
48422
48443
|
if (options && typeof options.arrayLimit === 'number' && pair.length > options.arrayLimit) {
|
|
@@ -48437,7 +48458,7 @@ function requireUtils () {
|
|
|
48437
48458
|
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
48438
48459
|
if (isArray(target)) {
|
|
48439
48460
|
var nextIndex = target.length;
|
|
48440
|
-
if (options && typeof options.arrayLimit === 'number' &&
|
|
48461
|
+
if (options && typeof options.arrayLimit === 'number' && countElements(target) >= options.arrayLimit) {
|
|
48441
48462
|
if (options.throwOnLimitExceeded) {
|
|
48442
48463
|
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
48443
48464
|
}
|
|
@@ -48522,7 +48543,7 @@ function requireUtils () {
|
|
|
48522
48543
|
target[i] = item;
|
|
48523
48544
|
}
|
|
48524
48545
|
});
|
|
48525
|
-
if (options && typeof options.arrayLimit === 'number' && target
|
|
48546
|
+
if (options && typeof options.arrayLimit === 'number' && countElements(target) > options.arrayLimit) {
|
|
48526
48547
|
if (options.throwOnLimitExceeded) {
|
|
48527
48548
|
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
48528
48549
|
}
|
|
@@ -48683,11 +48704,12 @@ function requireUtils () {
|
|
|
48683
48704
|
c === 0x2D // -
|
|
48684
48705
|
|| c === 0x2E // .
|
|
48685
48706
|
|| c === 0x5F // _
|
|
48686
|
-
|| c === 0x7E // ~
|
|
48707
|
+
|| (c === 0x7E && format !== formats.WHATWG) // ~
|
|
48687
48708
|
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
48688
48709
|
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
48689
48710
|
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
48690
48711
|
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
48712
|
+
|| (format === formats.WHATWG && c === 0x2A) // *
|
|
48691
48713
|
) {
|
|
48692
48714
|
arr[arr.length] = segment.charAt(i);
|
|
48693
48715
|
continue;
|
|
@@ -48711,13 +48733,19 @@ function requireUtils () {
|
|
|
48711
48733
|
continue;
|
|
48712
48734
|
}
|
|
48713
48735
|
|
|
48714
|
-
i
|
|
48715
|
-
c
|
|
48736
|
+
var next = segment.charCodeAt(i + 1);
|
|
48737
|
+
if (c <= 0xDBFF && next >= 0xDC00 && next <= 0xDFFF) {
|
|
48738
|
+
i += 1;
|
|
48739
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (next & 0x3FF));
|
|
48716
48740
|
|
|
48717
|
-
|
|
48718
|
-
|
|
48719
|
-
|
|
48720
|
-
|
|
48741
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
48742
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
48743
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
48744
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
48745
|
+
} else {
|
|
48746
|
+
// a lone surrogate has no UTF-8 encoding; like `URLSearchParams` and `TextEncoder`, emit U+FFFD
|
|
48747
|
+
arr[arr.length] = '%EF%BF%BD';
|
|
48748
|
+
}
|
|
48721
48749
|
}
|
|
48722
48750
|
|
|
48723
48751
|
out += arr.join('');
|
|
@@ -48815,6 +48843,7 @@ function requireUtils () {
|
|
|
48815
48843
|
markOverflow: markOverflow,
|
|
48816
48844
|
maybeMap: maybeMap,
|
|
48817
48845
|
merge: merge,
|
|
48846
|
+
setProperty: setProperty,
|
|
48818
48847
|
toCoercible: toCoercible
|
|
48819
48848
|
};
|
|
48820
48849
|
return utils$1;
|
|
@@ -48993,7 +49022,7 @@ function requireStringify () {
|
|
|
48993
49022
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
48994
49023
|
|
|
48995
49024
|
if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
48996
|
-
return adjustedPrefix + '[]';
|
|
49025
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, 'key', format) : adjustedPrefix) + '[]';
|
|
48997
49026
|
}
|
|
48998
49027
|
|
|
48999
49028
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
@@ -49127,7 +49156,9 @@ function requireStringify () {
|
|
|
49127
49156
|
filter = options.filter;
|
|
49128
49157
|
obj = filter('', obj);
|
|
49129
49158
|
} else if (isArray(options.filter)) {
|
|
49130
|
-
|
|
49159
|
+
// a copy: `sort` below must not reorder the caller's array, and nested
|
|
49160
|
+
// levels take their key order from the sorted copy
|
|
49161
|
+
filter = options.filter.slice();
|
|
49131
49162
|
objKeys = filter;
|
|
49132
49163
|
}
|
|
49133
49164
|
|
|
@@ -49174,7 +49205,7 @@ function requireStringify () {
|
|
|
49174
49205
|
options.skipNulls,
|
|
49175
49206
|
options.encodeDotInKeys,
|
|
49176
49207
|
options.encode ? options.encoder : null,
|
|
49177
|
-
|
|
49208
|
+
filter,
|
|
49178
49209
|
options.sort,
|
|
49179
49210
|
options.allowDots,
|
|
49180
49211
|
options.serializeDate,
|
|
@@ -49219,6 +49250,7 @@ function requireParse () {
|
|
|
49219
49250
|
var has = Object.prototype.hasOwnProperty;
|
|
49220
49251
|
var isArray = Array.isArray;
|
|
49221
49252
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
49253
|
+
var fromCharCode = String.fromCharCode;
|
|
49222
49254
|
|
|
49223
49255
|
var isPlainContainer = function isPlainContainer(value) {
|
|
49224
49256
|
if (!value || typeof value !== 'object') {
|
|
@@ -49252,15 +49284,16 @@ function requireParse () {
|
|
|
49252
49284
|
var keys = Object.keys(source);
|
|
49253
49285
|
for (var j = 0; j < keys.length; ++j) {
|
|
49254
49286
|
var value = source[keys[j]];
|
|
49287
|
+
// `target[key] =` would invoke the `__proto__` setter. `setProperty` stores that key as data.
|
|
49255
49288
|
if (isPlainContainer(value)) {
|
|
49256
49289
|
if (!copies.has(value)) {
|
|
49257
49290
|
var copy = emptyCopyOf(value);
|
|
49258
49291
|
copies.set(value, copy);
|
|
49259
49292
|
queue[queue.length] = { source: value, target: copy };
|
|
49260
49293
|
}
|
|
49261
|
-
target
|
|
49294
|
+
utils.setProperty(target, keys[j], copies.get(value));
|
|
49262
49295
|
} else {
|
|
49263
|
-
target
|
|
49296
|
+
utils.setProperty(target, keys[j], value);
|
|
49264
49297
|
}
|
|
49265
49298
|
}
|
|
49266
49299
|
}
|
|
@@ -49295,7 +49328,13 @@ function requireParse () {
|
|
|
49295
49328
|
|
|
49296
49329
|
var interpretNumericEntities = function (str) {
|
|
49297
49330
|
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
49298
|
-
|
|
49331
|
+
var c = parseInt(numberStr, 10);
|
|
49332
|
+
if (c > 0xFFFF && c <= 0x10FFFF) {
|
|
49333
|
+
// `String.fromCodePoint` is not available in every supported engine, so build the surrogate pair by hand
|
|
49334
|
+
c -= 0x10000;
|
|
49335
|
+
return fromCharCode(0xD800 | (c >> 10), 0xDC00 | (c & 0x3FF));
|
|
49336
|
+
}
|
|
49337
|
+
return fromCharCode(c);
|
|
49299
49338
|
});
|
|
49300
49339
|
};
|
|
49301
49340
|
|
|
@@ -49315,7 +49354,11 @@ function requireParse () {
|
|
|
49315
49354
|
return val.split(',');
|
|
49316
49355
|
}
|
|
49317
49356
|
|
|
49318
|
-
if (
|
|
49357
|
+
if (
|
|
49358
|
+
options.throwOnLimitExceeded
|
|
49359
|
+
&& currentArrayLength >= options.arrayLimit
|
|
49360
|
+
&& currentArrayLength > 0
|
|
49361
|
+
) {
|
|
49319
49362
|
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
49320
49363
|
}
|
|
49321
49364
|
|
|
@@ -49391,7 +49434,7 @@ function requireParse () {
|
|
|
49391
49434
|
parseArrayValue(
|
|
49392
49435
|
part.slice(pos + 1),
|
|
49393
49436
|
options,
|
|
49394
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
49437
|
+
isArray(obj[key]) && (options.duplicates === 'combine' || isEmptyBracketKey) ? obj[key].length : 0
|
|
49395
49438
|
),
|
|
49396
49439
|
function (encodedVal) {
|
|
49397
49440
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
@@ -49401,7 +49444,9 @@ function requireParse () {
|
|
|
49401
49444
|
}
|
|
49402
49445
|
|
|
49403
49446
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
49404
|
-
val =
|
|
49447
|
+
val = utils.maybeMap(val, function (value) {
|
|
49448
|
+
return value ? interpretNumericEntities(String(value)) : value;
|
|
49449
|
+
});
|
|
49405
49450
|
}
|
|
49406
49451
|
|
|
49407
49452
|
if (isEmptyBracketKey) {
|
|
@@ -49431,6 +49476,10 @@ function requireParse () {
|
|
|
49431
49476
|
return obj;
|
|
49432
49477
|
};
|
|
49433
49478
|
|
|
49479
|
+
var stripWrappingBrackets = function stripWrappingBrackets(key) {
|
|
49480
|
+
return key.charAt(0) === '[' && key.charAt(key.length - 1) === ']' ? key.slice(1, -1) : key;
|
|
49481
|
+
};
|
|
49482
|
+
|
|
49434
49483
|
var parseObject = function (chain, val, options, valuesParsed) {
|
|
49435
49484
|
var currentArrayLength = 0;
|
|
49436
49485
|
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
@@ -49461,8 +49510,8 @@ function requireParse () {
|
|
|
49461
49510
|
}
|
|
49462
49511
|
} else {
|
|
49463
49512
|
obj = options.plainObjects ? { __proto__: null } : {};
|
|
49464
|
-
var cleanRoot =
|
|
49465
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/
|
|
49513
|
+
var cleanRoot = stripWrappingBrackets(root);
|
|
49514
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, '.') : cleanRoot;
|
|
49466
49515
|
var index = parseInt(decodedRoot, 10);
|
|
49467
49516
|
var isValidArrayIndex = !isNaN(index)
|
|
49468
49517
|
&& root !== decodedRoot
|
|
@@ -49470,7 +49519,7 @@ function requireParse () {
|
|
|
49470
49519
|
&& index >= 0
|
|
49471
49520
|
&& options.parseArrays;
|
|
49472
49521
|
if (!options.parseArrays && decodedRoot === '') {
|
|
49473
|
-
obj =
|
|
49522
|
+
obj[0] = leaf;
|
|
49474
49523
|
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
49475
49524
|
obj = [];
|
|
49476
49525
|
obj[index] = leaf;
|
|
@@ -49534,7 +49583,8 @@ function requireParse () {
|
|
|
49534
49583
|
|
|
49535
49584
|
// depth <= 0 keeps the whole key as one segment
|
|
49536
49585
|
if (options.depth <= 0) {
|
|
49537
|
-
|
|
49586
|
+
// `parseObject` strips one wrapping bracket pair, so guard the key it will store ("[toString]" -> "toString")
|
|
49587
|
+
if (!options.plainObjects && has.call(Object.prototype, stripWrappingBrackets(key))) {
|
|
49538
49588
|
if (!options.allowPrototypes) {
|
|
49539
49589
|
return;
|
|
49540
49590
|
}
|
|
@@ -71110,4 +71160,4 @@ var yaml = /*#__PURE__*/Object.freeze({
|
|
|
71110
71160
|
});
|
|
71111
71161
|
|
|
71112
71162
|
export { HighlightJS as H, MarkdownItCallable as M, deflist_plugin as a, fm$3 as b, createTwoFilesPatch$1 as c, dedent$1 as d, strFromU8 as e, format2 as f, closest as g, distance as h, isCI as i, cliProgress as j, createInstance as k, fse as l, moduleImporter as m, inter as n, resolveConfig as r, strToU8 as s, tinylr as t, watch$1 as w, zlibSync as z };
|
|
71113
|
-
//# sourceMappingURL=vendor-
|
|
71163
|
+
//# sourceMappingURL=vendor-DBCaYx3y.mjs.map
|