Skip to content

Commit

Permalink
buildNodePackage: fix issue with impure version handling (#30577)
Browse files Browse the repository at this point in the history
  • Loading branch information
b123400 authored and globin committed Oct 22, 2017
1 parent 97c5dfc commit 2cc79e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/web/nodejs/build-node-package.nix
Expand Up @@ -145,7 +145,7 @@ let
function replaceImpureVersionSpec(versionSpec) {
var parsedUrl = url.parse(versionSpec);
if(versionSpec == "latest" || versionSpec == "unstable" ||
if(versionSpec == "" || versionSpec == "latest" || versionSpec == "unstable" ||
versionSpec.substr(0, 2) == ".." || dependency.substr(0, 2) == "./" || dependency.substr(0, 2) == "~/" || dependency.substr(0, 1) == '/' || /^[^/]+\/[^/]+$/.test(versionSpec))
return '*';
else if(parsedUrl.protocol == "git:" || parsedUrl.protocol == "git+ssh:" || parsedUrl.protocol == "git+http:" || parsedUrl.protocol == "git+https:" ||
Expand Down

0 comments on commit 2cc79e9

Please sign in to comment.