@ -2552,7 +2552,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@ -2573,12 +2574,14 @@
"balanced-match": {
"version": "1.0.0",
"brace-expansion": {
"version": "1.1.11",
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@ -2593,17 +2596,20 @@
"code-point-at": {
"version": "1.1.0",
"concat-map": {
"version": "0.0.1",
"console-control-strings": {
"core-util-is": {
"version": "1.0.2",
@ -2720,7 +2726,8 @@
"inherits": {
"version": "2.0.3",
"ini": {
"version": "1.3.5",
@ -2732,6 +2739,7 @@
"number-is-nan": "^1.0.0"
}
@ -2746,6 +2754,7 @@
"version": "3.0.4",
"brace-expansion": "^1.1.7"
@ -2753,12 +2762,14 @@
"minimist": {
"version": "0.0.8",
"minipass": {
"version": "2.3.5",
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@ -2777,6 +2788,7 @@
"version": "0.5.1",
"minimist": "0.0.8"
@ -2857,7 +2869,8 @@
"number-is-nan": {
"version": "1.0.1",
"object-assign": {
"version": "4.1.1",
@ -2869,6 +2882,7 @@
"version": "1.4.0",
"wrappy": "1"
@ -2954,7 +2968,8 @@
"safe-buffer": {
"version": "5.1.2",
"safer-buffer": {
"version": "2.1.2",
@ -2990,6 +3005,7 @@
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@ -3009,6 +3025,7 @@
"version": "3.0.1",
"ansi-regex": "^2.0.0"
@ -3052,12 +3069,14 @@
"wrappy": {
"yallist": {
"version": "3.0.3",
@ -20,7 +20,7 @@ export class MemoryCache extends EventEmitter {
* @param key
*/
public hashKey(key: string): string {
const hash = crypto.createHash("md5");
const hash = crypto.createHash("sha1");
const data = hash.update(key, "utf8");
return data.digest("hex");
@ -49,7 +49,6 @@ DO $$ BEGIN
END$$;
-- create tables
DO $$ BEGIN
CREATE TABLE IF NOT EXISTS "user_sessions" (
"sid" varchar NOT NULL,
@ -127,5 +126,3 @@ DO $$ BEGIN
type requesttype DEFAULT 'FRIENDREQUEST',
PRIMARY KEY (sender, receiver, type)
);
END $$;