yapi-apifox-to-typescript 4.1.2 → 4.1.3

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/lib/cjs/utils.js CHANGED
@@ -802,6 +802,10 @@ var getFilteredCat = function getFilteredCat(cat, cats, isApifox) {
802
802
  return c._id === id;
803
803
  });
804
804
  });
805
+ } else {
806
+ categoryIds = categoryIds.filter(function (id) {
807
+ return id !== 0;
808
+ });
805
809
  } // 顺序化
806
810
 
807
811
 
package/lib/esm/utils.js CHANGED
@@ -742,6 +742,10 @@ export var getFilteredCat = function getFilteredCat(cat, cats, isApifox) {
742
742
  return c._id === id;
743
743
  });
744
744
  });
745
+ } else {
746
+ categoryIds = categoryIds.filter(function (id) {
747
+ return id !== 0;
748
+ });
745
749
  } // 顺序化
746
750
 
747
751
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yapi-apifox-to-typescript",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "根据 YApi 或 Apifox 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。",
5
5
  "keywords": [
6
6
  "yapi",