Commit graph

724 commits

Author SHA1 Message Date
Ralf Vogler
9f97805517 debug navigator.{userAgent, platform} 2023-12-21 16:38:12 +01:00
Ralf Vogler
30957d63d0 DEBUG_NETWORK=1 to log network requests and responses instead of DEBUG && RECORD 2023-12-21 16:16:48 +01:00
Ralf Vogler
19e9bb9cfc eg: changed: move password fill and fix captcha locators, #260 2023-12-21 01:55:54 +01:00
Ralf Vogler
bdc305aa83 reorder package.json 2023-12-21 01:53:47 +01:00
Ralf Vogler
e18de7e640
Merge pull request #249 from Primajin/patch-1
prime-gaming: 'Claim now' -> 'Claim' for external/DLC
2023-12-21 01:19:20 +01:00
Jannis Hell
f4270e176f Update prime-gaming.js
The button was renamed to "Claim" instead of "Claim now" this causes / fixes #208
2023-12-20 20:55:14 +01:00
Ralf Vogler
8bf36a2158 specify engines.node >=15 for ||=, #264 2023-12-19 12:27:55 +01:00
Ralf Vogler
3c15252d8b pg: use chalk to color game codes blue, closes #250 2023-12-19 12:06:15 +01:00
Ralf Vogler
76597f4315 eg: include link to game in captcha notification, closes #259
TODO use purchaseURL from https://github.com/vogler/free-games-claimer/pull/130
2023-12-19 11:52:35 +01:00
Ralf Vogler
9c89bf06a4 npm run lint = npx eslint . 2023-12-19 11:34:00 +01:00
Ralf Vogler
36fe60a2b1 vscode update changed config 2023-12-19 11:33:38 +01:00
Ralf Vogler
0f549285b9
Merge pull request #253 from vogler/dependabot/github_actions/actions/setup-node-4
build(deps): bump actions/setup-node from 3 to 4
2023-12-19 11:30:59 +01:00
Ralf Vogler
544eff8a23 ncu -u: playwright-firefox 1.40.0 -> 1.40.1, eslint 2023-12-19 11:25:21 +01:00
Ralf Vogler
5919d37efa ncu -u: playwright-firefox 1.39.0 -> 1.40.0, eslint 2023-11-23 16:16:26 +01:00
dependabot[bot]
324f6bffe7
build(deps): bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 06:01:59 +00:00
Ralf Vogler
4231b7dd28 gog: don't wait for screenshot to not be loading, closes #240 2023-11-09 02:43:43 +01:00
Ralf Vogler
3ddf1720bb notify: use execFile with arg array instead of exec to avoid shell-escape, fixes #239
Also proper fix for https://github.com/vogler/free-games-claimer/pull/167

https://www.npmjs.com/package/shell-escape
https://stackoverflow.com/questions/1779858/how-do-i-escape-a-string-for-a-shell-command-in-node
https://nodejs.org/api/child_process.html#child_processexecfilefile-args-options-callback
2023-11-09 02:34:17 +01:00
Ralf Vogler
a7cc68b6db ue: login: fix #248, similar to #236
Commits for #236:
d73a523fe7
a374d48345
2023-11-09 01:41:01 +01:00
Ralf Vogler
739fb0dbfe vscode workspace settings for formatOnSave with eslint --fix using flat config
https://eslint.style/guide/faq#vs-code
2023-11-08 02:30:21 +01:00
Ralf Vogler
110b2ea4c6 eslint: migrate to new flat config (.eslintrc.cjs -> eslint.config.js)
https://eslint.org/docs/latest/use/configure/configuration-files-new
https://eslint.org/docs/latest/use/configure/migration-guide
2023-11-08 02:28:34 +01:00
Ralf Vogler
c5f75e06c8 gha: sonar: disable shallow clone (irrelevant) to get rid of warning 2023-11-08 01:36:35 +01:00
Ralf Vogler
d4685ff370 gha: sonar: install dev deps for eslint plugins 2023-11-08 01:32:20 +01:00
Ralf Vogler
0832ae57f5 run eslint --fix . 2023-11-08 01:16:49 +01:00
Ralf Vogler
011eddf97a eslint: enable most stylistic rules
https://eslint.style/packages/js
2023-11-08 01:02:43 +01:00
Ralf Vogler
efe4faab3e
add sonarcloud badge for code smells 2023-11-07 18:24:32 +01:00
Ralf Vogler
e4e4f2eafa fix eslint errors 2023-11-07 18:10:22 +01:00
Ralf Vogler
6a34cb541d format sonar.yml 2023-11-07 18:03:54 +01:00
Ralf Vogler
5083ea408d ncu -u: eslint 8.50.0 -> 8.53.0 2023-11-07 17:58:36 +01:00
Ralf Vogler
2eaf6f0598 .eslintignore -> .gitignore, no-unused-vars: ignore args starting with _
https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern
https://eslint.org/docs/latest/rules/no-undef
2023-11-07 17:57:10 +01:00
Ralf Vogler
dec0b519a5
Merge pull request #228 from 4n4n4s/ci
Sonarqube support with ESLint
2023-11-07 17:36:20 +01:00
Ralf Vogler
6113ea4b8d
Merge branch 'main' into ci 2023-11-07 17:32:00 +01:00
Ralf Vogler
798b130c92 fix vscode problem in jsconfig with module vs. moduleResolution
Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.ts
Specify what module code is generated.

