mock-service-cli 4.11.0 → 4.11.1
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/api-client/client.js +5 -3
- package/dist/meta.json +26 -8
- package/dist/runtime.js +4 -4
- package/docs/api-client.md +2 -0
- package/package.json +1 -1
|
@@ -1273,8 +1273,10 @@
|
|
|
1273
1273
|
async function send() {
|
|
1274
1274
|
const tab = active();
|
|
1275
1275
|
if (tab.job) return;
|
|
1276
|
-
|
|
1277
|
-
|
|
1276
|
+
// 用独立副本承载 Secret 变量引用,保持 tab.request 对象不变;
|
|
1277
|
+
// 否则正文编辑器、参数表等面板闭包会继续指向发送前的旧对象,之后的修改不会被发送或保存。
|
|
1278
|
+
const request = secureRequest(tab.request);
|
|
1279
|
+
const data = await api('/executions', 'POST', { request, ...executionContext(tab.collectionId) });
|
|
1278
1280
|
tab.job = data.executionId;
|
|
1279
1281
|
if (active() === tab) {
|
|
1280
1282
|
syncSend();
|
|
@@ -1297,7 +1299,7 @@
|
|
|
1297
1299
|
state.history.unshift({
|
|
1298
1300
|
id: id(),
|
|
1299
1301
|
time: Date.now(),
|
|
1300
|
-
request: persistable(
|
|
1302
|
+
request: persistable(request),
|
|
1301
1303
|
status: tab.result.status,
|
|
1302
1304
|
duration: tab.result.duration
|
|
1303
1305
|
});
|
package/dist/meta.json
CHANGED
|
@@ -2996,8 +2996,13 @@
|
|
|
2996
2996
|
],
|
|
2997
2997
|
"format": "cjs"
|
|
2998
2998
|
},
|
|
2999
|
+
"src/lib/apiClient/headers.js": {
|
|
3000
|
+
"bytes": 298,
|
|
3001
|
+
"imports": [],
|
|
3002
|
+
"format": "cjs"
|
|
3003
|
+
},
|
|
2999
3004
|
"src/lib/apiClient/engine.js": {
|
|
3000
|
-
"bytes":
|
|
3005
|
+
"bytes": 20060,
|
|
3001
3006
|
"imports": [
|
|
3002
3007
|
{
|
|
3003
3008
|
"path": "http",
|
|
@@ -3064,6 +3069,11 @@
|
|
|
3064
3069
|
"kind": "require-call",
|
|
3065
3070
|
"original": "./download"
|
|
3066
3071
|
},
|
|
3072
|
+
{
|
|
3073
|
+
"path": "src/lib/apiClient/headers.js",
|
|
3074
|
+
"kind": "require-call",
|
|
3075
|
+
"original": "./headers"
|
|
3076
|
+
},
|
|
3067
3077
|
{
|
|
3068
3078
|
"path": "src/lib/apiClient/model.js",
|
|
3069
3079
|
"kind": "require-call",
|
|
@@ -4652,7 +4662,7 @@
|
|
|
4652
4662
|
"format": "cjs"
|
|
4653
4663
|
},
|
|
4654
4664
|
"src/lib/apiClient/importers.js": {
|
|
4655
|
-
"bytes":
|
|
4665
|
+
"bytes": 20033,
|
|
4656
4666
|
"imports": [
|
|
4657
4667
|
{
|
|
4658
4668
|
"path": "crypto",
|
|
@@ -4664,6 +4674,11 @@
|
|
|
4664
4674
|
"kind": "require-call",
|
|
4665
4675
|
"original": "yaml"
|
|
4666
4676
|
},
|
|
4677
|
+
{
|
|
4678
|
+
"path": "src/lib/apiClient/headers.js",
|
|
4679
|
+
"kind": "require-call",
|
|
4680
|
+
"original": "./headers"
|
|
4681
|
+
},
|
|
4667
4682
|
{
|
|
4668
4683
|
"path": "src/lib/apiClient/model.js",
|
|
4669
4684
|
"kind": "require-call",
|
|
@@ -12756,8 +12771,11 @@
|
|
|
12756
12771
|
"src/lib/apiClient/download.js": {
|
|
12757
12772
|
"bytesInOutput": 803
|
|
12758
12773
|
},
|
|
12774
|
+
"src/lib/apiClient/headers.js": {
|
|
12775
|
+
"bytesInOutput": 332
|
|
12776
|
+
},
|
|
12759
12777
|
"src/lib/apiClient/engine.js": {
|
|
12760
|
-
"bytesInOutput":
|
|
12778
|
+
"bytesInOutput": 15255
|
|
12761
12779
|
},
|
|
12762
12780
|
"node_modules/yaml/dist/nodes/identity.js": {
|
|
12763
12781
|
"bytesInOutput": 1436
|
|
@@ -12976,7 +12994,7 @@
|
|
|
12976
12994
|
"bytesInOutput": 1499
|
|
12977
12995
|
},
|
|
12978
12996
|
"src/lib/apiClient/importers.js": {
|
|
12979
|
-
"bytesInOutput":
|
|
12997
|
+
"bytesInOutput": 16479
|
|
12980
12998
|
},
|
|
12981
12999
|
"node_modules/colors/lib/styles.js": {
|
|
12982
13000
|
"bytesInOutput": 1119
|
|
@@ -13948,16 +13966,16 @@
|
|
|
13948
13966
|
"bytesInOutput": 25023
|
|
13949
13967
|
},
|
|
13950
13968
|
"node_modules/tar-stream/headers.js": {
|
|
13951
|
-
"bytesInOutput":
|
|
13969
|
+
"bytesInOutput": 5904
|
|
13952
13970
|
},
|
|
13953
13971
|
"node_modules/tar-stream/extract.js": {
|
|
13954
|
-
"bytesInOutput":
|
|
13972
|
+
"bytesInOutput": 6925
|
|
13955
13973
|
},
|
|
13956
13974
|
"node_modules/tar-stream/constants.js": {
|
|
13957
13975
|
"bytesInOutput": 280
|
|
13958
13976
|
},
|
|
13959
13977
|
"node_modules/tar-stream/pack.js": {
|
|
13960
|
-
"bytesInOutput":
|
|
13978
|
+
"bytesInOutput": 4797
|
|
13961
13979
|
},
|
|
13962
13980
|
"node_modules/tar-stream/index.js": {
|
|
13963
13981
|
"bytesInOutput": 147
|
|
@@ -13990,7 +14008,7 @@
|
|
|
13990
14008
|
"bytesInOutput": 553
|
|
13991
14009
|
}
|
|
13992
14010
|
},
|
|
13993
|
-
"bytes":
|
|
14011
|
+
"bytes": 2228781
|
|
13994
14012
|
}
|
|
13995
14013
|
}
|
|
13996
14014
|
}
|