@webdecoy/express 0.26.0 → 0.27.0

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/dist/index.js CHANGED
@@ -75,7 +75,8 @@ function webdecoy(config) {
75
75
  const result = await sdk.protect(metadata, {
76
76
  threshold: config.threshold,
77
77
  skipLocalAnalysis: config.skipLocalAnalysis,
78
- metadata: config.metadata
78
+ metadata: config.metadata,
79
+ violationReporting: { mode }
79
80
  });
80
81
  const ht = getToken();
81
82
  if (ht) {
package/dist/index.mjs CHANGED
@@ -56,7 +56,8 @@ function webdecoy(config) {
56
56
  const result = await sdk.protect(metadata, {
57
57
  threshold: config.threshold,
58
58
  skipLocalAnalysis: config.skipLocalAnalysis,
59
- metadata: config.metadata
59
+ metadata: config.metadata,
60
+ violationReporting: { mode }
60
61
  });
61
62
  const ht = getToken();
62
63
  if (ht) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/express",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Web Decoy middleware for Express.js",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "url": "https://github.com/WebDecoy/node/issues"
41
41
  },
42
42
  "dependencies": {
43
- "@webdecoy/node": "^0.26.0"
43
+ "@webdecoy/node": "^0.27.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "express": "^4.18.0 || ^5.0.0"