adonis-kraken
Advanced tools
Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "adonis-kraken", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Simplifies working with Kraken.io (image optimisation service) through Adonis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ 'use strict' | ||
_attachAuth (body = {}) { | ||
body = { | ||
return body = { | ||
auth: { | ||
@@ -109,11 +109,5 @@ api_key: this.options.api_key || '', | ||
*/ | ||
async userStatus (body = {}, formatSizes = true) { | ||
async userStatus (formatSizes = false) { | ||
try { | ||
body.auth = this.auth | ||
let { data } = await axios.post('https://api.kraken.io/user_status', { | ||
auth: { | ||
api_key: this.auth.api_key, | ||
api_secret: this.auth.api_secret | ||
} | ||
}) | ||
let { data } = await axios.post('https://api.kraken.io/user_status', this._attachAuth()) | ||
if (formatSizes) { | ||
@@ -120,0 +114,0 @@ data.quota_total = this._formatBytes({ bytes: data.quota_total }) |
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
45770
195