Skip to content

Commit bda252e

Browse files
committed
Fixed binary.host requiring api. prefix so that node-pre-gyp installs tar correctly
1 parent 1799338 commit bda252e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ NodePreGypGithub.prototype.init = function() {
3636
if(!this.package_json.binary || 'object' !== typeof this.package_json.binary || 'string' !== typeof this.package_json.binary.host){
3737
throw new Error('Missing binary.host in package.json');
3838
}
39-
else if (this.package_json.binary.host.substr(0, hostPrefix.length) !== hostPrefix){
39+
else if (this.package_json.binary.host.replace('https://','https://api.').substr(0, hostPrefix.length) !== hostPrefix){
4040
throw new Error('binary.host in package.json should begin with: "' + hostPrefix + '"');
4141
}
4242

0 commit comments

Comments
 (0)