vona-core 5.0.50 → 5.0.51

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,4 +1,4 @@
1
- import { hashkey, isNil } from '@cabloy/utils';
1
+ import { hashkey, isEmptyObject } from '@cabloy/utils';
2
2
  import { ZodMetadata } from '@cabloy/zod-openapi';
3
3
  import { extendZodWithOpenApi } from '@cabloy/zod-to-openapi';
4
4
  import { z } from 'zod';
@@ -15,8 +15,10 @@ export function zodExtendOpenApi() {
15
15
  return openapiOriginal.call(this, ...args);
16
16
  // metadata
17
17
  const metadata = args[0];
18
- if (isNil(metadata))
19
- return openapiOriginal.call(this, ...args);
18
+ if (isEmptyObject(metadata)) {
19
+ return this;
20
+ // return openapiOriginal.call(this, ...args);
21
+ }
20
22
  const options = args[1];
21
23
  // refId: update
22
24
  const refIdNew = `${refId}_${hashkey(metadata)}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-core",
3
3
  "type": "module",
4
- "version": "5.0.50",
4
+ "version": "5.0.51",
5
5
  "description": "vona",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -35,7 +35,7 @@
35
35
  "@cabloy/utils": "^1.0.39",
36
36
  "@cabloy/word-utils": "^2.0.1",
37
37
  "@cabloy/zod-errors-custom": "^2.0.2",
38
- "@cabloy/zod-openapi": "^1.0.1",
38
+ "@cabloy/zod-openapi": "^1.0.2",
39
39
  "@cabloy/zod-query": "^2.0.1",
40
40
  "@cabloy/zod-to-openapi": "^8.1.1",
41
41
  "chalk": "^5.3.0",