prisma-generator-express 1.26.1 → 1.27.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.
@@ -127,7 +127,7 @@ export function ${routerFunctionName}(config: RouteConfig = {}) {
127
127
  if (qbEnabled) {
128
128
  const qbConfig = getQueryBuilderConfig(config)
129
129
  if (qbConfig) {
130
- import('../queryBuilder.js').then(mod => mod.startQueryBuilder(qbConfig)).catch((err) => { if (_env.NODE_ENV !== 'production') console.warn('[query-builder]', err) })
130
+ try { require('../queryBuilder').startQueryBuilder(qbConfig) } catch (err) { if (_env.NODE_ENV !== 'production') console.warn('[query-builder]', err) }
131
131
  }
132
132
  }
133
133
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prisma-generator-express",
3
3
  "description": "Prisma generator for Hono CRUD API with OpenAPI documentation",
4
- "version": "1.26.1",
4
+ "version": "1.27.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "MIT",
@@ -140,7 +140,7 @@ export function ${routerFunctionName}(config: RouteConfig = {}) {
140
140
  if (qbEnabled) {
141
141
  const qbConfig = getQueryBuilderConfig(config)
142
142
  if (qbConfig) {
143
- import('../queryBuilder.js').then(mod => mod.startQueryBuilder(qbConfig)).catch((err) => { if (_env.NODE_ENV !== 'production') console.warn('[query-builder]', err) })
143
+ try { require('../queryBuilder').startQueryBuilder(qbConfig) } catch (err) { if (_env.NODE_ENV !== 'production') console.warn('[query-builder]', err) }
144
144
  }
145
145
  }
146
146