stripe-client
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -49,6 +49,7 @@ const STRIPE_URL = 'https://api.stripe.com/v1/'; | ||
// if Stripe threw an error instead. If the JSON does not need to be parsed, returns the token. | ||
function _parseJSON(token) { | ||
if (token._bodyInit == null) return token | ||
else { | ||
const body = JSON.parse('' + token._bodyInit); | ||
async function _parseJSON(token) { | ||
if (token._bodyInit == null) { | ||
return token; | ||
} else { | ||
const body = await token.json(); | ||
return body; | ||
@@ -55,0 +56,0 @@ } |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"main": "index.js", | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
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
161510
127