bxo 0.0.5-dev.67 → 0.0.5-dev.68

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.
package/example/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import BXO, { z } from "../src";
2
2
  import index from "./index.html";
3
- import openapi from "../plugins/openapi";
3
+ import { openapi } from "../plugins/openapi";
4
4
 
5
5
  async function main() {
6
6
  const bxo = new BXO();
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  ".": "./src/index.ts",
6
6
  "./plugins": "./plugins/index.ts"
7
7
  },
8
- "version": "0.0.5-dev.67",
8
+ "version": "0.0.5-dev.68",
9
9
  "type": "module",
10
10
  "devDependencies": {
11
11
  "@types/bun": "latest"
@@ -76,7 +76,7 @@ const createOpenApiPaths = (app: BXO, config?: OpenApiPluginConfig): ZodOpenApiP
76
76
  return paths
77
77
  }
78
78
 
79
- export default function openapi(_config?: OpenApiPluginConfig) {
79
+ export function openapi(_config?: OpenApiPluginConfig) {
80
80
  let config = _config
81
81
  !config && (config = { path: "/docs", openapiConfig: new OpenApiConfig(), jsonPath: "/openapi.json" })
82
82
  config.path = config.path || "/docs"