Skip to content

Commit

Permalink
update version, changelog, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chapiewsky committed Jun 16, 2019
1 parent f8698b0 commit 382e1a3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 31 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 4.1.0 - 2019-06-16
### Added
- Enter winner promo card giveaways (#96)[https://github.com/jpchip/giveaway-grabber/issues/96]
- Log entries skipped for being below minimum price
### Fixed
- Make sure url saved is always the url for the entry on the giveaways screen (#104)[https://github.com/jpchip/giveaway-grabber/issues/104]

## 4.0.1 - 2019-06-08
### Fixed
- Readme typos
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ The table below outlines the codes used and what they are indicating.
| W | The sweepstakes was won |
| L | The sweepstakes was lost |
| E | The sweepstakes has ended |
| M | The sweepstakes was below minimum price |
| A | The sweepstakes was already entered |
| C | The sweepstakes cannot be entered |


Codes relate to not being able to be processed are not stored. The expectation is that as Giveaway-Grabber matures these items may be corrected. As such, blocking them due to a failure would force Giveaway-Grabber to skip them after the problem is rectified.

**NOTE:** If you delete your giveaway-grabber's install directory, you may want to grab the gg.db file first. When a new Giveaway-Grabber is installed or cloned you can put the gg.db file into the install directory. This way you will be able to retain all of the sweepstakes you have previously entered. The gg.db file will rebuild on its own, but Giveaway-Grabber will need to go through each page to do so.
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "giveaway-grabber",
"version": "4.0.1",
"version": "4.1.0",
"description": "Automates entries for Amazon Giveaways",
"preferGlobal": true,
"main": "index.js",
Expand Down
10 changes: 8 additions & 2 deletions src/giveaways.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,10 @@ async function enterGiveaways(page, pageNumber) {

let giveawayUrl = await getGiveawayURL(page, i);
if (giveawayUrl.length > 0) {
currentGiveawayUrl = giveawayUrl.substring(0, giveawayUrl.indexOf('?'));
currentGiveawayUrl = giveawayUrl.substring(
0,
giveawayUrl.indexOf('?')
);
const skippable = await isSkippable(currentGiveawayUrl);
if (skippable) {
console.log(
Expand Down Expand Up @@ -739,7 +742,10 @@ async function enterGiveaways(page, pageNumber) {
process.env.MINIMUM_PRICE
}.`
);
await setProcessingCode(urlTypes.MINIMUM_PRICE, currentGiveawayUrl);
await setProcessingCode(
urlTypes.MINIMUM_PRICE,
currentGiveawayUrl
);
await page.goBack();
return;
}
Expand Down

0 comments on commit 382e1a3

Please sign in to comment.