dev #1

Merged
nocci merged 51 commits from dev into main 2026-03-06 16:31:29 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 370e3db206 - Show all commits

View file

@ -24,6 +24,7 @@ module.exports = {
'@stylistic/js',
],
globals: {
screenshot: 'readonly',
cfg: 'readonly',
URL_CLAIM: 'readonly',
COOKIES_PATH: 'readonly',

View file

@ -3,10 +3,10 @@ import { authenticator } from 'otplib';
import chalk from 'chalk';
import path from 'node:path';
import { existsSync, writeFileSync, appendFileSync } from 'node:fs';
import { resolve, jsonDb, datetime, stealth, filenamify, prompt, notify, html_game_list, handleSIGINT } from './src/util.js';
import { jsonDb, datetime, stealth, filenamify, prompt, notify, html_game_list, handleSIGINT } from './src/util.js';
import { cfg } from './src/config.js';
const screenshot = (...a) => resolve(cfg.dir.screenshots, 'epic-games', ...a);
const screenshot = (...a) => path.resolve(cfg.dir.screenshots, 'epic-games', ...a);
const URL_CLAIM = 'https://store.epicgames.com/en-US/free-games';
const URL_LOGIN = 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=' + URL_CLAIM;