echoapi-converter 0.0.6 → 0.0.7

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4171,13 +4171,13 @@ class InsomniaToApipost {
4171
4171
  const wsTarget = this.completionWsTarget(item, resources);
4172
4172
  pre.push(wsTarget);
4173
4173
  }
4174
- if ((item === null || item === void 0 ? void 0 : item._type) === 'environment') {
4174
+ if ((item === null || item === void 0 ? void 0 : item._type) === 'environment' && (item === null || item === void 0 ? void 0 : item.name)) {
4175
4175
  this.envs = this.envs.concat([
4176
4176
  {
4177
4177
  env_id: ATools.snowflakeId(),
4178
4178
  name: item === null || item === void 0 ? void 0 : item.name,
4179
4179
  is_private: -1,
4180
- server_list: {},
4180
+ server_list: [],
4181
4181
  env_var_list: {},
4182
4182
  },
4183
4183
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [