We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1799338 commit bda252eCopy full SHA for bda252e
1 file changed
index.js
@@ -36,7 +36,7 @@ NodePreGypGithub.prototype.init = function() {
36
if(!this.package_json.binary || 'object' !== typeof this.package_json.binary || 'string' !== typeof this.package_json.binary.host){
37
throw new Error('Missing binary.host in package.json');
38
}
39
- else if (this.package_json.binary.host.substr(0, hostPrefix.length) !== hostPrefix){
+ else if (this.package_json.binary.host.replace('https://','https://api.').substr(0, hostPrefix.length) !== hostPrefix){
40
throw new Error('binary.host in package.json should begin with: "' + hostPrefix + '"');
41
42
0 commit comments