lol-constants 1.4.0 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuneCategoryByRuneName = void 0;
4
4
  const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
5
- const StatRuneNames_1 = require("../../Constants/Runes/StatRuneNames");
5
+ const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
6
6
  /**
7
7
  * Returns the name of the Rune Tree that the Rune belongs to.
8
8
  */
9
9
  function getRuneCategoryByRuneName(name) {
10
10
  // Start with StatRunes because it is the tiniest of all
11
- if (name in StatRuneNames_1.StatRuneNames)
11
+ if (name in StatRuneIds_1.StatRuneIds)
12
12
  return 'StatRunes';
13
13
  // Continue on with the rest of the runes
14
14
  if (name in RuneSetsByRuneNames_1.PrimaryTrees.Precision)
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { ItemNames } from './Constants/Items/ItemNames';
8
8
  export { RuneIconFileNames } from './Constants/Runes/RuneIconFileNames';
9
9
  export { RuneIds } from './Constants/Runes/RuneIds';
10
10
  export { RuneNames } from './Constants/Runes/RuneNames';
11
+ export { RunePickingRelationships } from './Constants/Runes/RunePickingRelationships';
11
12
  export { RuneSets } from './Constants/Runes/RuneSets';
12
13
  export { RuneSetsByRuneNames } from './Constants/Runes/RuneSetsByRuneNames';
13
14
  export { RuneTreeIds } from './Constants/Runes/RuneTreeIds';
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.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = 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.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.RuneSets = exports.RuneNames = exports.RuneIds = 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 = void 0;
17
+ exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = 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.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.RuneSets = exports.RunePickingRelationships = exports.RuneNames = exports.RuneIds = 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 = 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; } });
@@ -40,6 +40,8 @@ var RuneIds_1 = require("./Constants/Runes/RuneIds");
40
40
  Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
41
41
  var RuneNames_1 = require("./Constants/Runes/RuneNames");
42
42
  Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
43
+ var RunePickingRelationships_1 = require("./Constants/Runes/RunePickingRelationships");
44
+ Object.defineProperty(exports, "RunePickingRelationships", { enumerable: true, get: function () { return RunePickingRelationships_1.RunePickingRelationships; } });
43
45
  var RuneSets_1 = require("./Constants/Runes/RuneSets");
44
46
  Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
45
47
  var RuneSetsByRuneNames_1 = require("./Constants/Runes/RuneSetsByRuneNames");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
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",