hubkit
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -84,3 +84,3 @@ if (typeof require !== 'undefined') { | ||
maxItemSizeRatio: 0.1, metadata: Hubkit, stats: new Hubkit.Stats(), agent: false, | ||
corsSuccessFlags: {}, gheVersion: undefined, scopes: undefined | ||
corsSuccessFlags: {}, gheVersion: undefined, scopes: undefined, apiVersion: undefined | ||
}; | ||
@@ -628,2 +628,3 @@ if (typeof LRUCache !== 'undefined') { | ||
} | ||
if (options.apiVersion) config.headers['X-GitHub-Api-Version'] = options.apiVersion; | ||
/* eslint-enable dot-notation */ | ||
@@ -630,0 +631,0 @@ } |
@@ -44,2 +44,3 @@ export default class Hubkit { | ||
clientSecret?: string; | ||
apiVersion?: string; | ||
@@ -46,0 +47,0 @@ [key: string]: any; |
{ | ||
"name": "hubkit", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "GitHub API library for JavaScript, promise-based, for both NodeJS and the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
48403
877