@kevisual/query 0.0.50 → 0.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.
package/dist/query-api.js CHANGED
@@ -14078,7 +14078,8 @@ var createQueryByRoutes = (list, options) => {
14078
14078
  obj[route.path][route.key] = route;
14079
14079
  }
14080
14080
  const before = options?.before || `import { createQueryApi } from '@kevisual/query/api';`;
14081
- const after = options?.after || `export { queryApi };`;
14081
+ const after = options?.after || `const queryApi = createQueryApi({ api });
14082
+ export { queryApi };`;
14082
14083
  const code = `${before}
14083
14084
  const api = ${generateApiCode(obj)} as const;
14084
14085
  const queryApi = createQueryApi({ api });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/query",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npm run clean && bun run bun.config.ts",
@@ -67,7 +67,8 @@ export const createQueryByRoutes = (list: RouteInfo[], options?: CreateQueryOpti
67
67
  obj[route.path][route.key] = route;
68
68
  }
69
69
  const before = options?.before || `import { createQueryApi } from '@kevisual/query/api';`;
70
- const after = options?.after || `export { queryApi };`;
70
+ const after = options?.after || `const queryApi = createQueryApi({ api });
71
+ export { queryApi };`;
71
72
  const code = `${before}
72
73
  const api = ${generateApiCode(obj)} as const;
73
74
  const queryApi = createQueryApi({ api });