runner-runtime 1.0.57 → 1.0.58

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/events/api.js CHANGED
@@ -671,8 +671,8 @@ const convert2PostmanOptions = (request, option, variables) => {
671
671
  }
672
672
 
673
673
  const options = {
674
- abortOnFailure: false,
675
- abortOnError: false,
674
+ // abortOnFailure: false,
675
+ // abortOnError: false,
676
676
  timeout: {
677
677
  request: requestTimeout,
678
678
  script: 0,
@@ -2038,7 +2038,7 @@ const initRequestJson = (event, option) => {
2038
2038
  })
2039
2039
 
2040
2040
  _.set(requestJson, "initVarReplacedUrl", initVarReplacedUrl);
2041
- } else if (_.includes(['script'], event?.type)) { // 脚本、断言 todo... 断言需要做成可视化的
2041
+ } else if (_.includes(['script'], event?.type)) {
2042
2042
  _.set(requestJson, "request.pre_tasks", [
2043
2043
  {
2044
2044
  type: "customScript",
@@ -2046,7 +2046,7 @@ const initRequestJson = (event, option) => {
2046
2046
  data: event?.data?.content,
2047
2047
  },
2048
2048
  ]);
2049
- } else if (_.includes(['assert'], event?.type)) { // 脚本、断言 todo... 断言需要做成可视化的
2049
+ } else if (_.includes(['assert'], event?.type)) {
2050
2050
  _.set(requestJson, "name", "脚本断言");
2051
2051
  _.set(requestJson, "request.pre_tasks", [
2052
2052
  {
package/libs/utils.js CHANGED
@@ -358,7 +358,7 @@ const formatAutotestReportList = (eventResultList) => {
358
358
  _.forEach(_.cloneDeep(eventResultList), (item) => {
359
359
  const type = item?.type;
360
360
 
361
- if (_.includes(['assert', 'assert_visual', 'api', 'sample', 'script'], type)) {
361
+ if (_.includes(['assert', 'assert_visual', 'api', 'sample', 'script', 'sql'], type)) {
362
362
  list.push(_.assign(
363
363
  _.pick(item?.response, ['timings', 'response_time', 'response_at', 'proxy', 'status', 'code', 'response_size']),
364
364
  _.pick(item?.request, ['url', 'method', 'name', 'target_id', 'project_id']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runner-runtime",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "runner-runtime.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "is-image": "^3.0.0",
30
30
  "is-svg": "^4.3.2",
31
31
  "json-bigint": "^1.0.0",
32
- "json-schema-faker-pro": "^0.5.18",
32
+ "json-schema-faker-pro": "^0.5.19",
33
33
  "json5": "^2.2.3",
34
34
  "jsonpath": "^1.1.1",
35
35
  "lodash": "^4.17.21",