Skip to content

Commit b23abb7

Browse files
committed
Fetched dist correctly in multi version package response
1 parent e45b890 commit b23abb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NodePackageService/NeuroSpeech.NodePackageInstaller/NpmRegistry.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ private async Task<string> GetTarBallForAsync(string url, string v)
4949
var versions = token as JObject;
5050
if(versions.TryGetValue(v, out token))
5151
{
52-
var dist = token as JObject;
52+
53+
var dist = (token as JObject).GetValue("dist") as JObject;
5354
return dist.GetValue("tarball").ToString();
5455
}
5556
}

0 commit comments

Comments
 (0)