lol-constants 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,14 @@
1
1
  export declare const PlatformIds: {
2
- readonly BR1: "BR1";
3
- readonly EUN1: "EUN1";
4
- readonly EUW1: "EUW1";
5
- readonly JP1: "JP1";
2
+ readonly BR: "BR1";
3
+ readonly EUNE: "EUN1";
4
+ readonly EUW: "EUW1";
5
+ readonly JP: "JP1";
6
6
  readonly KR: "KR";
7
- readonly LA1: "LA1";
8
- readonly LA2: "LA2";
9
- readonly NA1: "NA1";
10
- readonly OC1: "OC1";
11
- readonly TR1: "TR1";
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
- 'BR1': 'BR1',
6
- 'EUN1': 'EUN1',
7
- 'EUW1': 'EUW1',
8
- 'JP1': 'JP1',
6
+ 'BR': 'BR1',
7
+ 'EUNE': 'EUN1',
8
+ 'EUW': 'EUW1',
9
+ 'JP': 'JP1',
9
10
  'KR': 'KR',
10
- 'LA1': 'LA1',
11
- 'LA2': 'LA2',
12
- 'NA1': 'NA1',
13
- 'OC1': 'OC1',
14
- 'TR1': 'TR1',
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 exports.PlatformIds;
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 EUW: "EUW";
3
- readonly EUNE: "EUNE";
4
- readonly NA: "NA";
2
+ readonly BR1: "BR";
3
+ readonly EUN1: "EUNE";
4
+ readonly EUW1: "EUW";
5
+ readonly JP1: "JP";
5
6
  readonly KR: "KR";
6
- readonly JP: "JP";
7
- readonly OCE: "OCE";
8
- readonly LAN: "LAN";
9
- readonly LAS: "LAS";
10
- readonly TR: "TR";
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
- 'EUW': 'EUW',
6
- 'EUNE': 'EUNE',
7
- 'NA': 'NA',
6
+ 'BR1': 'BR',
7
+ 'EUN1': 'EUNE',
8
+ 'EUW1': 'EUW',
9
+ 'JP1': 'JP',
8
10
  'KR': 'KR',
9
- 'JP': 'JP',
10
- 'OCE': 'OCE',
11
- 'LAN': 'LAN',
12
- 'LAS': 'LAS',
13
- 'TR': 'TR',
11
+ 'LA1': 'LAN',
12
+ 'LA2': 'LAS',
13
+ 'NA1': 'NA',
14
+ 'OC1': 'OCE',
15
+ 'TR1': 'TR',
14
16
  'RU': 'RU',
15
- 'BR': 'BR',
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 exports.Regions;
26
+ return typeof value == 'string' && value in PlatformIds_1.PlatformIds;
25
27
  }
26
28
  exports.isRegion = isRegion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",