chanjs 2.0.9 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/helper/db.js CHANGED
@@ -30,6 +30,7 @@ export const db =({
30
30
  charset = "utf8mb4",
31
31
  min = 0,
32
32
  max = 2,
33
+ filename=''
33
34
  }) =>{
34
35
  let config = {
35
36
  client,
@@ -40,6 +41,7 @@ export const db =({
40
41
  password,
41
42
  database,
42
43
  charset,
44
+ filename,
43
45
  },
44
46
  debug,
45
47
  pool: {
package/middleware/waf.js CHANGED
@@ -7,7 +7,7 @@ const keywords = {
7
7
  wholeWord: [
8
8
  // 系统命令/工具(容易产生短词误报)
9
9
  "opt", "cmd", "rm", "mdc", "netcat", "nc", "mdb", "bin", "mk", "sys","sh","chomd",
10
- "php-cgi"
10
+ "php-cgi","process","require","child_process","execSync","mainModule"
11
11
  ],
12
12
 
13
13
  // 普通关键词(包含特殊字符或较长关键词)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "2.0.9",
4
+ "version": "2.0.11",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",