2 Angajamente 1e3ba544ca ... f680d6b9ee

Autor SHA1 Permisiunea de a trimite mesaje. Dacă este dezactivată, utilizatorul nu va putea trimite nici un fel de mesaj Data
  Mike L f680d6b9ee Update deps with npm audit fix 3 luni de acum
  Mike L 1e3ba544ca Update deps with npm audit fix 3 săptămâni în urmă
2 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 4 4
      lib/tools.js
  2. 1 1
      package.json

+ 4 - 4
lib/tools.js

@@ -15,18 +15,18 @@ module.exports = function(conf)
 	 */
 	 */
 	var init = () => {
 	var init = () => {
 		this.conf = conf;
 		this.conf = conf;
-    var socket = { host: conf.redis_host, port: conf.redis_port };
+		var socket = { host: conf.redis_host, port: conf.redis_port };
 		// noderedis密码等选项
 		// noderedis密码等选项
 		var options = { legacyMode: true, password: conf.redis_pwd, socket: socket };
 		var options = { legacyMode: true, password: conf.redis_pwd, socket: socket };
-    if (!options.password) delete options.password;
+		if (!options.password) delete options.password;
 		// redis client instance
 		// redis client instance
 		this.client = redis.createClient(options);
 		this.client = redis.createClient(options);
 
 
 		this.client.on("error", (err) => {
 		this.client.on("error", (err) => {
-		    console.log("redis Error " + err);
+				console.log("redis Error " + err);
 		});
 		});
 
 
-    return this.client.connect();
+		return this.client.connect();
 	}
 	}
 
 
 	/**
 	/**

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "cookie-parser": "~1.4.3",
     "cookie-parser": "~1.4.3",
     "debug": "~2.6.9",
     "debug": "~2.6.9",
     "express": "^4.22.2",
     "express": "^4.22.2",
-    "express-rate-limit": "^2.11.0",
+    "express-rate-limit": "^2.14.2",
     "morgan": "^1.11.0",
     "morgan": "^1.11.0",
     "pug": "^3.0.4",
     "pug": "^3.0.4",
     "redis": "^4.7.1",
     "redis": "^4.7.1",