@kevisual/query 0.0.50 → 0.0.52

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,10 +14078,10 @@ 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
- const queryApi = createQueryApi({ api });
14085
14085
  ${after}
14086
14086
  `;
14087
14087
  return code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/query",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npm run clean && bun run bun.config.ts",
@@ -67,10 +67,10 @@ 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
- const queryApi = createQueryApi({ api });
74
74
  ${after}
75
75
  `
76
76
  return code;