vona-module-a-captcha 5.0.21 → 5.0.22

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.
@@ -151,14 +151,9 @@ declare module 'vona-module-a-captcha' {
151
151
  /** config: begin */
152
152
  export * from '../config/config.ts';
153
153
  import type { config } from '../config/config.ts';
154
- export declare const locales: {
155
- 'en-us': {
156
- CaptchaInvalid: string;
157
- };
158
- 'zh-cn': {
159
- CaptchaInvalid: string;
160
- };
161
- };
154
+ /** config: end */
155
+ /** locale: begin */
156
+ import { locales } from './locales.ts';
162
157
  /** locale: end */
163
158
  /** scope: begin */
164
159
  import { BeanScopeBase, type BeanScopeUtil, type TypeModuleConfig, type TypeModuleLocales, type TypeLocaleBase } from 'vona';
@@ -185,5 +180,4 @@ declare module 'vona' {
185
180
  'a-captcha': (typeof locales)[TypeLocaleBase];
186
181
  }
187
182
  }
188
- export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-captcha::${K}`;
189
183
  /** scope: end */
@@ -0,0 +1,10 @@
1
+ import type { TypeLocaleBase } from 'vona';
2
+ export declare const locales: {
3
+ 'en-us': {
4
+ CaptchaInvalid: string;
5
+ };
6
+ 'zh-cn': {
7
+ CaptchaInvalid: string;
8
+ };
9
+ };
10
+ export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-captcha::${K}`;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './.metadata/index.ts';
2
+ export * from './.metadata/locales.ts';
2
3
  export * from './lib/index.ts';
3
4
  export * from './types/index.ts';
package/dist/index.js CHANGED
@@ -376,6 +376,13 @@ function config(app) {
376
376
  };
377
377
  }
378
378
 
379
+ var _dec, _dec2, _class;
380
+ let ScopeModuleACaptcha = (_dec = Scope(), _dec2 = BeanInfo({
381
+ module: "a-captcha"
382
+ }), _dec(_class = _dec2(_class = class ScopeModuleACaptcha extends BeanScopeBase {}) || _class) || _class);
383
+
384
+ /** scope: end */
385
+
379
386
  var locale_en_us = {
380
387
  CaptchaInvalid: 'Captcha Invalid'
381
388
  };
@@ -384,18 +391,13 @@ var locale_zh_cn = {
384
391
  CaptchaInvalid: '验证码不正确'
385
392
  };
386
393
 
387
- var _dec, _dec2, _class;
388
394
  const locales = {
389
395
  'en-us': locale_en_us,
390
396
  'zh-cn': locale_zh_cn
391
397
  };
392
- let ScopeModuleACaptcha = (_dec = Scope(), _dec2 = BeanInfo({
393
- module: "a-captcha"
394
- }), _dec(_class = _dec2(_class = class ScopeModuleACaptcha extends BeanScopeBase {}) || _class) || _class);
395
398
  function $locale(key) {
396
399
  return `a-captcha::${key}`;
397
400
  }
398
- /** scope: end */
399
401
 
400
402
  function CaptchaProvider(options) {
401
403
  return createBeanDecorator('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.21",
4
+ "version": "5.0.22",
5
5
  "title": "a-captcha",
6
6
  "vonaModule": {
7
7
  "dependencies": {},