Skip to content

Commit fb0877d

Browse files
committed
npm: gather socket.dev and snyk.io links
1 parent c5301e7 commit fb0877d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

npmjs.com/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ function main() {
5757
["npm-stat", `https://npm-stat.com/charts.html?package=${pkg}`],
5858
["deps.dev", `https://deps.dev/npm/${pkg}`],
5959
["npmx", `https://npmx.dev/package/${pkg}`],
60+
["socket.dev", `https://socket.dev/npm/package/${pkg}`],
61+
["snyk", `https://snyk.io/advisor/npm-package/${pkg}`],
6062
];
6163

6264
for (const [label, site] of sites) {
@@ -73,7 +75,12 @@ function main() {
7375
}
7476

7577
if (sidebar) {
76-
const checkers = ["https://bundlephobia.com/", "https://npmgraph.js.org/"];
78+
const checkers = [
79+
"https://bundlephobia.com/",
80+
"https://npmgraph.js.org/",
81+
"https://socket.dev/npm/package",
82+
"https://snyk.io/advisor/npm-package",
83+
];
7784

7885
for (const checker of checkers) {
7986
const link = document.querySelector(`[href^="${checker}"]`);

0 commit comments

Comments
 (0)