@forsakringskassan/docs-generator 2.21.3 → 2.22.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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.1"
8
+ "packageVersion": "7.52.2"
9
9
  }
10
10
  ]
11
11
  }
@@ -10618,6 +10618,7 @@ class LRUCache {
10618
10618
  #max;
10619
10619
  #maxSize;
10620
10620
  #dispose;
10621
+ #onInsert;
10621
10622
  #disposeAfter;
10622
10623
  #fetchMethod;
10623
10624
  #memoMethod;
@@ -10699,6 +10700,7 @@ class LRUCache {
10699
10700
  #hasDispose;
10700
10701
  #hasFetchMethod;
10701
10702
  #hasDisposeAfter;
10703
+ #hasOnInsert;
10702
10704
  /**
10703
10705
  * Do not call this method unless you need to inspect the
10704
10706
  * inner workings of the cache. If anything returned by this
@@ -10775,6 +10777,12 @@ class LRUCache {
10775
10777
  get dispose() {
10776
10778
  return this.#dispose;
10777
10779
  }
10780
+ /**
10781
+ * {@link LRUCache.OptionsBase.onInsert} (read-only)
10782
+ */
10783
+ get onInsert() {
10784
+ return this.#onInsert;
10785
+ }
10778
10786
  /**
10779
10787
  * {@link LRUCache.OptionsBase.disposeAfter} (read-only)
10780
10788
  */
@@ -10782,7 +10790,7 @@ class LRUCache {
10782
10790
  return this.#disposeAfter;
10783
10791
  }
10784
10792
  constructor(options) {
10785
- const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options;
10793
+ const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options;
10786
10794
  if (max !== 0 && !isPosInt(max)) {
10787
10795
  throw new TypeError('max option must be a nonnegative integer');
10788
10796
  }
@@ -10826,6 +10834,9 @@ class LRUCache {
10826
10834
  if (typeof dispose === 'function') {
10827
10835
  this.#dispose = dispose;
10828
10836
  }
10837
+ if (typeof onInsert === 'function') {
10838
+ this.#onInsert = onInsert;
10839
+ }
10829
10840
  if (typeof disposeAfter === 'function') {
10830
10841
  this.#disposeAfter = disposeAfter;
10831
10842
  this.#disposed = [];
@@ -10835,6 +10846,7 @@ class LRUCache {
10835
10846
  this.#disposed = undefined;
10836
10847
  }
10837
10848
  this.#hasDispose = !!this.#dispose;
10849
+ this.#hasOnInsert = !!this.#onInsert;
10838
10850
  this.#hasDisposeAfter = !!this.#disposeAfter;
10839
10851
  this.noDisposeOnSet = !!noDisposeOnSet;
10840
10852
  this.noUpdateTTL = !!noUpdateTTL;
@@ -11402,6 +11414,9 @@ class LRUCache {
11402
11414
  if (status)
11403
11415
  status.set = 'add';
11404
11416
  noUpdateTTL = false;
11417
+ if (this.#hasOnInsert) {
11418
+ this.#onInsert?.(v, k, 'add');
11419
+ }
11405
11420
  }
11406
11421
  else {
11407
11422
  // update
@@ -11443,6 +11458,9 @@ class LRUCache {
11443
11458
  else if (status) {
11444
11459
  status.set = 'update';
11445
11460
  }
11461
+ if (this.#hasOnInsert) {
11462
+ this.onInsert?.(v, k, v === oldVal ? 'update' : 'replace');
11463
+ }
11446
11464
  }
11447
11465
  if (ttl !== 0 && !this.#ttls) {
11448
11466
  this.#initializeTTLTracking();
@@ -51650,6 +51668,7 @@ function requireGetIntrinsic () {
51650
51668
  '%Error%': $Error,
51651
51669
  '%eval%': eval, // eslint-disable-line no-eval
51652
51670
  '%EvalError%': $EvalError,
51671
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
51653
51672
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
51654
51673
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
51655
51674
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
@@ -51954,10 +51973,11 @@ function requireCallBound () {
51954
51973
 
51955
51974
  /** @type {import('.')} */
51956
51975
  callBound = function callBoundIntrinsic(name, allowMissing) {
51957
- // eslint-disable-next-line no-extra-parens
51958
- var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
51976
+ /* eslint no-extra-parens: 0 */
51977
+
51978
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
51959
51979
  if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
51960
- return callBindBasic([intrinsic]);
51980
+ return callBindBasic(/** @type {const} */ ([intrinsic]));
51961
51981
  }
51962
51982
  return intrinsic;
51963
51983
  };
@@ -52255,7 +52275,7 @@ function requireUtils () {
52255
52275
  };
52256
52276
 
52257
52277
  var arrayToObject = function arrayToObject(source, options) {
52258
- var obj = options && options.plainObjects ? Object.create(null) : {};
52278
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
52259
52279
  for (var i = 0; i < source.length; ++i) {
52260
52280
  if (typeof source[i] !== 'undefined') {
52261
52281
  obj[i] = source[i];
@@ -52271,11 +52291,14 @@ function requireUtils () {
52271
52291
  return target;
52272
52292
  }
52273
52293
 
52274
- if (typeof source !== 'object') {
52294
+ if (typeof source !== 'object' && typeof source !== 'function') {
52275
52295
  if (isArray(target)) {
52276
52296
  target.push(source);
52277
52297
  } else if (target && typeof target === 'object') {
52278
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
52298
+ if (
52299
+ (options && (options.plainObjects || options.allowPrototypes))
52300
+ || !has.call(Object.prototype, source)
52301
+ ) {
52279
52302
  target[source] = true;
52280
52303
  }
52281
52304
  } else {
@@ -52329,7 +52352,7 @@ function requireUtils () {
52329
52352
  }, target);
52330
52353
  };
52331
52354
 
52332
- var decode = function (str, decoder, charset) {
52355
+ var decode = function (str, defaultDecoder, charset) {
52333
52356
  var strWithoutPlus = str.replace(/\+/g, ' ');
52334
52357
  if (charset === 'iso-8859-1') {
52335
52358
  // unescape never throws, no try...catch needed:
@@ -52528,11 +52551,13 @@ function requireStringify () {
52528
52551
  arrayFormat: 'indices',
52529
52552
  charset: 'utf-8',
52530
52553
  charsetSentinel: false,
52554
+ commaRoundTrip: false,
52531
52555
  delimiter: '&',
52532
52556
  encode: true,
52533
52557
  encodeDotInKeys: false,
52534
52558
  encoder: utils.encode,
52535
52559
  encodeValuesOnly: false,
52560
+ filter: void 0,
52536
52561
  format: defaultFormat,
52537
52562
  formatter: formats.formatters[defaultFormat],
52538
52563
  // deprecated
@@ -52644,7 +52669,7 @@ function requireStringify () {
52644
52669
  objKeys = sort ? keys.sort(sort) : keys;
52645
52670
  }
52646
52671
 
52647
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
52672
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
52648
52673
 
52649
52674
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
52650
52675
 
@@ -52654,13 +52679,15 @@ function requireStringify () {
52654
52679
 
52655
52680
  for (var j = 0; j < objKeys.length; ++j) {
52656
52681
  var key = objKeys[j];
52657
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
52682
+ var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
52683
+ ? key.value
52684
+ : obj[key];
52658
52685
 
52659
52686
  if (skipNulls && value === null) {
52660
52687
  continue;
52661
52688
  }
52662
52689
 
52663
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
52690
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
52664
52691
  var keyPrefix = isArray(obj)
52665
52692
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
52666
52693
  : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
@@ -52751,7 +52778,7 @@ function requireStringify () {
52751
52778
  arrayFormat: arrayFormat,
52752
52779
  charset: charset,
52753
52780
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
52754
- commaRoundTrip: opts.commaRoundTrip,
52781
+ commaRoundTrip: !!opts.commaRoundTrip,
52755
52782
  delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
52756
52783
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
52757
52784
  encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -52802,12 +52829,13 @@ function requireStringify () {
52802
52829
  var sideChannel = getSideChannel();
52803
52830
  for (var i = 0; i < objKeys.length; ++i) {
52804
52831
  var key = objKeys[i];
52832
+ var value = obj[key];
52805
52833
 
52806
- if (options.skipNulls && obj[key] === null) {
52834
+ if (options.skipNulls && value === null) {
52807
52835
  continue;
52808
52836
  }
52809
52837
  pushToArray(keys, stringify(
52810
- obj[key],
52838
+ value,
52811
52839
  key,
52812
52840
  generateArrayPrefix,
52813
52841
  commaRoundTrip,
@@ -52878,7 +52906,8 @@ function requireParse () {
52878
52906
  parseArrays: true,
52879
52907
  plainObjects: false,
52880
52908
  strictDepth: false,
52881
- strictNullHandling: false
52909
+ strictNullHandling: false,
52910
+ throwOnLimitExceeded: false
52882
52911
  };
52883
52912
 
52884
52913
  var interpretNumericEntities = function (str) {
@@ -52887,11 +52916,15 @@ function requireParse () {
52887
52916
  });
52888
52917
  };
52889
52918
 
52890
- var parseArrayValue = function (val, options) {
52919
+ var parseArrayValue = function (val, options, currentArrayLength) {
52891
52920
  if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
52892
52921
  return val.split(',');
52893
52922
  }
52894
52923
 
52924
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
52925
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
52926
+ }
52927
+
52895
52928
  return val;
52896
52929
  };
52897
52930
 
@@ -52910,8 +52943,17 @@ function requireParse () {
52910
52943
 
52911
52944
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
52912
52945
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
52946
+
52913
52947
  var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
52914
- var parts = cleanStr.split(options.delimiter, limit);
52948
+ var parts = cleanStr.split(
52949
+ options.delimiter,
52950
+ options.throwOnLimitExceeded ? limit + 1 : limit
52951
+ );
52952
+
52953
+ if (options.throwOnLimitExceeded && parts.length > limit) {
52954
+ throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
52955
+ }
52956
+
52915
52957
  var skipIndex = -1; // Keep track of where the utf8 sentinel was found
52916
52958
  var i;
52917
52959
 
@@ -52939,14 +52981,20 @@ function requireParse () {
52939
52981
  var bracketEqualsPos = part.indexOf(']=');
52940
52982
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
52941
52983
 
52942
- var key, val;
52984
+ var key;
52985
+ var val;
52943
52986
  if (pos === -1) {
52944
52987
  key = options.decoder(part, defaults.decoder, charset, 'key');
52945
52988
  val = options.strictNullHandling ? null : '';
52946
52989
  } else {
52947
52990
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
52991
+
52948
52992
  val = utils.maybeMap(
52949
- parseArrayValue(part.slice(pos + 1), options),
52993
+ parseArrayValue(
52994
+ part.slice(pos + 1),
52995
+ options,
52996
+ isArray(obj[key]) ? obj[key].length : 0
52997
+ ),
52950
52998
  function (encodedVal) {
52951
52999
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
52952
53000
  }
@@ -52954,7 +53002,7 @@ function requireParse () {
52954
53002
  }
52955
53003
 
52956
53004
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
52957
- val = interpretNumericEntities(val);
53005
+ val = interpretNumericEntities(String(val));
52958
53006
  }
52959
53007
 
52960
53008
  if (part.indexOf('[]=') > -1) {
@@ -52973,7 +53021,13 @@ function requireParse () {
52973
53021
  };
52974
53022
 
52975
53023
  var parseObject = function (chain, val, options, valuesParsed) {
52976
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
53024
+ var currentArrayLength = 0;
53025
+ if (chain.length > 0 && chain[chain.length - 1] === '[]') {
53026
+ var parentKey = chain.slice(0, -1).join('');
53027
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
53028
+ }
53029
+
53030
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
52977
53031
 
52978
53032
  for (var i = chain.length - 1; i >= 0; --i) {
52979
53033
  var obj;
@@ -52982,9 +53036,9 @@ function requireParse () {
52982
53036
  if (root === '[]' && options.parseArrays) {
52983
53037
  obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
52984
53038
  ? []
52985
- : [].concat(leaf);
53039
+ : utils.combine([], leaf);
52986
53040
  } else {
52987
- obj = options.plainObjects ? Object.create(null) : {};
53041
+ obj = options.plainObjects ? { __proto__: null } : {};
52988
53042
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
52989
53043
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
52990
53044
  var index = parseInt(decodedRoot, 10);
@@ -53087,6 +53141,11 @@ function requireParse () {
53087
53141
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
53088
53142
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
53089
53143
  }
53144
+
53145
+ if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
53146
+ throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
53147
+ }
53148
+
53090
53149
  var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
53091
53150
 
53092
53151
  var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
@@ -53118,7 +53177,8 @@ function requireParse () {
53118
53177
  parseArrays: opts.parseArrays !== false,
53119
53178
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
53120
53179
  strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
53121
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
53180
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
53181
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
53122
53182
  };
53123
53183
  };
53124
53184
 
@@ -53126,11 +53186,11 @@ function requireParse () {
53126
53186
  var options = normalizeParseOptions(opts);
53127
53187
 
53128
53188
  if (str === '' || str === null || typeof str === 'undefined') {
53129
- return options.plainObjects ? Object.create(null) : {};
53189
+ return options.plainObjects ? { __proto__: null } : {};
53130
53190
  }
53131
53191
 
53132
53192
  var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
53133
- var obj = options.plainObjects ? Object.create(null) : {};
53193
+ var obj = options.plainObjects ? { __proto__: null } : {};
53134
53194
 
53135
53195
  // Iterate over the keys and setup the new object
53136
53196
 
@@ -53663,4 +53723,4 @@ exports.minimatch = minimatch;
53663
53723
  exports.spawn = spawn;
53664
53724
  exports.tinylr = tinylr;
53665
53725
  exports.watch = watch$1;
53666
- //# sourceMappingURL=vendor-CLvDQIrx.js.map
53726
+ //# sourceMappingURL=vendor-BUiT5f0C.js.map