labag 2.1.2 → 2.1.4

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,11 +6,5 @@ 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
- if (mode.active) {
11
- labag.modes.push(mode);
12
- }
13
- else {
14
- labag.addMode(mode);
15
- }
9
+ labag.addMode(mode);
16
10
  });
@@ -1,8 +1,8 @@
1
1
  export declare const modes: {
2
- readonly superhhh: import("../mode").Mode<"superhhh">;
3
- readonly greenwei: import("../mode").Mode<"greenwei">;
4
- readonly pikachu: import("../mode").Mode<"pikachu">;
5
- readonly normal: import("../mode").Mode<"normal">;
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
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">)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labag",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -4,12 +4,7 @@ import { LaBaGEvent, Pattern, PatternName } from "./types";
4
4
 
5
5
  const labag = new LaBaG();
6
6
  modeList.forEach((mode) => {
7
- console.log(mode);
8
- if (mode.active) {
9
- labag.modes.push(mode);
10
- } else {
11
7
  labag.addMode(mode);
12
- }
13
8
  });
14
9
  export {
15
10
  labag,
@@ -8,7 +8,7 @@ export const modes = {
8
8
  greenwei,
9
9
  pikachu,
10
10
  normal,
11
- } as const;
11
+ }
12
12
 
13
13
  export type ModeName = (typeof modes)[keyof typeof modes]["name"];
14
14