@wx-sab/renkei 0.2.8 → 0.2.9

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.
@@ -121,11 +121,11 @@ const generateApis = (config) => __awaiter(void 0, void 0, void 0, function* ()
121
121
  if (Array.isArray(conf)) {
122
122
  conf.forEach((con) => collectConfig(con, collects));
123
123
  }
124
- else if (Array.isArray(conf.projects)) {
125
- conf.projects.forEach((project) => collectConfig(Object.assign(Object.assign({}, lodash_1.default.omit(conf, 'projects')), project), collects));
126
- }
127
124
  else {
128
- collects.push(conf);
125
+ collects.push(lodash_1.default.omit(conf, 'projects'));
126
+ if (Array.isArray(conf.projects)) {
127
+ conf.projects.forEach((project) => collectConfig(Object.assign(Object.assign({}, lodash_1.default.omit(conf, 'projects')), project), collects));
128
+ }
129
129
  }
130
130
  return collects;
131
131
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wx-sab/renkei",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "解析swagger转为ts代码,日本动漫《游戏王》中的‘Renkei’,意为连携或协作。",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {