We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b756cb + 5b40aeb commit 4c0925eCopy full SHA for 4c0925e
1 file changed
index.js
@@ -24,7 +24,7 @@ NodePreGypGithub.prototype.init = function() {
24
else {
25
ownerRepo = this.package_json.repository.url.match(/https?:\/\/([^\/]+)\/(.*)(?=\.git)/i);
26
if(ownerRepo) {
27
- this.host = ownerRepo[1];
+ this.host = 'api.' + ownerRepo[1];
28
ownerRepo = ownerRepo[2].split('/');
29
this.owner = ownerRepo[0];
30
this.repo = ownerRepo[1];
@@ -41,7 +41,7 @@ NodePreGypGithub.prototype.init = function() {
41
}
42
43
this.octokit = NodePreGypGithub.prototype.octokit({
44
- baseUrl: 'https://' + this.host + '/api/v3',
+ baseUrl: 'https://' + this.host,
45
headers: {
46
"user-agent": (this.package_json.name) ? this.package_json.name : "node-pre-gyp-github"
47
0 commit comments