We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8be37 commit b7e61bdCopy full SHA for b7e61bd
misc/admin/src.ts/npm.ts
@@ -15,7 +15,7 @@ async function getPackageInfo(name: string): Promise<any> {
15
16
if (!cache[name]) {
17
try {
18
- const result = await getUrl("http:/" + "/registry.npmjs.org/" + name);
+ const result = await getUrl("https:/\/registry.npmjs.org/" + name);
19
cache[name] = JSON.parse(Buffer.from(result.body).toString("utf8"));
20
} catch (error) {
21
if (error.status === 404) { return null; }
0 commit comments