echoapi-converter 0.0.57 → 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 +16 -1
  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";
@@ -967,7 +982,7 @@ const handleSocketMethodParameterDescription = (item, mode) => {
967
982
  return `${description}\n${t('tcpMethodMessage', {
968
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') : '',
969
984
  size: rules === null || rules === void 0 ? void 0 : rules.length,
970
- 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
971
986
  })}`;
972
987
  }
973
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.57",
3
+ "version": "0.0.58",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [