Skip to content

Commit 8fc12e8

Browse files
committed
Merge branch 'main' of github.com:remy/nodemon
2 parents 8b535a0 + 59d5350 commit 8fc12e8

File tree

2 files changed

+17
-30
lines changed

2 files changed

+17
-30
lines changed

website/oc.jq

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,16 @@ def tomarkdown:
8181
createdAt: "2024-12-13 12:00:00",
8282
website: "https://zimplerkasinot.net/",
8383
image: "https://github.com/user-attachments/assets/cbeddc6e-827a-41eb-b669-a0a4575d068a"
84-
}] |
84+
}, {
85+
isActive: true,
86+
tier: 1,
87+
MemberId: "Youraffe2",
88+
image: true,
89+
createdAt: "2025-01-13 12:00:00",
90+
website: "https://verovapaatnettikasinot.net/",
91+
image: "https://github.com/user-attachments/assets/686bae37-cc29-45e6-b079-ea0bdc101f4e"
92+
}
93+
] |
8594

8695
def markdown: $markdown;
8796

website/oc.js

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,13 @@ async function curl(out) {
2424
for (const [i, tier] of tiers.entries()) {
2525
const url = `https://opencollective.com/nodemon/members/all.json?TierId=${tier}&limit=100&offset=`;
2626
let offset = 0;
27-
try {
28-
do {
29-
console.log(`Fetching ${url}${offset}`);
30-
let next = await get(url + offset);
31-
32-
if (!Array.isArray(next)) {
33-
console.error(
34-
`Error: Expected array but got ${typeof next} from ${url}${offset}`
35-
);
36-
console.error(
37-
'Response:',
38-
JSON.stringify(next).substring(0, 200) + '...'
39-
);
40-
break;
41-
}
42-
43-
if (next.length === 0) {
44-
console.log(`No more results for tier ${tier}`);
45-
break;
46-
}
47-
48-
res.push(...next.map((_) => ({ ..._, tier: i })));
49-
offset += next.length;
50-
} while (offset % 100 === 0 && offset > 0);
51-
} catch (err) {
52-
console.error(
53-
`Error fetching tier ${tier} at offset ${offset}: ${err.message}`
54-
);
55-
}
27+
do {
28+
let next = await get(url + offset);
29+
console.log(url + offset);
30+
res.push(...next.map((_) => ({ ..._, tier: i })));
31+
offset += next.length;
32+
if (next.length === 0) break;
33+
} while (offset % 100 === 0);
5634
}
5735

5836
if (res.length === 0) {

0 commit comments

Comments
 (0)