Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/helpViewer/cran.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@ export async function getPackagesFromCran(cranUrl: string): Promise<Package[]> {
for(const site of cranSites){
try{
// fetch html
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; // seems to fail otherwise?
const res = await fetch(site.url);
const html = await (res).text();

// parse html
packages = site.parseFunction(html, site.url);
} catch(e) {
// These errors are expected, if the repo does not serve a specific URL
} finally {
// make sure to use safe https again
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '1';
}

// break if successfully fetched & parsed
Expand Down
Loading