lol-constants 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -32135,3 +32135,4 @@ export declare const championByName: {
32135
32135
  };
32136
32136
  version: string;
32137
32137
  };
32138
+ export * from './types';
package/dist/index.js CHANGED
@@ -1,4 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
18
  };
@@ -18,3 +32,4 @@ const championByKey_json_1 = __importDefault(require("./generated/championByKey.
18
32
  const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
19
33
  exports.championByKey = championByKey_json_1.default;
20
34
  exports.championByName = championByName_json_1.default;
35
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,4 @@
1
+ import championByKey from '../generated/championByKey.json';
2
+ import championByName from '../generated/championByName.json';
3
+ export declare type ChampionName = keyof typeof championByName.data;
4
+ export declare type ChampionKey = keyof typeof championByKey.data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",