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.
- package/dist/Constants/ChampionKeys.d.ts +2 -0
- package/dist/Constants/ChampionKeys.js +8 -0
- package/dist/Constants/ChampionNames.d.ts +2 -0
- package/dist/Constants/ChampionNames.js +8 -0
- package/dist/Constants/ItemKeys.d.ts +2 -0
- package/dist/Constants/ItemKeys.js +8 -0
- package/dist/Constants/ItemNames.d.ts +2 -0
- package/dist/Constants/ItemNames.js +8 -0
- package/dist/Constants/RuneIds.d.ts +2 -0
- package/dist/Constants/RuneIds.js +12 -0
- package/dist/Constants/RuneNames.d.ts +2 -0
- package/dist/Constants/RuneNames.js +8 -0
- package/dist/Constants/SummonerIds.d.ts +2 -0
- package/dist/Constants/SummonerIds.js +8 -0
- package/dist/Constants/SummonerKeys.d.ts +2 -0
- package/dist/Constants/SummonerKeys.js +8 -0
- package/dist/Constants/SummonerNames.d.ts +2 -0
- package/dist/Constants/SummonerNames.js +8 -0
- package/dist/Helpers/generateItemsByName.js +4 -4
- package/dist/generated/itemByName.json +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +23 -3
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
@@ -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,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,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,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,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,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,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,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,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
|
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
|
-
|
17
|
+
itemByName.data[itemData.name] = {
|
18
18
|
...itemData,
|
19
19
|
key: itemKey,
|
20
20
|
};
|
21
21
|
}
|
22
|
-
|
23
|
-
fs_1.default.writeFileSync(`src/generated/
|
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;
|