@usebruno/js
Advanced tools
Comparing version 0.16.0 to 0.17.0
{ | ||
"name": "@usebruno/js", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -30,4 +30,13 @@ class BrunoResponse { | ||
} | ||
setBody(data) { | ||
if (!this.res) { | ||
return; | ||
} | ||
this.body = data; | ||
this.res.data = data; | ||
} | ||
} | ||
module.exports = BrunoResponse; |
@@ -108,2 +108,8 @@ const { marshallToVm } = require('../utils'); | ||
let disableParsingResponseJson = vm.newFunction('disableParsingResponseJson', function () { | ||
req.disableParsingResponseJson(); | ||
}); | ||
vm.setProp(reqObject, 'disableParsingResponseJson', disableParsingResponseJson); | ||
disableParsingResponseJson.dispose(); | ||
vm.setProp(vm.global, 'req', reqObject); | ||
@@ -110,0 +116,0 @@ reqObject.dispose(); |
@@ -28,2 +28,4 @@ const marshallToVm = (value, vm) => { | ||
} | ||
} else if (typeof value === 'function') { | ||
return vm.newString('[Function (anonymous)]'); | ||
} | ||
@@ -30,0 +32,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
287378
3456