Adding fix for version

This commit is contained in:
Justin Dalrymple 2018-01-24 10:20:57 -05:00
parent 1de6ec75ad
commit 5ddbcc8c33
4 changed files with 9 additions and 2 deletions

View File

@ -145,6 +145,10 @@ This started off as a fork from [node-gitlab](https://github.com/node-gitlab/nod
## Changelog
[2.2.2](https://github.com/jdalrymple/node-gitlab-api/) (2018-1-24)
------------------
Fixing bug with the version support
[2.2.1](https://github.com/jdalrymple/node-gitlab-api/e864064c98feda59d594d77b67f7d0657db78700) (2018-1-23)
------------------
Added support for the Version API through version.show()

View File

@ -1,6 +1,6 @@
{
"name": "node-gitlab-api",
"version": "2.2.1",
"version": "2.2.2",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"main": "dist/latest/index.js",
"engines": {

View File

@ -1,5 +1,5 @@
import Request from 'request-promise';
import { Groups, Projects, Issues, Runners, Users, MergeRequests } from './Models';
import { Groups, Projects, Issues, Runners, Users, MergeRequests, Version } from './Models';
function defaultRequest(url, endpoint, {
headers,
@ -42,6 +42,7 @@ class API {
this.users = new Users(this);
this.runners = new Runners(this);
this.mergeRequests = new MergeRequests(this);
this.version = new Version(this);
}
get(endpoint, options, fullResponse = false) {

View File

@ -4,6 +4,7 @@ import Issues from './Issues';
import Users from './Users';
import Runners from './Runners';
import MergeRequests from './MergeRequests';
import Version from './Version';
export {
Groups,
@ -12,4 +13,5 @@ export {
Issues,
Users,
MergeRequests,
Version,
};