lol-constants 1.5.0 → 1.5.3

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.
@@ -0,0 +1,2 @@
1
+ import { RuneTreeId, RuneTreeName } from '../../types';
2
+ export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuneTreeIdByName = void 0;
4
+ const RuneTreeIds_1 = require("../../Constants/Runes/RuneTreeIds");
5
+ function getRuneTreeIdByName(name) {
6
+ return RuneTreeIds_1.RuneTreeIds[name];
7
+ }
8
+ exports.getRuneTreeIdByName = getRuneTreeIdByName;
@@ -0,0 +1,2 @@
1
+ import { RuneTreeId, RuneTreeName } from '../../types';
2
+ export declare function getRuneTreeNameById(id: RuneTreeId): RuneTreeName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuneTreeNameById = void 0;
4
+ const RuneTreeNames_1 = require("../../Constants/Runes/RuneTreeNames");
5
+ function getRuneTreeNameById(id) {
6
+ return RuneTreeNames_1.RuneTreeNames[id];
7
+ }
8
+ exports.getRuneTreeNameById = getRuneTreeNameById;
package/dist/index.d.ts CHANGED
@@ -17,6 +17,10 @@ export { SpellIds } from './Constants/Spells/SpellIds';
17
17
  export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
18
18
  export { SpellKeys } from './Constants/Spells/SpellKeys';
19
19
  export { SpellNames } from './Constants/Spells/SpellNames';
20
+ export { isLane } from './Helpers/isLane';
21
+ export { isLevel } from './Helpers/isLevel';
22
+ export { isPosition } from './Helpers/isPosition';
23
+ export { isSkill } from './Helpers/isSkill';
20
24
  export { getChampionIdByKey } from './Helpers/Champions/getChampionIdByKey';
21
25
  export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
22
26
  export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
@@ -33,6 +37,8 @@ export { getRuneCategoryByRuneName } from './Helpers/Runes/getRuneCategoryByRune
33
37
  export { getRuneCDNURL } from './Helpers/Runes/getRuneCDNURL';
34
38
  export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
35
39
  export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
40
+ export { getRuneTreeIdByName } from './Helpers/Runes/getRuneTreeIdByName';
41
+ export { getRuneTreeNameById } from './Helpers/Runes/getRuneTreeNameById';
36
42
  export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
37
43
  export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
38
44
  export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
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.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.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 = void 0;
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;
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; } });
@@ -74,6 +74,14 @@ Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function ()
74
74
  var SpellNames_1 = require("./Constants/Spells/SpellNames");
75
75
  Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
76
76
  // # Helpers
77
+ var isLane_1 = require("./Helpers/isLane");
78
+ Object.defineProperty(exports, "isLane", { enumerable: true, get: function () { return isLane_1.isLane; } });
79
+ var isLevel_1 = require("./Helpers/isLevel");
80
+ Object.defineProperty(exports, "isLevel", { enumerable: true, get: function () { return isLevel_1.isLevel; } });
81
+ var isPosition_1 = require("./Helpers/isPosition");
82
+ Object.defineProperty(exports, "isPosition", { enumerable: true, get: function () { return isPosition_1.isPosition; } });
83
+ var isSkill_1 = require("./Helpers/isSkill");
84
+ Object.defineProperty(exports, "isSkill", { enumerable: true, get: function () { return isSkill_1.isSkill; } });
77
85
  // ## Champions
78
86
  var getChampionIdByKey_1 = require("./Helpers/Champions/getChampionIdByKey");
79
87
  Object.defineProperty(exports, "getChampionIdByKey", { enumerable: true, get: function () { return getChampionIdByKey_1.getChampionIdByKey; } });
@@ -109,6 +117,10 @@ var getRuneIdByName_1 = require("./Helpers/Runes/getRuneIdByName");
109
117
  Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
110
118
  var getRuneNameById_1 = require("./Helpers/Runes/getRuneNameById");
111
119
  Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
120
+ var getRuneTreeIdByName_1 = require("./Helpers/Runes/getRuneTreeIdByName");
121
+ Object.defineProperty(exports, "getRuneTreeIdByName", { enumerable: true, get: function () { return getRuneTreeIdByName_1.getRuneTreeIdByName; } });
122
+ var getRuneTreeNameById_1 = require("./Helpers/Runes/getRuneTreeNameById");
123
+ Object.defineProperty(exports, "getRuneTreeNameById", { enumerable: true, get: function () { return getRuneTreeNameById_1.getRuneTreeNameById; } });
112
124
  var getStatRuneIdByName_1 = require("./Helpers/Runes/getStatRuneIdByName");
113
125
  Object.defineProperty(exports, "getStatRuneIdByName", { enumerable: true, get: function () { return getStatRuneIdByName_1.getStatRuneIdByName; } });
114
126
  var getStatRuneNameById_1 = require("./Helpers/Runes/getStatRuneNameById");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.5.0",
3
+ "version": "1.5.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",