vona-module-a-orm 5.0.76 → 5.0.77

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ import { BeanInfo, BeanAopMethodBase, BeanBase, deepExtend, appResource, Virtual
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';
6
+ import { isNil, catchError, safeBoolean, isClass, ensureArray, hashkey } from '@cabloy/utils';
6
7
  import knex from 'knex';
7
8
  import { BeanMutateBase } from 'vona-module-a-beanmutate';
8
- import { isNil, safeBoolean, isClass, ensureArray, hashkey } from '@cabloy/utils';
9
9
  import { swapDeps } from '@cabloy/deps';
10
10
  import { prepareClassType, getTargetDecoratorRules, getTargetDecoratorRuleColumnsMap, Api, v, OrderMaxBase, OrderCoreBase, getSchemaDynamic, SymbolSchemaDynamicRefId, addSchemaDynamic, mergeFieldsOpenapiMetadata } from 'vona-module-a-openapi';
11
11
  import { ZodMetadata } from '@cabloy/zod-openapi';
@@ -686,7 +686,9 @@ let ServiceDatabaseClient = (_dec$k = Service(), _dec2$k = BeanInfo({
686
686
  }
687
687
  async __close() {
688
688
  if (this._knex) {
689
- await this._knex.destroy();
689
+ await catchError(() => {
690
+ return this._knex.destroy();
691
+ });
690
692
  this._knex = undefined;
691
693
  }
692
694
  }
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.76",
4
+ "version": "5.0.77",
5
5
  "title": "a-orm",
6
6
  "vonaModule": {
7
7
  "capabilities": {