@webdecoy/express 0.9.0 → 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
@@ -18,26 +18,21 @@ interface WebDecoyMiddlewareOptions extends ProtectOptions {
18
18
  * a rule governs that rule, not the score, and `onBlocked` did not receive
19
19
  * `next`, so "record it and serve the request anyway" could not be expressed.
20
20
  *
21
- * Found by installing it on a live site that takes payments: the homepage
22
- * returned `{"error":"Forbidden"}` on the first request, as did an ordinary
23
- * `python-requests` user agent.
24
- *
25
- * Nobody adopts a defence by having it break their site on the first install.
21
+ * * Nobody adopts a defence by having it break their site on the first install.
26
22
  * Watch what it would have done, then set `mode: 'enforce'`.
27
23
  */
28
24
  mode?: 'monitor' | 'enforce';
29
25
  /**
30
26
  * Inject a hidden honeytoken link into HTML responses, and arm the tripwire it
31
- * points at. Defaults to **on** when an apiKey is present (#482).
27
+ * points at. Defaults to **on** when an apiKey is present.
32
28
  *
33
29
  * The SDK used to generate a honeytoken and ask the developer to embed it.
34
- * Almost nobody did: `sdk_tripwire` had FOUR rows in production, ever, while
35
- * the WordPress plugin — which injects the link itself — has real coverage.
30
+ * Almost nobody does, and an unplaced link is a trap nothing can walk into.
36
31
  *
37
32
  * A trap hit is the only detection here that needs no score, no JavaScript, no
38
33
  * fingerprint and no IP. It is also the only one that scores: honeypot signals
39
- * are weighted 38% against user-agent's 1%, which is why every rule-less `sdk`
40
- * detection ever recorded came out at 0.
34
+ * carry the highest weight in the threat score, while a User-Agent — all a
35
+ * rule-less install can otherwise report — carries nearly none.
41
36
  *
42
37
  * Set `false` to opt out, or place the link yourself for apps that stream.
43
38
  */
@@ -115,7 +110,7 @@ declare global {
115
110
  detection_id: string;
116
111
  rule_enforced: boolean;
117
112
  };
118
- /** What the edge validator said about this request (#481). */
113
+ /** What the edge validator said about this request. */
119
114
  webdecoyEdge?: EdgeVerdict;
120
115
  }
121
116
  }
package/dist/index.d.ts CHANGED
@@ -18,26 +18,21 @@ interface WebDecoyMiddlewareOptions extends ProtectOptions {
18
18
  * a rule governs that rule, not the score, and `onBlocked` did not receive
19
19
  * `next`, so "record it and serve the request anyway" could not be expressed.
20
20
  *
21
- * Found by installing it on a live site that takes payments: the homepage
22
- * returned `{"error":"Forbidden"}` on the first request, as did an ordinary
23
- * `python-requests` user agent.
24
- *
25
- * Nobody adopts a defence by having it break their site on the first install.
21
+ * * Nobody adopts a defence by having it break their site on the first install.
26
22
  * Watch what it would have done, then set `mode: 'enforce'`.
27
23
  */
28
24
  mode?: 'monitor' | 'enforce';
29
25
  /**
30
26
  * Inject a hidden honeytoken link into HTML responses, and arm the tripwire it
31
- * points at. Defaults to **on** when an apiKey is present (#482).
27
+ * points at. Defaults to **on** when an apiKey is present.
32
28
  *
33
29
  * The SDK used to generate a honeytoken and ask the developer to embed it.
34
- * Almost nobody did: `sdk_tripwire` had FOUR rows in production, ever, while
35
- * the WordPress plugin — which injects the link itself — has real coverage.
30
+ * Almost nobody does, and an unplaced link is a trap nothing can walk into.
36
31
  *
37
32
  * A trap hit is the only detection here that needs no score, no JavaScript, no
38
33
  * fingerprint and no IP. It is also the only one that scores: honeypot signals
39
- * are weighted 38% against user-agent's 1%, which is why every rule-less `sdk`
40
- * detection ever recorded came out at 0.
34
+ * carry the highest weight in the threat score, while a User-Agent — all a
35
+ * rule-less install can otherwise report — carries nearly none.
41
36
  *
42
37
  * Set `false` to opt out, or place the link yourself for apps that stream.
43
38
  */
@@ -115,7 +110,7 @@ declare global {
115
110
  detection_id: string;
116
111
  rule_enforced: boolean;
117
112
  };
118
- /** What the edge validator said about this request (#481). */
113
+ /** What the edge validator said about this request. */
119
114
  webdecoyEdge?: EdgeVerdict;
120
115
  }
121
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/express",
3
- "version": "0.9.0",
3
+ "version": "0.10.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.9.0"
43
+ "@webdecoy/node": "^0.10.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "express": "^4.18.0 || ^5.0.0"