lol-constants 1.7.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/{BootsItemNames.d.ts → Constants/BootsItemNames.d.ts} +0 -0
- package/assets/{BootsItemNames.js → Constants/BootsItemNames.js} +0 -0
- package/assets/{LegendaryItemNames.d.ts → Constants/LegendaryItemNames.d.ts} +0 -0
- package/assets/{LegendaryItemNames.js → Constants/LegendaryItemNames.js} +0 -0
- package/assets/{MythicItemNames.d.ts → Constants/MythicItemNames.d.ts} +0 -0
- package/assets/{MythicItemNames.js → Constants/MythicItemNames.js} +0 -0
- package/assets/{StatRunes.d.ts → Constants/StatRunes.d.ts} +0 -0
- package/assets/{StatRunes.js → Constants/StatRunes.js} +0 -0
- package/assets/{StatRunesV2.d.ts → Constants/StatRunesV2.d.ts} +0 -0
- package/assets/{StatRunesV2.js → Constants/StatRunesV2.js} +0 -0
- package/assets/Constants/champion.json +1 -0
- package/assets/Constants/item.json +1 -0
- package/assets/Constants/runesReforged.json +1 -0
- package/assets/Constants/summoner.json +1 -0
- package/assets/index.d.ts +4 -4
- package/assets/index.js +4 -4
- package/assets/scripts/generate-categorized-item-keys.js +4 -4
- package/assets/scripts/generate-categorized-item-names.js +4 -4
- package/assets/scripts/generate-champion-ids-by-name.js +1 -1
- package/assets/scripts/generate-champion-ids.js +1 -1
- package/assets/scripts/generate-champion-keys.js +1 -1
- package/assets/scripts/generate-champion-names.js +1 -1
- package/assets/scripts/generate-item-keys.js +1 -1
- package/assets/scripts/generate-item-names.js +1 -1
- package/assets/scripts/generate-rune-ids.js +2 -2
- package/assets/scripts/generate-rune-names.js +2 -2
- package/assets/scripts/generate-rune-picking-relationships.js +1 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +2 -2
- package/assets/scripts/generate-rune-sets.js +2 -2
- package/assets/scripts/generate-spell-ids-by-name.js +1 -1
- package/assets/scripts/generate-spell-ids.js +1 -1
- package/assets/scripts/generate-spell-keys.js +1 -1
- package/assets/scripts/generate-spell-names.js +1 -1
- package/assets/scripts/generate-stat-rune-ids.js +1 -1
- package/assets/scripts/generate-stat-rune-names.js +1 -1
- package/assets/scripts/generate-tree-rune-ids.js +1 -1
- package/assets/scripts/generate-tree-rune-names.js +1 -1
- package/dist/Constants/Champions/ChampionIds.d.ts +1 -0
- package/dist/Constants/Champions/ChampionIds.js +1 -1
- package/dist/Constants/Champions/ChampionIdsByName.d.ts +1 -0
- package/dist/Constants/Champions/ChampionIdsByName.js +1 -1
- package/dist/Constants/Champions/ChampionKeys.d.ts +1 -0
- package/dist/Constants/Champions/ChampionKeys.js +1 -1
- package/dist/Constants/Champions/ChampionNames.d.ts +1 -0
- package/dist/Constants/Champions/ChampionNames.js +1 -1
- package/dist/Constants/DDPaths.js +2 -2
- package/dist/Constants/Items/ItemTypes.d.ts +6 -0
- package/dist/Constants/Items/ItemTypes.js +9 -0
- package/dist/Helpers/Items/isItemType.d.ts +2 -0
- package/dist/Helpers/Items/isItemType.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/assets/champion.json +0 -1
- package/assets/item.json +0 -1
- package/assets/runesReforged.json +0 -1
- package/assets/summoner.json +0 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ChampionNames = void 0;
|
4
|
-
exports.ChampionNames = { "1": "Annie", "2": "Olaf", "3": "Galio", "4": "Twisted Fate", "5": "Xin Zhao", "6": "Urgot", "7": "LeBlanc", "8": "Vladimir", "9": "Fiddlesticks", "10": "Kayle", "11": "Master Yi", "12": "Alistar", "13": "Ryze", "14": "Sion", "15": "Sivir", "16": "Soraka", "17": "Teemo", "18": "Tristana", "19": "Warwick", "20": "Nunu & Willump", "21": "Miss Fortune", "22": "Ashe", "23": "Tryndamere", "24": "Jax", "25": "Morgana", "26": "Zilean", "27": "Singed", "28": "Evelynn", "29": "Twitch", "30": "Karthus", "31": "Cho'Gath", "32": "Amumu", "33": "Rammus", "34": "Anivia", "35": "Shaco", "36": "Dr. Mundo", "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": "Jarvan IV", "60": "Elise", "61": "Orianna", "62": "Wukong", "63": "Brand", "64": "Lee Sin", "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": "Kog'Maw", "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": "Kha'Zix", "122": "Darius", "126": "Jayce", "127": "Lissandra", "131": "Diana", "133": "Quinn", "134": "Syndra", "136": "Aurelion Sol", "141": "Kayn", "142": "Zoe", "143": "Zyra", "145": "Kai'Sa", "147": "Seraphine", "150": "Gnar", "154": "Zac", "157": "Yasuo", "161": "Vel'Koz", "163": "Taliyah", "164": "Camille", "166": "Akshan", "200": "Bel'Veth", "201": "Braum", "202": "Jhin", "203": "Kindred", "221": "Zeri", "222": "Jinx", "223": "Tahm Kench", "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": "Rek'Sai", "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 Glasc" };
|
4
|
+
exports.ChampionNames = { "1": "Annie", "2": "Olaf", "3": "Galio", "4": "Twisted Fate", "5": "Xin Zhao", "6": "Urgot", "7": "LeBlanc", "8": "Vladimir", "9": "Fiddlesticks", "10": "Kayle", "11": "Master Yi", "12": "Alistar", "13": "Ryze", "14": "Sion", "15": "Sivir", "16": "Soraka", "17": "Teemo", "18": "Tristana", "19": "Warwick", "20": "Nunu & Willump", "21": "Miss Fortune", "22": "Ashe", "23": "Tryndamere", "24": "Jax", "25": "Morgana", "26": "Zilean", "27": "Singed", "28": "Evelynn", "29": "Twitch", "30": "Karthus", "31": "Cho'Gath", "32": "Amumu", "33": "Rammus", "34": "Anivia", "35": "Shaco", "36": "Dr. Mundo", "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": "Jarvan IV", "60": "Elise", "61": "Orianna", "62": "Wukong", "63": "Brand", "64": "Lee Sin", "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": "Kog'Maw", "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": "Kha'Zix", "122": "Darius", "126": "Jayce", "127": "Lissandra", "131": "Diana", "133": "Quinn", "134": "Syndra", "136": "Aurelion Sol", "141": "Kayn", "142": "Zoe", "143": "Zyra", "145": "Kai'Sa", "147": "Seraphine", "150": "Gnar", "154": "Zac", "157": "Yasuo", "161": "Vel'Koz", "163": "Taliyah", "164": "Camille", "166": "Akshan", "200": "Bel'Veth", "201": "Braum", "202": "Jhin", "203": "Kindred", "221": "Zeri", "222": "Jinx", "223": "Tahm Kench", "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": "Rek'Sai", "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 Glasc", "895": "Nilah" };
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DDPaths = void 0;
|
4
|
-
const version = '12.
|
4
|
+
const version = '12.14.1';
|
5
5
|
const base = `https://ddragon.leagueoflegends.com/cdn/${version}`;
|
6
|
-
const cdragonVersion = '12.
|
6
|
+
const cdragonVersion = '12.14';
|
7
7
|
const cdragonBase = `https://raw.communitydragon.org/${cdragonVersion}`;
|
8
8
|
/**
|
9
9
|
* DataDragon CDN Paths.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isItemType = void 0;
|
4
|
+
const ItemTypes_1 = require("../../Constants/Items/ItemTypes");
|
5
|
+
function isItemType(type) {
|
6
|
+
return type in ItemTypes_1.ItemTypes;
|
7
|
+
}
|
8
|
+
exports.isItemType = isItemType;
|
package/dist/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ export { BootsItemKeys } from './Constants/Items/BootsItemKeys';
|
|
7
7
|
export { BootsItemNames } from './Constants/Items/BootsItemNames';
|
8
8
|
export { ItemKeys } from './Constants/Items/ItemKeys';
|
9
9
|
export { ItemNames } from './Constants/Items/ItemNames';
|
10
|
+
export { ItemTypes } from './Constants/Items/ItemTypes';
|
10
11
|
export { LegendaryItemKeys } from './Constants/Items/LegendaryItemKeys';
|
11
12
|
export { LegendaryItemNames } from './Constants/Items/LegendaryItemNames';
|
12
13
|
export { MythicItemKeys } from './Constants/Items/MythicItemKeys';
|
@@ -42,6 +43,7 @@ export { isBootsItemKey } from './Helpers/Items/isBootsItemKey';
|
|
42
43
|
export { isBootsItemName } from './Helpers/Items/isBootsItemName';
|
43
44
|
export { isItemKey } from './Helpers/Items/isItemKey';
|
44
45
|
export { isItemName } from './Helpers/Items/isItemName';
|
46
|
+
export { isItemType } from './Helpers/Items/isItemType';
|
45
47
|
export { isLegendaryItemKey } from './Helpers/Items/isLegendaryItemKey';
|
46
48
|
export { isLegendaryItemName } from './Helpers/Items/isLegendaryItemName';
|
47
49
|
export { isMythicItemKey } from './Helpers/Items/isMythicItemKey';
|
package/dist/index.js
CHANGED
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
18
|
-
exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = void 0;
|
17
|
+
exports.getChampionNameByKey = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.isSkill = exports.isPosition = exports.isLevel = exports.isLane = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = exports.MythicItemNames = exports.MythicItemKeys = exports.LegendaryItemNames = exports.LegendaryItemKeys = exports.ItemTypes = exports.ItemNames = exports.ItemKeys = exports.BootsItemNames = exports.BootsItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
|
18
|
+
exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemType = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = void 0;
|
19
19
|
// # Constants
|
20
20
|
var DDPaths_1 = require("./Constants/DDPaths");
|
21
21
|
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
@@ -37,6 +37,8 @@ var ItemKeys_1 = require("./Constants/Items/ItemKeys");
|
|
37
37
|
Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
|
38
38
|
var ItemNames_1 = require("./Constants/Items/ItemNames");
|
39
39
|
Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
|
40
|
+
var ItemTypes_1 = require("./Constants/Items/ItemTypes");
|
41
|
+
Object.defineProperty(exports, "ItemTypes", { enumerable: true, get: function () { return ItemTypes_1.ItemTypes; } });
|
40
42
|
var LegendaryItemKeys_1 = require("./Constants/Items/LegendaryItemKeys");
|
41
43
|
Object.defineProperty(exports, "LegendaryItemKeys", { enumerable: true, get: function () { return LegendaryItemKeys_1.LegendaryItemKeys; } });
|
42
44
|
var LegendaryItemNames_1 = require("./Constants/Items/LegendaryItemNames");
|
@@ -126,6 +128,8 @@ var isItemKey_1 = require("./Helpers/Items/isItemKey");
|
|
126
128
|
Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
|
127
129
|
var isItemName_1 = require("./Helpers/Items/isItemName");
|
128
130
|
Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
|
131
|
+
var isItemType_1 = require("./Helpers/Items/isItemType");
|
132
|
+
Object.defineProperty(exports, "isItemType", { enumerable: true, get: function () { return isItemType_1.isItemType; } });
|
129
133
|
var isLegendaryItemKey_1 = require("./Helpers/Items/isLegendaryItemKey");
|
130
134
|
Object.defineProperty(exports, "isLegendaryItemKey", { enumerable: true, get: function () { return isLegendaryItemKey_1.isLegendaryItemKey; } });
|
131
135
|
var isLegendaryItemName_1 = require("./Helpers/Items/isLegendaryItemName");
|
package/dist/types/index.d.ts
CHANGED
@@ -23,6 +23,7 @@ import { LegendaryItemNames } from '../Constants/Items/LegendaryItemNames';
|
|
23
23
|
import { LegendaryItemKeys } from '../Constants/Items/LegendaryItemKeys';
|
24
24
|
import { BootsItemNames } from '../Constants/Items/BootsItemNames';
|
25
25
|
import { BootsItemKeys } from '../Constants/Items/BootsItemKeys';
|
26
|
+
import { ItemTypes } from '../Constants/Items/ItemTypes';
|
26
27
|
export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
|
27
28
|
export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
|
28
29
|
export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
|
@@ -31,6 +32,7 @@ export declare type SpellKey = typeof SpellKeys[keyof typeof SpellKeys];
|
|
31
32
|
export declare type SpellName = typeof SpellNames[keyof typeof SpellNames];
|
32
33
|
export declare type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];
|
33
34
|
export declare type ItemName = typeof ItemNames[keyof typeof ItemNames];
|
35
|
+
export declare type ItemType = keyof typeof ItemTypes;
|
34
36
|
export declare type MythicItemKey = keyof typeof MythicItemNames;
|
35
37
|
export declare type MythicItemName = keyof typeof MythicItemKeys;
|
36
38
|
export declare type LegendaryItemKey = keyof typeof LegendaryItemNames;
|
package/package.json
CHANGED