@kotori-bot/loader 1.7.2 → 1.7.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/lib/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -95,7 +95,7 @@ export declare const modulePackageSchema: import("@kotori-bot/core").ObjectParse
95
95
  'kotori-bot': import("@kotori-bot/core").StringParser;
96
96
  }>;
97
97
  kotori: Parser<import("@kotori-bot/core").ObjectParserInfer<{
98
- enforce: Parser<"post" | "pre" | undefined>;
98
+ enforce: Parser<"pre" | "post" | undefined>;
99
99
  meta: Parser<import("@kotori-bot/core").ObjectParserInfer<{
100
100
  language: Parser<any[]>;
101
101
  }>>;
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -143,7 +143,7 @@ const adapterConfigSchemaFactory = (lang, commandPrefix) => import_core.Tsu.Obje
143
143
  const modulePackageSchema = import_core.Tsu.Object({
144
144
  name: import_core.Tsu.Custom((input) => {
145
145
  if (typeof input !== "string") return false;
146
- if (!input.startsWith("@") && /kotori-plugin-[a-z]([a-z,0-9]{2,13})\b/.exec(input) === null) return false;
146
+ if (input.startsWith("@") || input.startsWith(import_constants.PLUGIN_PREFIX)) return false;
147
147
  return true;
148
148
  }),
149
149
  version: import_core.Tsu.String(),
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
package/lib/utils/log.js CHANGED
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.2
4
+ * @Version 1.7.4
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/11 15:08:40
9
+ * @Date 2024/8/11 16:59:54
10
10
  */
11
11
 
12
12
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kotori-bot/loader",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Loader For KotoriBot",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -29,8 +29,8 @@
29
29
  "level": "^8.0.1",
30
30
  "path-to-regexp": "^6.2.2",
31
31
  "ws": "^8.14.2",
32
- "@kotori-bot/logger": "^1.3.2",
33
- "@kotori-bot/core": "^1.6.1"
32
+ "@kotori-bot/core": "^1.6.1",
33
+ "@kotori-bot/logger": "^1.3.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/express": "^4.17.21",