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** | | **Stores** | **Environment variable** |
|:---:|:---:| |:---:|:---:|
| Best Buy | `bestbuy`| | Best Buy | `bestbuy`|
| Amazon.ca | `amazon-ca`|
| Amazon | `amazon`| | Amazon | `amazon`|
| B&H | `bandh`| | B&H | `bandh`|
| EVGA | `evga`| | EVGA | `evga`|
+1 -1
View File
@@ -80,5 +80,5 @@ export const AmazonCa: Store = {
captchaLabels: ['enter the characters you see below'] 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'; import {AmazonCa} from './amazon-ca';
const masterList = new Map([ const masterList = new Map([
['amazon', Amazon], [Amazon.name, Amazon],
['amazonca', AmazonCa], [AmazonCa.name, AmazonCa],
['bestbuy', BestBuy], [BestBuy.name, BestBuy],
['bandh', BAndH], [BAndH.name, BAndH],
['evga', Evga], [Evga.name, Evga],
['microcenter', MicroCenter], [MicroCenter.name, MicroCenter],
['newegg', NewEgg], [NewEgg.name, NewEgg],
['nvidia', Nvidia] [Nvidia.name, Nvidia]
]); ]);
const list = new Map(); const list = new Map();