Socket
Socket
Sign inDemoInstall

@vssue/api-github-v3

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vssue/api-github-v3 - npm Package Compare versions

Comparing version 0.7.5 to 0.8.0

7

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc