gitlab-fetch
Advanced tools
Comparing version 0.2.3-dev.8983139 to 0.2.3-dev.10237340
# Changelog | ||
## develop | ||
* [breaking] GitLab base URL must not include API version. | ||
@@ -5,0 +6,0 @@ ## 0.2.2 |
@@ -30,2 +30,8 @@ "use strict"; | ||
} | ||
else if (baseUrl.endsWith('/')) { | ||
throw new ConfigError(path, '"gitlab.baseUrl" property must not have a trailing slash'); | ||
} | ||
else if (/\/v\d+$/.test(baseUrl)) { | ||
throw new ConfigError(path, '"gitlab.baseUrl" property must not end with API version.'); | ||
} | ||
else if (typeof privateToken !== 'string') { | ||
@@ -32,0 +38,0 @@ throw new ConfigError(path, '"gitlab.privateToken" property must be a string'); |
{ | ||
"name": "gitlab-fetch", | ||
"version": "0.2.3-dev.8983139", | ||
"version": "0.2.3-dev.10237340", | ||
"author": "Jay Anslow <jay@anslow.me.uk>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -22,3 +22,3 @@ A GitLab API client using the [whatwg-fetch API](https://github.com/whatwg/fetch) (written in TypeScript). | ||
const config: Config = { | ||
baseUrl: 'https://gitlab.com/api/v3', | ||
baseUrl: 'https://gitlab.com/api', | ||
auth: { | ||
@@ -25,0 +25,0 @@ privateToken: process.env.GITLAB_API_TOKEN, |
Sorry, the diff of this file is not supported yet
78271
1465