lol-constants 1.5.4 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
26
26
  export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
27
27
  export { getChampionKeyByName } from './Helpers/Champions/getChampionKeyByName';
28
28
  export { getChampionNameById } from './Helpers/Champions/getChampionNameById';
29
+ export { getChampionNameByKey } from './Helpers/Champions/getChampionNameByKey';
29
30
  export { isChampionId } from './Helpers/Champions/isChampionId';
30
31
  export { isChampionKey } from './Helpers/Champions/isChampionKey';
31
32
  export { isChampionName } from './Helpers/Champions/isChampionName';
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.getRuneCategoryByRuneName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = 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.ItemNames = exports.ItemKeys = 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 = void 0;
17
+ exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = 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.ItemNames = exports.ItemKeys = 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 = 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; } });
@@ -93,6 +93,8 @@ var getChampionKeyByName_1 = require("./Helpers/Champions/getChampionKeyByName")
93
93
  Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
94
94
  var getChampionNameById_1 = require("./Helpers/Champions/getChampionNameById");
95
95
  Object.defineProperty(exports, "getChampionNameById", { enumerable: true, get: function () { return getChampionNameById_1.getChampionNameById; } });
96
+ var getChampionNameByKey_1 = require("./Helpers/Champions/getChampionNameByKey");
97
+ Object.defineProperty(exports, "getChampionNameByKey", { enumerable: true, get: function () { return getChampionNameByKey_1.getChampionNameByKey; } });
96
98
  var isChampionId_1 = require("./Helpers/Champions/isChampionId");
97
99
  Object.defineProperty(exports, "isChampionId", { enumerable: true, get: function () { return isChampionId_1.isChampionId; } });
98
100
  var isChampionKey_1 = require("./Helpers/Champions/isChampionKey");
@@ -173,6 +173,8 @@ export declare type RuneTreeId = typeof RuneTreeIds[keyof typeof RuneTreeIds];
173
173
  export declare type RuneTreeName = typeof RuneTreeNames[keyof typeof RuneTreeNames];
174
174
  export declare type RuneTreeType = keyof typeof RuneTreeTypes;
175
175
  export declare type StatRunesCategory = 'StatRunes';
176
+ export declare type RuneCategory = RuneTreeType | StatRunesCategory;
177
+ export declare type RuneSlice = RuneTreeName | StatRunesCategory;
176
178
  export declare type Position = keyof typeof Positions;
177
179
  export declare type Lane = keyof typeof Lanes;
178
180
  export declare type Level = keyof typeof Levels;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.5.4",
3
+ "version": "1.6.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",