aiwaf 1.1.0 → 1.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwaf",
3
- "version": "1.1.0",
3
+ "version": "1.1.3",
4
4
  "description": "AIWAF Web Application Firewall for JavaScript applications and major Node.js frameworks",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -12,7 +12,9 @@
12
12
  "utils/",
13
13
  "train.js",
14
14
  "README.md",
15
- "LICENSE"
15
+ "LICENSE",
16
+ "NOTICE",
17
+ "licenses/"
16
18
  ],
17
19
  "bin": {
18
20
  "aiwaf": "bin/aiwaf.js"
@@ -25,38 +27,51 @@
25
27
  "test:wasm": "jest --runInBand --runTestsByPath test/wasmAdapter.test.js test/wasm-header-config.test.js test/wasm-header-input.test.js test/wasm-retrain-behavior.test.js test/wasm-waf-integration.test.js && node test/wasm-real.js",
26
28
  "aiwaf": "node bin/aiwaf.js",
27
29
  "perf:wasm": "node test/perf-wasm.js",
28
- "test:wasm-real": "node test/wasm-real.js"
30
+ "test:wasm-real": "node test/wasm-real.js",
31
+ "test:native": "node test/native-pipeline-real.js && node test/native-frameworks-real.js",
32
+ "perf:native": "node ../scripts/benchmark_js_pipeline.js"
29
33
  },
30
34
  "allowScripts": {
31
35
  "sqlite3": true
32
36
  },
33
37
  "dependencies": {
34
38
  "@babel/parser": "^7.29.2",
35
- "aiwaf-wasm": "^0.2.0",
39
+ "aiwaf-wasm": "^0.2.3",
36
40
  "express": "^4.21.2",
37
- "glob": "^8.1.0",
41
+ "glob": "^13.0.6",
38
42
  "knex": "^2.4.2",
39
43
  "node-cache": "^5.1.2",
40
44
  "redis": "^4.6.5",
41
45
  "sqlite3": "^6.0.1"
42
46
  },
43
47
  "devDependencies": {
44
- "jest": "^29.7.0",
48
+ "@babel/plugin-transform-modules-commonjs": "^7.0.0",
49
+ "babel-jest": "^30.5.2",
50
+ "jest": "^30.5.2",
45
51
  "supertest": "^7.1.0",
46
- "fastify": "^4.29.1",
52
+ "fastify": "^5.12.7",
47
53
  "@hapi/hapi": "^21.3.12",
48
54
  "koa": "^2.15.4",
49
55
  "koa-bodyparser": "^4.4.1",
50
- "@nestjs/common": "^10.4.2",
51
- "@nestjs/core": "^10.4.2",
52
- "@nestjs/platform-express": "^10.4.2",
53
- "reflect-metadata": "^0.1.14",
56
+ "@nestjs/common": "^11.1.18",
57
+ "@nestjs/core": "^11.1.18",
58
+ "@nestjs/platform-express": "^11.1.18",
59
+ "reflect-metadata": "^0.2.2",
54
60
  "rxjs": "^7.8.1"
55
61
  },
56
62
  "jest": {
57
63
  "globalTeardown": "<rootDir>/test/jest.teardown.js",
58
64
  "forceExit": true,
59
65
  "coverageProvider": "v8",
66
+ "transform": {
67
+ "^.+\\.m?js$": [
68
+ "babel-jest",
69
+ { "plugins": ["@babel/plugin-transform-modules-commonjs"] }
70
+ ]
71
+ },
72
+ "transformIgnorePatterns": [
73
+ "node_modules[/\\\\](?!(?:.*[/\\\\])?cookie[/\\\\])"
74
+ ],
60
75
  "testPathIgnorePatterns": [
61
76
  "<rootDir>/test/wasm-adapter-real.test.js"
62
77
  ],
@@ -79,16 +94,10 @@
79
94
  "maxmind": "^4.3.0"
80
95
  },
81
96
  "overrides": {
82
- "body-parser": "^1.20.3",
83
- "qs": "^6.14.1",
84
- "path-to-regexp": "^0.1.13",
85
- "brace-expansion": "^1.1.13",
86
- "minimatch": "^5.1.8",
87
- "picomatch": "^2.3.2",
88
- "form-data": "^4.0.4",
89
- "js-yaml": "^3.14.2",
90
- "lodash": "^4.17.24",
91
- "tar-fs": "^2.1.4"
97
+ "qs": "^6.16.0",
98
+ "@istanbuljs/load-nyc-config": {
99
+ "js-yaml": "^4.1.1"
100
+ }
92
101
  },
93
102
  "keywords": [
94
103
  "waf",
@@ -105,5 +114,5 @@
105
114
  "directory": "js"
106
115
  },
107
116
  "author": "Aayush Gauba",
108
- "license": "MIT"
117
+ "license": "Elastic-2.0 AND MIT AND CC-BY-SA-4.0"
109
118
  }