vona-module-a-orm 5.0.52 → 5.0.53

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,14 +1,13 @@
1
1
  import BigNumber$1, { BigNumber } from 'bignumber.js';
2
- import { BeanInfo, BeanAopMethodBase, BeanBase, deepExtend, Virtual, appResource, beanFullNameFromOnionName, cast, appMetadata, useApp, BeanSimple, combineConfigDefault, BeanScopeBase, createBeanDecorator, PickClassInner, $Class } from 'vona';
2
+ import { BeanInfo, BeanAopMethodBase, BeanBase, deepExtend, Virtual, appResource, beanFullNameFromOnionName, cast, useApp, BeanSimple, combineConfigDefault, BeanScopeBase, createBeanDecorator, PickClassInner, $Class } from 'vona';
3
3
  import { AopMethod, Aspect } 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';
6
6
  import knex from 'knex';
7
7
  import { isNil, safeBoolean, isClass, ensureArray, hashkey } from '@cabloy/utils';
8
8
  import { swapDeps } from '@cabloy/deps';
9
- import { prepareClassType, getTargetDecoratorRules, Api, v, OrderMaxBase, OrderCoreBase, getSchemaDynamic, SymbolSchemaDynamicRefId, addSchemaDynamic, mergeFieldsOpenapiMetadata } from 'vona-module-a-openapi';
9
+ import { prepareClassType, getTargetDecoratorRules, getTargetDecoratorRuleColumnsMap, Api, v, OrderMaxBase, OrderCoreBase, getSchemaDynamic, SymbolSchemaDynamicRefId, addSchemaDynamic, mergeFieldsOpenapiMetadata } from 'vona-module-a-openapi';
10
10
  import { ZodMetadata } from '@cabloy/zod-openapi';
11
- import { SymbolDecoratorRuleColumn } from 'vona-module-a-openapiutils';
12
11
  import z from 'zod';
13
12
  import { Broadcast, BeanBroadcastBase } from 'vona-module-a-broadcast';
14
13
  import { Event, BeanEventBase } from 'vona-module-a-event';
@@ -1115,7 +1114,7 @@ function $columns(key) {
1115
1114
  }
1116
1115
  function $columnsAll(classEntity, withTableName, withMeta) {
1117
1116
  const classEntity2 = _prepareClassEntity(classEntity);
1118
- let columns = appMetadata.getMetadata(SymbolDecoratorRuleColumn, classEntity2.prototype);
1117
+ let columns = getTargetDecoratorRuleColumnsMap(classEntity2.prototype);
1119
1118
  if (withTableName) {
1120
1119
  const tableName = $tableName(classEntity2);
1121
1120
  columns = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-orm",
3
3
  "type": "module",
4
- "version": "5.0.52",
4
+ "version": "5.0.53",
5
5
  "title": "a-orm",
6
6
  "vonaModule": {
7
7
  "capabilities": {