superagent: rewrite using native node request

the learning is that fetch() is really meant to be a browser side
XMLHttpRequest replacement. It's complicated to do things like
setting user agent, custom headers like Host, disabling tls validation etc.
This commit is contained in:
Girish Ramakrishnan
2025-02-18 15:23:32 +01:00
parent a019227ddc
commit d75e95a23d
4 changed files with 103 additions and 58 deletions

View File

@@ -58,7 +58,6 @@
"tar-stream": "^3.1.7",
"tldjs": "^2.3.1",
"ua-parser-js": "^2.0.2",
"undici": "^7.3.0",
"uuid": "^11.0.5",
"validator": "^13.12.0",
"ws": "^8.18.0",