@bot403/node 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -6
package/README.md CHANGED
@@ -33,7 +33,7 @@ curl -X POST https://bot403.app/api/v1/verify \
33
33
  ## API
34
34
 
35
35
  - `new Bot403({ secretKey, baseUrl?, fetch?, timeoutMs? })`: the secret key is the site's `sk_live_…` key. Keep it on the server.
36
- - `verify(token)`: checks one token. Resolves with a `VerifyResult`: `ok`, and a `reason` when it failed. A failed token is an answer, not an error.
36
+ - `verify(token)`: checks one token. Resolves with a `VerifyResult`: `ok`, and a `reason` when it failed. A failed token resolves too; it does not throw.
37
37
  - `verifyForm(form)`: takes `FormData`, `URLSearchParams` or a parsed body object and sends every field, so a honeypot field set on the site is checked too.
38
38
  - `stats()`: the site's statistics for its window, with quota usage.
39
39
  - `tokenFrom(form)`: reads the token (`_bot403`, or `altcha` from the Altcha web component).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bot403/node",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Bot403 for Node.js and other server runtimes: verify form tokens and read statistics. Typed, no dependencies. Works in Node.js 18+, Bun, Deno, Cloudflare Workers and Next.js.",
5
5
  "keywords": [
6
6
  "bot403",
@@ -17,11 +17,6 @@
17
17
  "cloudflare-workers"
18
18
  ],
19
19
  "homepage": "https://bot403.app/docs/javascript",
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/zaharystoyanovlabs/bot403.git",
23
- "directory": "sdk/js/packages/node"
24
- },
25
20
  "bugs": {
26
21
  "email": "hello@bot403.app"
27
22
  },