@usebruno/js 0.18.0 → 0.19.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usebruno/js",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -193,6 +193,10 @@ class BrunoRequest {
193
193
  disableParsingResponseJson() {
194
194
  this.req.__brunoDisableParsingResponseJson = true;
195
195
  }
196
+
197
+ getExecutionMode() {
198
+ return this.req.__bruno__executionMode;
199
+ }
196
200
  }
197
201
 
198
202
  module.exports = BrunoRequest;
@@ -111,6 +111,12 @@ const addBrunoRequestShimToContext = (vm, req) => {
111
111
  vm.setProp(reqObject, 'disableParsingResponseJson', disableParsingResponseJson);
112
112
  disableParsingResponseJson.dispose();
113
113
 
114
+ let getExecutionMode = vm.newFunction('getExecutionMode', function () {
115
+ return marshallToVm(req.getExecutionMode(), vm);
116
+ });
117
+ vm.setProp(reqObject, 'getExecutionMode', getExecutionMode);
118
+ getExecutionMode.dispose();
119
+
114
120
  vm.setProp(vm.global, 'req', reqObject);
115
121
  reqObject.dispose();
116
122
  };