@webdecoy/fastify 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
@@ -100,7 +100,8 @@ async function webdecoyPluginImpl(fastify, options) {
100
100
  const result = await sdk.protect(metadata, {
101
101
  threshold: options.threshold,
102
102
  skipLocalAnalysis: options.skipLocalAnalysis,
103
- metadata: options.metadata
103
+ metadata: options.metadata,
104
+ violationReporting: { mode }
104
105
  });
105
106
  if (mode === "monitor") {
106
107
  req.webdecoy = result.detection;
package/dist/index.mjs CHANGED
@@ -71,7 +71,8 @@ async function webdecoyPluginImpl(fastify, options) {
71
71
  const result = await sdk.protect(metadata, {
72
72
  threshold: options.threshold,
73
73
  skipLocalAnalysis: options.skipLocalAnalysis,
74
- metadata: options.metadata
74
+ metadata: options.metadata,
75
+ violationReporting: { mode }
75
76
  });
76
77
  if (mode === "monitor") {
77
78
  req.webdecoy = result.detection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/fastify",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Web Decoy plugin for Fastify",
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
  "fastify-plugin": "^4.5.1"
45
45
  },
46
46
  "peerDependencies": {