@vercube/schema 1.0.0-beta.2 → 1.1.0

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.mjs +5 -5
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIRegistry, OpenApiGeneratorV3, extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";
2
2
  import { z } from "zod";
3
3
  import { BaseDecorator, Identity, Inject, createDecorator } from "@vercube/di";
4
- import defu$1, { defu } from "defu";
4
+ import defu, { defu as defu$1 } from "defu";
5
5
  import { BasePlugin, Controller, Get } from "@vercube/core";
6
6
  import { renderApiReference } from "@scalar/client-side-rendering";
7
7
  //#region src/Resolvers/SchemaBodyResolver.ts
@@ -14,7 +14,7 @@ import { renderApiReference } from "@scalar/client-side-rendering";
14
14
  function SchemaBodyResolver(metadata, schema) {
15
15
  const body = metadata.args.find((arg) => arg.type === "body");
16
16
  if (!body || !body.validationSchema) return;
17
- schema.request = defu$1(schema?.request ?? {}, { body: { content: { "application/json": { schema: body.validationSchema } } } });
17
+ schema.request = defu(schema?.request ?? {}, { body: { content: { "application/json": { schema: body.validationSchema } } } });
18
18
  }
19
19
  //#endregion
20
20
  //#region src/Resolvers/SchemaQueryParamsResolver.ts
@@ -27,7 +27,7 @@ function SchemaBodyResolver(metadata, schema) {
27
27
  function SchemaQueryParamsResolver(metadata, schema) {
28
28
  const query = metadata.args.find((arg) => arg.type === "query-params");
29
29
  if (!query || !query.validationSchema) return;
30
- schema.request = defu$1(schema?.request ?? {}, { query: query.validationSchema });
30
+ schema.request = defu(schema?.request ?? {}, { query: query.validationSchema });
31
31
  }
32
32
  //#endregion
33
33
  //#region src/Services/SchemaRegistry.ts
@@ -68,7 +68,7 @@ var SchemaRegistry = class {
68
68
  }
69
69
  };
70
70
  //#endregion
71
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
71
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
72
72
  function __decorate(decorators, target, key, desc) {
73
73
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
74
74
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -205,7 +205,7 @@ var SchemaPlugin = class extends BasePlugin {
205
205
  * @override
206
206
  */
207
207
  use(app, options) {
208
- const mergedOptions = defu(options ?? {}, DEFAULT_SCHEMA_PLUGIN_OPTIONS);
208
+ const mergedOptions = defu$1(options ?? {}, DEFAULT_SCHEMA_PLUGIN_OPTIONS);
209
209
  app.container.bindInstance($SchemaPluginOptions, mergedOptions);
210
210
  app.container.bind(SchemaRegistry);
211
211
  app.container.bind(SchemaController);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/schema",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.1.0",
4
4
  "description": "Schema (swagger) module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,12 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@asteasolutions/zod-to-openapi": "8.5.0",
31
- "@scalar/client-side-rendering": "0.2.3",
31
+ "@scalar/client-side-rendering": "0.2.6",
32
32
  "@standard-schema/spec": "1.1.0",
33
33
  "defu": "6.1.7",
34
34
  "zod": "4.4.3",
35
- "@vercube/core": "1.0.0-beta.2",
36
- "@vercube/di": "1.0.0-beta.2"
35
+ "@vercube/core": "1.1.0",
36
+ "@vercube/di": "1.1.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"