From a729d3535954960a04132501465e7778cbf4caa2 Mon Sep 17 00:00:00 2001 From: Revadike Date: Tue, 7 Apr 2020 01:14:08 +0200 Subject: [PATCH] V1.1.2 --- .gitignore | 1 + README.md | 5 +++++ gimme_free_epic_shit.js | 3 ++- package.json | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e0c788e..fd8e5cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.bat node_modules package-lock.json .vscode/* diff --git a/README.md b/README.md index f6ffc73..aadb492 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ Also, this is a good alternative, in case you don't like using Epic's client or To which I will say, why not? Most of these games are actually outstanding games! Even if you don't like Epic and their shenanigans, you will be pleased to know that Epic actually funds all the free copies that are given away: ["But we actually found it was more economical to pay developers [a lump sum] to distribute their game free for two weeks..."](https://arstechnica.com/gaming/2019/03/epic-ceo-youre-going-to-see-lower-prices-on-epic-games-store/) ## Changelog +### V1.1.2 + * Enables `rememberLastSession` by default* (Closes #4) + +*Please run `npm update` to update `epicgames-client`, required to utilize this new feature + ### V1.1.1 * Ensured all search results for all namespaces are purchased diff --git a/gimme_free_epic_shit.js b/gimme_free_epic_shit.js index ef4fc5a..e6077e2 100644 --- a/gimme_free_epic_shit.js +++ b/gimme_free_epic_shit.js @@ -2,7 +2,8 @@ const { Launcher: EpicGames } = require(`epicgames-client`); const { email, password } = require(`${__dirname}/config.json`); const client = new EpicGames({ email: process.argv[2] || email, - password: process.argv[3] || password + password: process.argv[3] || password, + rememberLastSession: true }); (async () => { diff --git a/package.json b/package.json index f64686c..a0081be 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "epicgames-freebies-claimer", "description": "Claim free game promotions from the Epic Game Store", - "version": "1.1.1", + "version": "1.1.2", "author": "Revadike", "homepage": "https://revadike.com", "url": "https://github.com/revadike/epicgames-freebies-claimer", "license": "MIT", "main": "gimme_free_epic_shit.js", "dependencies": { - "epicgames-client": "latest" + "epicgames-client": "^2.0.23" } }