echoapi-converter 0.0.56 → 0.0.58

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -313,6 +313,21 @@ const RULE_TYPES_ICON = {
313
313
  8: '(\\r)',
314
314
  9: '(\\r\\n)',
315
315
  };
316
+ // 分隔符豹纹
317
+ const RULE_TYPES = {
318
+ 1: '(space)',
319
+ 2: '(0)',
320
+ 3: '(#)',
321
+ 4: '(+)',
322
+ 5: '(,)',
323
+ 6: '(|)',
324
+ 7: '(;)',
325
+ 8: '(\\t)',
326
+ 9: '(:)',
327
+ 10: '(\\n)',
328
+ 11: '(\\r)',
329
+ 12: '(\\r\\n)',
330
+ };
316
331
 
317
332
  var securityConnectionMessageNoPath$4 = "When connecting via a secure connection, {{enable}} server certificate validation, and use client version {{version}} with no specified handshake path.";
318
333
  var notNeedEnable$4 = "do not enable";
@@ -630,7 +645,7 @@ const resources = {
630
645
  ja: {
631
646
  translation: ja,
632
647
  },
633
- 'zh-hant': {
648
+ tw: {
634
649
  translation: tw,
635
650
  },
636
651
  id: {
@@ -643,6 +658,9 @@ const resources = {
643
658
  */
644
659
  const I18nInit = (lng) => __awaiter(void 0, void 0, void 0, function* () {
645
660
  // language= lng;
661
+ if (lng === 'zh-hant') {
662
+ lng = 'tw';
663
+ }
646
664
  if (!i18nInstance) {
647
665
  i18nInstance = i18next__default["default"].createInstance();
648
666
  yield i18nInstance.init({
@@ -964,7 +982,7 @@ const handleSocketMethodParameterDescription = (item, mode) => {
964
982
  return `${description}\n${t('tcpMethodMessage', {
965
983
  direction: (rules === null || rules === void 0 ? void 0 : rules.fill_type) == 'left' ? t('left') : (rules === null || rules === void 0 ? void 0 : rules.fill_type) == 'right' ? t('right') : '',
966
984
  size: rules === null || rules === void 0 ? void 0 : rules.length,
967
- str: rules === null || rules === void 0 ? void 0 : rules.custom
985
+ str: (rules === null || rules === void 0 ? void 0 : rules.content_type) == 'common' ? RULE_TYPES[rules === null || rules === void 0 ? void 0 : rules.common] : rules === null || rules === void 0 ? void 0 : rules.custom
968
986
  })}`;
969
987
  }
970
988
  else if (mode == 'delimiter_message') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [