lol-constants 1.10.1 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. package/assets/Constants/Champion.d.ts +7574 -0
  2. package/assets/Constants/Champion.js +4 -0
  3. package/assets/Constants/Item.d.ts +9532 -0
  4. package/assets/Constants/Item.js +4 -0
  5. package/assets/Constants/RunesReforged.d.ts +512 -0
  6. package/assets/Constants/RunesReforged.js +4 -0
  7. package/assets/Constants/{StatRunesV2.d.ts → StatRunesByRow.d.ts} +1 -1
  8. package/assets/Constants/{StatRunesV2.js → StatRunesByRow.js} +2 -2
  9. package/assets/Constants/Summoner.d.ts +518 -0
  10. package/assets/Constants/Summoner.js +4 -0
  11. package/assets/index.d.ts +9 -4
  12. package/assets/index.js +22 -13
  13. package/assets/scripts/generate-all.js +0 -8
  14. package/assets/scripts/generate-categorized-item-keys.js +7 -10
  15. package/assets/scripts/generate-categorized-item-names.js +7 -10
  16. package/assets/scripts/generate-champion-ids-by-name.js +5 -8
  17. package/assets/scripts/generate-champion-ids.js +5 -8
  18. package/assets/scripts/generate-champion-keys.js +5 -8
  19. package/assets/scripts/generate-champion-names.js +5 -8
  20. package/assets/scripts/generate-item-keys.js +5 -8
  21. package/assets/scripts/generate-item-names.js +5 -8
  22. package/assets/scripts/generate-rune-ids.js +4 -7
  23. package/assets/scripts/generate-rune-names.js +4 -7
  24. package/assets/scripts/generate-rune-picking-relationships.js +2 -5
  25. package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -8
  26. package/assets/scripts/generate-rune-sets.js +5 -8
  27. package/assets/scripts/generate-spell-ids-by-name.js +5 -8
  28. package/assets/scripts/generate-spell-ids.js +5 -8
  29. package/assets/scripts/generate-spell-keys.js +5 -8
  30. package/assets/scripts/generate-spell-names.js +5 -8
  31. package/assets/scripts/generate-stat-rune-ids.js +2 -5
  32. package/assets/scripts/generate-stat-rune-names.js +2 -5
  33. package/assets/scripts/generate-tree-rune-ids.js +4 -7
  34. package/assets/scripts/generate-tree-rune-names.js +4 -7
  35. package/{dist → core}/Constants/Champions/ChampionIds.d.ts +0 -0
  36. package/{dist → core}/Constants/Champions/ChampionIds.js +0 -0
  37. package/{dist → core}/Constants/Champions/ChampionIdsByName.d.ts +0 -0
  38. package/{dist → core}/Constants/Champions/ChampionIdsByName.js +0 -0
  39. package/{dist → core}/Constants/Champions/ChampionKeys.d.ts +0 -0
  40. package/{dist → core}/Constants/Champions/ChampionKeys.js +0 -0
  41. package/{dist → core}/Constants/Champions/ChampionNames.d.ts +0 -0
  42. package/{dist → core}/Constants/Champions/ChampionNames.js +0 -0
  43. package/{dist → core}/Constants/DDPaths.d.ts +0 -0
  44. package/{dist → core}/Constants/DDPaths.js +0 -0
  45. package/{dist → core}/Constants/Items/BootsItemKeys.d.ts +0 -0
  46. package/{dist → core}/Constants/Items/BootsItemKeys.js +0 -0
  47. package/{dist → core}/Constants/Items/BootsItemNames.d.ts +0 -0
  48. package/{dist → core}/Constants/Items/BootsItemNames.js +0 -0
  49. package/{dist → core}/Constants/Items/ItemKeys.d.ts +0 -0
  50. package/{dist → core}/Constants/Items/ItemKeys.js +0 -0
  51. package/{dist → core}/Constants/Items/ItemNames.d.ts +0 -0
  52. package/{dist → core}/Constants/Items/ItemNames.js +0 -0
  53. package/{dist → core}/Constants/Items/ItemTypes.d.ts +0 -0
  54. package/{dist → core}/Constants/Items/ItemTypes.js +0 -0
  55. package/{dist → core}/Constants/Items/LegendaryItemKeys.d.ts +0 -0
  56. package/{dist → core}/Constants/Items/LegendaryItemKeys.js +0 -0
  57. package/{dist → core}/Constants/Items/LegendaryItemNames.d.ts +0 -0
  58. package/{dist → core}/Constants/Items/LegendaryItemNames.js +0 -0
  59. package/{dist → core}/Constants/Items/MythicItemKeys.d.ts +0 -0
  60. package/{dist → core}/Constants/Items/MythicItemKeys.js +0 -0
  61. package/{dist → core}/Constants/Items/MythicItemNames.d.ts +0 -0
  62. package/{dist → core}/Constants/Items/MythicItemNames.js +0 -0
  63. package/{dist → core}/Constants/Lanes.d.ts +0 -0
  64. package/{dist → core}/Constants/Lanes.js +0 -0
  65. package/{dist → core}/Constants/Levels.d.ts +0 -0
  66. package/{dist → core}/Constants/Levels.js +0 -0
  67. package/{dist → core}/Constants/Meta/ChampionRelationTypes.d.ts +0 -0
  68. package/{dist → core}/Constants/Meta/ChampionRelationTypes.js +0 -0
  69. package/{dist → core}/Constants/Positions.d.ts +0 -0
  70. package/{dist → core}/Constants/Positions.js +0 -0
  71. package/{dist → core}/Constants/Runes/RuneIconFileNames.d.ts +0 -0
  72. package/{dist → core}/Constants/Runes/RuneIconFileNames.js +0 -0
  73. package/{dist → core}/Constants/Runes/RunePickingRelationships.d.ts +0 -0
  74. package/{dist → core}/Constants/Runes/RunePickingRelationships.js +0 -0
  75. package/{dist → core}/Constants/Runes/RuneSets.d.ts +0 -0
  76. package/{dist → core}/Constants/Runes/RuneSets.js +0 -0
  77. package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.d.ts +0 -0
  78. package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.js +0 -0
  79. package/{dist → core}/Constants/Runes/RuneTreeIds.d.ts +0 -0
  80. package/{dist → core}/Constants/Runes/RuneTreeIds.js +0 -0
  81. package/{dist → core}/Constants/Runes/RuneTreeNames.d.ts +0 -0
  82. package/{dist → core}/Constants/Runes/RuneTreeNames.js +0 -0
  83. package/{dist → core}/Constants/Runes/RuneTreeTypes.d.ts +0 -0
  84. package/{dist → core}/Constants/Runes/RuneTreeTypes.js +0 -0
  85. package/{dist → core}/Constants/Runes/TreeRuneIds.d.ts +0 -0
  86. package/{dist → core}/Constants/Runes/TreeRuneIds.js +0 -0
  87. package/{dist → core}/Constants/Runes/TreeRuneNames.d.ts +0 -0
  88. package/{dist → core}/Constants/Runes/TreeRuneNames.js +0 -0
  89. package/{dist → core}/Constants/Skills.d.ts +0 -0
  90. package/{dist → core}/Constants/Skills.js +0 -0
  91. package/{dist → core}/Constants/Spells/SpellIds.d.ts +0 -0
  92. package/{dist → core}/Constants/Spells/SpellIds.js +0 -0
  93. package/{dist → core}/Constants/Spells/SpellIdsByName.d.ts +0 -0
  94. package/{dist → core}/Constants/Spells/SpellIdsByName.js +0 -0
  95. package/{dist → core}/Constants/Spells/SpellKeys.d.ts +0 -0
  96. package/{dist → core}/Constants/Spells/SpellKeys.js +0 -0
  97. package/{dist → core}/Constants/Spells/SpellNames.d.ts +0 -0
  98. package/{dist → core}/Constants/Spells/SpellNames.js +0 -0
  99. package/{dist → core}/Helpers/Champions/getChampionIdByKey.d.ts +0 -0
  100. package/{dist → core}/Helpers/Champions/getChampionIdByKey.js +0 -0
  101. package/{dist → core}/Helpers/Champions/getChampionIdByName.d.ts +0 -0
  102. package/{dist → core}/Helpers/Champions/getChampionIdByName.js +0 -0
  103. package/{dist → core}/Helpers/Champions/getChampionKeyById.d.ts +0 -0
  104. package/{dist → core}/Helpers/Champions/getChampionKeyById.js +0 -0
  105. package/{dist → core}/Helpers/Champions/getChampionKeyByName.d.ts +0 -0
  106. package/{dist → core}/Helpers/Champions/getChampionKeyByName.js +0 -0
  107. package/{dist → core}/Helpers/Champions/getChampionNameById.d.ts +0 -0
  108. package/{dist → core}/Helpers/Champions/getChampionNameById.js +0 -0
  109. package/{dist → core}/Helpers/Champions/getChampionNameByKey.d.ts +0 -0
  110. package/{dist → core}/Helpers/Champions/getChampionNameByKey.js +0 -0
  111. package/{dist → core}/Helpers/Champions/isChampionId.d.ts +0 -0
  112. package/{dist → core}/Helpers/Champions/isChampionId.js +0 -0
  113. package/{dist → core}/Helpers/Champions/isChampionKey.d.ts +0 -0
  114. package/{dist → core}/Helpers/Champions/isChampionKey.js +0 -0
  115. package/{dist → core}/Helpers/Champions/isChampionName.d.ts +0 -0
  116. package/{dist → core}/Helpers/Champions/isChampionName.js +0 -0
  117. package/{dist → core}/Helpers/Icons/getPositionImageURL.d.ts +0 -0
  118. package/{dist → core}/Helpers/Icons/getPositionImageURL.js +0 -0
  119. package/{dist → core}/Helpers/Items/getItemKeyByName.d.ts +0 -0
  120. package/{dist → core}/Helpers/Items/getItemKeyByName.js +0 -0
  121. package/{dist → core}/Helpers/Items/getItemNameByKey.d.ts +0 -0
  122. package/{dist → core}/Helpers/Items/getItemNameByKey.js +0 -0
  123. package/{dist → core}/Helpers/Items/isBootsItemKey.d.ts +0 -0
  124. package/{dist → core}/Helpers/Items/isBootsItemKey.js +0 -0
  125. package/{dist → core}/Helpers/Items/isBootsItemName.d.ts +0 -0
  126. package/{dist → core}/Helpers/Items/isBootsItemName.js +0 -0
  127. package/{dist → core}/Helpers/Items/isItemKey.d.ts +0 -0
  128. package/{dist → core}/Helpers/Items/isItemKey.js +0 -0
  129. package/{dist → core}/Helpers/Items/isItemName.d.ts +0 -0
  130. package/{dist → core}/Helpers/Items/isItemName.js +0 -0
  131. package/{dist → core}/Helpers/Items/isItemType.d.ts +0 -0
  132. package/{dist → core}/Helpers/Items/isItemType.js +0 -0
  133. package/{dist → core}/Helpers/Items/isLegendaryItemKey.d.ts +0 -0
  134. package/{dist → core}/Helpers/Items/isLegendaryItemKey.js +0 -0
  135. package/{dist → core}/Helpers/Items/isLegendaryItemName.d.ts +0 -0
  136. package/{dist → core}/Helpers/Items/isLegendaryItemName.js +0 -0
  137. package/{dist → core}/Helpers/Items/isMythicItemKey.d.ts +0 -0
  138. package/{dist → core}/Helpers/Items/isMythicItemKey.js +0 -0
  139. package/{dist → core}/Helpers/Items/isMythicItemName.d.ts +0 -0
  140. package/{dist → core}/Helpers/Items/isMythicItemName.js +0 -0
  141. package/{dist → core}/Helpers/Meta/isChampionRelationType.d.ts +0 -0
  142. package/{dist → core}/Helpers/Meta/isChampionRelationType.js +0 -0
  143. package/{dist → core}/Helpers/Runes/getRuneCDNURL.d.ts +0 -0
  144. package/{dist → core}/Helpers/Runes/getRuneCDNURL.js +0 -0
  145. package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.d.ts +0 -0
  146. package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.js +0 -0
  147. package/{dist → core}/Helpers/Runes/getRuneIdByName.d.ts +0 -0
  148. package/{dist → core}/Helpers/Runes/getRuneIdByName.js +0 -0
  149. package/{dist → core}/Helpers/Runes/getRuneNameById.d.ts +0 -0
  150. package/{dist → core}/Helpers/Runes/getRuneNameById.js +0 -0
  151. package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.d.ts +0 -0
  152. package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.js +0 -0
  153. package/{dist → core}/Helpers/Runes/getRuneTreeNameById.d.ts +0 -0
  154. package/{dist → core}/Helpers/Runes/getRuneTreeNameById.js +0 -0
  155. package/{dist → core}/Helpers/Runes/getStatRuneIdByName.d.ts +0 -0
  156. package/{dist → core}/Helpers/Runes/getStatRuneIdByName.js +0 -0
  157. package/{dist → core}/Helpers/Runes/getStatRuneNameById.d.ts +0 -0
  158. package/{dist → core}/Helpers/Runes/getStatRuneNameById.js +0 -0
  159. package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.d.ts +0 -0
  160. package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.js +0 -0
  161. package/{dist → core}/Helpers/Runes/getTreeRuneNameById.d.ts +0 -0
  162. package/{dist → core}/Helpers/Runes/getTreeRuneNameById.js +0 -0
  163. package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.d.ts +0 -0
  164. package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.js +0 -0
  165. package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.d.ts +0 -0
  166. package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.js +0 -0
  167. package/{dist → core}/Helpers/Runes/isKeystoneRuneId.d.ts +0 -0
  168. package/{dist → core}/Helpers/Runes/isKeystoneRuneId.js +0 -0
  169. package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.d.ts +0 -0
  170. package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.js +0 -0
  171. package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.d.ts +0 -0
  172. package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.js +0 -0
  173. package/{dist → core}/Helpers/Runes/isRuneId.d.ts +0 -0
  174. package/{dist → core}/Helpers/Runes/isRuneId.js +0 -0
  175. package/{dist → core}/Helpers/Runes/isRuneName.d.ts +0 -0
  176. package/{dist → core}/Helpers/Runes/isRuneName.js +0 -0
  177. package/{dist → core}/Helpers/Runes/isRuneTreeId.d.ts +0 -0
  178. package/{dist → core}/Helpers/Runes/isRuneTreeId.js +0 -0
  179. package/{dist → core}/Helpers/Runes/isRuneTreeName.d.ts +0 -0
  180. package/{dist → core}/Helpers/Runes/isRuneTreeName.js +0 -0
  181. package/{dist → core}/Helpers/Runes/isRuneTreeType.d.ts +0 -0
  182. package/{dist → core}/Helpers/Runes/isRuneTreeType.js +0 -0
  183. package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.d.ts +0 -0
  184. package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.js +0 -0
  185. package/{dist → core}/Helpers/Runes/isStatRuneId.d.ts +0 -0
  186. package/{dist → core}/Helpers/Runes/isStatRuneId.js +0 -0
  187. package/{dist → core}/Helpers/Runes/isStatRuneName.d.ts +0 -0
  188. package/{dist → core}/Helpers/Runes/isStatRuneName.js +0 -0
  189. package/{dist → core}/Helpers/Runes/isTreeRuneId.d.ts +0 -0
  190. package/{dist → core}/Helpers/Runes/isTreeRuneId.js +0 -0
  191. package/{dist → core}/Helpers/Runes/isTreeRuneName.d.ts +0 -0
  192. package/{dist → core}/Helpers/Runes/isTreeRuneName.js +0 -0
  193. package/{dist → core}/Helpers/Spells/getSpellIdByKey.d.ts +0 -0
  194. package/{dist → core}/Helpers/Spells/getSpellIdByKey.js +0 -0
  195. package/{dist → core}/Helpers/Spells/getSpellIdByName.d.ts +0 -0
  196. package/{dist → core}/Helpers/Spells/getSpellIdByName.js +0 -0
  197. package/{dist → core}/Helpers/Spells/getSpellKeyById.d.ts +0 -0
  198. package/{dist → core}/Helpers/Spells/getSpellKeyById.js +0 -0
  199. package/{dist → core}/Helpers/Spells/getSpellKeyByName.d.ts +0 -0
  200. package/{dist → core}/Helpers/Spells/getSpellKeyByName.js +0 -0
  201. package/{dist → core}/Helpers/Spells/getSpellNameById.d.ts +0 -0
  202. package/{dist → core}/Helpers/Spells/getSpellNameById.js +0 -0
  203. package/{dist → core}/Helpers/Spells/getSpellNameByKey.d.ts +0 -0
  204. package/{dist → core}/Helpers/Spells/getSpellNameByKey.js +0 -0
  205. package/{dist → core}/Helpers/Spells/isSpellId.d.ts +0 -0
  206. package/{dist → core}/Helpers/Spells/isSpellId.js +0 -0
  207. package/{dist → core}/Helpers/Spells/isSpellKey.d.ts +0 -0
  208. package/{dist → core}/Helpers/Spells/isSpellKey.js +0 -0
  209. package/{dist → core}/Helpers/Spells/isSpellName.d.ts +0 -0
  210. package/{dist → core}/Helpers/Spells/isSpellName.js +0 -0
  211. package/{dist → core}/Helpers/isLane.d.ts +0 -0
  212. package/{dist → core}/Helpers/isLane.js +0 -0
  213. package/{dist → core}/Helpers/isLevel.d.ts +0 -0
  214. package/{dist → core}/Helpers/isLevel.js +0 -0
  215. package/{dist → core}/Helpers/isPosition.d.ts +0 -0
  216. package/{dist → core}/Helpers/isPosition.js +0 -0
  217. package/{dist → core}/Helpers/isSkill.d.ts +0 -0
  218. package/{dist → core}/Helpers/isSkill.js +0 -0
  219. package/{dist → core}/index.d.ts +0 -0
  220. package/{dist → core}/index.js +0 -2
  221. package/{dist → core}/types/Meta.d.ts +0 -0
  222. package/{dist → core}/types/Meta.js +0 -0
  223. package/{dist → core}/types/index.d.ts +0 -0
  224. package/{dist → core}/types/index.js +0 -0
  225. package/package.json +6 -6
  226. package/assets/Constants/champion.json +0 -1
  227. package/assets/Constants/item.json +0 -1
  228. package/assets/Constants/runesReforged.json +0 -1
  229. package/assets/Constants/summoner.json +0 -1
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
3
+ const fs_1 = require("fs");
4
+ const RunesReforged_1 = require("../Constants/RunesReforged");
8
5
  const getExportStatement_1 = require("./Helpers/getExportStatement");
