@vouchfor/sdk 1.1.20 → 1.1.21

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.
@@ -120,7 +120,11 @@ module.exports = {
120
120
  body.pipe(req);
121
121
  } else {
122
122
  if (body) {
123
- req.write(JSON.stringify(body));
123
+ if (typeof body === 'object') {
124
+ req.write(JSON.stringify(body));
125
+ } else {
126
+ req.write(body);
127
+ }
124
128
  }
125
129
  req.end();
126
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/sdk",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Vouch API SDK",
5
5
  "main": "lib/index.js",
6
6
  "repository": {