parent
a135007f35
commit
9a7421c4af
8
index.js
8
index.js
|
@ -23,12 +23,14 @@ import Cors from './middleware/cors.js'
|
||||||
function hideProperty(host, name, value) {
|
function hideProperty(host, name, value) {
|
||||||
Object.defineProperty(host, name, {
|
Object.defineProperty(host, name, {
|
||||||
value: value,
|
value: value,
|
||||||
writable: true,
|
enumerable: false
|
||||||
enumerable: false,
|
|
||||||
configurable: true
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.on('uncaughtException', err => {
|
||||||
|
console.error('UncaughtException: ', err)
|
||||||
|
})
|
||||||
|
|
||||||
export default class Five {
|
export default class Five {
|
||||||
constructor() {
|
constructor() {
|
||||||
hideProperty(this, '__FIVE__', config)
|
hideProperty(this, '__FIVE__', config)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@gm5/core",
|
"name": "@gm5/core",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手",
|
"description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手",
|
||||||
"author": "yutent <yutent.io@gmail.com>",
|
"author": "yutent <yutent.io@gmail.com>",
|
||||||
|
|
Loading…
Reference in New Issue