vona-module-a-captcha 5.0.10 → 5.0.12
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/dto/captchaData.d.ts +3 -2
- package/dist/index.js +6 -4
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import type { ICaptchaProviderRecord } from '../types/captchaProvider.ts';
|
|
2
3
|
export interface IDtoOptionsCaptchaData extends IDecoratorDtoOptions {
|
|
3
4
|
}
|
|
4
5
|
export declare class DtoCaptchaData {
|
|
5
6
|
id: string;
|
|
6
|
-
provider:
|
|
7
|
-
token
|
|
7
|
+
provider: keyof ICaptchaProviderRecord;
|
|
8
|
+
token?: unknown;
|
|
8
9
|
payload: unknown;
|
|
9
10
|
}
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { Interceptor, Aspect } from 'vona-module-a-aspect';
|
|
|
3
3
|
import { getRandomInt } from '@cabloy/utils';
|
|
4
4
|
import { Bean, Scope } from 'vona-module-a-bean';
|
|
5
5
|
import { CacheRedis, BeanCacheRedisBase } from 'vona-module-a-cache';
|
|
6
|
-
import { Api } from 'vona-module-a-openapi';
|
|
6
|
+
import { Api, v } from 'vona-module-a-openapi';
|
|
7
7
|
import { Dto, Controller, Web, Arg } from 'vona-module-a-web';
|
|
8
|
-
import { Passport } from 'vona-module-a-user';
|
|
9
8
|
import z from 'zod';
|
|
9
|
+
import { Passport } from 'vona-module-a-user';
|
|
10
10
|
|
|
11
11
|
var _dec$6, _dec2$6, _class$6;
|
|
12
12
|
let InterceptorCaptchaVerify = (_dec$6 = Interceptor({
|
|
@@ -241,7 +241,9 @@ async function resolverDefault(_ctx, providers) {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
var _dec$4, _dec2$4, _class$4;
|
|
244
|
-
let CacheRedisCaptcha = (_dec$4 = CacheRedis(
|
|
244
|
+
let CacheRedisCaptcha = (_dec$4 = CacheRedis({
|
|
245
|
+
disableTransactionCompensate: true
|
|
246
|
+
}), _dec2$4 = BeanInfo({
|
|
245
247
|
module: "a-captcha"
|
|
246
248
|
}), _dec$4(_class$4 = _dec2$4(_class$4 = class CacheRedisCaptcha extends BeanCacheRedisBase {}) || _class$4) || _class$4);
|
|
247
249
|
|
|
@@ -265,7 +267,7 @@ function _initializerDefineProperty(e, i, r, l) {
|
|
|
265
267
|
var _dec$3, _dec2$3, _dec3$2, _dec4$2, _dec5$2, _dec6$2, _dec7$1, _dec8$1, _dec9$1, _dec0$1, _class$3, _class2$2, _descriptor$1, _descriptor2$1, _descriptor3, _descriptor4;
|
|
266
268
|
let DtoCaptchaData = (_dec$3 = Dto(), _dec2$3 = BeanInfo({
|
|
267
269
|
module: "a-captcha"
|
|
268
|
-
}), _dec3$2 = Api.field(), _dec4$2 = Reflect.metadata("design:type", String), _dec5$2 = Api.field(), _dec6$2 = Reflect.metadata("design:type",
|
|
270
|
+
}), _dec3$2 = Api.field(), _dec4$2 = Reflect.metadata("design:type", String), _dec5$2 = Api.field(z.string()), _dec6$2 = Reflect.metadata("design:type", Object), _dec7$1 = Api.field(v.optional()), _dec8$1 = Reflect.metadata("design:type", Object), _dec9$1 = Api.field(), _dec0$1 = Reflect.metadata("design:type", Object), _dec$3(_class$3 = _dec2$3(_class$3 = (_class2$2 = class DtoCaptchaData {
|
|
269
271
|
constructor() {
|
|
270
272
|
_initializerDefineProperty(this, "id", _descriptor$1, this);
|
|
271
273
|
_initializerDefineProperty(this, "provider", _descriptor2$1, this);
|