lol-constants 1.13.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/{Constants → constants}/BootsItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/BootsItemNames.js +21 -17
- package/assets/{Constants → constants}/Champion.d.ts +7668 -7621
- package/assets/constants/Champion.js +4 -0
- package/assets/{Constants → constants}/Item.d.ts +10073 -10073
- package/assets/constants/Item.js +4 -0
- package/assets/{Constants → constants}/LegendaryItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/LegendaryItemNames.js +86 -82
- package/assets/{Constants → constants}/MythicItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/MythicItemNames.js +40 -36
- package/assets/{Constants → constants}/RunesReforged.d.ts +512 -512
- package/assets/{Constants → constants}/RunesReforged.js +4 -4
- package/assets/{Constants → constants}/StatRunes.d.ts +15 -14
- package/assets/{Constants → constants}/StatRunes.js +17 -17
- package/assets/{Constants → constants}/StatRunesByRow.d.ts +20 -20
- package/assets/{Constants → constants}/StatRunesByRow.js +23 -23
- package/assets/{Constants → constants}/Summoner.d.ts +518 -518
- package/assets/{Constants → constants}/Summoner.js +4 -4
- package/assets/index.d.ts +9 -9
- package/assets/index.js +28 -24
- package/assets/scripts/generate-all.d.ts +17 -17
- package/assets/scripts/generate-all.js +19 -19
- package/assets/scripts/generate-categorized-item-keys.d.ts +1 -1
- package/assets/scripts/generate-categorized-item-keys.js +57 -57
- package/assets/scripts/generate-categorized-item-names.d.ts +1 -1
- package/assets/scripts/generate-categorized-item-names.js +57 -57
- package/assets/scripts/generate-champion-ids-by-name.d.ts +1 -1
- package/assets/scripts/generate-champion-ids-by-name.js +17 -17
- package/assets/scripts/generate-champion-ids.d.ts +1 -1
- package/assets/scripts/generate-champion-ids.js +17 -17
- package/assets/scripts/generate-champion-keys.d.ts +1 -1
- package/assets/scripts/generate-champion-keys.js +17 -17
- package/assets/scripts/generate-champion-names.d.ts +1 -1
- package/assets/scripts/generate-champion-names.js +17 -17
- package/assets/scripts/generate-item-keys.d.ts +1 -1
- package/assets/scripts/generate-item-keys.js +18 -18
- package/assets/scripts/generate-item-names.d.ts +1 -1
- package/assets/scripts/generate-item-names.js +18 -18
- package/assets/scripts/generate-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-rune-ids.js +26 -26
- package/assets/scripts/generate-rune-names.d.ts +1 -1
- package/assets/scripts/generate-rune-names.js +26 -26
- package/assets/scripts/generate-rune-picking-relationships.d.ts +1 -1
- package/assets/scripts/generate-rune-picking-relationships.js +54 -54
- package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +1 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +116 -116
- package/assets/scripts/generate-rune-sets.d.ts +1 -1
- package/assets/scripts/generate-rune-sets.js +116 -116
- package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -1
- package/assets/scripts/generate-spell-ids-by-name.js +17 -17
- package/assets/scripts/generate-spell-ids.d.ts +1 -1
- package/assets/scripts/generate-spell-ids.js +17 -17
- package/assets/scripts/generate-spell-keys.d.ts +1 -1
- package/assets/scripts/generate-spell-keys.js +17 -17
- package/assets/scripts/generate-spell-names.d.ts +1 -1
- package/assets/scripts/generate-spell-names.js +17 -17
- package/assets/scripts/generate-stat-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-stat-rune-ids.js +17 -17
- package/assets/scripts/generate-stat-rune-names.d.ts +1 -1
- package/assets/scripts/generate-stat-rune-names.js +17 -17
- package/assets/scripts/generate-tree-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-tree-rune-ids.js +19 -19
- package/assets/scripts/generate-tree-rune-names.d.ts +1 -1
- package/assets/scripts/generate-tree-rune-names.js +19 -19
- package/assets/scripts/{Helpers → helpers}/enableEscapedValues.d.ts +15 -15
- package/assets/scripts/{Helpers → helpers}/enableEscapedValues.js +38 -38
- package/assets/scripts/{Helpers → helpers}/getExportStatement.d.ts +6 -6
- package/assets/scripts/{Helpers → helpers}/getExportStatement.js +16 -16
- package/assets/scripts/{Helpers → helpers}/getFmtdComment.d.ts +5 -5
- package/assets/scripts/{Helpers → helpers}/getFmtdComment.js +15 -15
- package/assets/scripts/{Helpers → helpers}/writeToTmpFile.d.ts +8 -8
- package/assets/scripts/{Helpers → helpers}/writeToTmpFile.js +22 -22
- package/core/{Constants → constants}/Champions/ChampionIds.d.ts +165 -164
- package/core/{Constants → constants}/Champions/ChampionIds.js +4 -4
- package/core/{Constants → constants}/Champions/ChampionIdsByName.d.ts +165 -164
- package/core/constants/Champions/ChampionIdsByName.js +4 -0
- package/core/{Constants → constants}/Champions/ChampionKeys.d.ts +165 -164
- package/core/constants/Champions/ChampionKeys.js +4 -0
- package/core/{Constants → constants}/Champions/ChampionNames.d.ts +165 -164
- package/core/{Constants → constants}/Champions/ChampionNames.js +4 -4
- package/core/{Constants/DDPaths.d.ts → constants/DataDragonUrls.d.ts} +38 -38
- package/core/{Constants/DDPaths.js → constants/DataDragonUrls.js} +45 -45
- package/core/constants/GameModes.d.ts +12 -0
- package/core/constants/GameModes.js +17 -0
- package/core/constants/GameTypes.d.ts +7 -0
- package/core/constants/GameTypes.js +12 -0
- package/core/{Constants → constants}/Items/BootsItemKeys.d.ts +11 -11
- package/core/{Constants → constants}/Items/BootsItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/BootsItemNames.d.ts +11 -11
- package/core/{Constants → constants}/Items/BootsItemNames.js +4 -4
- package/core/{Constants → constants}/Items/ItemKeys.d.ts +263 -263
- package/core/{Constants → constants}/Items/ItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/ItemNames.d.ts +271 -271
- package/core/{Constants → constants}/Items/ItemNames.js +4 -4
- package/core/{Constants → constants}/Items/ItemTypes.d.ts +8 -6
- package/core/{Constants → constants}/Items/ItemTypes.js +13 -9
- package/core/{Constants → constants}/Items/LegendaryItemKeys.d.ts +76 -76
- package/core/{Constants → constants}/Items/LegendaryItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/LegendaryItemNames.d.ts +76 -76
- package/core/{Constants → constants}/Items/LegendaryItemNames.js +4 -4
- package/core/{Constants → constants}/Items/MythicItemKeys.d.ts +30 -30
- package/core/{Constants → constants}/Items/MythicItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/MythicItemNames.d.ts +30 -30
- package/core/{Constants → constants}/Items/MythicItemNames.js +4 -4
- package/core/{Constants → constants}/Lanes.d.ts +8 -6
- package/core/{Constants → constants}/Lanes.js +13 -9
- package/core/{Constants → constants}/Levels.d.ts +22 -20
- package/core/{Constants → constants}/Levels.js +27 -23
- package/core/constants/Locales.d.ts +32 -0
- package/core/constants/Locales.js +37 -0
- package/core/constants/PlatformIds.d.ts +15 -0
- package/core/constants/PlatformIds.js +21 -0
- package/core/{Constants → constants}/Positions.d.ts +9 -7
- package/core/{Constants → constants}/Positions.js +14 -10
- package/core/constants/Queues.d.ts +7 -0
- package/core/constants/Queues.js +12 -0
- package/core/constants/RankedRanks.d.ts +8 -0
- package/core/constants/RankedRanks.js +13 -0
- package/core/constants/RankedTiers.d.ts +13 -0
- package/core/constants/RankedTiers.js +18 -0
- package/core/constants/Regions.d.ts +15 -0
- package/core/constants/Regions.js +28 -0
- package/core/constants/RelativeTeams.d.ts +6 -0
- package/core/constants/RelativeTeams.js +11 -0
- package/core/constants/Roles.d.ts +8 -0
- package/core/constants/Roles.js +13 -0
- package/core/{Constants → constants}/Runes/RuneIconFileNames.d.ts +13 -12
- package/core/{Constants → constants}/Runes/RuneIconFileNames.js +101 -101
- package/core/{Constants → constants}/Runes/RunePickingRelationships.d.ts +77 -77
- package/core/{Constants → constants}/Runes/RunePickingRelationships.js +7 -7
- package/core/{Constants → constants}/Runes/RuneSets.d.ts +743 -743
- package/core/{Constants → constants}/Runes/RuneSets.js +14 -14
- package/core/{Constants → constants}/Runes/RuneSetsByRuneNames.d.ts +743 -743
- package/core/constants/Runes/RuneSetsByRuneNames.js +14 -0
- package/core/constants/Runes/RuneTreeIds.d.ts +11 -0
- package/core/constants/Runes/RuneTreeIds.js +19 -0
- package/core/constants/Runes/RuneTreeNames.d.ts +11 -0
- package/core/constants/Runes/RuneTreeNames.js +19 -0
- package/core/constants/Runes/RuneTreeTypes.d.ts +6 -0
- package/core/constants/Runes/RuneTreeTypes.js +11 -0
- package/core/{Constants → constants}/Runes/TreeRuneIds.d.ts +65 -65
- package/core/{Constants → constants}/Runes/TreeRuneIds.js +4 -4
- package/core/{Constants → constants}/Runes/TreeRuneNames.d.ts +65 -65
- package/core/{Constants → constants}/Runes/TreeRuneNames.js +4 -4
- package/core/{Constants → constants}/Skills.d.ts +8 -6
- package/core/constants/Skills.js +13 -0
- package/core/{Constants → constants}/Spells/SpellIds.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellIds.js +4 -4
- package/core/{Constants → constants}/Spells/SpellIdsByName.d.ts +17 -17
- package/core/{Constants → constants}/Spells/SpellIdsByName.js +4 -4
- package/core/{Constants → constants}/Spells/SpellKeys.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellKeys.js +4 -4
- package/core/{Constants → constants}/Spells/SpellNames.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellNames.js +4 -4
- package/core/constants/WardTypes.d.ts +7 -0
- package/core/constants/WardTypes.js +12 -0
- package/core/{Helpers → helpers}/Champions/getChampionIdByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionIdByKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionIdByName.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionKeyById.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionKeyById.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionKeyByName.js +9 -9
- package/core/{Helpers → helpers}/Champions/getChampionNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionNameById.js +9 -9
- package/core/{Helpers → helpers}/Champions/getChampionNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionId.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionId.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionName.js +8 -8
- package/core/{Helpers → helpers}/Items/getItemKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/getItemKeyByName.js +8 -8
- package/core/{Helpers → helpers}/Items/getItemNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/getItemNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isBootsItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isBootsItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isBootsItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isBootsItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isLegendaryItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isLegendaryItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isLegendaryItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isLegendaryItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isMythicItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isMythicItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isMythicItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isMythicItemName.js +8 -8
- package/core/helpers/Runes/getRuneCategoryName.d.ts +3 -0
- package/core/helpers/Runes/getRuneCategoryName.js +20 -0
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +3 -0
- package/core/{Helpers/Runes/getRuneCDNURL.js → helpers/Runes/getRuneCdnUrl.js} +49 -53
- package/core/{Helpers → helpers}/Runes/getRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/getStatRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getStatRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getStatRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getStatRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/getTreeRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getTreeRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getTreeRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getTreeRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/isDominationTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isDominationTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isInspirationTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isInspirationTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isKeystoneRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isKeystoneRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isPrecisionTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isPrecisionTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isResolveTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isResolveTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isRuneName.js +8 -8
- package/core/{Helpers → helpers}/Runes/isSorceryTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isSorceryTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isStatRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isStatRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isStatRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isStatRuneName.js +8 -8
- package/core/{Helpers → helpers}/Runes/isTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isTreeRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isTreeRuneName.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellIdByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellIdByKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellIdByName.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellKeyById.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellKeyById.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellKeyByName.js +9 -9
- package/core/{Helpers → helpers}/Spells/getSpellNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellNameById.js +9 -9
- package/core/{Helpers → helpers}/Spells/getSpellNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellId.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellId.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellName.js +8 -8
- package/core/helpers/getPositionImageUrl.d.ts +2 -0
- package/core/helpers/getPositionImageUrl.js +15 -0
- package/core/index.d.ts +90 -92
- package/core/index.js +129 -229
- package/core/types/types.d.ts +210 -0
- package/core/types/{Meta.js → types.js} +2 -2
- package/package.json +4 -4
- package/assets/Constants/Champion.js +0 -4
- package/assets/Constants/Item.js +0 -4
- package/core/Constants/Champions/ChampionIdsByName.js +0 -4
- package/core/Constants/Champions/ChampionKeys.js +0 -4
- package/core/Constants/Meta/ChampionRelationTypes.d.ts +0 -4
- package/core/Constants/Meta/ChampionRelationTypes.js +0 -7
- package/core/Constants/Runes/RuneSetsByRuneNames.js +0 -14
- package/core/Constants/Runes/RuneTreeIds.d.ts +0 -7
- package/core/Constants/Runes/RuneTreeIds.js +0 -10
- package/core/Constants/Runes/RuneTreeNames.d.ts +0 -7
- package/core/Constants/Runes/RuneTreeNames.js +0 -10
- package/core/Constants/Runes/RuneTreeTypes.d.ts +0 -4
- package/core/Constants/Runes/RuneTreeTypes.js +0 -7
- package/core/Constants/Skills.js +0 -9
- package/core/Helpers/Icons/getPositionImageURL.d.ts +0 -5
- package/core/Helpers/Icons/getPositionImageURL.js +0 -15
- package/core/Helpers/Items/isItemType.d.ts +0 -2
- package/core/Helpers/Items/isItemType.js +0 -8
- package/core/Helpers/Meta/isChampionRelationType.d.ts +0 -2
- package/core/Helpers/Meta/isChampionRelationType.js +0 -8
- package/core/Helpers/Runes/getRuneCDNURL.d.ts +0 -6
- package/core/Helpers/Runes/getRuneCategoryByRuneName.d.ts +0 -5
- package/core/Helpers/Runes/getRuneCategoryByRuneName.js +0 -28
- package/core/Helpers/Runes/getRuneTreeIdByName.d.ts +0 -2
- package/core/Helpers/Runes/getRuneTreeIdByName.js +0 -8
- package/core/Helpers/Runes/getRuneTreeNameById.d.ts +0 -2
- package/core/Helpers/Runes/getRuneTreeNameById.js +0 -8
- package/core/Helpers/Runes/isRuneTreeId.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeId.js +0 -8
- package/core/Helpers/Runes/isRuneTreeName.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeName.js +0 -8
- package/core/Helpers/Runes/isRuneTreeType.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeType.js +0 -8
- package/core/Helpers/isLane.d.ts +0 -2
- package/core/Helpers/isLane.js +0 -8
- package/core/Helpers/isLevel.d.ts +0 -2
- package/core/Helpers/isLevel.js +0 -8
- package/core/Helpers/isPosition.d.ts +0 -2
- package/core/Helpers/isPosition.js +0 -8
- package/core/Helpers/isSkill.d.ts +0 -2
- package/core/Helpers/isSkill.js +0 -8
- package/core/types/Meta.d.ts +0 -40
- package/core/types/index.d.ts +0 -197
- package/core/types/index.js +0 -2
@@ -1,38 +1,38 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.enableEscapedValues = void 0;
|
4
|
-
/**
|
5
|
-
* Basically a modified `JSON.stringify()` function.
|
6
|
-
*
|
7
|
-
* Assumes that what you're trying to do is simply "escape" the value
|
8
|
-
* of a key in `keysToSpread`, clearing it away from:
|
9
|
-
* - its own key and its 2 quotation marks `"` and its colon `:`,
|
10
|
-
* - the 2 quotation marks `"` around the value.
|
11
|
-
*
|
12
|
-
* This way enabling the spreading of a Constant into the end object.
|
13
|
-
* Example:
|
14
|
-
* `{"key":"...ConstantValue"} => {...ConstantValue}`
|
15
|
-
*/
|
16
|
-
function enableEscapedValues(obj, keysToEscape) {
|
17
|
-
let json = JSON.stringify(obj);
|
18
|
-
for (let key of keysToEscape) {
|
19
|
-
const stringifiedKey = `"${key}":`;
|
20
|
-
let stKeyIdx = json.indexOf(stringifiedKey);
|
21
|
-
// Skip if for whatever reason not found
|
22
|
-
if (stKeyIdx == -1)
|
23
|
-
continue;
|
24
|
-
// Remove the key with its 2 quotation marks and colon
|
25
|
-
json =
|
26
|
-
json.slice(0, stKeyIdx)
|
27
|
-
+ json.slice(stKeyIdx + stringifiedKey.length);
|
28
|
-
// Remove the next 2 quotation marks for supposed spread value
|
29
|
-
for (let i = 0; i < 2; ++i) {
|
30
|
-
const idxToRemove = json.indexOf('"', stKeyIdx);
|
31
|
-
json =
|
32
|
-
json.slice(0, idxToRemove)
|
33
|
-
+ json.slice(idxToRemove + 1);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
return json;
|
37
|
-
}
|
38
|
-
exports.enableEscapedValues = enableEscapedValues;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.enableEscapedValues = void 0;
|
4
|
+
/**
|
5
|
+
* Basically a modified `JSON.stringify()` function.
|
6
|
+
*
|
7
|
+
* Assumes that what you're trying to do is simply "escape" the value
|
8
|
+
* of a key in `keysToSpread`, clearing it away from:
|
9
|
+
* - its own key and its 2 quotation marks `"` and its colon `:`,
|
10
|
+
* - the 2 quotation marks `"` around the value.
|
11
|
+
*
|
12
|
+
* This way enabling the spreading of a Constant into the end object.
|
13
|
+
* Example:
|
14
|
+
* `{"key":"...ConstantValue"} => {...ConstantValue}`
|
15
|
+
*/
|
16
|
+
function enableEscapedValues(obj, keysToEscape) {
|
17
|
+
let json = JSON.stringify(obj);
|
18
|
+
for (let key of keysToEscape) {
|
19
|
+
const stringifiedKey = `"${key}":`;
|
20
|
+
let stKeyIdx = json.indexOf(stringifiedKey);
|
21
|
+
// Skip if for whatever reason not found
|
22
|
+
if (stKeyIdx == -1)
|
23
|
+
continue;
|
24
|
+
// Remove the key with its 2 quotation marks and colon
|
25
|
+
json =
|
26
|
+
json.slice(0, stKeyIdx)
|
27
|
+
+ json.slice(stKeyIdx + stringifiedKey.length);
|
28
|
+
// Remove the next 2 quotation marks for supposed spread value
|
29
|
+
for (let i = 0; i < 2; ++i) {
|
30
|
+
const idxToRemove = json.indexOf('"', stKeyIdx);
|
31
|
+
json =
|
32
|
+
json.slice(0, idxToRemove)
|
33
|
+
+ json.slice(idxToRemove + 1);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return json;
|
37
|
+
}
|
38
|
+
exports.enableEscapedValues = enableEscapedValues;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/**
|
2
|
-
* Wraps the provided JSON in a TS export-as-const statement.
|
3
|
-
*/
|
4
|
-
export declare function getExportStatement(constName: string, json: {
|
5
|
-
[k: string]: any;
|
6
|
-
}, keysToEscape?: (string | number)[], comment?: string): string;
|
1
|
+
/**
|
2
|
+
* Wraps the provided JSON in a TS export-as-const statement.
|
3
|
+
*/
|
4
|
+
export declare function getExportStatement(constName: string, json: {
|
5
|
+
[k: string]: any;
|
6
|
+
}, keysToEscape?: (string | number)[], comment?: string): string;
|
@@ -1,16 +1,16 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getExportStatement = void 0;
|
4
|
-
const enableEscapedValues_1 = require("./enableEscapedValues");
|
5
|
-
const getFmtdComment_1 = require("./getFmtdComment");
|
6
|
-
/**
|
7
|
-
* Wraps the provided JSON in a TS export-as-const statement.
|
8
|
-
*/
|
9
|
-
function getExportStatement(constName, json, keysToEscape, comment) {
|
10
|
-
const stringifiedJson = keysToEscape
|
11
|
-
? (0, enableEscapedValues_1.enableEscapedValues)(json, keysToEscape)
|
12
|
-
: JSON.stringify(json);
|
13
|
-
const fmtdComment = comment ? (0, getFmtdComment_1.getFmtdComment)(comment) : '';
|
14
|
-
return fmtdComment + `export const ${constName} = ${stringifiedJson} as const`;
|
15
|
-
}
|
16
|
-
exports.getExportStatement = getExportStatement;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getExportStatement = void 0;
|
4
|
+
const enableEscapedValues_1 = require("./enableEscapedValues");
|
5
|
+
const getFmtdComment_1 = require("./getFmtdComment");
|
6
|
+
/**
|
7
|
+
* Wraps the provided JSON in a TS export-as-const statement.
|
8
|
+
*/
|
9
|
+
function getExportStatement(constName, json, keysToEscape, comment) {
|
10
|
+
const stringifiedJson = keysToEscape
|
11
|
+
? (0, enableEscapedValues_1.enableEscapedValues)(json, keysToEscape)
|
12
|
+
: JSON.stringify(json);
|
13
|
+
const fmtdComment = comment ? (0, getFmtdComment_1.getFmtdComment)(comment) : '';
|
14
|
+
return fmtdComment + `export const ${constName} = ${stringifiedJson} as const`;
|
15
|
+
}
|
16
|
+
exports.getExportStatement = getExportStatement;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Returns a JavaScript-formatted comment,
|
3
|
-
* the kind you put on top of functions, for example.
|
4
|
-
*/
|
5
|
-
export declare function getFmtdComment(comment: string): string;
|
1
|
+
/**
|
2
|
+
* Returns a JavaScript-formatted comment,
|
3
|
+
* the kind you put on top of functions, for example.
|
4
|
+
*/
|
5
|
+
export declare function getFmtdComment(comment: string): string;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getFmtdComment = void 0;
|
4
|
-
/**
|
5
|
-
* Returns a JavaScript-formatted comment,
|
6
|
-
* the kind you put on top of functions, for example.
|
7
|
-
*/
|
8
|
-
function getFmtdComment(comment) {
|
9
|
-
let st = '';
|
10
|
-
st += '/**\n';
|
11
|
-
st += ' * ' + comment + '\n';
|
12
|
-
st += ' */\n';
|
13
|
-
return st;
|
14
|
-
}
|
15
|
-
exports.getFmtdComment = getFmtdComment;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getFmtdComment = void 0;
|
4
|
+
/**
|
5
|
+
* Returns a JavaScript-formatted comment,
|
6
|
+
* the kind you put on top of functions, for example.
|
7
|
+
*/
|
8
|
+
function getFmtdComment(comment) {
|
9
|
+
let st = '';
|
10
|
+
st += '/**\n';
|
11
|
+
st += ' * ' + comment + '\n';
|
12
|
+
st += ' */\n';
|
13
|
+
return st;
|
14
|
+
}
|
15
|
+
exports.getFmtdComment = getFmtdComment;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export declare function writeToTmpFile(mainConstName: string, ...constants: {
|
2
|
-
constName: string;
|
3
|
-
comment?: string;
|
4
|
-
json: {
|
5
|
-
[k: string]: any;
|
6
|
-
};
|
7
|
-
keysToEscape?: (string | number)[];
|
8
|
-
}[]): Promise<void>;
|
1
|
+
export declare function writeToTmpFile(mainConstName: string, ...constants: {
|
2
|
+
constName: string;
|
3
|
+
comment?: string;
|
4
|
+
json: {
|
5
|
+
[k: string]: any;
|
6
|
+
};
|
7
|
+
keysToEscape?: (string | number)[];
|
8
|
+
}[]): Promise<void>;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.writeToTmpFile = void 0;
|
4
|
-
const fs_1 = require("fs");
|
5
|
-
const getExportStatement_1 = require("./getExportStatement");
|
6
|
-
function writeToTmpFile(mainConstName, ...constants) {
|
7
|
-
return new Promise((res, rej) => {
|
8
|
-
const exportStatements = constants.reduce((finalSt, { constName, comment, json, keysToEscape, }, i) => {
|
9
|
-
let exportStatement = (0, getExportStatement_1.getExportStatement)(constName, json, keysToEscape, comment);
|
10
|
-
return (finalSt
|
11
|
-
+ exportStatement
|
12
|
-
// On last statement, provide only a single empty ending line
|
13
|
-
+ (i + 1 == constants.length ? '\n' : '\n\n'));
|
14
|
-
}, '');
|
15
|
-
(0, fs_1.writeFile)(`tmp/${mainConstName}.ts`, exportStatements, err => {
|
16
|
-
if (err)
|
17
|
-
rej(err);
|
18
|
-
res();
|
19
|
-
});
|
20
|
-
});
|
21
|
-
}
|
22
|
-
exports.writeToTmpFile = writeToTmpFile;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.writeToTmpFile = void 0;
|
4
|
+
const fs_1 = require("fs");
|
5
|
+
const getExportStatement_1 = require("./getExportStatement");
|
6
|
+
function writeToTmpFile(mainConstName, ...constants) {
|
7
|
+
return new Promise((res, rej) => {
|
8
|
+
const exportStatements = constants.reduce((finalSt, { constName, comment, json, keysToEscape, }, i) => {
|
9
|
+
let exportStatement = (0, getExportStatement_1.getExportStatement)(constName, json, keysToEscape, comment);
|
10
|
+
return (finalSt
|
11
|
+
+ exportStatement
|
12
|
+
// On last statement, provide only a single empty ending line
|
13
|
+
+ (i + 1 == constants.length ? '\n' : '\n\n'));
|
14
|
+
}, '');
|
15
|
+
(0, fs_1.writeFile)(`tmp/${mainConstName}.ts`, exportStatements, err => {
|
16
|
+
if (err)
|
17
|
+
rej(err);
|
18
|
+
res();
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
22
|
+
exports.writeToTmpFile = writeToTmpFile;
|
@@ -1,164 +1,165 @@
|
|
1
|
-
export declare const ChampionIds: {
|
2
|
-
readonly "1": "Annie";
|
3
|
-
readonly "2": "Olaf";
|
4
|
-
readonly "3": "Galio";
|
5
|
-
readonly "4": "TwistedFate";
|
6
|
-
readonly "5": "XinZhao";
|
7
|
-
readonly "6": "Urgot";
|
8
|
-
readonly "7": "Leblanc";
|
9
|
-
readonly "8": "Vladimir";
|
10
|
-
readonly "9": "Fiddlesticks";
|
11
|
-
readonly "10": "Kayle";
|
12
|
-
readonly "11": "MasterYi";
|
13
|
-
readonly "12": "Alistar";
|
14
|
-
readonly "13": "Ryze";
|
15
|
-
readonly "14": "Sion";
|
16
|
-
readonly "15": "Sivir";
|
17
|
-
readonly "16": "Soraka";
|
18
|
-
readonly "17": "Teemo";
|
19
|
-
readonly "18": "Tristana";
|
20
|
-
readonly "19": "Warwick";
|
21
|
-
readonly "20": "Nunu";
|
22
|
-
readonly "21": "MissFortune";
|
23
|
-
readonly "22": "Ashe";
|
24
|
-
readonly "23": "Tryndamere";
|
25
|
-
readonly "24": "Jax";
|
26
|
-
readonly "25": "Morgana";
|
27
|
-
readonly "26": "Zilean";
|
28
|
-
readonly "27": "Singed";
|
29
|
-
readonly "28": "Evelynn";
|
30
|
-
readonly "29": "Twitch";
|
31
|
-
readonly "30": "Karthus";
|
32
|
-
readonly "31": "Chogath";
|
33
|
-
readonly "32": "Amumu";
|
34
|
-
readonly "33": "Rammus";
|
35
|
-
readonly "34": "Anivia";
|
36
|
-
readonly "35": "Shaco";
|
37
|
-
readonly "36": "DrMundo";
|
38
|
-
readonly "37": "Sona";
|
39
|
-
readonly "38": "Kassadin";
|
40
|
-
readonly "39": "Irelia";
|
41
|
-
readonly "40": "Janna";
|
42
|
-
readonly "41": "Gangplank";
|
43
|
-
readonly "42": "Corki";
|
44
|
-
readonly "43": "Karma";
|
45
|
-
readonly "44": "Taric";
|
46
|
-
readonly "45": "Veigar";
|
47
|
-
readonly "48": "Trundle";
|
48
|
-
readonly "50": "Swain";
|
49
|
-
readonly "51": "Caitlyn";
|
50
|
-
readonly "53": "Blitzcrank";
|
51
|
-
readonly "54": "Malphite";
|
52
|
-
readonly "55": "Katarina";
|
53
|
-
readonly "56": "Nocturne";
|
54
|
-
readonly "57": "Maokai";
|
55
|
-
readonly "58": "Renekton";
|
56
|
-
readonly "59": "JarvanIV";
|
57
|
-
readonly "60": "Elise";
|
58
|
-
readonly "61": "Orianna";
|
59
|
-
readonly "62": "MonkeyKing";
|
60
|
-
readonly "63": "Brand";
|
61
|
-
readonly "64": "LeeSin";
|
62
|
-
readonly "67": "Vayne";
|
63
|
-
readonly "68": "Rumble";
|
64
|
-
readonly "69": "Cassiopeia";
|
65
|
-
readonly "72": "Skarner";
|
66
|
-
readonly "74": "Heimerdinger";
|
67
|
-
readonly "75": "Nasus";
|
68
|
-
readonly "76": "Nidalee";
|
69
|
-
readonly "77": "Udyr";
|
70
|
-
readonly "78": "Poppy";
|
71
|
-
readonly "79": "Gragas";
|
72
|
-
readonly "80": "Pantheon";
|
73
|
-
readonly "81": "Ezreal";
|
74
|
-
readonly "82": "Mordekaiser";
|
75
|
-
readonly "83": "Yorick";
|
76
|
-
readonly "84": "Akali";
|
77
|
-
readonly "85": "Kennen";
|
78
|
-
readonly "86": "Garen";
|
79
|
-
readonly "89": "Leona";
|
80
|
-
readonly "90": "Malzahar";
|
81
|
-
readonly "91": "Talon";
|
82
|
-
readonly "92": "Riven";
|
83
|
-
readonly "96": "KogMaw";
|
84
|
-
readonly "98": "Shen";
|
85
|
-
readonly "99": "Lux";
|
86
|
-
readonly "101": "Xerath";
|
87
|
-
readonly "102": "Shyvana";
|
88
|
-
readonly "103": "Ahri";
|
89
|
-
readonly "104": "Graves";
|
90
|
-
readonly "105": "Fizz";
|
91
|
-
readonly "106": "Volibear";
|
92
|
-
readonly "107": "Rengar";
|
93
|
-
readonly "110": "Varus";
|
94
|
-
readonly "111": "Nautilus";
|
95
|
-
readonly "112": "Viktor";
|
96
|
-
readonly "113": "Sejuani";
|
97
|
-
readonly "114": "Fiora";
|
98
|
-
readonly "115": "Ziggs";
|
99
|
-
readonly "117": "Lulu";
|
100
|
-
readonly "119": "Draven";
|
101
|
-
readonly "120": "Hecarim";
|
102
|
-
readonly "121": "Khazix";
|
103
|
-
readonly "122": "Darius";
|
104
|
-
readonly "126": "Jayce";
|
105
|
-
readonly "127": "Lissandra";
|
106
|
-
readonly "131": "Diana";
|
107
|
-
readonly "133": "Quinn";
|
108
|
-
readonly "134": "Syndra";
|
109
|
-
readonly "136": "AurelionSol";
|
110
|
-
readonly "141": "Kayn";
|
111
|
-
readonly "142": "Zoe";
|
112
|
-
readonly "143": "Zyra";
|
113
|
-
readonly "145": "Kaisa";
|
114
|
-
readonly "147": "Seraphine";
|
115
|
-
readonly "150": "Gnar";
|
116
|
-
readonly "154": "Zac";
|
117
|
-
readonly "157": "Yasuo";
|
118
|
-
readonly "161": "Velkoz";
|
119
|
-
readonly "163": "Taliyah";
|
120
|
-
readonly "164": "Camille";
|
121
|
-
readonly "166": "Akshan";
|
122
|
-
readonly "200": "Belveth";
|
123
|
-
readonly "201": "Braum";
|
124
|
-
readonly "202": "Jhin";
|
125
|
-
readonly "203": "Kindred";
|
126
|
-
readonly "221": "Zeri";
|
127
|
-
readonly "222": "Jinx";
|
128
|
-
readonly "223": "TahmKench";
|
129
|
-
readonly "234": "Viego";
|
130
|
-
readonly "235": "Senna";
|
131
|
-
readonly "236": "Lucian";
|
132
|
-
readonly "238": "Zed";
|
133
|
-
readonly "240": "Kled";
|
134
|
-
readonly "245": "Ekko";
|
135
|
-
readonly "246": "Qiyana";
|
136
|
-
readonly "254": "Vi";
|
137
|
-
readonly "266": "Aatrox";
|
138
|
-
readonly "267": "Nami";
|
139
|
-
readonly "268": "Azir";
|
140
|
-
readonly "350": "Yuumi";
|
141
|
-
readonly "360": "Samira";
|
142
|
-
readonly "412": "Thresh";
|
143
|
-
readonly "420": "Illaoi";
|
144
|
-
readonly "421": "RekSai";
|
145
|
-
readonly "427": "Ivern";
|
146
|
-
readonly "429": "Kalista";
|
147
|
-
readonly "432": "Bard";
|
148
|
-
readonly "497": "Rakan";
|
149
|
-
readonly "498": "Xayah";
|
150
|
-
readonly "516": "Ornn";
|
151
|
-
readonly "517": "Sylas";
|
152
|
-
readonly "518": "Neeko";
|
153
|
-
readonly "523": "Aphelios";
|
154
|
-
readonly "526": "Rell";
|
155
|
-
readonly "555": "Pyke";
|
156
|
-
readonly "711": "Vex";
|
157
|
-
readonly "777": "Yone";
|
158
|
-
readonly "875": "Sett";
|
159
|
-
readonly "876": "Lillia";
|
160
|
-
readonly "887": "Gwen";
|
161
|
-
readonly "888": "Renata";
|
162
|
-
readonly "895": "Nilah";
|
163
|
-
readonly "897": "KSante";
|
164
|
-
|
1
|
+
export declare const ChampionIds: {
|
2
|
+
readonly "1": "Annie";
|
3
|
+
readonly "2": "Olaf";
|
4
|
+
readonly "3": "Galio";
|
5
|
+
readonly "4": "TwistedFate";
|
6
|
+
readonly "5": "XinZhao";
|
7
|
+
readonly "6": "Urgot";
|
8
|
+
readonly "7": "Leblanc";
|
9
|
+
readonly "8": "Vladimir";
|
10
|
+
readonly "9": "Fiddlesticks";
|
11
|
+
readonly "10": "Kayle";
|
12
|
+
readonly "11": "MasterYi";
|
13
|
+
readonly "12": "Alistar";
|
14
|
+
readonly "13": "Ryze";
|
15
|
+
readonly "14": "Sion";
|
16
|
+
readonly "15": "Sivir";
|
17
|
+
readonly "16": "Soraka";
|
18
|
+
readonly "17": "Teemo";
|
19
|
+
readonly "18": "Tristana";
|
20
|
+
readonly "19": "Warwick";
|
21
|
+
readonly "20": "Nunu";
|
22
|
+
readonly "21": "MissFortune";
|
23
|
+
readonly "22": "Ashe";
|
24
|
+
readonly "23": "Tryndamere";
|
25
|
+
readonly "24": "Jax";
|
26
|
+
readonly "25": "Morgana";
|
27
|
+
readonly "26": "Zilean";
|
28
|
+
readonly "27": "Singed";
|
29
|
+
readonly "28": "Evelynn";
|
30
|
+
readonly "29": "Twitch";
|
31
|
+
readonly "30": "Karthus";
|
32
|
+
readonly "31": "Chogath";
|
33
|
+
readonly "32": "Amumu";
|
34
|
+
readonly "33": "Rammus";
|
35
|
+
readonly "34": "Anivia";
|
36
|
+
readonly "35": "Shaco";
|
37
|
+
readonly "36": "DrMundo";
|
38
|
+
readonly "37": "Sona";
|
39
|
+
readonly "38": "Kassadin";
|
40
|
+
readonly "39": "Irelia";
|
41
|
+
readonly "40": "Janna";
|
42
|
+
readonly "41": "Gangplank";
|
43
|
+
readonly "42": "Corki";
|
44
|
+
readonly "43": "Karma";
|
45
|
+
readonly "44": "Taric";
|
46
|
+
readonly "45": "Veigar";
|
47
|
+
readonly "48": "Trundle";
|
48
|
+
readonly "50": "Swain";
|
49
|
+
readonly "51": "Caitlyn";
|
50
|
+
readonly "53": "Blitzcrank";
|
51
|
+
readonly "54": "Malphite";
|
52
|
+
readonly "55": "Katarina";
|
53
|
+
readonly "56": "Nocturne";
|
54
|
+
readonly "57": "Maokai";
|
55
|
+
readonly "58": "Renekton";
|
56
|
+
readonly "59": "JarvanIV";
|
57
|
+
readonly "60": "Elise";
|
58
|
+
readonly "61": "Orianna";
|
59
|
+
readonly "62": "MonkeyKing";
|
60
|
+
readonly "63": "Brand";
|
61
|
+
readonly "64": "LeeSin";
|
62
|
+
readonly "67": "Vayne";
|
63
|
+
readonly "68": "Rumble";
|
64
|
+
readonly "69": "Cassiopeia";
|
65
|
+
readonly "72": "Skarner";
|
66
|
+
readonly "74": "Heimerdinger";
|
67
|
+
readonly "75": "Nasus";
|
68
|
+
readonly "76": "Nidalee";
|
69
|
+
readonly "77": "Udyr";
|
70
|
+
readonly "78": "Poppy";
|
71
|
+
readonly "79": "Gragas";
|
72
|
+
readonly "80": "Pantheon";
|
73
|
+
readonly "81": "Ezreal";
|
74
|
+
readonly "82": "Mordekaiser";
|
75
|
+
readonly "83": "Yorick";
|
76
|
+
readonly "84": "Akali";
|
77
|
+
readonly "85": "Kennen";
|
78
|
+
readonly "86": "Garen";
|
79
|
+
readonly "89": "Leona";
|
80
|
+
readonly "90": "Malzahar";
|
81
|
+
readonly "91": "Talon";
|
82
|
+
readonly "92": "Riven";
|
83
|
+
readonly "96": "KogMaw";
|
84
|
+
readonly "98": "Shen";
|
85
|
+
readonly "99": "Lux";
|
86
|
+
readonly "101": "Xerath";
|
87
|
+
readonly "102": "Shyvana";
|
88
|
+
readonly "103": "Ahri";
|
89
|
+
readonly "104": "Graves";
|
90
|
+
readonly "105": "Fizz";
|
91
|
+
readonly "106": "Volibear";
|
92
|
+
readonly "107": "Rengar";
|
93
|
+
readonly "110": "Varus";
|
94
|
+
readonly "111": "Nautilus";
|
95
|
+
readonly "112": "Viktor";
|
96
|
+
readonly "113": "Sejuani";
|
97
|
+
readonly "114": "Fiora";
|
98
|
+
readonly "115": "Ziggs";
|
99
|
+
readonly "117": "Lulu";
|
100
|
+
readonly "119": "Draven";
|
101
|
+
readonly "120": "Hecarim";
|
102
|
+
readonly "121": "Khazix";
|
103
|
+
readonly "122": "Darius";
|
104
|
+
readonly "126": "Jayce";
|
105
|
+
readonly "127": "Lissandra";
|
106
|
+
readonly "131": "Diana";
|
107
|
+
readonly "133": "Quinn";
|
108
|
+
readonly "134": "Syndra";
|
109
|
+
readonly "136": "AurelionSol";
|
110
|
+
readonly "141": "Kayn";
|
111
|
+
readonly "142": "Zoe";
|
112
|
+
readonly "143": "Zyra";
|
113
|
+
readonly "145": "Kaisa";
|
114
|
+
readonly "147": "Seraphine";
|
115
|
+
readonly "150": "Gnar";
|
116
|
+
readonly "154": "Zac";
|
117
|
+
readonly "157": "Yasuo";
|
118
|
+
readonly "161": "Velkoz";
|
119
|
+
readonly "163": "Taliyah";
|
120
|
+
readonly "164": "Camille";
|
121
|
+
readonly "166": "Akshan";
|
122
|
+
readonly "200": "Belveth";
|
123
|
+
readonly "201": "Braum";
|
124
|
+
readonly "202": "Jhin";
|
125
|
+
readonly "203": "Kindred";
|
126
|
+
readonly "221": "Zeri";
|
127
|
+
readonly "222": "Jinx";
|
128
|
+
readonly "223": "TahmKench";
|
129
|
+
readonly "234": "Viego";
|
130
|
+
readonly "235": "Senna";
|
131
|
+
readonly "236": "Lucian";
|
132
|
+
readonly "238": "Zed";
|
133
|
+
readonly "240": "Kled";
|
134
|
+
readonly "245": "Ekko";
|
135
|
+
readonly "246": "Qiyana";
|
136
|
+
readonly "254": "Vi";
|
137
|
+
readonly "266": "Aatrox";
|
138
|
+
readonly "267": "Nami";
|
139
|
+
readonly "268": "Azir";
|
140
|
+
readonly "350": "Yuumi";
|
141
|
+
readonly "360": "Samira";
|
142
|
+
readonly "412": "Thresh";
|
143
|
+
readonly "420": "Illaoi";
|
144
|
+
readonly "421": "RekSai";
|
145
|
+
readonly "427": "Ivern";
|
146
|
+
readonly "429": "Kalista";
|
147
|
+
readonly "432": "Bard";
|
148
|
+
readonly "497": "Rakan";
|
149
|
+
readonly "498": "Xayah";
|
150
|
+
readonly "516": "Ornn";
|
151
|
+
readonly "517": "Sylas";
|
152
|
+
readonly "518": "Neeko";
|
153
|
+
readonly "523": "Aphelios";
|
154
|
+
readonly "526": "Rell";
|
155
|
+
readonly "555": "Pyke";
|
156
|
+
readonly "711": "Vex";
|
157
|
+
readonly "777": "Yone";
|
158
|
+
readonly "875": "Sett";
|
159
|
+
readonly "876": "Lillia";
|
160
|
+
readonly "887": "Gwen";
|
161
|
+
readonly "888": "Renata";
|
162
|
+
readonly "895": "Nilah";
|
163
|
+
readonly "897": "KSante";
|
164
|
+
readonly "902": "Milio";
|
165
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ChampionIds = void 0;
|
4
|
-
exports.ChampionIds = { "1": "Annie", "2": "Olaf", "3": "Galio", "4": "TwistedFate", "5": "XinZhao", "6": "Urgot", "7": "Leblanc", "8": "Vladimir", "9": "Fiddlesticks", "10": "Kayle", "11": "MasterYi", "12": "Alistar", "13": "Ryze", "14": "Sion", "15": "Sivir", "16": "Soraka", "17": "Teemo", "18": "Tristana", "19": "Warwick", "20": "Nunu", "21": "MissFortune", "22": "Ashe", "23": "Tryndamere", "24": "Jax", "25": "Morgana", "26": "Zilean", "27": "Singed", "28": "Evelynn", "29": "Twitch", "30": "Karthus", "31": "Chogath", "32": "Amumu", "33": "Rammus", "34": "Anivia", "35": "Shaco", "36": "DrMundo", "37": "Sona", "38": "Kassadin", "39": "Irelia", "40": "Janna", "41": "Gangplank", "42": "Corki", "43": "Karma", "44": "Taric", "45": "Veigar", "48": "Trundle", "50": "Swain", "51": "Caitlyn", "53": "Blitzcrank", "54": "Malphite", "55": "Katarina", "56": "Nocturne", "57": "Maokai", "58": "Renekton", "59": "JarvanIV", "60": "Elise", "61": "Orianna", "62": "MonkeyKing", "63": "Brand", "64": "LeeSin", "67": "Vayne", "68": "Rumble", "69": "Cassiopeia", "72": "Skarner", "74": "Heimerdinger", "75": "Nasus", "76": "Nidalee", "77": "Udyr", "78": "Poppy", "79": "Gragas", "80": "Pantheon", "81": "Ezreal", "82": "Mordekaiser", "83": "Yorick", "84": "Akali", "85": "Kennen", "86": "Garen", "89": "Leona", "90": "Malzahar", "91": "Talon", "92": "Riven", "96": "KogMaw", "98": "Shen", "99": "Lux", "101": "Xerath", "102": "Shyvana", "103": "Ahri", "104": "Graves", "105": "Fizz", "106": "Volibear", "107": "Rengar", "110": "Varus", "111": "Nautilus", "112": "Viktor", "113": "Sejuani", "114": "Fiora", "115": "Ziggs", "117": "Lulu", "119": "Draven", "120": "Hecarim", "121": "Khazix", "122": "Darius", "126": "Jayce", "127": "Lissandra", "131": "Diana", "133": "Quinn", "134": "Syndra", "136": "AurelionSol", "141": "Kayn", "142": "Zoe", "143": "Zyra", "145": "Kaisa", "147": "Seraphine", "150": "Gnar", "154": "Zac", "157": "Yasuo", "161": "Velkoz", "163": "Taliyah", "164": "Camille", "166": "Akshan", "200": "Belveth", "201": "Braum", "202": "Jhin", "203": "Kindred", "221": "Zeri", "222": "Jinx", "223": "TahmKench", "234": "Viego", "235": "Senna", "236": "Lucian", "238": "Zed", "240": "Kled", "245": "Ekko", "246": "Qiyana", "254": "Vi", "266": "Aatrox", "267": "Nami", "268": "Azir", "350": "Yuumi", "360": "Samira", "412": "Thresh", "420": "Illaoi", "421": "RekSai", "427": "Ivern", "429": "Kalista", "432": "Bard", "497": "Rakan", "498": "Xayah", "516": "Ornn", "517": "Sylas", "518": "Neeko", "523": "Aphelios", "526": "Rell", "555": "Pyke", "711": "Vex", "777": "Yone", "875": "Sett", "876": "Lillia", "887": "Gwen", "888": "Renata", "895": "Nilah", "897": "KSante" };
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChampionIds = void 0;
|
4
|
+
exports.ChampionIds = { "1": "Annie", "2": "Olaf", "3": "Galio", "4": "TwistedFate", "5": "XinZhao", "6": "Urgot", "7": "Leblanc", "8": "Vladimir", "9": "Fiddlesticks", "10": "Kayle", "11": "MasterYi", "12": "Alistar", "13": "Ryze", "14": "Sion", "15": "Sivir", "16": "Soraka", "17": "Teemo", "18": "Tristana", "19": "Warwick", "20": "Nunu", "21": "MissFortune", "22": "Ashe", "23": "Tryndamere", "24": "Jax", "25": "Morgana", "26": "Zilean", "27": "Singed", "28": "Evelynn", "29": "Twitch", "30": "Karthus", "31": "Chogath", "32": "Amumu", "33": "Rammus", "34": "Anivia", "35": "Shaco", "36": "DrMundo", "37": "Sona", "38": "Kassadin", "39": "Irelia", "40": "Janna", "41": "Gangplank", "42": "Corki", "43": "Karma", "44": "Taric", "45": "Veigar", "48": "Trundle", "50": "Swain", "51": "Caitlyn", "53": "Blitzcrank", "54": "Malphite", "55": "Katarina", "56": "Nocturne", "57": "Maokai", "58": "Renekton", "59": "JarvanIV", "60": "Elise", "61": "Orianna", "62": "MonkeyKing", "63": "Brand", "64": "LeeSin", "67": "Vayne", "68": "Rumble", "69": "Cassiopeia", "72": "Skarner", "74": "Heimerdinger", "75": "Nasus", "76": "Nidalee", "77": "Udyr", "78": "Poppy", "79": "Gragas", "80": "Pantheon", "81": "Ezreal", "82": "Mordekaiser", "83": "Yorick", "84": "Akali", "85": "Kennen", "86": "Garen", "89": "Leona", "90": "Malzahar", "91": "Talon", "92": "Riven", "96": "KogMaw", "98": "Shen", "99": "Lux", "101": "Xerath", "102": "Shyvana", "103": "Ahri", "104": "Graves", "105": "Fizz", "106": "Volibear", "107": "Rengar", "110": "Varus", "111": "Nautilus", "112": "Viktor", "113": "Sejuani", "114": "Fiora", "115": "Ziggs", "117": "Lulu", "119": "Draven", "120": "Hecarim", "121": "Khazix", "122": "Darius", "126": "Jayce", "127": "Lissandra", "131": "Diana", "133": "Quinn", "134": "Syndra", "136": "AurelionSol", "141": "Kayn", "142": "Zoe", "143": "Zyra", "145": "Kaisa", "147": "Seraphine", "150": "Gnar", "154": "Zac", "157": "Yasuo", "161": "Velkoz", "163": "Taliyah", "164": "Camille", "166": "Akshan", "200": "Belveth", "201": "Braum", "202": "Jhin", "203": "Kindred", "221": "Zeri", "222": "Jinx", "223": "TahmKench", "234": "Viego", "235": "Senna", "236": "Lucian", "238": "Zed", "240": "Kled", "245": "Ekko", "246": "Qiyana", "254": "Vi", "266": "Aatrox", "267": "Nami", "268": "Azir", "350": "Yuumi", "360": "Samira", "412": "Thresh", "420": "Illaoi", "421": "RekSai", "427": "Ivern", "429": "Kalista", "432": "Bard", "497": "Rakan", "498": "Xayah", "516": "Ornn", "517": "Sylas", "518": "Neeko", "523": "Aphelios", "526": "Rell", "555": "Pyke", "711": "Vex", "777": "Yone", "875": "Sett", "876": "Lillia", "887": "Gwen", "888": "Renata", "895": "Nilah", "897": "KSante", "902": "Milio" };
|