vona-module-a-captcha 5.0.17 → 5.0.19
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ICaptchaProviderData, ICaptchaProviderExecute, IDecoratorCaptchaProviderOptions } from 'vona-module-a-captcha';
|
|
2
|
+
import { BeanBase } from 'vona';
|
|
3
|
+
import { CaptchaProvider } from 'vona-module-a-captcha';
|
|
4
|
+
|
|
5
|
+
export type TypeCaptchaProvider<%=argv.beanNameCapitalize%>Token = any;
|
|
6
|
+
export type TypeCaptchaProvider<%=argv.beanNameCapitalize%>Payload = any;
|
|
7
|
+
export type TypeCaptchaProvider<%=argv.beanNameCapitalize%>Data = ICaptchaProviderData<TypeCaptchaProvider<%=argv.beanNameCapitalize%>Token, TypeCaptchaProvider<%=argv.beanNameCapitalize%>Payload>;
|
|
8
|
+
|
|
9
|
+
export interface ICaptchaProviderOptions<%=argv.beanNameCapitalize%> extends IDecoratorCaptchaProviderOptions {}
|
|
10
|
+
|
|
11
|
+
@CaptchaProvider<ICaptchaProviderOptions<%=argv.beanNameCapitalize%>>()
|
|
12
|
+
export class CaptchaProvider<%=argv.beanNameCapitalize%>
|
|
13
|
+
extends BeanBase implements ICaptchaProviderExecute<TypeCaptchaProvider<%=argv.beanNameCapitalize%>Token, TypeCaptchaProvider<%=argv.beanNameCapitalize%>Payload> {
|
|
14
|
+
async create(_options: ICaptchaProviderOptions<%=argv.beanNameCapitalize%>): Promise<TypeCaptchaProvider<%=argv.beanNameCapitalize%>Data> {
|
|
15
|
+
throw new Error('Not Implemented');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async verify(
|
|
19
|
+
_token: TypeCaptchaProvider<%=argv.beanNameCapitalize%>Token,
|
|
20
|
+
_tokenInput: TypeCaptchaProvider<%=argv.beanNameCapitalize%>Token,
|
|
21
|
+
_options: ICaptchaProviderOptions<%=argv.beanNameCapitalize%>): Promise<boolean> {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -15,6 +15,7 @@ declare module 'vona-module-a-captcha' {
|
|
|
15
15
|
interface InterceptorCaptchaVerify {
|
|
16
16
|
get $beanFullName(): 'a-captcha.interceptor.captchaVerify';
|
|
17
17
|
get $onionName(): 'a-captcha:captchaVerify';
|
|
18
|
+
get $onionOptions(): IInterceptorOptionsCaptchaVerify;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
/** interceptor: end */
|
|
@@ -51,6 +52,7 @@ declare module 'vona-module-a-captcha' {
|
|
|
51
52
|
interface CacheRedisCaptcha {
|
|
52
53
|
get $beanFullName(): 'a-captcha.cacheRedis.captcha';
|
|
53
54
|
get $onionName(): 'a-captcha:captcha';
|
|
55
|
+
get $onionOptions(): IDecoratorCacheRedisOptions;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
/** cacheRedis: end */
|
|
@@ -102,6 +104,7 @@ declare module 'vona-module-a-captcha' {
|
|
|
102
104
|
interface ControllerCaptcha {
|
|
103
105
|
get $beanFullName(): 'a-captcha.controller.captcha';
|
|
104
106
|
get $onionName(): 'a-captcha:captcha';
|
|
107
|
+
get $onionOptions(): IControllerOptionsCaptcha;
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
/** controller: end */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-a-captcha",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.19",
|
|
5
5
|
"title": "a-captcha",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"dependencies": {},
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"assets",
|
|
38
|
+
"cli",
|
|
39
|
+
"dist"
|
|
39
40
|
],
|
|
40
41
|
"scripts": {
|
|
41
42
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|