vona-module-a-captcha 5.0.22 → 5.0.24

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.
@@ -7,4 +7,4 @@ export declare const locales: {
7
7
  CaptchaInvalid: string;
8
8
  };
9
9
  };
10
- export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-captcha::${K}`;
10
+ export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): import("vona").ILocaleMagic<`a-captcha::${K}`>;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BeanInfo, BeanBase, uuidv4, beanFullNameFromOnionName, deepExtend, BeanScopeBase, createBeanDecorator } from 'vona';
1
+ import { BeanInfo, BeanBase, uuidv4, beanFullNameFromOnionName, deepExtend, BeanScopeBase, $makeLocaleMagic, createBeanDecorator } from 'vona';
2
2
  import { zodCustomError, getRandomInt } from '@cabloy/utils';
3
3
  import { Interceptor } from 'vona-module-a-aspect';
4
4
  import { Bean, Scope } from 'vona-module-a-bean';
@@ -396,7 +396,7 @@ const locales = {
396
396
  'zh-cn': locale_zh_cn
397
397
  };
398
398
  function $locale(key) {
399
- return `a-captcha::${key}`;
399
+ return $makeLocaleMagic(`a-captcha::${key}`);
400
400
  }
401
401
 
402
402
  function CaptchaProvider(options) {
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.22",
4
+ "version": "5.0.24",
5
5
  "title": "a-captcha",
6
6
  "vonaModule": {
7
7
  "dependencies": {},
@@ -9,12 +9,12 @@
9
9
  "captchaProvider": {
10
10
  "optionsGlobalInterfaceName": "IDecoratorCaptchaProviderOptions",
11
11
  "optionsGlobalInterfaceFrom": "vona-module-a-captcha",
12
- "boilerplate": "cli/captchaProvider/boilerplate"
12
+ "boilerplate": "captchaProvider/boilerplate"
13
13
  },
14
14
  "captchaScene": {
15
15
  "optionsGlobalInterfaceName": "IDecoratorCaptchaSceneOptions",
16
16
  "optionsGlobalInterfaceFrom": "vona-module-a-captcha",
17
- "boilerplate": "cli/captchaScene/boilerplate"
17
+ "boilerplate": "captchaScene/boilerplate"
18
18
  }
19
19
  }
20
20
  },