@webdecoy/express 0.4.1 → 0.6.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/README.md +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ API keys start with `sk_live_` for production or `sk_test_` for testing.
|
|
|
176
176
|
|
|
177
177
|
## Documentation
|
|
178
178
|
|
|
179
|
-
For full documentation, visit the [GitHub repository](https://github.com/
|
|
179
|
+
For full documentation, visit the [GitHub repository](https://github.com/WebDecoy/node).
|
|
180
180
|
|
|
181
181
|
## License
|
|
182
182
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, NextFunction, RequestHandler } from 'express';
|
|
2
|
-
import { ProtectOptions, WebDecoyConfig, CaptchaEndpointsOptions } from '@webdecoy/node';
|
|
2
|
+
import { EdgeVerdict, ProtectOptions, WebDecoyConfig, CaptchaEndpointsOptions } from '@webdecoy/node';
|
|
3
3
|
export { CaptchaEndpointsOptions, ProtectResult, RequestMetadata, SDKDetectionResponse, WebDecoyConfig } from '@webdecoy/node';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -73,6 +73,8 @@ declare global {
|
|
|
73
73
|
detection_id: string;
|
|
74
74
|
rule_enforced: boolean;
|
|
75
75
|
};
|
|
76
|
+
/** What the edge validator said about this request (#481). */
|
|
77
|
+
webdecoyEdge?: EdgeVerdict;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, NextFunction, RequestHandler } from 'express';
|
|
2
|
-
import { ProtectOptions, WebDecoyConfig, CaptchaEndpointsOptions } from '@webdecoy/node';
|
|
2
|
+
import { EdgeVerdict, ProtectOptions, WebDecoyConfig, CaptchaEndpointsOptions } from '@webdecoy/node';
|
|
3
3
|
export { CaptchaEndpointsOptions, ProtectResult, RequestMetadata, SDKDetectionResponse, WebDecoyConfig } from '@webdecoy/node';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -73,6 +73,8 @@ declare global {
|
|
|
73
73
|
detection_id: string;
|
|
74
74
|
rule_enforced: boolean;
|
|
75
75
|
};
|
|
76
|
+
/** What the edge validator said about this request (#481). */
|
|
77
|
+
webdecoyEdge?: EdgeVerdict;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
}
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webdecoy/express",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Web Decoy middleware for Express.js",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
19
19
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
20
|
-
"test": "jest",
|
|
20
|
+
"test": "jest --passWithNoTests",
|
|
21
21
|
"lint": "eslint src/**/*.ts",
|
|
22
22
|
"clean": "rm -rf dist"
|
|
23
23
|
},
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
],
|
|
31
31
|
"author": "Web Decoy",
|
|
32
32
|
"license": "MIT",
|
|
33
|
-
"homepage": "https://github.com/WebDecoy/node
|
|
33
|
+
"homepage": "https://github.com/WebDecoy/node#readme",
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/WebDecoy/node
|
|
36
|
+
"url": "git+https://github.com/WebDecoy/node.git",
|
|
37
37
|
"directory": "packages/express"
|
|
38
38
|
},
|
|
39
39
|
"bugs": {
|
|
40
|
-
"url": "https://github.com/WebDecoy/node
|
|
40
|
+
"url": "https://github.com/WebDecoy/node/issues"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@webdecoy/node": "^0.
|
|
43
|
+
"@webdecoy/node": "^0.6.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"express": "^4.18.0 || ^5.0.0"
|