Update index.js
Browse files
index.js
CHANGED
|
@@ -3,6 +3,8 @@ const axios = require('axios');
|
|
| 3 |
const tough = require('tough-cookie');
|
| 4 |
const { HttpsCookieAgent } = require('http-cookie-agent/http');
|
| 5 |
const cheerio = require('cheerio');
|
|
|
|
|
|
|
| 6 |
|
| 7 |
const app = express();
|
| 8 |
const PORT = process.env.PORT || 3000;
|
|
|
|
| 3 |
const tough = require('tough-cookie');
|
| 4 |
const { HttpsCookieAgent } = require('http-cookie-agent/http');
|
| 5 |
const cheerio = require('cheerio');
|
| 6 |
+
const { File } = require('undici');
|
| 7 |
+
global.File = File;
|
| 8 |
|
| 9 |
const app = express();
|
| 10 |
const PORT = process.env.PORT || 3000;
|