diff --git a/index.js b/index.js index 8242369..c339d14 100644 --- a/index.js +++ b/index.js @@ -23,12 +23,14 @@ import Cors from './middleware/cors.js' function hideProperty(host, name, value) { Object.defineProperty(host, name, { value: value, - writable: true, - enumerable: false, - configurable: true + enumerable: false }) } +process.on('uncaughtException', err => { + console.error('UncaughtException: ', err) +}) + export default class Five { constructor() { hideProperty(this, '__FIVE__', config) diff --git a/package.json b/package.json index 0754838..9351cb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gm5/core", - "version": "1.1.2", + "version": "1.1.3", "type": "module", "description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手", "author": "yutent ",