@webdecoy/nextjs 0.8.1 → 0.10.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.d.mts CHANGED
@@ -13,8 +13,8 @@ interface WebDecoyMiddlewareOptions extends ProtectOptions {
13
13
  * MONITOR IS THE DEFAULT ON PURPOSE, and this changed in 0.7.0. Before,
14
14
  * installing this with an API key began returning 403 to any request whose
15
15
  * server-side score cleared `threatScoreThreshold` (default 80), and there was
16
- * no supported way to watch first. Found by installing it on a live site that
17
- * takes payments, where the homepage returned Forbidden on the first request.
16
+ * no supported way to watch first — which is a good way to take down a site on
17
+ * the first install.
18
18
  *
19
19
  * Watch what it would have done, then set `mode: 'enforce'`.
20
20
  */
@@ -92,7 +92,7 @@ interface WithBotProtectionOptions extends WebDecoyMiddlewareOptions {
92
92
  declare function withBotProtection<T extends (...args: any[]) => any>(handler: T, config: WebDecoyConfig & WithBotProtectionOptions): T;
93
93
 
94
94
  /**
95
- * Read the edge validator's verdict inside a Next.js app (#481).
95
+ * Read the edge validator's verdict inside a Next.js app.
96
96
  *
97
97
  * The Cloudflare clearance worker annotates every forwarded request with
98
98
  * `x-wd-clearance` and, when the sensor classified the client, `x-wd-class`.
@@ -148,7 +148,7 @@ type HeaderSource = {
148
148
  declare function getEdgeVerdict(source: HeaderSource): EdgeVerdict;
149
149
 
150
150
  /**
151
- * Honeytoken for Next.js (#482).
151
+ * Honeytoken for Next.js.
152
152
  *
153
153
  * WHY THIS IS A HELPER AND NOT AUTOMATIC
154
154
  *
package/dist/index.d.ts CHANGED
@@ -13,8 +13,8 @@ interface WebDecoyMiddlewareOptions extends ProtectOptions {
13
13
  * MONITOR IS THE DEFAULT ON PURPOSE, and this changed in 0.7.0. Before,
14
14
  * installing this with an API key began returning 403 to any request whose
15
15
  * server-side score cleared `threatScoreThreshold` (default 80), and there was
16
- * no supported way to watch first. Found by installing it on a live site that
17
- * takes payments, where the homepage returned Forbidden on the first request.
16
+ * no supported way to watch first — which is a good way to take down a site on
17
+ * the first install.
18
18
  *
19
19
  * Watch what it would have done, then set `mode: 'enforce'`.
20
20
  */
@@ -92,7 +92,7 @@ interface WithBotProtectionOptions extends WebDecoyMiddlewareOptions {
92
92
  declare function withBotProtection<T extends (...args: any[]) => any>(handler: T, config: WebDecoyConfig & WithBotProtectionOptions): T;
93
93
 
94
94
  /**
95
- * Read the edge validator's verdict inside a Next.js app (#481).
95
+ * Read the edge validator's verdict inside a Next.js app.
96
96
  *
97
97
  * The Cloudflare clearance worker annotates every forwarded request with
98
98
  * `x-wd-clearance` and, when the sensor classified the client, `x-wd-class`.
@@ -148,7 +148,7 @@ type HeaderSource = {
148
148
  declare function getEdgeVerdict(source: HeaderSource): EdgeVerdict;
149
149
 
150
150
  /**
151
- * Honeytoken for Next.js (#482).
151
+ * Honeytoken for Next.js.
152
152
  *
153
153
  * WHY THIS IS A HELPER AND NOT AUTOMATIC
154
154
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/nextjs",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "description": "Web Decoy middleware for Next.js",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "url": "https://github.com/WebDecoy/node/issues"
43
43
  },
44
44
  "dependencies": {
45
- "@webdecoy/node": "^0.8.1"
45
+ "@webdecoy/node": "^0.10.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "next": ">=13.0.0"