@diplodoc/cli 4.26.0 → 4.27.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.
package/build/index.js CHANGED
@@ -20896,11 +20896,11 @@ var require_create4 = __commonJS2({
20896
20896
  return types3;
20897
20897
  }
20898
20898
  function createTypeIterator(config2, reverse) {
20899
- const fields = config2.fields.slice();
20899
+ const fields2 = config2.fields.slice();
20900
20900
  const contextName = config2.context;
20901
20901
  const useContext = typeof contextName === "string";
20902
20902
  if (reverse) {
20903
- fields.reverse();
20903
+ fields2.reverse();
20904
20904
  }
20905
20905
  return function(node, context, walk, walkReducer) {
20906
20906
  let prevContextValue;
@@ -20908,7 +20908,7 @@ var require_create4 = __commonJS2({
20908
20908
  prevContextValue = context[contextName];
20909
20909
  context[contextName] = node;
20910
20910
  }
20911
- for (const field of fields) {
20911
+ for (const field of fields2) {
20912
20912
  const ref = node[field.name];
20913
20913
  if (!field.nullable || ref) {
20914
20914
  if (field.type === "list") {
@@ -23537,7 +23537,7 @@ var require_structure = __commonJS2({
23537
23537
  function isValidLocation(loc) {
23538
23538
  return Boolean(loc) && isValidNumber(loc.offset) && isValidNumber(loc.line) && isValidNumber(loc.column);
23539
23539
  }
23540
- function createNodeStructureChecker(type2, fields) {
23540
+ function createNodeStructureChecker(type2, fields2) {
23541
23541
  return function checkNode(node, warn) {
23542
23542
  if (!node || node.constructor !== Object) {
23543
23543
  return warn(node, "Type of node should be an Object");
@@ -23566,10 +23566,10 @@ var require_structure = __commonJS2({
23566
23566
  }
23567
23567
  }
23568
23568
  valid = false;
23569
- } else if (fields.hasOwnProperty(key)) {
23569
+ } else if (fields2.hasOwnProperty(key)) {
23570
23570
  valid = false;
23571
- for (let i = 0; !valid && i < fields[key].length; i++) {
23572
- const fieldType = fields[key][i];
23571
+ for (let i = 0; !valid && i < fields2[key].length; i++) {
23572
+ const fieldType = fields2[key][i];
23573
23573
  switch (fieldType) {
23574
23574
  case String:
23575
23575
  valid = typeof node[key] === "string";
@@ -23595,8 +23595,8 @@ var require_structure = __commonJS2({
23595
23595
  warn(node, "Bad value for `" + type2 + "." + key + "`");
23596
23596
  }
23597
23597
  }
23598
- for (const key in fields) {
23599
- if (hasOwnProperty3.call(fields, key) && hasOwnProperty3.call(node, key) === false) {
23598
+ for (const key in fields2) {
23599
+ if (hasOwnProperty3.call(fields2, key) && hasOwnProperty3.call(node, key) === false) {
23600
23600
  warn(node, "Field `" + type2 + "." + key + "` is missed");
23601
23601
  }
23602
23602
  }
@@ -23604,7 +23604,7 @@ var require_structure = __commonJS2({
23604
23604
  }
23605
23605
  function processStructure(name5, nodeType) {
23606
23606
  const structure = nodeType.structure;
23607
- const fields = {
23607
+ const fields2 = {
23608
23608
  type: String,
23609
23609
  loc: true
23610
23610
  };
@@ -23616,7 +23616,7 @@ var require_structure = __commonJS2({
23616
23616
  continue;
23617
23617
  }
23618
23618
  const docsTypes = [];
23619
- const fieldTypes = fields[key] = Array.isArray(structure[key]) ? structure[key].slice() : [structure[key]];
23619
+ const fieldTypes = fields2[key] = Array.isArray(structure[key]) ? structure[key].slice() : [structure[key]];
23620
23620
  for (let i = 0; i < fieldTypes.length; i++) {
23621
23621
  const fieldType = fieldTypes[i];
23622
23622
  if (fieldType === String || fieldType === Boolean) {
@@ -23635,7 +23635,7 @@ var require_structure = __commonJS2({
23635
23635
  }
23636
23636
  return {
23637
23637
  docs,
23638
- check: createNodeStructureChecker(name5, fields)
23638
+ check: createNodeStructureChecker(name5, fields2)
23639
23639
  };
23640
23640
  }
23641
23641
  function getStructureFromConfig(config2) {
@@ -41754,11 +41754,11 @@ var require_create9 = __commonJS2({
41754
41754
  return types3;
41755
41755
  }
41756
41756
  function createTypeIterator(config2, reverse) {
41757
- const fields = config2.fields.slice();
41757
+ const fields2 = config2.fields.slice();
41758
41758
  const contextName = config2.context;
41759
41759
  const useContext = typeof contextName === "string";
41760
41760
  if (reverse) {
41761
- fields.reverse();
41761
+ fields2.reverse();
41762
41762
  }
41763
41763
  return function(node, context, walk, walkReducer) {
41764
41764
  let prevContextValue;
@@ -41766,7 +41766,7 @@ var require_create9 = __commonJS2({
41766
41766
  prevContextValue = context[contextName];
41767
41767
  context[contextName] = node;
41768
41768
  }
41769
- for (const field of fields) {
41769
+ for (const field of fields2) {
41770
41770
  const ref = node[field.name];
41771
41771
  if (!field.nullable || ref) {
41772
41772
  if (field.type === "list") {
@@ -44360,7 +44360,7 @@ var require_structure2 = __commonJS2({
44360
44360
  function isValidLocation(loc) {
44361
44361
  return Boolean(loc) && isValidNumber(loc.offset) && isValidNumber(loc.line) && isValidNumber(loc.column);
44362
44362
  }
44363
- function createNodeStructureChecker(type2, fields) {
44363
+ function createNodeStructureChecker(type2, fields2) {
44364
44364
  return function checkNode(node, warn) {
44365
44365
  if (!node || node.constructor !== Object) {
44366
44366
  return warn(node, "Type of node should be an Object");
@@ -44389,10 +44389,10 @@ var require_structure2 = __commonJS2({
44389
44389
  }
44390
44390
  }
44391
44391
  valid = false;
44392
- } else if (fields.hasOwnProperty(key)) {
44392
+ } else if (fields2.hasOwnProperty(key)) {
44393
44393
  valid = false;
44394
- for (let i = 0; !valid && i < fields[key].length; i++) {
44395
- const fieldType = fields[key][i];
44394
+ for (let i = 0; !valid && i < fields2[key].length; i++) {
44395
+ const fieldType = fields2[key][i];
44396
44396
  switch (fieldType) {
44397
44397
  case String:
44398
44398
  valid = typeof node[key] === "string";
@@ -44418,8 +44418,8 @@ var require_structure2 = __commonJS2({
44418
44418
  warn(node, "Bad value for `" + type2 + "." + key + "`");
44419
44419
  }
44420
44420
  }
44421
- for (const key in fields) {
44422
- if (hasOwnProperty3.call(fields, key) && hasOwnProperty3.call(node, key) === false) {
44421
+ for (const key in fields2) {
44422
+ if (hasOwnProperty3.call(fields2, key) && hasOwnProperty3.call(node, key) === false) {
44423
44423
  warn(node, "Field `" + type2 + "." + key + "` is missed");
44424
44424
  }
44425
44425
  }
@@ -44427,7 +44427,7 @@ var require_structure2 = __commonJS2({
44427
44427
  }
44428
44428
  function processStructure(name5, nodeType) {
44429
44429
  const structure = nodeType.structure;
44430
- const fields = {
44430
+ const fields2 = {
44431
44431
  type: String,
44432
44432
  loc: true
44433
44433
  };
@@ -44439,7 +44439,7 @@ var require_structure2 = __commonJS2({
44439
44439
  continue;
44440
44440
  }
44441
44441
  const docsTypes = [];
44442
- const fieldTypes = fields[key] = Array.isArray(structure[key]) ? structure[key].slice() : [structure[key]];
44442
+ const fieldTypes = fields2[key] = Array.isArray(structure[key]) ? structure[key].slice() : [structure[key]];
44443
44443
  for (let i = 0; i < fieldTypes.length; i++) {
44444
44444
  const fieldType = fieldTypes[i];
44445
44445
  if (fieldType === String || fieldType === Boolean) {
@@ -44458,7 +44458,7 @@ var require_structure2 = __commonJS2({
44458
44458
  }
44459
44459
  return {
44460
44460
  docs,
44461
- check: createNodeStructureChecker(name5, fields)
44461
+ check: createNodeStructureChecker(name5, fields2)
44462
44462
  };
44463
44463
  }
44464
44464
  function getStructureFromConfig(config2) {
@@ -168287,14 +168287,14 @@ var require_uri_all = __commonJS2({
168287
168287
  var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
168288
168288
  var fieldCount = isLastFieldIPv4Address ? 7 : 8;
168289
168289
  var lastFieldsStart = lastFields.length - fieldCount;
168290
- var fields = Array(fieldCount);
168290
+ var fields2 = Array(fieldCount);
168291
168291
  for (var x = 0; x < fieldCount; ++x) {
168292
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
168292
+ fields2[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
168293
168293
  }
168294
168294
  if (isLastFieldIPv4Address) {
168295
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
168295
+ fields2[fieldCount - 1] = _normalizeIPv4(fields2[fieldCount - 1], protocol);
168296
168296
  }
168297
- var allZeroFields = fields.reduce(function(acc, field, index) {
168297
+ var allZeroFields = fields2.reduce(function(acc, field, index) {
168298
168298
  if (!field || field === "0") {
168299
168299
  var lastLongest = acc[acc.length - 1];
168300
168300
  if (lastLongest && lastLongest.index + lastLongest.length === index) {
@@ -168310,11 +168310,11 @@ var require_uri_all = __commonJS2({
168310
168310
  })[0];
168311
168311
  var newHost = void 0;
168312
168312
  if (longestZeroFields && longestZeroFields.length > 1) {
168313
- var newFirst = fields.slice(0, longestZeroFields.index);
168314
- var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
168313
+ var newFirst = fields2.slice(0, longestZeroFields.index);
168314
+ var newLast = fields2.slice(longestZeroFields.index + longestZeroFields.length);
168315
168315
  newHost = newFirst.join(":") + "::" + newLast.join(":");
168316
168316
  } else {
168317
- newHost = fields.join(":");
168317
+ newHost = fields2.join(":");
168318
168318
  }
168319
168319
  if (zone) {
168320
168320
  newHost += "%" + zone;
@@ -168734,14 +168734,14 @@ var require_uri_all = __commonJS2({
168734
168734
  headers["subject"] = mailtoComponents.subject;
168735
168735
  if (mailtoComponents.body)
168736
168736
  headers["body"] = mailtoComponents.body;
168737
- var fields = [];
168737
+ var fields2 = [];
168738
168738
  for (var name5 in headers) {
168739
168739
  if (headers[name5] !== O[name5]) {
168740
- fields.push(name5.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name5].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
168740
+ fields2.push(name5.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name5].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
168741
168741
  }
168742
168742
  }
168743
- if (fields.length) {
168744
- components.query = fields.join("&");
168743
+ if (fields2.length) {
168744
+ components.query = fields2.join("&");
168745
168745
  }
168746
168746
  return components;
168747
168747
  }
@@ -212682,9 +212682,9 @@ var require_dist_cjs2 = __commonJS2({
212682
212682
  __name(_Field, "Field");
212683
212683
  var Field = _Field;
212684
212684
  var _Fields = class _Fields {
212685
- constructor({ fields = [], encoding = "utf-8" }) {
212685
+ constructor({ fields: fields2 = [], encoding = "utf-8" }) {
212686
212686
  this.entries = {};
212687
- fields.forEach(this.setField.bind(this));
212687
+ fields2.forEach(this.setField.bind(this));
212688
212688
  this.encoding = encoding;
212689
212689
  }
212690
212690
  /**
@@ -249674,6 +249674,96 @@ function matchFilter(filter3, vars, action) {
249674
249674
  };
249675
249675
  }
249676
249676
 
249677
+ // node_modules/@diplodoc/openapi-extension/includer/esm/traverse/description.js
249678
+ var fields = [
249679
+ {
249680
+ key: "default",
249681
+ label: "Default"
249682
+ },
249683
+ {
249684
+ key: "example",
249685
+ label: "Example"
249686
+ },
249687
+ {
249688
+ key: "minLength",
249689
+ label: "Min length"
249690
+ },
249691
+ {
249692
+ key: "maxLength",
249693
+ label: "Max length"
249694
+ },
249695
+ {
249696
+ key: "maxItems",
249697
+ label: "Max items"
249698
+ },
249699
+ {
249700
+ key: "minItems",
249701
+ label: "Min items"
249702
+ },
249703
+ {
249704
+ key: "pattern",
249705
+ label: "Pattern"
249706
+ },
249707
+ {
249708
+ key: "uniqueItems",
249709
+ label: "Unique items"
249710
+ },
249711
+ (value) => {
249712
+ return {
249713
+ key: "minimum",
249714
+ label: `Min value${value.exclusiveMinimum ? " (exclusive)" : ""}`
249715
+ };
249716
+ },
249717
+ (value) => {
249718
+ return {
249719
+ key: "maximum",
249720
+ label: `Max value${value.exclusiveMaximum ? " (exclusive)" : ""}`
249721
+ };
249722
+ },
249723
+ (value) => {
249724
+ var _a3;
249725
+ const enumValues = (_a3 = value.enum) == null ? void 0 : _a3.map((s) => `\`${s}\``).join(", ");
249726
+ if (!enumValues) {
249727
+ return void 0;
249728
+ }
249729
+ return {
249730
+ computed: enumValues,
249731
+ notWrapValueIntoCode: true,
249732
+ key: "enum",
249733
+ label: "Enum"
249734
+ };
249735
+ }
249736
+ ];
249737
+ function prepareComplexDescription(baseDescription, value) {
249738
+ const description3 = baseDescription + EOL;
249739
+ return fields.reduce((acc, curr) => {
249740
+ const field = typeof curr === "function" ? curr(value) : curr;
249741
+ if (typeof field === "undefined" || !value[field.key]) {
249742
+ return acc;
249743
+ }
249744
+ const { key, label, computed, notWrapValueIntoCode } = field;
249745
+ return concatConstraint(acc, computed || value[key], label + ":", notWrapValueIntoCode);
249746
+ }, description3);
249747
+ }
249748
+ function concatConstraint(description3, constraint, constraintLabel, notWrapValueIntoCode = false) {
249749
+ if (typeof constraint !== "undefined") {
249750
+ return concatNewLine(
249751
+ description3,
249752
+ `<span class="openapi-description-annotation">${constraintLabel}</span> ${prepareConstraintValue(
249753
+ constraint,
249754
+ notWrapValueIntoCode
249755
+ )}`
249756
+ );
249757
+ }
249758
+ return description3;
249759
+ }
249760
+ function prepareConstraintValue(value, notWrapValueIntoCode) {
249761
+ if (typeof value === "boolean") {
249762
+ return "";
249763
+ }
249764
+ return notWrapValueIntoCode ? value : `\`${value}\``;
249765
+ }
249766
+
249677
249767
  // node_modules/@diplodoc/openapi-extension/includer/esm/traverse/tables.js
249678
249768
  var __defProp4 = Object.defineProperty;
249679
249769
  var __getOwnPropSymbols3 = Object.getOwnPropertySymbols;
@@ -249709,7 +249799,7 @@ function tableFromSchema(schema2) {
249709
249799
  };
249710
249800
  }
249711
249801
  const { rows, refs: refs2 } = prepareObjectSchemaTable(schema2);
249712
- const content = rows.length ? table2([["Name", "Type", "Description"], ...rows]) : "";
249802
+ const content = rows.length ? table2([["Name", "Description"], ...rows]) : "";
249713
249803
  return { content, tableRefs: refs2 };
249714
249804
  }
249715
249805
  function prepareObjectSchemaTable(schema2) {
@@ -249721,7 +249811,7 @@ function prepareObjectSchemaTable(schema2) {
249721
249811
  const value = refs_default.merge(v);
249722
249812
  const name5 = tableParameterName(key, isRequired(key, merged));
249723
249813
  const { type: type2, description: description3, ref, runtimeRef } = prepareTableRowData(value, key, tableRef);
249724
- result.rows.push([name5, type2, description3]);
249814
+ result.rows.push([name5, block([`${bold("Type:")} ${type2}`, description3])]);
249725
249815
  if (ref) {
249726
249816
  result.refs.push(...ref);
249727
249817
  }
@@ -249749,7 +249839,10 @@ function prepareObjectSchemaTable(schema2) {
249749
249839
  if (!ref) {
249750
249840
  return;
249751
249841
  }
249752
- result.rows.push(["oneOf", anchor(ref), value.description || ""]);
249842
+ result.rows.push([
249843
+ "...rest",
249844
+ block([`${bold("oneOf")} ${anchor(ref)}`, value.description || ""])
249845
+ ]);
249753
249846
  result.refs.push(ref);
249754
249847
  });
249755
249848
  }
@@ -249771,7 +249864,7 @@ function prepareTableRowData(value, key, parentRef) {
249771
249864
  return {
249772
249865
  type: `${anchor(inner.runtimeRef, key)}[]`,
249773
249866
  runtimeRef: inner.runtimeRef,
249774
- description: innerDescription
249867
+ description: prepareComplexDescription(innerDescription, value)
249775
249868
  };
249776
249869
  }
249777
249870
  const isUnionType2 = (((_a3 = inner.ref) == null ? void 0 : _a3.length) || inner.type.split("\n").length || 0) > 1;
@@ -249780,7 +249873,7 @@ function prepareTableRowData(value, key, parentRef) {
249780
249873
  type: returnType,
249781
249874
  // if inner.ref present, inner description will be in separate table
249782
249875
  ref: inner.ref,
249783
- description: innerDescription
249876
+ description: prepareComplexDescription(innerDescription, value)
249784
249877
  };
249785
249878
  }
249786
249879
  if (refs_default.isRuntimeAllowed() && propertyRef && type2 === "object") {
@@ -249798,42 +249891,6 @@ function prepareTableRowData(value, key, parentRef) {
249798
249891
  ref: collectRefs(type2)
249799
249892
  };
249800
249893
  }
249801
- function prepareComplexDescription(baseDescription, value) {
249802
- var _a3;
249803
- let description3 = baseDescription + EOL;
249804
- const enumValues = (_a3 = value.enum) == null ? void 0 : _a3.map((s) => `\`${s}\``).join(", ");
249805
- if (typeof enumValues !== "undefined") {
249806
- description3 = concatNewLine(
249807
- description3,
249808
- `<span style="color:gray;">Enum</span>: ${enumValues}`
249809
- );
249810
- }
249811
- if (typeof value.default !== "undefined") {
249812
- description3 = concatNewLine(
249813
- description3,
249814
- `<span style="color:gray;">Default</span>: \`${value.default}\``
249815
- );
249816
- }
249817
- if (typeof value.example !== "undefined") {
249818
- description3 = concatNewLine(
249819
- description3,
249820
- `<span style="color:gray;">Example</span>: \`${value.example}\``
249821
- );
249822
- }
249823
- if (typeof value.minLength !== "undefined") {
249824
- description3 = concatNewLine(
249825
- description3,
249826
- `<span style="color:gray;">Min length</span>: \`${value.minLength}\``
249827
- );
249828
- }
249829
- if (typeof value.maxLength !== "undefined") {
249830
- description3 = concatNewLine(
249831
- description3,
249832
- `<span style="color:gray;">Max length</span>: \`${value.maxLength}\``
249833
- );
249834
- }
249835
- return description3;
249836
- }
249837
249894
  function findNonNullOneOfElement(schema2) {
249838
249895
  const isValid = (v) => {
249839
249896
  var _a3, _b2;
@@ -250085,7 +250142,7 @@ function parameters(pagePrintedRefs, params) {
250085
250142
  }
250086
250143
  }
250087
250144
  tables.push(title(3)(heading));
250088
- tables.push(table2([["Name", "Type", "Description"], ...rows]));
250145
+ tables.push(table2([["Name", "Description"], ...rows]));
250089
250146
  tables.push(...printAllTables(pagePrintedRefs, tableRefs));
250090
250147
  }
250091
250148
  }
@@ -250105,7 +250162,10 @@ function parameterRow(param) {
250105
250162
  description3 = concatNewLine(description3, `Default: \`${param.default}\``);
250106
250163
  }
250107
250164
  return {
250108
- cells: [tableParameterName(param.name, param.required), row.type, description3],
250165
+ cells: [
250166
+ tableParameterName(param.name, param.required),
250167
+ block([`${bold("Type:")} ${row.type}`, description3])
250168
+ ],
250109
250169
  ref: row.ref
250110
250170
  };
250111
250171
  }
@@ -251600,14 +251660,14 @@ function shouldProcessItem(item, vars, options5) {
251600
251660
  }
251601
251661
  return useItem;
251602
251662
  }
251603
- function liquidFields(fields, vars, path2) {
251604
- if (typeof fields === "string") {
251605
- return liquidField(fields, vars, path2);
251663
+ function liquidFields(fields2, vars, path2) {
251664
+ if (typeof fields2 === "string") {
251665
+ return liquidField(fields2, vars, path2);
251606
251666
  }
251607
- if (!Array.isArray(fields)) {
251608
- return fields;
251667
+ if (!Array.isArray(fields2)) {
251668
+ return fields2;
251609
251669
  }
251610
- return fields.map((item) => {
251670
+ return fields2.map((item) => {
251611
251671
  if (typeof item === "string") {
251612
251672
  return liquidField(item, vars, path2);
251613
251673
  }
@@ -252981,7 +253041,7 @@ var import_fs7 = require("fs");
252981
253041
  var import_shelljs3 = __toESM2(require("shelljs"));
252982
253042
  var import_path19 = require("path");
252983
253043
  var import_ssr2 = require("@diplodoc/client/ssr");
252984
- var import_utils15 = __toESM2(require_utils2());
253044
+ var import_utils16 = __toESM2(require_utils2());
252985
253045
  var import_utilsFS3 = __toESM2(require_utilsFS());
252986
253046
  function processAssets({ args: args2, outputFormat, outputBundlePath, tmpOutputFolder }) {
252987
253047
  switch (outputFormat) {
@@ -253047,7 +253107,7 @@ function processAssetsMdRun({ args: args2, tmpOutputFolder }) {
253047
253107
  const linkHasMediaExt = new RegExp(
253048
253108
  /^\S.*\.(svg|png|gif|jpg|jpeg|bmp|webp|ico)$/gm
253049
253109
  ).test(link2);
253050
- if (linkHasMediaExt && (0, import_utils15.isLocalUrl)(link2) && checkPathExists(link2, yamlFile)) {
253110
+ if (linkHasMediaExt && (0, import_utils16.isLocalUrl)(link2) && checkPathExists(link2, yamlFile)) {
253051
253111
  const linkAbsolutePath = (0, import_utilsFS3.resolveRelativePath)(yamlFile, link2);
253052
253112
  const linkRootPath = linkAbsolutePath.replace(`${inputFolderPath}${import_path19.sep}`, "");
253053
253113
  acc.push(linkRootPath);
@@ -253407,8 +253467,8 @@ function MdFileTransformer(content, transformOptions) {
253407
253467
  var import_path23 = require("path");
253408
253468
  var import_log8 = __toESM2(require_log());
253409
253469
  var import_yfmlint = __toESM2(require_yfmlint2());
253410
- var import_utils19 = __toESM2(require_utils2());
253411
- var import_utils20 = __toESM2(require_utils14());
253470
+ var import_utils20 = __toESM2(require_utils2());
253471
+ var import_utils21 = __toESM2(require_utils14());
253412
253472
  var import_ssr4 = require("@diplodoc/client/ssr");
253413
253473
  var import_fs10 = require("fs");
253414
253474
  var import_chalk5 = __toESM2(require_source());
@@ -253440,14 +253500,14 @@ function YamlFileLinter(content, lintOptions) {
253440
253500
  const { input: input2, lintConfig } = argv_default2.getConfig();
253441
253501
  const { path: filePath } = lintOptions;
253442
253502
  const currentFilePath = (0, import_path23.resolve)(input2, filePath);
253443
- const logLevel = (0, import_utils20.getLogLevel)({
253503
+ const logLevel = (0, import_utils21.getLogLevel)({
253444
253504
  logLevelsConfig: lintConfig["log-levels"],
253445
253505
  ruleNames: ["YAML001"],
253446
253506
  defaultLevel: import_log8.default.LogLevels.ERROR
253447
253507
  });
253448
253508
  const contentLinks = findAllValuesByKeys(load(content), import_ssr4.LINK_KEYS);
253449
253509
  const localLinks = contentLinks.filter(
253450
- (link2) => getLinksWithExtension(link2) && (0, import_utils19.isLocalUrl)(link2)
253510
+ (link2) => getLinksWithExtension(link2) && (0, import_utils20.isLocalUrl)(link2)
253451
253511
  );
253452
253512
  return localLinks.forEach(
253453
253513
  (link2) => checkPathExists(link2, currentFilePath) || import_log8.default[logLevel](`Link is unreachable: ${(0, import_chalk5.bold)(link2)} in ${(0, import_chalk5.bold)(currentFilePath)}`)
@@ -255291,18 +255351,18 @@ var init_parse_diff_summary = __esm2({
255291
255351
  };
255292
255352
  }
255293
255353
  });
255294
- function lineBuilder(tokens, fields) {
255295
- return fields.reduce((line, field, index) => {
255354
+ function lineBuilder(tokens, fields2) {
255355
+ return fields2.reduce((line, field, index) => {
255296
255356
  line[field] = tokens[index] || "";
255297
255357
  return line;
255298
255358
  }, /* @__PURE__ */ Object.create({ diff: null }));
255299
255359
  }
255300
- function createListLogSummaryParser(splitter2 = SPLITTER, fields = defaultFieldNames, logFormat = "") {
255360
+ function createListLogSummaryParser(splitter2 = SPLITTER, fields2 = defaultFieldNames, logFormat = "") {
255301
255361
  const parseDiffResult = getDiffParser(logFormat);
255302
255362
  return function(stdOut) {
255303
255363
  const all3 = toLinesWithContent(stdOut, true, START_BOUNDARY).map(function(item) {
255304
255364
  const lineDetail = item.trim().split(COMMIT_BOUNDARY);
255305
- const listLogLine = lineBuilder(lineDetail[0].trim().split(splitter2), fields);
255365
+ const listLogLine = lineBuilder(lineDetail[0].trim().split(splitter2), fields2);
255306
255366
  if (lineDetail.length > 1 && !!lineDetail[1].trim()) {
255307
255367
  listLogLine.diff = parseDiffResult(lineDetail[1]);
255308
255368
  }
@@ -255366,13 +255426,13 @@ var init_diff = __esm2({
255366
255426
  }
255367
255427
  });
255368
255428
  function prettyFormat(format2, splitter2) {
255369
- const fields = [];
255429
+ const fields2 = [];
255370
255430
  const formatStr = [];
255371
255431
  Object.keys(format2).forEach((field) => {
255372
- fields.push(field);
255432
+ fields2.push(field);
255373
255433
  formatStr.push(String(format2[field]));
255374
255434
  });
255375
- return [fields, formatStr.join(splitter2)];
255435
+ return [fields2, formatStr.join(splitter2)];
255376
255436
  }
255377
255437
  function userOptions(input2) {
255378
255438
  return Object.keys(input2).reduce((out, key) => {
@@ -255393,7 +255453,7 @@ function parseLogOptions(opt = {}, customArgs = []) {
255393
255453
  author_name: opt.mailMap !== false ? "%aN" : "%an",
255394
255454
  author_email: opt.mailMap !== false ? "%aE" : "%ae"
255395
255455
  };
255396
- const [fields, formatStr] = prettyFormat(format2, splitter2);
255456
+ const [fields2, formatStr] = prettyFormat(format2, splitter2);
255397
255457
  const suffix = [];
255398
255458
  const command3 = [
255399
255459
  `--pretty=format:${START_BOUNDARY}${formatStr}${COMMIT_BOUNDARY}`,
@@ -255412,13 +255472,13 @@ function parseLogOptions(opt = {}, customArgs = []) {
255412
255472
  }
255413
255473
  appendTaskOptions(userOptions(opt), command3);
255414
255474
  return {
255415
- fields,
255475
+ fields: fields2,
255416
255476
  splitter: splitter2,
255417
255477
  commands: [...command3, ...suffix]
255418
255478
  };
255419
255479
  }
255420
- function logTask(splitter2, fields, customArgs) {
255421
- const parser32 = createListLogSummaryParser(splitter2, fields, logFormatFromCommand(customArgs));
255480
+ function logTask(splitter2, fields2, customArgs) {
255481
+ const parser32 = createListLogSummaryParser(splitter2, fields2, logFormatFromCommand(customArgs));
255422
255482
  return {
255423
255483
  commands: ["log", ...customArgs],
255424
255484
  format: "utf-8",
@@ -260127,7 +260187,7 @@ var parser3 = import_yargs.default.command(build).option("config", {
260127
260187
  default: false,
260128
260188
  describe: "Run in quiet mode. Don't write logs to stdout",
260129
260189
  type: "boolean"
260130
- }).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.26.0" : "").help();
260190
+ }).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.27.0" : "").help();
260131
260191
  var Build = class extends BaseProgram(command, {
260132
260192
  config: {
260133
260193
  // scope: 'build',
@@ -264534,7 +264594,7 @@ var Program = class extends BaseProgram("Program", {
264534
264594
  constructor() {
264535
264595
  super(...arguments);
264536
264596
  this.command = new Command2(NAME).helpOption(true).allowUnknownOption(false).version(
264537
- true ? "4.26.0" : "",
264597
+ true ? "4.27.0" : "",
264538
264598
  "--version",
264539
264599
  "Output the version number"
264540
264600
  ).usage(USAGE);