vona-module-a-captcha 5.0.10 → 5.0.11

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.
@@ -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: string;
7
- token: unknown;
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({
@@ -265,7 +265,7 @@ function _initializerDefineProperty(e, i, r, l) {
265
265
  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
266
  let DtoCaptchaData = (_dec$3 = Dto(), _dec2$3 = BeanInfo({
267
267
  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", String), _dec7$1 = Api.field(), _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 {
268
+ }), _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
269
  constructor() {
270
270
  _initializerDefineProperty(this, "id", _descriptor$1, this);
271
271
  _initializerDefineProperty(this, "provider", _descriptor2$1, this);
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.10",
4
+ "version": "5.0.11",
5
5
  "title": "a-captcha",
6
6
  "vonaModule": {
7
7
  "dependencies": {},