9
6
  (async () => {
10
7
  const runeIds = {};
11
8
  // Construct the new data and assign it to product object
12
- for (const runeTree of runesReforged_json_1.default) {
9
+ for (const runeTree of RunesReforged_1.RunesReforged) {
13
10
  for (const { runes } of runeTree.slots) {
14
11
  for (const rune of runes) {
15
12
  runeIds[rune.id] = rune.name;
@@ -18,5 +15,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
18
15
  }
19
16
  // Write to file
20
17
  const constName = 'TreeRuneNames';
21
- fs_1.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
18
+ (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
22
19
  })();
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -224,8 +224,6 @@ var isSpellKey_1 = require("./Helpers/Spells/isSpellKey");
224
224
  Object.defineProperty(exports, "isSpellKey", { enumerable: true, get: function () { return isSpellKey_1.isSpellKey; } });
225
225
  var isSpellName_1 = require("./Helpers/Spells/isSpellName");
226
226
  Object.defineProperty(exports, "isSpellName", { enumerable: true, get: function () { return isSpellName_1.isSpellName; } });
227
- // # scripts
228
- // —
229
227
  // # types
230
228
  __exportStar(require("./types"), exports);
231
229
  __exportStar(require("./types/Meta"), exports);
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "core/index.js",
6
+ "types": "core/index.d.ts",
7
7
  "license": "MIT",
8
8
  "files": [
9
- "/dist",
9
+ "/core",
10
10
  "/assets"
11
11
  ],
12
12
  "scripts": {
13
- "clean-build": "rmdir /s /q dist && tsc",
14
- "clean-build-assets": "rmdir /s /q assets && cd srcAssets && tsc",
13
+ "clean-build": "rmdir /s /q core && tsc",
15
14
  "generate": "node assets/scripts/generate-all",
16
15
  "dev": "vite"
17
16
  },
18
17
  "devDependencies": {
19
18
  "@types/node": "^17.0.42",
19
+ "typescript": "^4.8.4",
20
20
  "vite": "^2.9.13"
21
21
  },
22
22
  "repository": {