@requestly/requestly-proxy 1.1.6 → 1.1.8
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.
|
@@ -64,6 +64,7 @@ class RuleProcessorHelper {
|
|
|
64
64
|
const rule_action = rule_processor.process({
|
|
65
65
|
rule,
|
|
66
66
|
requestURL: this.request_data.request_url,
|
|
67
|
+
details: this.request_data
|
|
67
68
|
});
|
|
68
69
|
return rule_action;
|
|
69
70
|
};
|
|
@@ -78,7 +79,7 @@ class RuleProcessorHelper {
|
|
|
78
79
|
const rule_action = rule_processor.process({
|
|
79
80
|
rule,
|
|
80
81
|
requestURL: this.request_data.request_url,
|
|
81
|
-
details: { requestData },
|
|
82
|
+
details: Object.assign(Object.assign({}, this.request_data), { requestData }),
|
|
82
83
|
});
|
|
83
84
|
return rule_action;
|
|
84
85
|
};
|
|
@@ -93,7 +94,7 @@ class RuleProcessorHelper {
|
|
|
93
94
|
const rule_action = rule_processor.process({
|
|
94
95
|
rule,
|
|
95
96
|
requestURL: this.request_data.request_url,
|
|
96
|
-
details: { requestData },
|
|
97
|
+
details: Object.assign(Object.assign({}, this.request_data), { requestData }),
|
|
97
98
|
});
|
|
98
99
|
return rule_action;
|
|
99
100
|
};
|
|
@@ -127,6 +128,7 @@ class RuleProcessorHelper {
|
|
|
127
128
|
payload: {
|
|
128
129
|
requestOrigin: getRequestOrigin(),
|
|
129
130
|
},
|
|
131
|
+
details: this.request_data
|
|
130
132
|
});
|
|
131
133
|
return rule_action;
|
|
132
134
|
};
|
|
@@ -162,6 +164,7 @@ class RuleProcessorHelper {
|
|
|
162
164
|
payload: {
|
|
163
165
|
requestOrigin: getRequestOrigin(),
|
|
164
166
|
},
|
|
167
|
+
details: this.request_data
|
|
165
168
|
});
|
|
166
169
|
return rule_action;
|
|
167
170
|
};
|
|
@@ -182,6 +185,7 @@ class RuleProcessorHelper {
|
|
|
182
185
|
requestURL: this.request_data.request_url,
|
|
183
186
|
rule,
|
|
184
187
|
originalRequestHeaders: originalRequestHeadersObjectKeysValuePairs,
|
|
188
|
+
details: this.request_data
|
|
185
189
|
});
|
|
186
190
|
return rule_action;
|
|
187
191
|
};
|
|
@@ -997,7 +997,7 @@ Proxy.prototype._onWebSocketConnection = function (ctx, callback) {
|
|
|
997
997
|
return fn(ctx, callback);
|
|
998
998
|
}, callback);
|
|
999
999
|
};
|
|
1000
|
-
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data,
|
|
1000
|
+
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, isBinary) {
|
|
1001
1001
|
var self = this;
|
|
1002
1002
|
async.forEach(this.onWebSocketFrameHandlers.concat(ctx.onWebSocketFrameHandlers), function (fn, callback) {
|
|
1003
1003
|
return fn(ctx, type, fromServer, data, flags, function (err, newData, newFlags) {
|
|
@@ -1018,7 +1018,7 @@ Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, flags
|
|
|
1018
1018
|
if (destWebSocket.readyState === WebSocket.OPEN) {
|
|
1019
1019
|
switch (type) {
|
|
1020
1020
|
case "message":
|
|
1021
|
-
destWebSocket.send(data,
|
|
1021
|
+
destWebSocket.send(data, { binary: isBinary });
|
|
1022
1022
|
break;
|
|
1023
1023
|
case "ping":
|
|
1024
1024
|
destWebSocket.ping(data, flags, false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requestly/requestly-proxy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Proxy that gives superpowers to all the Requestly clients",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@requestly/requestly-core": "^1.0.
|
|
18
|
+
"@requestly/requestly-core": "^1.0.2",
|
|
19
19
|
"@sentry/browser": "^6.19.2",
|
|
20
20
|
"async": "^3.2.1",
|
|
21
21
|
"axios": "^0.26.1",
|