refactor: store naming and map reference

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-09-19 17:43:53 -04:00
parent 8c5d7d0c49
commit cf0e959fb4
3 changed files with 10 additions and 9 deletions
+1
View File
@@ -88,6 +88,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| **Stores** | **Environment variable** |
|:---:|:---:|
| Best Buy | `bestbuy`|
| Amazon.ca | `amazon-ca`|
| Amazon | `amazon`|
| B&H | `bandh`|
| EVGA | `evga`|
+1 -1
View File
@@ -80,5 +80,5 @@ export const AmazonCa: Store = {
captchaLabels: ['enter the characters you see below']
}
],
name: 'amazonCa'
name: 'amazon-ca'
};
+8 -8
View File
@@ -9,14 +9,14 @@ import {Nvidia} from './nvidia';
import {AmazonCa} from './amazon-ca';
const masterList = new Map([
['amazon', Amazon],
['amazonca', AmazonCa],
['bestbuy', BestBuy],
['bandh', BAndH],
['evga', Evga],
['microcenter', MicroCenter],
['newegg', NewEgg],
['nvidia', Nvidia]
[Amazon.name, Amazon],
[AmazonCa.name, AmazonCa],
[BestBuy.name, BestBuy],
[BAndH.name, BAndH],
[Evga.name, Evga],
[MicroCenter.name, MicroCenter],
[NewEgg.name, NewEgg],
[Nvidia.name, Nvidia]
]);
const list = new Map();