@bairock/lenz 0.0.24 → 0.0.25

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.
@@ -44,7 +44,7 @@ ${models.map(model => ` public ${toCamelCase(model.name)}: ${model.name}Delegat
44
44
  private extractDatabaseFromUrl(url: string): string {
45
45
  try {
46
46
  const parsed = new URL(url);
47
- const db = parsed.pathname.replace(/^\//, '').split('/')[0];
47
+ const db = parsed.pathname.replace(/^\\//, '').split('/')[0];
48
48
  return db || 'myapp';
49
49
  } catch {
50
50
  return 'myapp';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bairock/lenz",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Lenz ORM for MongoDB with GraphQL SDL - Prisma 7.0 style",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",