Skip to content

Commit

Permalink
0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Jul 19, 2024
1 parent 670c8b4 commit 11ad17c
Show file tree
Hide file tree
Showing 11 changed files with 1,301 additions and 1,132 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export interface Configure {
mockerror?: boolean;
name?: string;
refetchonexpire?: boolean;
spamfilter: boolean | SpamFilter;
spamfilter: boolean | 'ipAddress' | SpamFilter;
strings?: {
error?: string;
footer?: string;
Expand All @@ -151,6 +151,7 @@ export interface Configure {
test?: boolean | number;
verifyurl?: string;
workers?: number;
workerurl?: string;
}
```

Expand Down Expand Up @@ -190,7 +191,7 @@ The Spam Filter API analyzes various signals in the submitted data to determine

### Spam Filter Configuration

The Spam Filter can be enabled with default configuration by setting the `spamfilter` option to `true`, or it can be customized using the following configuration schema:
The Spam Filter can be enabled with default configuration by setting the `spamfilter` option to `true`, or `ipAddress` to verify only the IP address and the time zone, or it can be customized using the following configuration schema:

```ts
interface SpamFilter {
Expand Down
35 changes: 35 additions & 0 deletions dist/altcha.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
export {};

declare module 'altcha';

declare global {
namespace JSX {
interface IntrinsicElements {
'altcha-widget': AltchaWidget;
}

interface AltchaWidget {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
challengeurl?: string;
challengejson?: string;
debug?: boolean;
delay?: number;
expire?: number;
floating?: 'auto' | 'top' | 'bottom' | 'false' | '' | boolean;
floatinganchor?: string;
floatingoffset?: number;
hidefooter?: boolean;
hidelogo?: boolean;
name?: string;
maxnumber?: number;
mockerror?: boolean;
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
test?: boolean | number;
verifyurl?: string;
workers?: number;
workerurl?: string;
}
}
}
Loading

0 comments on commit 11ad17c

Please sign in to comment.