See more: https://www.typescriptlang.org/tsconfig#module
2023-11-07 16:45:17 +01:00
Ralf Vogler
e5935faa13 sonarcloud fixes 2023-11-07 15:20:58 +01:00
Ralf Vogler
b5ef699f4f sort .dockerignore 2023-11-07 12:03:15 +01:00
Ralf Vogler
a6b9ec9609 sonarcloud fix reject(error)
https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=CONSISTENT&resolved=false&id=vogler_free-games-claimer&open=AYupZi4O_aoWVkCdISRb&tab=code
2023-11-07 12:02:33 +01:00
Ralf Vogler
a62aa8c0c8 sonarcloud fix docker: Remove cache after installing packages
https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=vogler_free-games-claimer&open=AYupZi3__aoWVkCdISRI
https://sonarcloud.io/organizations/vogler/rules?open=docker%3AS6587&rule_key=docker%3AS6587&tab=how_to_fix
https://askubuntu.com/questions/3167/what-is-difference-between-the-options-autoclean-autoremove-and-clean
2023-11-07 11:53:29 +01:00
Ralf Vogler
e192365b48 can't have comment in yml list? 2023-11-07 11:39:08 +01:00
Ralf Vogler
92ce3d405d run docker workflow if its defition changed 2023-11-07 11:36:17 +01:00
Ralf Vogler
584130f5d1 edits for #229, build image for PRs from forks? 2023-11-07 11:31:14 +01:00
Ralf Vogler
5fda138d8d
Merge pull request #229 from 4n4n4s/docker
Allow forks to publish docker images
2023-11-07 11:16:24 +01:00
Ralf Vogler
11db31ea46 Merge branch 'xbox-gold'
https://github.com/vogler/free-games-claimer/pull/160
2023-11-06 19:40:18 +01:00
Ralf Vogler
0ab9935fb5 eg: catch timeout in case there are no free games available, #210 2023-11-06 19:22:43 +01:00
Ralf Vogler
28a1e42cc4 npm package*.json license MIT -> AGPL-3.0-only 2023-11-06 19:15:09 +01:00
Ralf Vogler
32cd0d8990
Create LICENSE - AGPL-3.0
https://choosealicense.com/licenses/agpl-3.0/
2023-11-06 19:12:16 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
Ralf Vogler
75f7d77445 upgrade playwright-firefox 1.38.1 -> 1.39.0 2023-11-02 16:23:46 +01:00
Ralf Vogler
bf870919a6 upgrade to lowdb 6.1.1 and use JSONPreset
See example in https://github.com/typicode/lowdb/releases/tag/v6.1.0
2023-11-02 16:18:48 +01:00
Ralf Vogler
280ab70975
README.md: recommend to run without docker until #183 is fixed 2023-11-02 16:01:08 +01:00
4n4n4s
1dbe2f1457 Allow forks to create builds and fix failing build 2023-10-27 11:37:32 +00:00
Ralf Vogler
4137bb5569 DEBUG=1 as alternative to PWDEBUG=1 (also shows Playwright debugger) 2023-10-26 15:01:04 +02:00