lol-constants 2.23.0 → 2.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. package/assets/constants/BootsItemNames.js +1 -4
  2. package/assets/constants/Champion.js +1 -4
  3. package/assets/constants/Item.js +1 -4
  4. package/assets/constants/LegendaryItemNames.d.ts +1 -1
  5. package/assets/constants/LegendaryItemNames.js +4 -5
  6. package/assets/constants/RunesReforged.js +1 -4
  7. package/assets/constants/StatRunes.js +1 -4
  8. package/assets/constants/StatRunesByRow.js +1 -4
  9. package/assets/constants/Summoner.js +1 -4
  10. package/assets/index.js +4 -20
  11. package/assets/scripts/asset-scripts/champion.js +5 -7
  12. package/assets/scripts/asset-scripts/generate-all.js +4 -6
  13. package/assets/scripts/asset-scripts/item.js +5 -7
  14. package/assets/scripts/asset-scripts/runes-reforged.js +5 -7
  15. package/assets/scripts/asset-scripts/summoner.js +5 -7
  16. package/assets/scripts/constants/RuneIdComment.js +1 -4
  17. package/assets/scripts/generate-categorized-item-keys-num.js +15 -17
  18. package/assets/scripts/generate-categorized-item-keys.js +12 -14
  19. package/assets/scripts/generate-categorized-item-names.js +12 -14
  20. package/assets/scripts/generate-champion-ids-by-name.js +5 -7
  21. package/assets/scripts/generate-champion-ids.js +5 -7
  22. package/assets/scripts/generate-champion-keys-num.js +7 -9
  23. package/assets/scripts/generate-champion-keys.js +5 -7
  24. package/assets/scripts/generate-champion-names.js +5 -7
  25. package/assets/scripts/generate-item-keys-num.js +7 -9
  26. package/assets/scripts/generate-item-keys.js +5 -7
  27. package/assets/scripts/generate-item-names.js +5 -7
  28. package/assets/scripts/generate-non-stat-rune-ids-num.js +4 -6
  29. package/assets/scripts/generate-non-stat-rune-ids.js +6 -8
  30. package/assets/scripts/generate-non-stat-rune-names.js +4 -6
  31. package/assets/scripts/generate-rune-ids.js +8 -10
  32. package/assets/scripts/generate-rune-names.js +6 -8
  33. package/assets/scripts/generate-rune-picking-relationships.js +4 -6
  34. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +12 -14
  35. package/assets/scripts/generate-rune-sets-by-rune-names.js +10 -12
  36. package/assets/scripts/generate-rune-sets.js +7 -9
  37. package/assets/scripts/generate-spell-ids-by-name.js +5 -7
  38. package/assets/scripts/generate-spell-ids.js +5 -7
  39. package/assets/scripts/generate-spell-keys-num.js +7 -9
  40. package/assets/scripts/generate-spell-keys.js +5 -7
  41. package/assets/scripts/generate-spell-names.js +5 -7
  42. package/assets/scripts/generate-stat-rune-ids.js +6 -8
  43. package/assets/scripts/generate-stat-rune-names.js +4 -6
  44. package/assets/scripts/helpers/enableEscapedValues.js +1 -5
  45. package/assets/scripts/helpers/generateIndexFile.js +1 -5
  46. package/assets/scripts/helpers/getExportStatement.js +6 -10
  47. package/assets/scripts/helpers/getFmtdComment.js +1 -5
  48. package/assets/scripts/helpers/validateNumber.js +1 -5
  49. package/assets/scripts/helpers/writeToTmpFile.js +5 -9
  50. package/assets/scripts/print-file-names.js +5 -7
  51. package/core/constants/Abilities.js +6 -11
  52. package/core/constants/BuildingTypes.js +3 -7
  53. package/core/constants/Champions/ChampionClasses.d.ts +17 -0
  54. package/core/constants/Champions/ChampionClasses.js +25 -0
  55. package/core/constants/Champions/ChampionIds.js +1 -4
  56. package/core/constants/Champions/ChampionIdsByName.js +1 -4
  57. package/core/constants/Champions/ChampionKeys.js +1 -4
  58. package/core/constants/Champions/ChampionKeysNum.js +1 -4
  59. package/core/constants/Champions/ChampionNames.js +1 -4
  60. package/core/constants/Continents.js +3 -7
  61. package/core/constants/DataDragonUrls.d.ts +16 -16
  62. package/core/constants/DataDragonUrls.js +3 -6
  63. package/core/constants/DragonTypes.js +3 -7
  64. package/core/constants/GameModes.js +3 -7
  65. package/core/constants/GameTypes.js +3 -7
  66. package/core/constants/Items/BootsItemKeys.js +1 -4
  67. package/core/constants/Items/BootsItemKeysNum.js +1 -4
  68. package/core/constants/Items/BootsItemNames.js +1 -4
  69. package/core/constants/Items/ItemKeys.js +1 -4
  70. package/core/constants/Items/ItemKeysNum.js +1 -4
  71. package/core/constants/Items/ItemNames.js +1 -4
  72. package/core/constants/Items/ItemTypes.js +3 -7
  73. package/core/constants/Items/LegendaryItemKeys.js +1 -4
  74. package/core/constants/Items/LegendaryItemKeysNum.js +1 -4
  75. package/core/constants/Items/LegendaryItemNames.js +1 -4
  76. package/core/constants/KillTypes.js +3 -7
  77. package/core/constants/LaneTypes.js +3 -7
  78. package/core/constants/Lanes.js +3 -7
  79. package/core/constants/LeagueTexts.js +3 -7
  80. package/core/constants/Levels.js +3 -7
  81. package/core/constants/Locales.js +3 -7
  82. package/core/constants/MapIds.js +3 -7
  83. package/core/constants/MonsterTypes.d.ts +2 -1
  84. package/core/constants/MonsterTypes.js +5 -8
  85. package/core/constants/ParticipantIds.js +3 -7
  86. package/core/constants/PlatformApiUris.js +3 -7
  87. package/core/constants/PlatformIds.js +6 -11
  88. package/core/constants/Positions.js +3 -7
  89. package/core/constants/QueueIds.js +5 -9
  90. package/core/constants/QueueTypes.js +3 -7
  91. package/core/constants/RankedRanks.js +3 -7
  92. package/core/constants/RankedTiers.js +3 -7
  93. package/core/constants/RegionalApiUris.js +3 -7
  94. package/core/constants/Regions.js +6 -11
  95. package/core/constants/RelativeTeams.js +3 -7
  96. package/core/constants/Roles.js +3 -7
  97. package/core/constants/Runes/NonStatRuneIds.js +1 -4
  98. package/core/constants/Runes/NonStatRuneIdsNum.js +1 -4
  99. package/core/constants/Runes/NonStatRuneNames.js +1 -4
  100. package/core/constants/Runes/RuneIconFileNames.js +1 -4
  101. package/core/constants/Runes/RunePickingRelationships.js +1 -4
  102. package/core/constants/Runes/RuneSets.js +8 -11
  103. package/core/constants/Runes/RuneSetsByRuneNames.js +8 -11
  104. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +8 -11
  105. package/core/constants/Runes/RuneTreeIds.js +6 -11
  106. package/core/constants/Runes/RuneTreeIdsNum.js +6 -11
  107. package/core/constants/Runes/RuneTreeNames.js +6 -11
  108. package/core/constants/Runes/RuneTreeTypes.js +3 -7
  109. package/core/constants/SkillSlots.js +3 -7
  110. package/core/constants/Skills.js +3 -7
  111. package/core/constants/Spells/SpellIds.js +1 -4
  112. package/core/constants/Spells/SpellIdsByName.js +1 -4
  113. package/core/constants/Spells/SpellKeys.js +1 -4
  114. package/core/constants/Spells/SpellKeysNum.js +1 -4
  115. package/core/constants/Spells/SpellNames.js +1 -4
  116. package/core/constants/TeamIds.js +3 -7
  117. package/core/constants/TowerTypes.js +3 -7
  118. package/core/constants/WardTypes.js +3 -7
  119. package/core/helpers/Champions/getChampionIdByKey.js +3 -7
  120. package/core/helpers/Champions/getChampionIdByName.js +3 -7
  121. package/core/helpers/Champions/getChampionKeyById.js +3 -7
  122. package/core/helpers/Champions/getChampionKeyByName.js +4 -8
  123. package/core/helpers/Champions/getChampionNameById.js +4 -8
  124. package/core/helpers/Champions/getChampionNameByKey.js +3 -7
  125. package/core/helpers/Champions/isChampionId.js +3 -7
  126. package/core/helpers/Champions/isChampionKey.js +3 -7
  127. package/core/helpers/Champions/isChampionKeyNum.js +3 -7
  128. package/core/helpers/Champions/isChampionName.js +3 -7
  129. package/core/helpers/Items/getItemKeyByName.js +3 -7
  130. package/core/helpers/Items/getItemNameByKey.js +3 -7
  131. package/core/helpers/Items/isBootsItemKey.js +3 -7
  132. package/core/helpers/Items/isBootsItemKeyNum.js +3 -7
  133. package/core/helpers/Items/isBootsItemName.js +3 -7
  134. package/core/helpers/Items/isItemKey.js +3 -7
  135. package/core/helpers/Items/isItemKeyNum.js +3 -7
  136. package/core/helpers/Items/isItemName.js +3 -7
  137. package/core/helpers/Items/isLegendaryItemKey.js +3 -7
  138. package/core/helpers/Items/isLegendaryItemKeyNum.js +3 -7
  139. package/core/helpers/Items/isLegendaryItemName.js +3 -7
  140. package/core/helpers/Items/isTier2Boots.d.ts +3 -0
  141. package/core/helpers/Items/isTier2Boots.js +9 -0
  142. package/core/helpers/Runes/getNonStatRuneIdByName.js +3 -7
  143. package/core/helpers/Runes/getNonStatRuneNameById.js +3 -7
  144. package/core/helpers/Runes/getRuneCategoryName.js +8 -12
  145. package/core/helpers/Runes/getRuneCdnUrl.js +16 -20
  146. package/core/helpers/Runes/getRuneIdByName.js +3 -7
  147. package/core/helpers/Runes/getRuneNameById.js +3 -7
  148. package/core/helpers/Runes/getStatRuneIdByName.js +3 -7
  149. package/core/helpers/Runes/getStatRuneNameById.js +3 -7
  150. package/core/helpers/Runes/isDominationRuneId.js +3 -7
  151. package/core/helpers/Runes/isDominationRuneIdNum.js +3 -7
  152. package/core/helpers/Runes/isDominationRuneName.js +3 -7
  153. package/core/helpers/Runes/isInspirationRuneId.js +3 -7
  154. package/core/helpers/Runes/isInspirationRuneIdNum.js +3 -7
  155. package/core/helpers/Runes/isInspirationRuneName.js +3 -7
  156. package/core/helpers/Runes/isKeystoneRuneId.js +3 -7
  157. package/core/helpers/Runes/isKeystoneRuneIdNum.js +3 -7
  158. package/core/helpers/Runes/isKeystoneRuneName.js +3 -7
  159. package/core/helpers/Runes/isNonStatRuneId.js +3 -7
  160. package/core/helpers/Runes/isNonStatRuneIdNum.js +3 -7
  161. package/core/helpers/Runes/isNonStatRuneName.js +3 -7
  162. package/core/helpers/Runes/isPrecisionRuneId.js +3 -7
  163. package/core/helpers/Runes/isPrecisionRuneIdNum.js +3 -7
  164. package/core/helpers/Runes/isPrecisionRuneName.js +3 -7
  165. package/core/helpers/Runes/isResolveRuneId.js +3 -7
  166. package/core/helpers/Runes/isResolveRuneIdNum.js +3 -7
  167. package/core/helpers/Runes/isResolveRuneName.js +3 -7
  168. package/core/helpers/Runes/isRuneId.js +3 -7
  169. package/core/helpers/Runes/isRuneIdNum.js +3 -7
  170. package/core/helpers/Runes/isRuneName.js +3 -7
  171. package/core/helpers/Runes/isSorceryRuneId.js +3 -7
  172. package/core/helpers/Runes/isSorceryRuneIdNum.js +3 -7
  173. package/core/helpers/Runes/isSorceryRuneName.js +3 -7
  174. package/core/helpers/Runes/isStatRuneId.js +3 -7
  175. package/core/helpers/Runes/isStatRuneIdNum.js +3 -7
  176. package/core/helpers/Runes/isStatRuneName.js +3 -7
  177. package/core/helpers/Spells/getSpellIdByKey.js +3 -7
  178. package/core/helpers/Spells/getSpellIdByName.js +3 -7
  179. package/core/helpers/Spells/getSpellKeyById.js +3 -7
  180. package/core/helpers/Spells/getSpellKeyByName.js +4 -8
  181. package/core/helpers/Spells/getSpellNameById.js +4 -8
  182. package/core/helpers/Spells/getSpellNameByKey.js +3 -7
  183. package/core/helpers/Spells/isSpellId.js +3 -7
  184. package/core/helpers/Spells/isSpellKey.js +3 -7
  185. package/core/helpers/Spells/isSpellKeyNum.js +3 -7
  186. package/core/helpers/Spells/isSpellName.js +3 -7
  187. package/core/helpers/getPositionImageUrl.js +3 -7
  188. package/core/helpers/isRiotId.js +7 -11
  189. package/core/helpers/makeRiotId.js +1 -5
  190. package/core/helpers/splitRiotId.js +1 -5
  191. package/core/index.d.ts +4 -0
  192. package/core/index.js +138 -150
  193. package/core/types/championJson.js +1 -2
  194. package/core/types/interfaces.js +1 -2
  195. package/core/types/types.js +1 -2
  196. package/package.json +9 -7
  197. package/assets/constants/OrnnItemNames.d.ts +0 -1
  198. package/assets/constants/OrnnItemNames.js +0 -33
  199. package/assets/scripts/generate-all.d.ts +0 -23
  200. package/assets/scripts/generate-all.js +0 -29
  201. package/core/constants/Items/OrnnItemKeys.d.ts +0 -23
  202. package/core/constants/Items/OrnnItemKeys.js +0 -4
  203. package/core/constants/Items/OrnnItemKeysNum.d.ts +0 -23
  204. package/core/constants/Items/OrnnItemKeysNum.js +0 -4
  205. package/core/constants/Items/OrnnItemNames.d.ts +0 -23
  206. package/core/constants/Items/OrnnItemNames.js +0 -4
  207. package/core/helpers/Items/isOrnnItemKey.d.ts +0 -2
  208. package/core/helpers/Items/isOrnnItemKey.js +0 -8
  209. package/core/helpers/Items/isOrnnItemKeyNum.d.ts +0 -2
  210. package/core/helpers/Items/isOrnnItemKeyNum.js +0 -8
  211. package/core/helpers/Items/isOrnnItemName.d.ts +0 -2
  212. package/core/helpers/Items/isOrnnItemName.js +0 -8
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSpellKeyNum = void 0;
4
- const SpellNames_1 = require("../../constants/Spells/SpellNames");
5
- function isSpellKeyNum(key) {
6
- return key in SpellNames_1.SpellNames;
1
+ import { SpellNames } from '../../constants/Spells/SpellNames';
2
+ export function isSpellKeyNum(key) {
3
+ return key in SpellNames;
7
4
  }
8
- exports.isSpellKeyNum = isSpellKeyNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSpellName = void 0;
4
- const SpellIdsByName_1 = require("../../constants/Spells/SpellIdsByName");
5
- function isSpellName(name) {
6
- return typeof name == 'string' && name in SpellIdsByName_1.SpellIdsByName;
1
+ import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
2
+ export function isSpellName(name) {
3
+ return typeof name == 'string' && name in SpellIdsByName;
7
4
  }
8
- exports.isSpellName = isSpellName;
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPositionImageUrl = void 0;
4
- const DataDragonUrls_1 = require("../constants/DataDragonUrls");
5
- function getPositionImageUrl(position) {
6
- return `${DataDragonUrls_1.DataDragonUrls.POSITION_ICON_BASE}/${PositionUrlPaths[position]}.svg`;
1
+ import { DataDragonUrls } from '../constants/DataDragonUrls';
2
+ export function getPositionImageUrl(position) {
3
+ return `${DataDragonUrls.POSITION_ICON_BASE}/${PositionUrlPaths[position]}.svg`;
7
4
  }
8
- exports.getPositionImageUrl = getPositionImageUrl;
9
5
  const PositionUrlPaths = {
10
6
  TOP: 'position-top',
11
7
  JUNGLE: 'position-jungle',
@@ -1,19 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maxRiotIdTagCharCount = exports.maxRiotIdNameCharCount = exports.isRiotId = void 0;
4
- const splitRiotId_1 = require("./splitRiotId");
5
- function isRiotId(riotId,
1
+ import { splitRiotId } from './splitRiotId';
2
+ export function isRiotId(riotId,
6
3
  /** @default '#' */
7
4
  splitChar = '#') {
8
5
  if (typeof riotId != 'string')
9
6
  return false;
10
- const id = (0, splitRiotId_1.splitRiotId)(riotId, splitChar);
11
- if (id.name == '' || id.name.length > exports.maxRiotIdNameCharCount)
7
+ const id = splitRiotId(riotId, splitChar);
8
+ if (id.name == '' || id.name.length > maxRiotIdNameCharCount)
12
9
  return false;
13
- if (id.tag == '' || id.tag.length > exports.maxRiotIdTagCharCount)
10
+ if (id.tag == '' || id.tag.length > maxRiotIdTagCharCount)
14
11
  return false;
15
12
  return true;
16
13
  }
17
- exports.isRiotId = isRiotId;
18
- exports.maxRiotIdNameCharCount = 16;
19
- exports.maxRiotIdTagCharCount = 5;
14
+ export const maxRiotIdNameCharCount = 16;
15
+ export const maxRiotIdTagCharCount = 5;
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeRiotId = void 0;
4
- function makeRiotId(riotId,
1
+ export function makeRiotId(riotId,
5
2
  /** @default '#' */
6
3
  splitChar = '#') {
7
4
  return riotId.name + splitChar + riotId.tag;
8
5
  }
9
- exports.makeRiotId = makeRiotId;
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.splitRiotId = void 0;
4
1
  /**
5
2
  * `name#tag` => `{name, tag}`
6
3
  */
7
- function splitRiotId(riotId,
4
+ export function splitRiotId(riotId,
8
5
  /** @default '#' */
9
6
  splitChar = '#') {
10
7
  const split = riotId.split(splitChar);
@@ -17,4 +14,3 @@ splitChar = '#') {
17
14
  tag,
18
15
  };
19
16
  }
20
- exports.splitRiotId = splitRiotId;
package/core/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from './constants/SkillSlots';
29
29
  export * from './constants/TeamIds';
30
30
  export * from './constants/TowerTypes';
31
31
  export * from './constants/WardTypes';
32
+ export * from './constants/Champions/ChampionClasses';
32
33
  export * from './constants/Champions/ChampionIds';
33
34
  export * from './constants/Champions/ChampionIdsByName';
34
35
  export * from './constants/Champions/ChampionKeys';
@@ -78,12 +79,15 @@ export * from './helpers/Champions/isChampionName';
78
79
  export * from './helpers/Items/getItemKeyByName';
79
80
  export * from './helpers/Items/getItemNameByKey';
80
81
  export * from './helpers/Items/isBootsItemKey';
82
+ export * from './helpers/Items/isBootsItemKeyNum';
81
83
  export * from './helpers/Items/isBootsItemName';
82
84
  export * from './helpers/Items/isItemKey';
83
85
  export * from './helpers/Items/isItemKeyNum';
84
86
  export * from './helpers/Items/isItemName';
85
87
  export * from './helpers/Items/isLegendaryItemKey';
88
+ export * from './helpers/Items/isLegendaryItemKeyNum';
86
89
  export * from './helpers/Items/isLegendaryItemName';
90
+ export * from './helpers/Items/isTier2Boots';
87
91
  export * from './helpers/Runes/getNonStatRuneIdByName';
88
92
  export * from './helpers/Runes/getNonStatRuneNameById';
89
93
  export * from './helpers/Runes/getRuneCategoryName';
package/core/index.js CHANGED
@@ -1,161 +1,149 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
1
  // # constants
18
- __exportStar(require("./constants/BuildingTypes"), exports);
19
- __exportStar(require("./constants/Continents"), exports);
20
- __exportStar(require("./constants/DataDragonUrls"), exports);
21
- __exportStar(require("./constants/DragonTypes"), exports);
22
- __exportStar(require("./constants/GameModes"), exports);
23
- __exportStar(require("./constants/GameTypes"), exports);
24
- __exportStar(require("./constants/KillTypes"), exports);
25
- __exportStar(require("./constants/Lanes"), exports);
26
- __exportStar(require("./constants/LaneTypes"), exports);
27
- __exportStar(require("./constants/LeagueTexts"), exports);
28
- __exportStar(require("./constants/Levels"), exports);
29
- __exportStar(require("./constants/Locales"), exports);
30
- __exportStar(require("./constants/MapIds"), exports);
31
- __exportStar(require("./constants/MonsterTypes"), exports);
32
- __exportStar(require("./constants/ParticipantIds"), exports);
33
- __exportStar(require("./constants/PlatformApiUris"), exports);
34
- __exportStar(require("./constants/PlatformIds"), exports);
35
- __exportStar(require("./constants/Positions"), exports);
36
- __exportStar(require("./constants/QueueIds"), exports);
37
- __exportStar(require("./constants/QueueTypes"), exports);
38
- __exportStar(require("./constants/RankedRanks"), exports);
39
- __exportStar(require("./constants/RankedTiers"), exports);
40
- __exportStar(require("./constants/RegionalApiUris"), exports);
41
- __exportStar(require("./constants/Regions"), exports);
42
- __exportStar(require("./constants/RelativeTeams"), exports);
43
- __exportStar(require("./constants/Roles"), exports);
44
- __exportStar(require("./constants/Skills"), exports);
45
- __exportStar(require("./constants/SkillSlots"), exports);
46
- __exportStar(require("./constants/TeamIds"), exports);
47
- __exportStar(require("./constants/TowerTypes"), exports);
48
- __exportStar(require("./constants/WardTypes"), exports);
2
+ export * from './constants/BuildingTypes';
3
+ export * from './constants/Continents';
4
+ export * from './constants/DataDragonUrls';
5
+ export * from './constants/DragonTypes';
6
+ export * from './constants/GameModes';
7
+ export * from './constants/GameTypes';
8
+ export * from './constants/KillTypes';
9
+ export * from './constants/Lanes';
10
+ export * from './constants/LaneTypes';
11
+ export * from './constants/LeagueTexts';
12
+ export * from './constants/Levels';
13
+ export * from './constants/Locales';
14
+ export * from './constants/MapIds';
15
+ export * from './constants/MonsterTypes';
16
+ export * from './constants/ParticipantIds';
17
+ export * from './constants/PlatformApiUris';
18
+ export * from './constants/PlatformIds';
19
+ export * from './constants/Positions';
20
+ export * from './constants/QueueIds';
21
+ export * from './constants/QueueTypes';
22
+ export * from './constants/RankedRanks';
23
+ export * from './constants/RankedTiers';
24
+ export * from './constants/RegionalApiUris';
25
+ export * from './constants/Regions';
26
+ export * from './constants/RelativeTeams';
27
+ export * from './constants/Roles';
28
+ export * from './constants/Skills';
29
+ export * from './constants/SkillSlots';
30
+ export * from './constants/TeamIds';
31
+ export * from './constants/TowerTypes';
32
+ export * from './constants/WardTypes';
49
33
  // ## Champions
50
- __exportStar(require("./constants/Champions/ChampionIds"), exports);
51
- __exportStar(require("./constants/Champions/ChampionIdsByName"), exports);
52
- __exportStar(require("./constants/Champions/ChampionKeys"), exports);
53
- __exportStar(require("./constants/Champions/ChampionKeysNum"), exports);
54
- __exportStar(require("./constants/Champions/ChampionNames"), exports);
34
+ export * from './constants/Champions/ChampionClasses';
35
+ export * from './constants/Champions/ChampionIds';
36
+ export * from './constants/Champions/ChampionIdsByName';
37
+ export * from './constants/Champions/ChampionKeys';
38
+ export * from './constants/Champions/ChampionKeysNum';
39
+ export * from './constants/Champions/ChampionNames';
55
40
  // ## Items
56
- __exportStar(require("./constants/Items/BootsItemKeys"), exports);
57
- __exportStar(require("./constants/Items/BootsItemKeysNum"), exports);
58
- __exportStar(require("./constants/Items/BootsItemNames"), exports);
59
- __exportStar(require("./constants/Items/ItemKeys"), exports);
60
- __exportStar(require("./constants/Items/ItemKeysNum"), exports);
61
- __exportStar(require("./constants/Items/ItemNames"), exports);
62
- __exportStar(require("./constants/Items/ItemTypes"), exports);
63
- __exportStar(require("./constants/Items/LegendaryItemKeys"), exports);
64
- __exportStar(require("./constants/Items/LegendaryItemKeysNum"), exports);
65
- __exportStar(require("./constants/Items/LegendaryItemNames"), exports);
41
+ export * from './constants/Items/BootsItemKeys';
42
+ export * from './constants/Items/BootsItemKeysNum';
43
+ export * from './constants/Items/BootsItemNames';
44
+ export * from './constants/Items/ItemKeys';
45
+ export * from './constants/Items/ItemKeysNum';
46
+ export * from './constants/Items/ItemNames';
47
+ export * from './constants/Items/ItemTypes';
48
+ export * from './constants/Items/LegendaryItemKeys';
49
+ export * from './constants/Items/LegendaryItemKeysNum';
50
+ export * from './constants/Items/LegendaryItemNames';
66
51
  // ## Runes
67
- __exportStar(require("./constants/Runes/NonStatRuneIds"), exports);
68
- __exportStar(require("./constants/Runes/NonStatRuneIdsNum"), exports);
69
- __exportStar(require("./constants/Runes/NonStatRuneNames"), exports);
70
- __exportStar(require("./constants/Runes/RuneIconFileNames"), exports);
71
- __exportStar(require("./constants/Runes/RunePickingRelationships"), exports);
72
- __exportStar(require("./constants/Runes/RuneSets"), exports);
73
- __exportStar(require("./constants/Runes/RuneSetsByRuneNames"), exports);
74
- __exportStar(require("./constants/Runes/RuneSetsByRuneNamesNum"), exports);
75
- __exportStar(require("./constants/Runes/RuneTreeIds"), exports);
76
- __exportStar(require("./constants/Runes/RuneTreeIdsNum"), exports);
77
- __exportStar(require("./constants/Runes/RuneTreeNames"), exports);
78
- __exportStar(require("./constants/Runes/RuneTreeTypes"), exports);
52
+ export * from './constants/Runes/NonStatRuneIds';
53
+ export * from './constants/Runes/NonStatRuneIdsNum';
54
+ export * from './constants/Runes/NonStatRuneNames';
55
+ export * from './constants/Runes/RuneIconFileNames';
56
+ export * from './constants/Runes/RunePickingRelationships';
57
+ export * from './constants/Runes/RuneSets';
58
+ export * from './constants/Runes/RuneSetsByRuneNames';
59
+ export * from './constants/Runes/RuneSetsByRuneNamesNum';
60
+ export * from './constants/Runes/RuneTreeIds';
61
+ export * from './constants/Runes/RuneTreeIdsNum';
62
+ export * from './constants/Runes/RuneTreeNames';
63
+ export * from './constants/Runes/RuneTreeTypes';
79
64
  // ## Spells
80
- __exportStar(require("./constants/Spells/SpellIds"), exports);
81
- __exportStar(require("./constants/Spells/SpellIdsByName"), exports);
82
- __exportStar(require("./constants/Spells/SpellKeys"), exports);
83
- __exportStar(require("./constants/Spells/SpellKeysNum"), exports);
84
- __exportStar(require("./constants/Spells/SpellNames"), exports);
65
+ export * from './constants/Spells/SpellIds';
66
+ export * from './constants/Spells/SpellIdsByName';
67
+ export * from './constants/Spells/SpellKeys';
68
+ export * from './constants/Spells/SpellKeysNum';
69
+ export * from './constants/Spells/SpellNames';
85
70
  // # helpers
86
- __exportStar(require("./helpers/getPositionImageUrl"), exports);
87
- __exportStar(require("./helpers/isRiotId"), exports);
88
- __exportStar(require("./helpers/makeRiotId"), exports);
89
- __exportStar(require("./helpers/splitRiotId"), exports);
71
+ export * from './helpers/getPositionImageUrl';
72
+ export * from './helpers/isRiotId';
73
+ export * from './helpers/makeRiotId';
74
+ export * from './helpers/splitRiotId';
90
75
  // ## Champions
91
- __exportStar(require("./helpers/Champions/getChampionIdByKey"), exports);
92
- __exportStar(require("./helpers/Champions/getChampionIdByName"), exports);
93
- __exportStar(require("./helpers/Champions/getChampionKeyById"), exports);
94
- __exportStar(require("./helpers/Champions/getChampionKeyByName"), exports);
95
- __exportStar(require("./helpers/Champions/getChampionNameById"), exports);
96
- __exportStar(require("./helpers/Champions/getChampionNameByKey"), exports);
97
- __exportStar(require("./helpers/Champions/isChampionId"), exports);
98
- __exportStar(require("./helpers/Champions/isChampionKey"), exports);
99
- __exportStar(require("./helpers/Champions/isChampionKeyNum"), exports);
100
- __exportStar(require("./helpers/Champions/isChampionName"), exports);
76
+ export * from './helpers/Champions/getChampionIdByKey';
77
+ export * from './helpers/Champions/getChampionIdByName';
78
+ export * from './helpers/Champions/getChampionKeyById';
79
+ export * from './helpers/Champions/getChampionKeyByName';
80
+ export * from './helpers/Champions/getChampionNameById';
81
+ export * from './helpers/Champions/getChampionNameByKey';
82
+ export * from './helpers/Champions/isChampionId';
83
+ export * from './helpers/Champions/isChampionKey';
84
+ export * from './helpers/Champions/isChampionKeyNum';
85
+ export * from './helpers/Champions/isChampionName';
101
86
  // ## Items
102
- __exportStar(require("./helpers/Items/getItemKeyByName"), exports);
103
- __exportStar(require("./helpers/Items/getItemNameByKey"), exports);
104
- __exportStar(require("./helpers/Items/isBootsItemKey"), exports);
105
- __exportStar(require("./helpers/Items/isBootsItemName"), exports);
106
- __exportStar(require("./helpers/Items/isItemKey"), exports);
107
- __exportStar(require("./helpers/Items/isItemKeyNum"), exports);
108
- __exportStar(require("./helpers/Items/isItemName"), exports);
109
- __exportStar(require("./helpers/Items/isLegendaryItemKey"), exports);
110
- __exportStar(require("./helpers/Items/isLegendaryItemName"), exports);
87
+ export * from './helpers/Items/getItemKeyByName';
88
+ export * from './helpers/Items/getItemNameByKey';
89
+ export * from './helpers/Items/isBootsItemKey';
90
+ export * from './helpers/Items/isBootsItemKeyNum';
91
+ export * from './helpers/Items/isBootsItemName';
92
+ export * from './helpers/Items/isItemKey';
93
+ export * from './helpers/Items/isItemKeyNum';
94
+ export * from './helpers/Items/isItemName';
95
+ export * from './helpers/Items/isLegendaryItemKey';
96
+ export * from './helpers/Items/isLegendaryItemKeyNum';
97
+ export * from './helpers/Items/isLegendaryItemName';
98
+ export * from './helpers/Items/isTier2Boots';
111
99
  // ## Runes
112
- __exportStar(require("./helpers/Runes/getNonStatRuneIdByName"), exports);
113
- __exportStar(require("./helpers/Runes/getNonStatRuneNameById"), exports);
114
- __exportStar(require("./helpers/Runes/getRuneCategoryName"), exports);
115
- __exportStar(require("./helpers/Runes/getRuneCdnUrl"), exports);
116
- __exportStar(require("./helpers/Runes/getRuneIdByName"), exports);
117
- __exportStar(require("./helpers/Runes/getRuneNameById"), exports);
118
- __exportStar(require("./helpers/Runes/getStatRuneIdByName"), exports);
119
- __exportStar(require("./helpers/Runes/getStatRuneNameById"), exports);
120
- __exportStar(require("./helpers/Runes/isDominationRuneId"), exports);
121
- __exportStar(require("./helpers/Runes/isDominationRuneIdNum"), exports);
122
- __exportStar(require("./helpers/Runes/isDominationRuneName"), exports);
123
- __exportStar(require("./helpers/Runes/isInspirationRuneId"), exports);
124
- __exportStar(require("./helpers/Runes/isInspirationRuneIdNum"), exports);
125
- __exportStar(require("./helpers/Runes/isInspirationRuneName"), exports);
126
- __exportStar(require("./helpers/Runes/isKeystoneRuneId"), exports);
127
- __exportStar(require("./helpers/Runes/isKeystoneRuneIdNum"), exports);
128
- __exportStar(require("./helpers/Runes/isKeystoneRuneName"), exports);
129
- __exportStar(require("./helpers/Runes/isNonStatRuneId"), exports);
130
- __exportStar(require("./helpers/Runes/isNonStatRuneIdNum"), exports);
131
- __exportStar(require("./helpers/Runes/isNonStatRuneName"), exports);
132
- __exportStar(require("./helpers/Runes/isPrecisionRuneId"), exports);
133
- __exportStar(require("./helpers/Runes/isPrecisionRuneIdNum"), exports);
134
- __exportStar(require("./helpers/Runes/isPrecisionRuneName"), exports);
135
- __exportStar(require("./helpers/Runes/isResolveRuneId"), exports);
136
- __exportStar(require("./helpers/Runes/isResolveRuneIdNum"), exports);
137
- __exportStar(require("./helpers/Runes/isResolveRuneName"), exports);
138
- __exportStar(require("./helpers/Runes/isRuneId"), exports);
139
- __exportStar(require("./helpers/Runes/isRuneIdNum"), exports);
140
- __exportStar(require("./helpers/Runes/isRuneName"), exports);
141
- __exportStar(require("./helpers/Runes/isSorceryRuneId"), exports);
142
- __exportStar(require("./helpers/Runes/isSorceryRuneIdNum"), exports);
143
- __exportStar(require("./helpers/Runes/isSorceryRuneName"), exports);
144
- __exportStar(require("./helpers/Runes/isStatRuneId"), exports);
145
- __exportStar(require("./helpers/Runes/isStatRuneIdNum"), exports);
146
- __exportStar(require("./helpers/Runes/isStatRuneName"), exports);
100
+ export * from './helpers/Runes/getNonStatRuneIdByName';
101
+ export * from './helpers/Runes/getNonStatRuneNameById';
102
+ export * from './helpers/Runes/getRuneCategoryName';
103
+ export * from './helpers/Runes/getRuneCdnUrl';
104
+ export * from './helpers/Runes/getRuneIdByName';
105
+ export * from './helpers/Runes/getRuneNameById';
106
+ export * from './helpers/Runes/getStatRuneIdByName';
107
+ export * from './helpers/Runes/getStatRuneNameById';
108
+ export * from './helpers/Runes/isDominationRuneId';
109
+ export * from './helpers/Runes/isDominationRuneIdNum';
110
+ export * from './helpers/Runes/isDominationRuneName';
111
+ export * from './helpers/Runes/isInspirationRuneId';
112
+ export * from './helpers/Runes/isInspirationRuneIdNum';
113
+ export * from './helpers/Runes/isInspirationRuneName';
114
+ export * from './helpers/Runes/isKeystoneRuneId';
115
+ export * from './helpers/Runes/isKeystoneRuneIdNum';
116
+ export * from './helpers/Runes/isKeystoneRuneName';
117
+ export * from './helpers/Runes/isNonStatRuneId';
118
+ export * from './helpers/Runes/isNonStatRuneIdNum';
119
+ export * from './helpers/Runes/isNonStatRuneName';
120
+ export * from './helpers/Runes/isPrecisionRuneId';
121
+ export * from './helpers/Runes/isPrecisionRuneIdNum';
122
+ export * from './helpers/Runes/isPrecisionRuneName';
123
+ export * from './helpers/Runes/isResolveRuneId';
124
+ export * from './helpers/Runes/isResolveRuneIdNum';
125
+ export * from './helpers/Runes/isResolveRuneName';
126
+ export * from './helpers/Runes/isRuneId';
127
+ export * from './helpers/Runes/isRuneIdNum';
128
+ export * from './helpers/Runes/isRuneName';
129
+ export * from './helpers/Runes/isSorceryRuneId';
130
+ export * from './helpers/Runes/isSorceryRuneIdNum';
131
+ export * from './helpers/Runes/isSorceryRuneName';
132
+ export * from './helpers/Runes/isStatRuneId';
133
+ export * from './helpers/Runes/isStatRuneIdNum';
134
+ export * from './helpers/Runes/isStatRuneName';
147
135
  // ## Spells
148
- __exportStar(require("./helpers/Spells/getSpellIdByKey"), exports);
149
- __exportStar(require("./helpers/Spells/getSpellIdByName"), exports);
150
- __exportStar(require("./helpers/Spells/getSpellKeyById"), exports);
151
- __exportStar(require("./helpers/Spells/getSpellKeyByName"), exports);
152
- __exportStar(require("./helpers/Spells/getSpellNameById"), exports);
153
- __exportStar(require("./helpers/Spells/getSpellNameByKey"), exports);
154
- __exportStar(require("./helpers/Spells/isSpellId"), exports);
155
- __exportStar(require("./helpers/Spells/isSpellKey"), exports);
156
- __exportStar(require("./helpers/Spells/isSpellKeyNum"), exports);
157
- __exportStar(require("./helpers/Spells/isSpellName"), exports);
136
+ export * from './helpers/Spells/getSpellIdByKey';
137
+ export * from './helpers/Spells/getSpellIdByName';
138
+ export * from './helpers/Spells/getSpellKeyById';
139
+ export * from './helpers/Spells/getSpellKeyByName';
140
+ export * from './helpers/Spells/getSpellNameById';
141
+ export * from './helpers/Spells/getSpellNameByKey';
142
+ export * from './helpers/Spells/isSpellId';
143
+ export * from './helpers/Spells/isSpellKey';
144
+ export * from './helpers/Spells/isSpellKeyNum';
145
+ export * from './helpers/Spells/isSpellName';
158
146
  // # types
159
- __exportStar(require("./types/championJson"), exports);
160
- __exportStar(require("./types/interfaces"), exports);
161
- __exportStar(require("./types/types"), exports);
147
+ export * from './types/championJson';
148
+ export * from './types/interfaces';
149
+ export * from './types/types';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.23.0",
4
- "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
3
+ "version": "2.24.0",
4
+ "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells. Provides a plathera of functions to easily convert between ID, Name, and Key for champions and other game constants.",
5
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",
7
7
  "license": "MIT",
8
+ "type": "module",
8
9
  "files": [
9
10
  "/core",
10
11
  "/assets"
11
12
  ],
12
13
  "devDependencies": {
13
- "@types/node": "^20.14.6",
14
+ "@types/node": "^20.14.9",
14
15
  "@types/node-fetch": "^2.6.11",
15
16
  "node-fetch": "2.6.7",
16
- "typescript": "^5.4.5",
17
- "vite": "^5.3.1"
17
+ "ts-node": "^10.9.2",
18
+ "typescript": "^5.5.3",
19
+ "vite": "^5.3.3"
18
20
  },
19
21
  "repository": {
20
22
  "type": "git",
@@ -22,8 +24,8 @@
22
24
  },
23
25
  "scripts": {
24
26
  "build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
25
- "assets:pull": "tsc && node assets/scripts/asset-scripts/generate-all",
26
- "generate": "tsc && node assets/scripts/generate-all",
27
+ "assets:pull": "node --no-warnings --loader ts-node/esm src/assets/scripts/asset-scripts/generate-all",
28
+ "generate": "node --no-warnings --loader ts-node/esm src/assets/scripts/generate-all",
27
29
  "print-file-names": "node assets/scripts/print-file-names",
28
30
  "dev": "vite"
29
31
  }
@@ -1 +0,0 @@
1
- export declare const OrnnItemNames: readonly ["Cry of the Shrieking City", "Ceaseless Hunger", "Caesura", "Draktharr's Shadowcarver", "Deicide", "Dreamshatter", "Equinox", "Edge of Finality", "Eye of Luden", "Eternal Winter", "Frozen Fist", "Flicker", "Infinite Convergence", "Icathia's Curse", "Infinity Force", "Leviathan", "Liandry's Lament", "Primordial Dawn", "Reliquary of the Golden Dawn", "Syzygy", "Shurelya's Requiem", "Starcaster", "Seething Sorrow", "The Unspoken Parasite", "Typhoon", "Upgraded Aeropack", "Vespertide", "Youmuu's Wake"];
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrnnItemNames = void 0;
4
- exports.OrnnItemNames = [
5
- 'Cry of the Shrieking City',
6
- 'Ceaseless Hunger',
7
- 'Caesura',
8
- 'Draktharr\'s Shadowcarver',
9
- 'Deicide',
10
- 'Dreamshatter',
11
- 'Equinox',
12
- 'Edge of Finality',
13
- 'Eye of Luden',
14
- 'Eternal Winter',
15
- 'Frozen Fist',
16
- 'Flicker',
17
- 'Infinite Convergence',
18
- 'Icathia\'s Curse',
19
- 'Infinity Force',
20
- 'Leviathan',
21
- 'Liandry\'s Lament',
22
- 'Primordial Dawn',
23
- 'Reliquary of the Golden Dawn',
24
- 'Syzygy',
25
- 'Shurelya\'s Requiem',
26
- 'Starcaster',
27
- 'Seething Sorrow',
28
- 'The Unspoken Parasite',
29
- 'Typhoon',
30
- 'Upgraded Aeropack',
31
- 'Vespertide',
32
- 'Youmuu\'s Wake',
33
- ];
@@ -1,23 +0,0 @@
1
- import './generate-categorized-item-keys-num';
2
- import './generate-categorized-item-keys';
3
- import './generate-categorized-item-names';
4
- import './generate-champion-ids-by-name';
5
- import './generate-champion-ids';
6
- import './generate-champion-keys-num';
7
- import './generate-champion-keys';
8
- import './generate-champion-names';
9
- import './generate-item-keys-num';
10
- import './generate-item-keys';
11
- import './generate-item-names';
12
- import './generate-non-stat-rune-ids-num';
13
- import './generate-non-stat-rune-ids';
14
- import './generate-non-stat-rune-names';
15
- import './generate-rune-picking-relationships';
16
- import './generate-rune-sets-by-rune-names-num';
17
- import './generate-rune-sets-by-rune-names';
18
- import './generate-rune-sets';
19
- import './generate-spell-ids-by-name';
20
- import './generate-spell-ids';
21
- import './generate-spell-keys-num';
22
- import './generate-spell-keys';
23
- import './generate-spell-names';
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("./generate-categorized-item-keys-num");
4
- require("./generate-categorized-item-keys");
5
- require("./generate-categorized-item-names");
6
- require("./generate-champion-ids-by-name");
7
- require("./generate-champion-ids");
8
- require("./generate-champion-keys-num");
9
- require("./generate-champion-keys");
10
- require("./generate-champion-names");
11
- require("./generate-item-keys-num");
12
- require("./generate-item-keys");
13
- require("./generate-item-names");
14
- require("./generate-non-stat-rune-ids-num");
15
- require("./generate-non-stat-rune-ids");
16
- require("./generate-non-stat-rune-names");
17
- // import './generate-rune-ids'
18
- // import './generate-rune-names'
19
- require("./generate-rune-picking-relationships");
20
- require("./generate-rune-sets-by-rune-names-num");
21
- require("./generate-rune-sets-by-rune-names");
22
- require("./generate-rune-sets");
23
- require("./generate-spell-ids-by-name");
24
- require("./generate-spell-ids");
25
- require("./generate-spell-keys-num");
26
- require("./generate-spell-keys");
27
- require("./generate-spell-names");
28
- // import './generate-stat-rune-ids'
29
- // import './generate-stat-rune-names'
@@ -1,23 +0,0 @@
1
- export declare const OrnnItemKeys: {
2
- readonly "Cry of the Shrieking City": "7033";
3
- readonly Dreamshatter: "7016";
4
- readonly "Edge of Finality": "7031";
5
- readonly "Frozen Fist": "7005";
6
- readonly Flicker: "7032";
7
- readonly "Infinite Convergence": "7028";
8
- readonly "Icathia's Curse": "7009";
9
- readonly "Infinity Force": "7018";
10
- readonly Leviathan: "7025";
11
- readonly "Liandry's Lament": "7012";
12
- readonly "Reliquary of the Golden Dawn": "7019";
13
- readonly Syzygy: "7001";
14
- readonly "Shurelya's Requiem": "7020";
15
- readonly Starcaster: "7021";
16
- readonly "Seething Sorrow": "7030";
17
- readonly "The Unspoken Parasite": "7026";
18
- readonly Typhoon: "7006";
19
- readonly "Upgraded Aeropack": "7011";
20
- readonly Vespertide: "7010";
21
- readonly "Youmuu's Wake": "7029";
22
- };
23
- export type OrnnItemKey = typeof OrnnItemKeys[keyof typeof OrnnItemKeys];
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrnnItemKeys = void 0;
4
- exports.OrnnItemKeys = { "Cry of the Shrieking City": "7033", "Dreamshatter": "7016", "Edge of Finality": "7031", "Frozen Fist": "7005", "Flicker": "7032", "Infinite Convergence": "7028", "Icathia's Curse": "7009", "Infinity Force": "7018", "Leviathan": "7025", "Liandry's Lament": "7012", "Reliquary of the Golden Dawn": "7019", "Syzygy": "7001", "Shurelya's Requiem": "7020", "Starcaster": "7021", "Seething Sorrow": "7030", "The Unspoken Parasite": "7026", "Typhoon": "7006", "Upgraded Aeropack": "7011", "Vespertide": "7010", "Youmuu's Wake": "7029" };