reykit 1.0.176 → 1.0.177
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.js +10429 -10129
- package/dist/src/index.d.ts +3 -2
- package/dist/src/lib/captcha/captcha.d.ts +23 -0
- package/dist/src/lib/captcha/index.d.ts +7 -0
- package/dist/src/lib/index.d.ts +11 -10
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { base, data, image, net, re, react, time, twc, window } from './lib';
|
|
1
|
+
import { captcha, base, data, image, net, re, react, time, twc, window } from './lib';
|
|
2
2
|
/**
|
|
3
3
|
* @Time : 2026-03-11
|
|
4
4
|
* @Author : Rey
|
|
@@ -10,6 +10,7 @@ import * as ui from './component/ui';
|
|
|
10
10
|
declare const _default: {
|
|
11
11
|
component: typeof component;
|
|
12
12
|
ui: typeof component.ui;
|
|
13
|
+
captcha: typeof captcha;
|
|
13
14
|
base: typeof base;
|
|
14
15
|
data: typeof data;
|
|
15
16
|
image: typeof image;
|
|
@@ -21,4 +22,4 @@ declare const _default: {
|
|
|
21
22
|
window: typeof window;
|
|
22
23
|
};
|
|
23
24
|
export default _default;
|
|
24
|
-
export { component, ui, base, data, image, net, re, react, time, twc, window };
|
|
25
|
+
export { component, ui, captcha, base, data, image, net, re, react, time, twc, window };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type AliGraphCaptchaOnErrorArg = {
|
|
2
|
+
code: string;
|
|
3
|
+
msg: string;
|
|
4
|
+
desc: {
|
|
5
|
+
detail: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
type AliGraphCaptchaOnError = (error: AliGraphCaptchaOnErrorArg) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize Ali graph captcha.
|
|
11
|
+
*
|
|
12
|
+
* @param appId: Account APP ID.
|
|
13
|
+
* @param onError: Callback function of error.
|
|
14
|
+
*/
|
|
15
|
+
export declare function initAliGraphCaptcha(appId: string, onError?: AliGraphCaptchaOnError | null): void;
|
|
16
|
+
/**
|
|
17
|
+
* Use Ali graph captcha.
|
|
18
|
+
*
|
|
19
|
+
* @param fn - Execution function after verification.
|
|
20
|
+
* @param args - Execution function arguments.
|
|
21
|
+
*/
|
|
22
|
+
export declare function verifyAliGraphCaptcha<T, Args extends any[]>(fn: (...args: Args) => T | Promise<T>, ...args: Args): void;
|
|
23
|
+
export {};
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
|
|
1
|
+
import * as captcha from './captcha';
|
|
2
|
+
import * as base from './base';
|
|
3
|
+
import * as data from './data';
|
|
4
|
+
import * as image from './image';
|
|
5
|
+
import * as net from './net';
|
|
6
|
+
import * as re from './re';
|
|
7
|
+
import * as react from './react';
|
|
8
|
+
import * as time from './time';
|
|
9
|
+
import * as twc from './twc';
|
|
10
|
+
import * as window from './window';
|
|
11
|
+
export { captcha, base, data, image, net, re, react, time, twc, window };
|