replace bent by native node fetch (#401)

* replace bent by native node fetch

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2025-04-24 06:50:15 -04:00
committed by GitHub
parent b05b32d73e
commit ffda2398f4
41 changed files with 678 additions and 667 deletions
+2 -5
View File
@@ -1,9 +1,6 @@
const bent = require('bent');
const getJSON = bent('GET', 200);
const request = require('request');
const test = async() => {
request.get('https://api.github.com/user', {
fetch('https://api.github.com/user', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.GH_CODE}`,
Accept: 'application/json',