runner-runtime 1.0.12 → 1.0.14
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 +3 -3
- package/package.json +1 -1
- package/tmp/request.js +113 -113
package/events/api.js
CHANGED
|
@@ -9,7 +9,7 @@ const FileType = require("file-type"),
|
|
|
9
9
|
tough = require("tough-cookie"),
|
|
10
10
|
Buffer = require("buffer/").Buffer,
|
|
11
11
|
isImage = require("is-image");
|
|
12
|
-
const { getAPIFromCollection, smartUrlJoin, replace2RegExp, getParentTargetIDs, base64toCacheFile, getInsideVariables, getCaseInsensitive,camelCaseToSnakeCase } = require('../libs/utils'),
|
|
12
|
+
const { getAPIFromCollection, smartUrlJoin, replace2RegExp, getParentTargetIDs, base64toCacheFile, getInsideVariables, getCaseInsensitive, camelCaseToSnakeCase } = require('../libs/utils'),
|
|
13
13
|
_ = require('lodash');
|
|
14
14
|
const sdk = require("postman-collection"),
|
|
15
15
|
Url = sdk.Url,
|
|
@@ -1552,9 +1552,9 @@ async function convert2EchoResponse(response, history) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
1554
|
_.assign(cloneResponse, { mimeType, fitForShow });
|
|
1555
|
-
} catch (e) {
|
|
1555
|
+
} catch (e) {
|
|
1556
1556
|
|
|
1557
|
-
console.log(e,1111)
|
|
1557
|
+
console.log(e, 1111)
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
// 响应头对象
|
package/package.json
CHANGED
package/tmp/request.js
CHANGED
|
@@ -118,7 +118,7 @@ module.exports = {
|
|
|
118
118
|
},
|
|
119
119
|
"collection": [
|
|
120
120
|
{
|
|
121
|
-
"target_id": "
|
|
121
|
+
"target_id": "3d53610d7d6015",
|
|
122
122
|
"target_type": "api",
|
|
123
123
|
"parent_id": "0",
|
|
124
124
|
"name": "User login",
|
|
@@ -192,7 +192,7 @@ module.exports = {
|
|
|
192
192
|
"parents": [],
|
|
193
193
|
"method": "POST",
|
|
194
194
|
"protocol": "http/1.1",
|
|
195
|
-
"url": "
|
|
195
|
+
"url": "http://cc.apipost.cc:6002/sse",
|
|
196
196
|
"pre_url": "1"
|
|
197
197
|
}
|
|
198
198
|
],
|
|
@@ -265,104 +265,104 @@ module.exports = {
|
|
|
265
265
|
// "event_id": "178664d77c014",
|
|
266
266
|
// "sort": 4
|
|
267
267
|
// },
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
},
|
|
268
|
+
// {
|
|
269
|
+
// "type": "api",
|
|
270
|
+
// "auto_sync": false,
|
|
271
|
+
// "test_id": "270a34e2b9f019",
|
|
272
|
+
// "event_id": "3a76fca3f9f002",
|
|
273
|
+
// "enabled": 1,
|
|
274
|
+
// "data": {
|
|
275
|
+
// "target_id": "3dc7c7a076d024",
|
|
276
|
+
// "project_id": "2cf6deb75864000",
|
|
277
|
+
// "parent_id": "0",
|
|
278
|
+
// "target_type": "api",
|
|
279
|
+
// "apiData": {
|
|
280
|
+
// "name": "User login",
|
|
281
|
+
// "method": "POST",
|
|
282
|
+
// "protocol": "http/1.1",
|
|
283
|
+
// "url": "https://echo.apipost.cn/userlogin.php",
|
|
284
|
+
// "request": {
|
|
285
|
+
// "query": {
|
|
286
|
+
// "parameter": [],
|
|
287
|
+
// "query_add_equal": 1
|
|
288
|
+
// },
|
|
289
|
+
// "cookie": {
|
|
290
|
+
// "parameter": []
|
|
291
|
+
// },
|
|
292
|
+
// "header": {
|
|
293
|
+
// "parameter": []
|
|
294
|
+
// },
|
|
295
|
+
// "restful": {
|
|
296
|
+
// "parameter": []
|
|
297
|
+
// },
|
|
298
|
+
// "pre_tasks": [],
|
|
299
|
+
// "post_tasks": [],
|
|
300
|
+
// "auth": {
|
|
301
|
+
// "type": "inherit"
|
|
302
|
+
// },
|
|
303
|
+
// "body": {
|
|
304
|
+
// "mode": "form-data",
|
|
305
|
+
// "binary": null,
|
|
306
|
+
// "parameter": [
|
|
307
|
+
// {
|
|
308
|
+
// "key": "username",
|
|
309
|
+
// "not_null": -1,
|
|
310
|
+
// "param_id": "17e6c2b93e4002",
|
|
311
|
+
// "is_checked": 1,
|
|
312
|
+
// "content_type": "",
|
|
313
|
+
// "value": "admin",
|
|
314
|
+
// "file_name": "",
|
|
315
|
+
// "field_type": "String",
|
|
316
|
+
// "description": "用户名",
|
|
317
|
+
// "file_base64": ""
|
|
318
|
+
// },
|
|
319
|
+
// {
|
|
320
|
+
// "key": "password",
|
|
321
|
+
// "is_checked": 1,
|
|
322
|
+
// "content_type": "",
|
|
323
|
+
// "description": "密码",
|
|
324
|
+
// "file_base64": "",
|
|
325
|
+
// "value": "123456",
|
|
326
|
+
// "not_null": -1,
|
|
327
|
+
// "param_id": "17e6c2b93e4003",
|
|
328
|
+
// "file_name": "",
|
|
329
|
+
// "field_type": "String"
|
|
330
|
+
// },
|
|
331
|
+
// {
|
|
332
|
+
// "key": "",
|
|
333
|
+
// "value": "",
|
|
334
|
+
// "param_id": "1b33200fbe4000",
|
|
335
|
+
// "file_name": "",
|
|
336
|
+
// "is_checked": 1,
|
|
337
|
+
// "description": "",
|
|
338
|
+
// "file_base64": "",
|
|
339
|
+
// "not_null": 1,
|
|
340
|
+
// "field_type": "String",
|
|
341
|
+
// "content_type": ""
|
|
342
|
+
// }
|
|
343
|
+
// ],
|
|
344
|
+
// "raw_schema": {
|
|
345
|
+
// "type": "object"
|
|
346
|
+
// },
|
|
347
|
+
// "raw_parameter": [],
|
|
348
|
+
// "raw": ""
|
|
349
|
+
// }
|
|
350
|
+
// }
|
|
351
|
+
// }
|
|
352
|
+
// }
|
|
353
|
+
// },
|
|
354
|
+
// {
|
|
355
|
+
// "parent_event_id": "0",
|
|
356
|
+
// "enabled": 1,
|
|
357
|
+
// "type": "wait",
|
|
358
|
+
// "data": {
|
|
359
|
+
// "sleep": "1000"
|
|
360
|
+
// },
|
|
361
|
+
// "project_id": "2cf6deb75864000",
|
|
362
|
+
// "test_id": "270a34e2b9f019",
|
|
363
|
+
// "event_id": "167019c37c00c",
|
|
364
|
+
// "sort": 2
|
|
365
|
+
// },
|
|
366
366
|
// {
|
|
367
367
|
// "parent_event_id": "0",
|
|
368
368
|
// "enabled": 1,
|
|
@@ -406,19 +406,19 @@ module.exports = {
|
|
|
406
406
|
// "sort": 3
|
|
407
407
|
// },
|
|
408
408
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
409
|
+
{
|
|
410
|
+
"type": "api",
|
|
411
|
+
"auto_sync": true,
|
|
412
|
+
"test_id": "3d53fabfbd602c",
|
|
413
|
+
"event_id": "3d544fb0bd602e",
|
|
414
|
+
"enabled": 1,
|
|
415
|
+
"data": {
|
|
416
|
+
"target_id": "3d53610d7d6015",
|
|
417
|
+
"project_id": "2adc267c9064000",
|
|
418
|
+
"parent_id": "0",
|
|
419
|
+
"target_type": "api"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
422
|
// {
|
|
423
423
|
// "parent_event_id": "0",
|
|
424
424
|
// "enabled": 1,
|