@forsakringskassan/docs-generator 3.0.0 → 3.0.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.
@@ -17290,11 +17290,15 @@ function keysFromSelector(selector, opts) {
17290
17290
  } = selector(createProxy());
17291
17291
  const keySeparator = opts?.keySeparator ?? '.';
17292
17292
  const nsSeparator = opts?.nsSeparator ?? ':';
17293
+ const strict = opts?.enableSelector === 'strict';
17293
17294
  if (path.length > 1 && nsSeparator) {
17294
17295
  const ns = opts?.ns;
17295
- const nsArray = Array.isArray(ns) ? ns : null;
17296
- if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {
17297
- return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
17296
+ const nsList = strict ? Array.isArray(ns) ? ns : ns ? [ns] : null : Array.isArray(ns) ? ns : null;
17297
+ if (nsList) {
17298
+ const candidates = strict ? nsList : nsList.length > 1 ? nsList.slice(1) : [];
17299
+ if (candidates.includes(path[0])) {
17300
+ return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
17301
+ }
17298
17302
  }
17299
17303
  }
17300
17304
  return path.join(keySeparator);
@@ -18493,6 +18497,7 @@ const get$1 = () => ({
18493
18497
  nsSeparator: ':',
18494
18498
  pluralSeparator: '_',
18495
18499
  contextSeparator: '_',
18500
+ enableSelector: false,
18496
18501
  partialBundledLanguages: false,
18497
18502
  saveMissing: false,
18498
18503
  updateMissing: false,
@@ -69922,5 +69927,5 @@ var typescript = /*#__PURE__*/Object.freeze({
69922
69927
  parsers: ld
69923
69928
  });
69924
69929
 
69925
- export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, closest as g, distance as h, fm$2 as i, isCI as j, cliProgress as k, tinylr as l, moduleImporter as m, createInstance as n, fse as o, inter as p, runAsWorker as r, ts$6 as t, watch$1 as w };
69926
- //# sourceMappingURL=vendor-B7bJ2okl.mjs.map
69930
+ export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, closest as a, createInstance as b, cliProgress as c, createSyncFn as d, createTwoFilesPatch$1 as e, dedent$1 as f, deflist_plugin as g, distance as h, fm$2 as i, format2 as j, fse as k, inter as l, isCI as m, moduleImporter as n, runAsWorker as o, ts$6 as p, resolveConfig as r, tinylr as t, watch$1 as w };
69931
+ //# sourceMappingURL=vendor-CyiP4ufo.mjs.map