@kotori-bot/loader
Advanced tools
Comparing version 1.7.1 to 1.7.2
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -302,6 +302,4 @@ | ||
} | ||
const main = import_node_path.default.resolve( | ||
dir, | ||
this.isDev && import_node_fs.default.existsSync(import_node_path.default.join(dir, "src/index.ts")) ? "src/index.ts" : pkg.main | ||
); | ||
const loadTs = this.isDev && import_node_fs.default.existsSync(import_node_path.default.join(dir, "src/index.ts")); | ||
const main = import_node_path.default.resolve(dir, loadTs ? "src/index.ts" : pkg.main); | ||
if (!import_node_fs.default.existsSync(main)) throw new import_core.DevError(`cannot find main file ${main}`); | ||
@@ -321,3 +319,3 @@ const getDirFiles = (rootDir2) => { | ||
}; | ||
const files = getDirFiles(import_node_path.default.join(dir, this.isDev ? "src" : import_node_path.default.parse(pkg.main).dir)); | ||
const files = getDirFiles(import_node_path.default.join(dir, loadTs ? "src" : import_node_path.default.parse(pkg.main).dir)); | ||
const [pkgScope, pkgName] = pkg.name.split("/"); | ||
@@ -324,0 +322,0 @@ const pluginName = `${pkgScope.startsWith("@") && pkgScope !== "@kotori-bot" ? `${pkgScope.slice(1)}/` : ""}${(pkgName ?? pkgScope).replace(import_constants.PLUGIN_PREFIX, "")}`; |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { type Context, Service } from '@kotori-bot/core'; | ||
@@ -2,0 +4,0 @@ import { type IncomingMessage, type ServerResponse } from 'node:http'; |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import type { NextFunction, Request, Response } from 'express'; | ||
@@ -2,0 +3,0 @@ import type { IncomingMessage } from 'node:http'; |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
/** | ||
* @Package @kotori-bot/loader | ||
* @Version 1.7.1 | ||
* @Version 1.7.2 | ||
* @Author Arimura Sena <me@hotaru.icu> | ||
@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved. | ||
* @Link https://github.com/kotorijs/kotori | ||
* @Date 2024/8/9 18:47:18 | ||
* @Date 2024/8/11 15:08:40 | ||
*/ | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "@kotori-bot/loader", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "Loader For KotoriBot", | ||
@@ -32,4 +32,4 @@ "license": "GPL-3.0", | ||
"ws": "^8.14.2", | ||
"@kotori-bot/core": "^1.6.1", | ||
"@kotori-bot/logger": "^1.3.2" | ||
"@kotori-bot/logger": "^1.3.2", | ||
"@kotori-bot/core": "^1.6.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98204
1527