bru disableParsingResponseJson function rename (#2785)

* disable response json parse flag

* fix: pr review comments

* update bru req function name
This commit is contained in:
lohit 2024-08-08 19:07:12 +05:30 committed by GitHub
parent 9a88db7e56
commit df2e18bedd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,8 @@ if (!SERVER_RENDERED) {
'bru.getVar(key)',
'bru.setVar(key,value)',
'bru.deleteVar(key)',
'bru.setNextRequest(requestName)'
'bru.setNextRequest(requestName)',
'req.disableParsingResponseJson()'
];
CodeMirror.registerHelper('hint', 'brunoJS', (editor, options) => {
const cursor = editor.getCursor();

View File

@ -168,7 +168,8 @@ class BrunoRequest {
return obj !== null && typeof obj === 'object';
}
disableResponseJsonParse() {
disableParsingResponseJson() {
this.req.__brunoDisableParsingResponseJson = true;
}
}