移除外部md5引用, 使用标准库
This commit is contained in:
parent
bf48417e51
commit
50ba876daf
4
index.js
4
index.js
@ -5,10 +5,10 @@ import session from 'express-session'
|
|||||||
import sessionDb from 'express-session-nedb'
|
import sessionDb from 'express-session-nedb'
|
||||||
import random from 'string-random'
|
import random from 'string-random'
|
||||||
import formidable from 'formidable'
|
import formidable from 'formidable'
|
||||||
import md5 from 'md5-node'
|
import crypto from 'crypto'
|
||||||
import HUB from './fmhub.js'
|
import HUB from './fmhub.js'
|
||||||
|
|
||||||
|
const md5 = (str) => crypto.createHash('md5').update(str).digest('hex')
|
||||||
const databases = new Map() // 所有数据库
|
const databases = new Map() // 所有数据库
|
||||||
const FM = new HUB() // 频道消息分发器
|
const FM = new HUB() // 频道消息分发器
|
||||||
const messagelist = new Map() // 消息队列的nedb存储
|
const messagelist = new Map() // 消息队列的nedb存储
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
"formidable": "^2.0.1",
|
"formidable": "^2.0.1",
|
||||||
"interrelated": "^2.0.0-0",
|
"interrelated": "^2.0.0-0",
|
||||||
"level": "^7.0.1",
|
"level": "^7.0.1",
|
||||||
"md5": "^2.3.0",
|
|
||||||
"md5-node": "^1.0.1",
|
|
||||||
"nedb": "^1.8.0",
|
"nedb": "^1.8.0",
|
||||||
"string-random": "^0.1.3"
|
"string-random": "^0.1.3"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user