diff --git a/package.json b/package.json index 8ad3334..e72c5fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "microsoft-rewards-script", - "version": "1.4.6", + "version": "1.4.7", "description": "Automatically do tasks for Microsoft Rewards but in TS!", "main": "index.js", "engines": { @@ -26,17 +26,17 @@ "author": "Netsky", "license": "ISC", "devDependencies": { - "@typescript-eslint/eslint-plugin": "^6.20.0", - "eslint": "^8.56.0", + "@typescript-eslint/eslint-plugin": "^7.11.0", + "eslint": "^8.57.0", "eslint-plugin-modules-newline": "^0.0.6", - "typescript": "^5.3.3" + "typescript": "^5.4.5" }, "dependencies": { - "axios": "^1.6.7", + "axios": "^1.7.2", "cheerio": "^1.0.0-rc.12", - "fingerprint-generator": "^2.1.49", - "fingerprint-injector": "^2.1.49", - "playwright": "^1.42.0", + "fingerprint-generator": "^2.1.51", + "fingerprint-injector": "^2.1.51", + "playwright": "^1.44.1", "ts-node": "^10.9.2" } } diff --git a/src/functions/activities/Search.ts b/src/functions/activities/Search.ts index 86e0af3..6831026 100644 --- a/src/functions/activities/Search.ts +++ b/src/functions/activities/Search.ts @@ -140,6 +140,8 @@ export class Search extends Workers { window.scrollTo(0, 0) }) + await this.bot.utils.wait(500) + const searchBar = '#sb_form_q' await searchPage.waitForSelector(searchBar, { state: 'visible', timeout: 10_000 }) await searchPage.click(searchBar) // Focus on the textarea diff --git a/start.bat b/start.bat new file mode 100644 index 0000000..a01add9 --- /dev/null +++ b/start.bat @@ -0,0 +1 @@ +npm run start \ No newline at end of file