Skip to content

Commit 615bbbb

Browse files
committed
chore: version bump 1.1.12 and updated dist
1 parent 768e087 commit 615bbbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/components/proxy-middleware/rule_action_processor/processors/modify_request_processor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const modify_request_using_code = (action, ctx) => __awaiter(void 0, void 0, voi
6666
requestHeaders: ctx.clientToProxyRequest.headers,
6767
};
6868
try {
69-
args.requestJSON = JSON.parse(args.request);
69+
args.bodyAsJson = JSON.parse(args.request);
7070
}
7171
catch (_a) {
7272
/*Do nothing -- could not parse body as JSON */
@@ -80,7 +80,7 @@ const modify_request_using_code = (action, ctx) => __awaiter(void 0, void 0, voi
8080
consoleCapture.stop();
8181
const consoleLogs = consoleCapture.getCaptures();
8282
ctx.rq.consoleLogs.push(...consoleLogs);
83-
const isRequestJSON = !!args.requestJSON;
83+
const isRequestJSON = !!args.bodyAsJson;
8484
if (typeof finalRequest === "object" && isRequestJSON) {
8585
finalRequest = JSON.stringify(finalRequest);
8686
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@requestly/requestly-proxy",
3-
"version": "1.1.11",
3+
"version": "1.1.12",
44
"description": "Proxy that gives superpowers to all the Requestly clients",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)