labag 2.1.1 → 2.1.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.
package/dist/index.js CHANGED
@@ -6,7 +6,6 @@ const modes_1 = require("./modes");
6
6
  const labag = new labag_1.LaBaG();
7
7
  exports.labag = labag;
8
8
  modes_1.modeList.forEach((mode) => {
9
- console.log(mode);
10
9
  if (mode.active) {
11
10
  labag.modes.push(mode);
12
11
  }
@@ -1,8 +1,8 @@
1
1
  export declare const modes: {
2
- readonly greenwei: import("../mode").Mode<"greenwei">;
3
- readonly normal: import("../mode").Mode<"normal">;
4
- readonly pikachu: import("../mode").Mode<"pikachu">;
5
- readonly superhhh: import("../mode").Mode<"superhhh">;
2
+ superhhh: import("../mode").Mode<"superhhh">;
3
+ greenwei: import("../mode").Mode<"greenwei">;
4
+ pikachu: import("../mode").Mode<"pikachu">;
5
+ normal: import("../mode").Mode<"normal">;
6
6
  };
7
- export type ModeName = typeof modes[keyof typeof modes]["name"];
7
+ export type ModeName = (typeof modes)[keyof typeof modes]["name"];
8
8
  export declare const modeList: (import("../mode").Mode<"greenwei"> | import("../mode").Mode<"normal"> | import("../mode").Mode<"pikachu"> | import("../mode").Mode<"superhhh">)[];
@@ -9,9 +9,9 @@ const normal_1 = __importDefault(require("./normal"));
9
9
  const pikachu_1 = __importDefault(require("./pikachu"));
10
10
  const superhhh_1 = __importDefault(require("./superhhh"));
11
11
  exports.modes = {
12
+ superhhh: superhhh_1.default,
12
13
  greenwei: greenwei_1.default,
13
- normal: normal_1.default,
14
14
  pikachu: pikachu_1.default,
15
- superhhh: superhhh_1.default,
15
+ normal: normal_1.default,
16
16
  };
17
17
  exports.modeList = Object.values(exports.modes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labag",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@ import { LaBaGEvent, Pattern, PatternName } from "./types";
4
4
 
5
5
  const labag = new LaBaG();
6
6
  modeList.forEach((mode) => {
7
- console.log(mode);
8
7
  if (mode.active) {
9
8
  labag.modes.push(mode);
10
9
  } else {
@@ -4,12 +4,12 @@ import pikachu from "./pikachu";
4
4
  import superhhh from "./superhhh";
5
5
 
6
6
  export const modes = {
7
+ superhhh,
7
8
  greenwei,
8
- normal,
9
9
  pikachu,
10
- superhhh,
11
- } as const;
10
+ normal,
11
+ }
12
12
 
13
- export type ModeName = typeof modes[keyof typeof modes]["name"];
13
+ export type ModeName = (typeof modes)[keyof typeof modes]["name"];
14
14
 
15
15
  export const modeList = Object.values(modes);
package/src/test.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { labag } from "./index";
2
- import { Pattern } from "./types";
3
2
  labag.addEventListener("gameStart", (game) => {
4
3
  console.log("Game Started!");
5
4
  console.log(`Total Rounds: ${game.times}\n`);