@uphold/uphold-sdk-javascript
Advanced tools
Comparing version 2.0.2 to 2.0.3
# Changelog | ||
## [v2.0.3](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.3) (2017-09-20) | ||
- Allow for passing body that is already stringified [\#7](https://github.com/uphold/uphold-sdk-javascript/pull/7) ([evq](https://github.com/evq)) | ||
## [v2.0.2](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.2) (2017-08-02) | ||
@@ -4,0 +7,0 @@ - Fix `getToken()` method [\#6](https://github.com/uphold/uphold-sdk-javascript/pull/6) ([SandroMachado](https://github.com/SandroMachado)) |
@@ -71,3 +71,5 @@ 'use strict'; | ||
if (body) { | ||
body = JSON.stringify(body); | ||
if (typeof body === 'object') { | ||
body = JSON.stringify(body); | ||
} | ||
headers['content-type'] = 'application/json'; | ||
@@ -74,0 +76,0 @@ } |
{ | ||
"name": "@uphold/uphold-sdk-javascript", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Uphold SDK for JavasScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
663231
1177
1