Skip to content

Commit b7e61bd

Browse files
committed
admin: use https endpoints for NPM registry
1 parent 0a8be37 commit b7e61bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/admin/src.ts/npm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function getPackageInfo(name: string): Promise<any> {
1515

1616
if (!cache[name]) {
1717
try {
18-
const result = await getUrl("http:/" + "/registry.npmjs.org/" + name);
18+
const result = await getUrl("https:/\/registry.npmjs.org/" + name);
1919
cache[name] = JSON.parse(Buffer.from(result.body).toString("utf8"));
2020
} catch (error) {
2121
if (error.status === 404) { return null; }

0 commit comments

Comments
 (0)