vona-module-a-orm 5.0.91 → 5.0.93
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,6 +1,6 @@
|
|
|
1
1
|
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
2
|
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
3
|
-
import { Entity<%=argv.beanNameCapitalize%> } from '../entity/<%=argv.beanName%>.
|
|
3
|
+
import { Entity<%=argv.beanNameCapitalize%> } from '../entity/<%=argv.beanName%>.tsx';
|
|
4
4
|
|
|
5
5
|
export interface IModelOptions<%=argv.beanNameCapitalize%> extends IDecoratorModelOptions<Entity<%=argv.beanNameCapitalize%>> {}
|
|
6
6
|
|
|
@@ -17,4 +17,4 @@ export declare const locales: {
|
|
|
17
17
|
ShouldSpecifyTable: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K):
|
|
20
|
+
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): import("vona").ILocaleMagic<`a-orm::${K}`>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { BeanInfo, BeanAopMethodBase, BeanBase, deepExtend, appResource, beanFullNameFromOnionName, Virtual, cast, useApp, disposeInstance, BeanSimple, combineConfigDefault, BeanScopeBase, createBeanDecorator, PickClassInner, $Class } from 'vona';
|
|
2
|
+
import { BeanInfo, BeanAopMethodBase, BeanBase, deepExtend, appResource, beanFullNameFromOnionName, Virtual, cast, useApp, $makeLocaleMagic, disposeInstance, BeanSimple, combineConfigDefault, BeanScopeBase, createBeanDecorator, PickClassInner, $Class } from 'vona';
|
|
3
3
|
import { AopMethod } from 'vona-module-a-aspect';
|
|
4
4
|
import { Service, Bean, Scope } from 'vona-module-a-bean';
|
|
5
5
|
import { AsyncLocalStorage, AsyncResource } from 'node:async_hooks';
|
|
@@ -1284,7 +1284,7 @@ const locales = {
|
|
|
1284
1284
|
'zh-cn': locale_zh_cn
|
|
1285
1285
|
};
|
|
1286
1286
|
function $locale(key) {
|
|
1287
|
-
return `a-orm::${key}
|
|
1287
|
+
return $makeLocaleMagic(`a-orm::${key}`);
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
1290
|
class EntityBaseEmpty {}
|
package/package.json
CHANGED
|
File without changes
|