Comparing version 2.0.0-alpha.23 to 2.0.0-alpha.24
@@ -22,2 +22,5 @@ "use strict"; | ||
const configDir = path_1.dirname(configFile); | ||
function isErrorModule(error) { | ||
return error.code !== 'MODULE_NOT_FOUND' || error.requireStack && error.requireStack[0] !== __filename; | ||
} | ||
function tryCallback(callback) { | ||
@@ -28,3 +31,3 @@ try { | ||
catch (error) { | ||
if (error.code !== 'MODULE_NOT_FOUND' && error.code !== 'ENOENT') { | ||
if (isErrorModule(error) && error.code !== 'ENOENT') { | ||
throw error; | ||
@@ -53,3 +56,3 @@ } | ||
catch (error) { | ||
if (error.code !== 'MODULE_NOT_FOUND' || error.requireStack[0] !== __filename) { | ||
if (isErrorModule(error)) { | ||
throw error; | ||
@@ -56,0 +59,0 @@ } |
{ | ||
"name": "koishi", | ||
"description": "A QQ bot framework based on CQHTTP", | ||
"version": "2.0.0-alpha.23", | ||
"version": "2.0.0-alpha.24", | ||
"main": "dist/index.js", | ||
@@ -46,3 +46,3 @@ "typings": "dist/index.d.ts", | ||
"koishi-plugin-status": "^2.0.0-alpha.16", | ||
"koishi-plugin-teach": "^1.0.0-alpha.22", | ||
"koishi-plugin-teach": "^1.0.0-alpha.23", | ||
"koishi-utils": "^1.1.0", | ||
@@ -49,0 +49,0 @@ "prompts": "^2.3.2" |
Sorry, the diff of this file is not supported yet
38111
404