fix: fixed bugs in bru cli related to gql requests

This commit is contained in:
Anoop M D 2023-02-08 04:13:22 +05:30
parent 67643c4c48
commit 837e39d870
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@usebruno/cli",
"version": "0.1.0",
"version": "0.1.2",
"main": "src/index.js",
"bin": {
"bru": "./bin/bru.js"
@ -14,7 +14,9 @@
"@usebruno/js": "0.1.0",
"@usebruno/lang": "0.1.0",
"axios": "^1.3.2",
"chai": "^4.3.7",
"chalk": "^3.0.0",
"form-data": "^4.0.0",
"fs-extra": "^10.1.0",
"inquirer": "^9.1.4",
"lodash": "^4.17.21",

View File

@ -48,7 +48,7 @@ const bruToJson = (bru) => {
}
};
transformedJson.request.body.mode = _.get(json, "http.mode", "none");
transformedJson.request.body.mode = _.get(json, "http.body", "none");
return transformedJson;
} catch (err) {