echoapi-converter 0.0.55 → 0.0.57

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -630,7 +630,7 @@ const resources = {
630
630
  ja: {
631
631
  translation: ja,
632
632
  },
633
- 'zh-hant': {
633
+ tw: {
634
634
  translation: tw,
635
635
  },
636
636
  id: {
@@ -643,6 +643,9 @@ const resources = {
643
643
  */
644
644
  const I18nInit = (lng) => __awaiter(void 0, void 0, void 0, function* () {
645
645
  // language= lng;
646
+ if (lng === 'zh-hant') {
647
+ lng = 'tw';
648
+ }
646
649
  if (!i18nInstance) {
647
650
  i18nInstance = i18next__default["default"].createInstance();
648
651
  yield i18nInstance.init({
@@ -1700,7 +1703,7 @@ class ApipostToSwagger {
1700
1703
  }
1701
1704
  array2NamePathObj(idName = "id", pidName = "pid", modelsObj) {
1702
1705
  var _a, _b, _c, _d, _e;
1703
- const items = this.apiToSwaggerOrigin.apis;
1706
+ const items = lodash.cloneDeep(this.apiToSwaggerOrigin.apis);
1704
1707
  try {
1705
1708
  const paths = {};
1706
1709
  const folderObj = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [