altcha 0.6.3 → 0.6.4
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 +3 -2
- package/dist/altcha.d.ts +35 -0
- package/dist/altcha.js +566 -549
- package/dist/altcha.umd.cjs +2 -2
- package/dist_external/altcha.d.ts +35 -0
- package/dist_external/altcha.js +563 -546
- package/dist_external/altcha.umd.cjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ export interface Configure {
|
|
|
139
139
|
mockerror?: boolean;
|
|
140
140
|
name?: string;
|
|
141
141
|
refetchonexpire?: boolean;
|
|
142
|
-
spamfilter: boolean | SpamFilter;
|
|
142
|
+
spamfilter: boolean | 'ipAddress' | SpamFilter;
|
|
143
143
|
strings?: {
|
|
144
144
|
error?: string;
|
|
145
145
|
footer?: string;
|
|
@@ -151,6 +151,7 @@ export interface Configure {
|
|
|
151
151
|
test?: boolean | number;
|
|
152
152
|
verifyurl?: string;
|
|
153
153
|
workers?: number;
|
|
154
|
+
workerurl?: string;
|
|
154
155
|
}
|
|
155
156
|
```
|
|
156
157
|
|
|
@@ -190,7 +191,7 @@ The Spam Filter API analyzes various signals in the submitted data to determine
|
|
|
190
191
|
|
|
191
192
|
### Spam Filter Configuration
|
|
192
193
|
|
|
193
|
-
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:
|
|
194
|
+
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:
|
|
194
195
|
|
|
195
196
|
```ts
|
|
196
197
|
interface SpamFilter {
|
package/dist/altcha.d.ts
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
1
3
|
declare module 'altcha';
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
'altcha-widget': AltchaWidget;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface AltchaWidget {
|
|
12
|
+
auto?: 'onfocus' | 'onload' | 'onsubmit';
|
|
13
|
+
blockspam?: boolean;
|
|
14
|
+
challengeurl?: string;
|
|
15
|
+
challengejson?: string;
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
delay?: number;
|
|
18
|
+
expire?: number;
|
|
19
|
+
floating?: 'auto' | 'top' | 'bottom' | 'false' | '' | boolean;
|
|
20
|
+
floatinganchor?: string;
|
|
21
|
+
floatingoffset?: number;
|
|
22
|
+
hidefooter?: boolean;
|
|
23
|
+
hidelogo?: boolean;
|
|
24
|
+
name?: string;
|
|
25
|
+
maxnumber?: number;
|
|
26
|
+
mockerror?: boolean;
|
|
27
|
+
refetchonexpire?: boolean;
|
|
28
|
+
spamfilter?: boolean | 'ipAddress';
|
|
29
|
+
strings?: string;
|
|
30
|
+
test?: boolean | number;
|
|
31
|
+
verifyurl?: string;
|
|
32
|
+
workers?: number;
|
|
33
|
+
workerurl?: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|