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.
- package/dist/index.js +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
|
]);
|