@vssue/api-github-v3
Advanced tools
Comparing version 0.7.5 to 0.8.0
@@ -12,2 +12,5 @@ import axios from 'axios'; | ||
constructor({ baseURL = 'https://github.com', owner, repo, labels, clientId, clientSecret, state, proxy, }) { | ||
if (typeof clientSecret === 'undefined' || typeof proxy === 'undefined') { | ||
throw new Error('clientSecret and proxy is required for GitHub V3'); | ||
} | ||
this.baseURL = baseURL; | ||
@@ -28,4 +31,4 @@ this.owner = owner; | ||
this.$http.interceptors.response.use(response => { | ||
if (response.data.error) { | ||
return Promise.reject(response.data.error_description); | ||
if (response.data && response.data.error) { | ||
return Promise.reject(new Error(response.data.error_description)); | ||
} | ||
@@ -32,0 +35,0 @@ return response; |
{ | ||
"name": "@vssue/api-github-v3", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "Vssue api for github v3", | ||
@@ -29,6 +29,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vssue/utils": "^0.7.5", | ||
"@vssue/utils": "^0.8.0", | ||
"axios": "^0.18.0" | ||
}, | ||
"gitHead": "cf39df438a3c39c60fb2c4cefec26421508cc595" | ||
"devDependencies": { | ||
"axios-mock-adapter": "^1.16.0" | ||
}, | ||
"gitHead": "4e81dce08ca357b607809c2dce77c5afbdb26ddc" | ||
} |
Sorry, the diff of this file is not supported yet
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
34977
656
1
+ Added@vssue/utils@0.8.2(transitive)
- Removed@vssue/utils@0.7.5(transitive)
Updated@vssue/utils@^0.8.0