lol-constants 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
|
|
1
1
|
export declare const PlatformIds: {
|
2
|
-
readonly
|
3
|
-
readonly
|
4
|
-
readonly
|
5
|
-
readonly
|
2
|
+
readonly BR: "BR1";
|
3
|
+
readonly EUNE: "EUN1";
|
4
|
+
readonly EUW: "EUW1";
|
5
|
+
readonly JP: "JP1";
|
6
6
|
readonly KR: "KR";
|
7
|
-
readonly
|
8
|
-
readonly
|
9
|
-
readonly
|
10
|
-
readonly
|
11
|
-
readonly
|
7
|
+
readonly LAN: "LA1";
|
8
|
+
readonly LAS: "LA2";
|
9
|
+
readonly NA: "NA1";
|
10
|
+
readonly OCE: "OC1";
|
11
|
+
readonly TR: "TR1";
|
12
12
|
readonly RU: "RU";
|
13
13
|
};
|
14
14
|
export type PlatformId = typeof PlatformIds[keyof typeof PlatformIds];
|
@@ -1,20 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isPlatformId = exports.PlatformIds = void 0;
|
4
|
+
const Regions_1 = require("./Regions");
|
4
5
|
exports.PlatformIds = {
|
5
|
-
'
|
6
|
-
'
|
7
|
-
'
|
8
|
-
'
|
6
|
+
'BR': 'BR1',
|
7
|
+
'EUNE': 'EUN1',
|
8
|
+
'EUW': 'EUW1',
|
9
|
+
'JP': 'JP1',
|
9
10
|
'KR': 'KR',
|
10
|
-
'
|
11
|
-
'
|
12
|
-
'
|
13
|
-
'
|
14
|
-
'
|
11
|
+
'LAN': 'LA1',
|
12
|
+
'LAS': 'LA2',
|
13
|
+
'NA': 'NA1',
|
14
|
+
'OCE': 'OC1',
|
15
|
+
'TR': 'TR1',
|
15
16
|
'RU': 'RU',
|
16
17
|
};
|
17
18
|
function isPlatformId(value) {
|
18
|
-
return typeof value == 'string' && value in
|
19
|
+
return typeof value == 'string' && value in Regions_1.Regions;
|
19
20
|
}
|
20
21
|
exports.isPlatformId = isPlatformId;
|
@@ -1,21 +1,15 @@
|
|
1
1
|
export declare const Regions: {
|
2
|
-
readonly
|
3
|
-
readonly
|
4
|
-
readonly
|
2
|
+
readonly BR1: "BR";
|
3
|
+
readonly EUN1: "EUNE";
|
4
|
+
readonly EUW1: "EUW";
|
5
|
+
readonly JP1: "JP";
|
5
6
|
readonly KR: "KR";
|
6
|
-
readonly
|
7
|
-
readonly
|
8
|
-
readonly
|
9
|
-
readonly
|
10
|
-
readonly
|
7
|
+
readonly LA1: "LAN";
|
8
|
+
readonly LA2: "LAS";
|
9
|
+
readonly NA1: "NA";
|
10
|
+
readonly OC1: "OCE";
|
11
|
+
readonly TR1: "TR";
|
11
12
|
readonly RU: "RU";
|
12
|
-
readonly BR: "BR";
|
13
|
-
readonly PBE: "PBE";
|
14
|
-
readonly SG: "SG";
|
15
|
-
readonly TH: "TH";
|
16
|
-
readonly TW: "TW";
|
17
|
-
readonly VN: "VN";
|
18
|
-
readonly PH: "PH";
|
19
13
|
};
|
20
14
|
export type Region = typeof Regions[keyof typeof Regions];
|
21
15
|
export declare function isRegion(value: any): value is Region;
|
@@ -1,26 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRegion = exports.Regions = void 0;
|
4
|
+
const PlatformIds_1 = require("./PlatformIds");
|
4
5
|
exports.Regions = {
|
5
|
-
'
|
6
|
-
'
|
7
|
-
'
|
6
|
+
'BR1': 'BR',
|
7
|
+
'EUN1': 'EUNE',
|
8
|
+
'EUW1': 'EUW',
|
9
|
+
'JP1': 'JP',
|
8
10
|
'KR': 'KR',
|
9
|
-
'
|
10
|
-
'
|
11
|
-
'
|
12
|
-
'
|
13
|
-
'
|
11
|
+
'LA1': 'LAN',
|
12
|
+
'LA2': 'LAS',
|
13
|
+
'NA1': 'NA',
|
14
|
+
'OC1': 'OCE',
|
15
|
+
'TR1': 'TR',
|
14
16
|
'RU': 'RU',
|
15
|
-
|
16
|
-
'PBE': 'PBE',
|
17
|
-
'SG': 'SG',
|
18
|
-
'TH': 'TH',
|
19
|
-
'TW': 'TW',
|
20
|
-
'VN': 'VN',
|
21
|
-
'PH': 'PH',
|
17
|
+
//
|
18
|
+
// 'PBE': 'PBE',
|
19
|
+
// 'SG': 'SG',
|
20
|
+
// 'TH': 'TH',
|
21
|
+
// 'TW': 'TW',
|
22
|
+
// 'VN': 'VN',
|
23
|
+
// 'PH': 'PH',
|
22
24
|
};
|
23
25
|
function isRegion(value) {
|
24
|
-
return typeof value == 'string' && value in
|
26
|
+
return typeof value == 'string' && value in PlatformIds_1.PlatformIds;
|
25
27
|
}
|
26
28
|
exports.isRegion = isRegion;
|
package/package.json
CHANGED