Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Lint

Mathieu Colmona70a3be84609
diff --git a/src/miscRequests.js b/src/miscRequests.js
index dbffb49..1af6d0b 100644
--- a/src/miscRequests.js
+++ b/src/miscRequests.js
@@ -377,7 +377,7 @@ module.exports = {
const sessionCookie = cookies.find((c) => c.includes('sessionid='));
const session = (sessionCookie.match(/sessionid=(.*?);/) ?? [])[1];
-
+
const signCookie = cookies.find((c) => c.includes('sessionid_sign='));
const signature = (signCookie.match(/sessionid_sign=(.*?);/) ?? [])[1];
diff --git a/tests/10. Authenticated.js b/tests/10. Authenticated.js
index 5d98963..7772537 100644
--- a/tests/10. Authenticated.js
+++ b/tests/10. Authenticated.js
@@ -2,7 +2,7 @@
/* eslint-disable no-await-in-loop */
const TradingView = require('../main');
-const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
+const wait = (ms) => new Promise((cb) => { setTimeout(cb, ms); });
module.exports = async (log, success, warn, err, cb) => {
if (!process.env.SESSION || !process.env.SIGNATURE) {