-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
index.ts
36 lines (30 loc) 路 885 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import {Adorama} from './adorama';
import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca';
import {Asus} from './asus';
import {BestBuy} from './bestbuy';
import {BAndH} from './bandh';
import {Config} from '../../config';
import {Evga} from './evga';
import {MicroCenter} from './microcenter';
import {NewEgg} from './newegg';
import {Nvidia} from './nvidia';
import {Store} from './store';
const masterList = new Map([
[Adorama.name, Adorama],
[Amazon.name, Amazon],
[AmazonCa.name, AmazonCa],
[Asus.name, Asus],
[BestBuy.name, BestBuy],
[BAndH.name, BAndH],
[Evga.name, Evga],
[MicroCenter.name, MicroCenter],
[NewEgg.name, NewEgg],
[Nvidia.name, Nvidia]
]);
const list = new Map();
for (const name of Config.store.stores) {
list.set(name, masterList.get(name));
}
export const Stores = Array.from(list.values()) as Store[];
export * from './store';