@mikro-orm/core
Advanced tools
Comparing version
{ | ||
"name": "@mikro-orm/core", | ||
"version": "6.4.13-dev.2", | ||
"version": "6.4.13-dev.3", | ||
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
@@ -67,5 +67,5 @@ "main": "index.js", | ||
"globby": "11.1.0", | ||
"mikro-orm": "6.4.13-dev.2", | ||
"mikro-orm": "6.4.13-dev.3", | ||
"reflect-metadata": "0.2.2" | ||
} | ||
} |
@@ -667,3 +667,4 @@ "use strict"; | ||
// here we handle bun which stack is different from nodejs so we search for reflect-metadata | ||
const reflectLine = stack.findIndex(line => Utils.normalizePath(line).includes('node_modules/reflect-metadata/Reflect.js')); | ||
// Different bun versions might have different stack traces. The "last index" works for both 1.2.6 and 1.2.7. | ||
const reflectLine = stack.findLastIndex(line => Utils.normalizePath(line).includes('node_modules/reflect-metadata/Reflect.js')); | ||
if (reflectLine === -1 || reflectLine + 2 >= stack.length || !stack[reflectLine + 1].includes('bun:wrap')) { | ||
@@ -670,0 +671,0 @@ return name; |
1104953
0.01%24436
0+ Added
- Removed
Updated