lol-constants 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ import { ChampionKey } from '../types';
2
+ export declare const ChampionKeys: ChampionKey[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChampionKeys = void 0;
7
+ const championByKey_json_1 = __importDefault(require("../generated/championByKey.json"));
8
+ exports.ChampionKeys = (Object.keys(championByKey_json_1.default.data).map(key => key));
@@ -0,0 +1,2 @@
1
+ import { ChampionName } from '../types';
2
+ export declare const ChampionNames: ChampionName[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChampionNames = void 0;
7
+ const championByName_json_1 = __importDefault(require("../generated/championByName.json"));
8
+ exports.ChampionNames = (Object.keys(championByName_json_1.default.data).map(name => name));
@@ -0,0 +1,2 @@
1
+ import { ItemKey } from '../types';
2
+ export declare const ItemKeys: ItemKey[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ItemKeys = void 0;
7
+ const item_json_1 = __importDefault(require("../assets/item.json"));
8
+ exports.ItemKeys = (Object.keys(item_json_1.default.data).map(key => key));
@@ -0,0 +1,2 @@
1
+ import { ItemName } from '../types';
2
+ export declare const ItemNames: ItemName[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ItemNames = void 0;
7
+ const itemByName_json_1 = __importDefault(require("../generated/itemByName.json"));
8
+ exports.ItemNames = (Object.keys(itemByName_json_1.default.data).map(name => name));
@@ -0,0 +1,2 @@
1
+ import { RuneId } from '../types';
2
+ export declare const RuneIds: RuneId[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.RuneIds = void 0;
7
+ const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
8
+ const StatRunes_1 = require("./StatRunes");
9
+ exports.RuneIds = [
10
+ ...Object.keys(runesById_json_1.default).map(id => id),
11
+ ...Object.keys(StatRunes_1.StatRunes).map(id => id),
12
+ ];
@@ -0,0 +1,2 @@
1
+ import { RuneName } from '../types';
2
+ export declare const RuneNames: RuneName[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.RuneNames = void 0;
7
+ const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
8
+ exports.RuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
@@ -0,0 +1,2 @@
1
+ import { SummonerId } from '../types';
2
+ export declare const SummonerIds: SummonerId[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SummonerIds = void 0;
7
+ const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
8
+ exports.SummonerIds = (Object.keys(summoner_json_1.default.data).map(id => id));
@@ -0,0 +1,2 @@
1
+ import { SummonerKey } from '../types';
2
+ export declare const SummonerKeys: SummonerKey[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SummonerKeys = void 0;
7
+ const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
8
+ exports.SummonerKeys = (Object.keys(summonerByKey_json_1.default.data).map(key => key));
@@ -0,0 +1,2 @@
1
+ import { SummonerName } from '../types';
2
+ export declare const SummonerNames: SummonerName[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SummonerNames = void 0;
7
+ const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
8
+ exports.SummonerNames = (Object.keys(summonerByName_json_1.default.data).map(name => name));
@@ -7,19 +7,19 @@ exports.generateItemsByName = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const item_json_1 = __importDefault(require("../assets/item.json"));
9
9
  function generateItemsByName() {
10
- const itemsByKey = {
10
+ const itemByName = {
11
11
  data: {},
12
12
  version: '',
13
13
  };
14
14
  let itemKey;
15
15
  for (itemKey in item_json_1.default.data) {
16
16
  const itemData = item_json_1.default.data[itemKey];
17
- itemsByKey.data[itemData.name] = {
17
+ itemByName.data[itemData.name] = {
18
18
  ...itemData,
19
19
  key: itemKey,
20
20
  };
21
21
  }
22
- itemsByKey.version = item_json_1.default.version;
23
- fs_1.default.writeFileSync(`src/generated/itemByKey.json`, JSON.stringify(itemsByKey));
22
+ itemByName.version = item_json_1.default.version;
23
+ fs_1.default.writeFileSync(`src/generated/itemByName.json`, JSON.stringify(itemByName));
24
24
  }
25
25
  exports.generateItemsByName = generateItemsByName;