Comparing version 0.1.3 to 0.1.4
@@ -9,2 +9,10 @@ import axios from "axios"; | ||
this.BASE_URL = trimTailingSlash(baseUrl); | ||
if(this.BASE_URL.startsWith("http://")) { | ||
this.BASE_URL = this.BASE_URL.replace("http://", "https://"); | ||
} | ||
if(!this.BASE_URL.startsWith("https://")) { | ||
this.BASE_URL = `https://${this.BASE_URL}`; | ||
} | ||
this.API_URL = `${this.BASE_URL}${API_PATH}` | ||
@@ -11,0 +19,0 @@ this.AT = accessToken; |
@@ -16,3 +16,3 @@ #!/usr/bin/env node | ||
import { readFileSync } from 'fs' | ||
import {path} from 'path' | ||
import * as path from 'path' | ||
@@ -19,0 +19,0 @@ const __dirname = path.resolve(); |
{ | ||
"name": "gitlab-x", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "GitLab Executor API Interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/mxcd/gitlab-api", |
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
12505
318