node-karin 0.10.3 → 0.10.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.
@@ -231,8 +231,8 @@ export const config = new (class Cfg {
231
231
  if (res) {
232
232
  const cfg = { ...res.defCfg.default, ...res.Config.default };
233
233
  for (const k of keys) {
234
- if (res.config[k])
235
- return { ...cfg, ...res.config[k] };
234
+ if (res.Config?.[k])
235
+ return { ...cfg, ...res.Config?.[k] };
236
236
  }
237
237
  return cfg;
238
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",