whistle 2.9.61 → 2.9.62
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/assets/menu.html +6 -0
- package/assets/modal.html +43 -0
- package/assets/tab.html +4 -0
- package/bin/util.js +1 -1
- package/biz/webui/htdocs/index.html +1 -1
- package/biz/webui/htdocs/js/index.js +48 -47
- package/biz/webui/lib/index.js +11 -8
- package/lib/handlers/error-handler.js +1 -1
- package/lib/handlers/file-proxy.js +2 -3
- package/lib/https/h2.js +1 -2
- package/lib/inspectors/rules.js +1 -2
- package/lib/plugins/get-plugins-sync.js +2 -0
- package/lib/plugins/index.js +2 -0
- package/lib/rules/util.js +9 -2
- package/lib/socket-mgr.js +4 -5
- package/lib/util/common.js +6 -0
- package/lib/util/drain.js +2 -2
- package/lib/util/index.js +65 -16
- package/lib/util/patch.js +2 -1
- package/package.json +2 -2
package/assets/menu.html
CHANGED
|
@@ -157,6 +157,10 @@
|
|
|
157
157
|
Object.keys(options.msgBox).forEach(function(name) {
|
|
158
158
|
toast[name] = options.msgBox[name];
|
|
159
159
|
});
|
|
160
|
+
whistleBridge.getSelectedSessionList = options.getSelectedSessionList;
|
|
161
|
+
whistleBridge.getActiveSession = whistleBridge.getSession = whistleBridge.getSelectedSession = options.getActiveSession;
|
|
162
|
+
whistleBridge.showOption = options.showOption;
|
|
163
|
+
whistleBridge.hideOption = options.hideOption;
|
|
160
164
|
whistleBridge.updateUI = options.updateUI;
|
|
161
165
|
whistleBridge.copyText = options.copyText;
|
|
162
166
|
whistleBridge.pageId = options.pageId;
|
|
@@ -166,6 +170,8 @@
|
|
|
166
170
|
whistleBridge.exportSessions = options.exportSessions;
|
|
167
171
|
whistleBridge.importMockData = options.importMockData;
|
|
168
172
|
whistleBridge.download = options.download;
|
|
173
|
+
whistleBridge.setNetworkSettings = options.setNetworkSettings;
|
|
174
|
+
whistleBridge.setComposerData = options.setComposerData;
|
|
169
175
|
whistleBridge.request = options.request;
|
|
170
176
|
whistleBridge.createRequest = options.createRequest;
|
|
171
177
|
whistleBridge.showModal = options.showModal;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<script>
|
|
3
|
+
;(function() {
|
|
4
|
+
var toast = {};
|
|
5
|
+
var whistleBridge = {
|
|
6
|
+
toast: toast
|
|
7
|
+
};
|
|
8
|
+
try {
|
|
9
|
+
window.parent.onWhistlePluginOptionModalReady(function(options) {
|
|
10
|
+
Object.keys(options.msgBox).forEach(function(name) {
|
|
11
|
+
toast[name] = options.msgBox[name];
|
|
12
|
+
});
|
|
13
|
+
whistleBridge.getSelectedSessionList = options.getSelectedSessionList;
|
|
14
|
+
whistleBridge.getActiveSession = whistleBridge.getSession = whistleBridge.getSelectedSession = options.getActiveSession;
|
|
15
|
+
whistleBridge.showOption = options.showOption;
|
|
16
|
+
whistleBridge.hideOption = options.hideOption;
|
|
17
|
+
whistleBridge.updateUI = options.updateUI;
|
|
18
|
+
whistleBridge.copyText = options.copyText;
|
|
19
|
+
whistleBridge.pageId = options.pageId;
|
|
20
|
+
whistleBridge.compose = options.compose;
|
|
21
|
+
whistleBridge.decodeBase64 = options.decodeBase64;
|
|
22
|
+
whistleBridge.importSessions = options.importSessions;
|
|
23
|
+
whistleBridge.exportSessions = options.exportSessions;
|
|
24
|
+
whistleBridge.importMockData = options.importMockData;
|
|
25
|
+
whistleBridge.download = options.download;
|
|
26
|
+
whistleBridge.setNetworkSettings = options.setNetworkSettings;
|
|
27
|
+
whistleBridge.setComposerData = options.setComposerData;
|
|
28
|
+
whistleBridge.request = options.request;
|
|
29
|
+
whistleBridge.createRequest = options.createRequest;
|
|
30
|
+
whistleBridge.showModal = options.showModal;
|
|
31
|
+
whistleBridge.importRules = options.importRules;
|
|
32
|
+
whistleBridge.importValues = options.importValues;
|
|
33
|
+
whistleBridge.getServerInfo = options.getServerInfo;
|
|
34
|
+
whistleBridge.alert = options.alert;
|
|
35
|
+
whistleBridge.confirm = options.confirm;
|
|
36
|
+
whistleBridge.syncData = options.syncData;
|
|
37
|
+
whistleBridge.syncRules = options.syncRules;
|
|
38
|
+
whistleBridge.syncValues = options.syncValues;
|
|
39
|
+
}, window);
|
|
40
|
+
} catch (e) {}
|
|
41
|
+
window.whistleBridge = whistleBridge;
|
|
42
|
+
})();
|
|
43
|
+
</script>
|
package/assets/tab.html
CHANGED
|
@@ -282,6 +282,8 @@
|
|
|
282
282
|
});
|
|
283
283
|
getActiveSession = options.getActiveSession;
|
|
284
284
|
getSelectedSessionList = options.getSelectedSessionList;
|
|
285
|
+
whistleBridge.showOption = options.showOption;
|
|
286
|
+
whistleBridge.hideOption = options.hideOption;
|
|
285
287
|
whistleBridge.updateUI = options.updateUI;
|
|
286
288
|
whistleBridge.copyText = options.copyText;
|
|
287
289
|
whistleBridge.pageId = options.pageId;
|
|
@@ -291,6 +293,8 @@
|
|
|
291
293
|
whistleBridge.exportSessions = options.exportSessions;
|
|
292
294
|
whistleBridge.importMockData = options.importMockData;
|
|
293
295
|
whistleBridge.download = options.download;
|
|
296
|
+
whistleBridge.setNetworkSettings = options.setNetworkSettings;
|
|
297
|
+
whistleBridge.setComposerData = options.setComposerData;
|
|
294
298
|
whistleBridge.request = options.request;
|
|
295
299
|
whistleBridge.createRequest = options.createRequest;
|
|
296
300
|
whistleBridge.showModal = options.showModal;
|
package/bin/util.js
CHANGED
|
@@ -160,7 +160,7 @@ function readConfigList() {
|
|
|
160
160
|
exports.readConfig = readConfig;
|
|
161
161
|
exports.readConfigList = readConfigList;
|
|
162
162
|
exports.getHash = function(str) {
|
|
163
|
-
var hmac = createHmac('sha256', '
|
|
163
|
+
var hmac = createHmac('sha256', '5b6af7b9884e1165');
|
|
164
164
|
return hmac.update(str).digest('hex');
|
|
165
165
|
};
|
|
166
166
|
|