echoapi-converter 0.0.31 → 0.0.32

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 +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4229,6 +4229,17 @@ class InsomniaToApipost {
4229
4229
  },
4230
4230
  ];
4231
4231
  }
4232
+ if (item === null || item === void 0 ? void 0 : item.afterResponseScript) {
4233
+ request["post_tasks"] = [
4234
+ {
4235
+ type: "customScript",
4236
+ enabled: 1,
4237
+ name: "Script",
4238
+ id: ATools.snowflakeId(),
4239
+ data: (item === null || item === void 0 ? void 0 : item.afterResponseScript) || "",
4240
+ },
4241
+ ];
4242
+ }
4232
4243
  if ((authentication === null || authentication === void 0 ? void 0 : authentication.type) === "apikey") {
4233
4244
  request.auth["type"] = "kv";
4234
4245
  request.auth["kv"] = {
@@ -4346,6 +4357,7 @@ class InsomniaToApipost {
4346
4357
  project_id: this.project.project_id || "",
4347
4358
  target_id: ATools.snowflakeId(),
4348
4359
  parent_id: ((_a = this.foldersMap) === null || _a === void 0 ? void 0 : _a[item === null || item === void 0 ? void 0 : item.parentId]) || "0",
4360
+ description: (item === null || item === void 0 ? void 0 : item.description) || '',
4349
4361
  target_type: "websocket2",
4350
4362
  name: (item === null || item === void 0 ? void 0 : item.name) || "New Websocket",
4351
4363
  sort: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [