Skip to content

Commit 4089a27

Browse files
authored
Merge pull request #8 from IronCore864/NL
npm audit fix vulnerabilities
2 parents 66b1e51 + 531c384 commit 4089a27

File tree

6 files changed

+48
-51
lines changed

6 files changed

+48
-51
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[Chrome Webstore](https://chrome.google.com/webstore/detail/amazon-eu-price-compare/iaakgomiepekffchlipoegcgahfcdbad)
22

33
# Find the Best Price in Amazon European Markets
4+
45
OK. You want to buy something from Amazon in Europe and of course you want the best price.
56

6-
I bet if you are a frequent Amazon user in Europe, you must have already known that among the european countries, Amazon has not only 1, but 5 different stores, which are: amazon.de, amazon.es, amazon.fr, amazon.it and amazon.co.uk.
7+
I bet if you are a frequent Amazon user in Europe, you must have already known that among the european countries, Amazon has not only 1, but 6 different stores, which are: amazon.de, amazon.es, amazon.fr, amazon.it, amazon.nl and amazon.co.uk.
78

8-
And I think you are no stranger to the fact that most of the time each item is sold on all of the 5 markets, and no matter which Amazon market you choose, it can be shipped within the EU area, however the price for the item differs, sometimes a lot.
9+
And I think you are no stranger to the fact that most of the time each item is sold on all of the 6 markets, and no matter which Amazon market you choose, it can be shipped within the EU area, however the price for the item differs, sometimes a lot.
910

1011
So let me describe normally what you would do:
1112

@@ -25,19 +26,38 @@ This extension helps you to find the best price with just one click. You just go
2526
Just a single click and you get the best price. No fuss, no muss.
2627

2728
# Known Issue
29+
2830
##### For CD/books/DVD categories, some products have multiple format, like a movie can have multiple formats like DVD, blue-ray, etc; for some products can't parse price correctly.
2931

3032
# DEV Info
33+
3134
Chrome extension with react and redux.
3235

3336
npm, babel and webpack needed for building.
3437

3538
### Build
39+
40+
```
41+
npm i
42+
npm audit fix
3643
npm run build
44+
```
3745

3846
### Unpacked chrome extension dir
47+
3948
chrome-extension
4049

50+
# Version 1.5 Updates:
51+
52+
I was informed by a user that Amazon opens amazon.nl for Netherland and Belgium, so this version is mainly about adding support for amazon.nl
53+
54+
Main feature:
55+
- Adding support for amazon.nl
56+
57+
By the way, some minor non-functional changes:
58+
- Update dependencies versions to fix vulnerabilites
59+
- Update README about build info
60+
4161
# Version 1.4.1 Updates:
4262
- Update manifest description.
4363

chrome-extension/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"name": "Amazon Best Price Europe",
55
"description": "Compare and find the best price in Amazon EU markets.",
6-
"version": "1.4.1",
6+
"version": "1.5.0",
77

88
"icons": {
99
"128": "icon128.png",
@@ -30,7 +30,7 @@
3030

3131
"content_scripts": [
3232
{
33-
"matches": ["*://www.amazon.de/*", "*://www.amazon.fr/*", "*://www.amazon.it/*", "*://www.amazon.es/*", "*://www.amazon.co.uk/*"],
33+
"matches": ["*://www.amazon.de/*", "*://www.amazon.fr/*", "*://www.amazon.it/*", "*://www.amazon.es/*", "*://www.amazon.nl/*", "*://www.amazon.co.uk/*"],
3434
"js": ["content.js"],
3535
"run_at": "document_start"
3636
}

package-lock.json

Lines changed: 20 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "amazon-eu-price-compare",
3-
"version": "1.3.4",
4-
"description": "This extension compares price from amazon de, it, es, fr and uk",
3+
"version": "1.5.0",
4+
"description": "This extension compares price from amazon de, it, es, fr, nl and uk",
55
"main": "content.js",
66
"scripts": {
77
"build": "NODE_ENV=production webpack",

src/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function getCurrentPageUrl() {
6565
dispatch(receiveCountryRank(country, results[1]))
6666
}
6767
})
68-
var all_countries = ['uk', 'de', 'fr', 'es', 'it']
68+
var all_countries = ['uk', 'de', 'fr', 'es', 'it', 'nl']
6969
var currentCountry = [country]
7070
var countriesToSearch = all_countries.filter(x => currentCountry.indexOf(x) < 0 )
7171
for (var i = 0; i < countriesToSearch.length; i ++){

src/util/AmazonUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getProductIDFromAmazonProductPageUrl(url) {
1010
}
1111

1212
export function getCountryFromAmazonProductPageUrl(url) {
13-
var re = /amazon(\.co)*\.(uk|fr|de|it|es)/
13+
var re = /amazon(\.co)*\.(uk|fr|de|it|es|nl)/
1414
var match = re.exec(url)
1515
if(url.match(re)){
1616
return match[2]

0 commit comments

Comments
 (0)