@mikro-orm/core 6.3.8-dev.7 → 6.3.8-dev.8
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.
|
@@ -997,7 +997,7 @@ class MetadataDiscovery {
|
|
|
997
997
|
}
|
|
998
998
|
// but still use object values for type inference if not explicitly set, e.g. `createdAt = new Date()`
|
|
999
999
|
if (prop.kind === enums_1.ReferenceKind.SCALAR && prop.type == null && entity1[prop.name] != null) {
|
|
1000
|
-
prop.type = Utils_1.Utils.getObjectType(entity1[prop.name]);
|
|
1000
|
+
prop.type = prop.runtimeType = Utils_1.Utils.getObjectType(entity1[prop.name]);
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.3.8-dev.
|
|
3
|
+
"version": "6.3.8-dev.8",
|
|
4
4
|
"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.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.2.0",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.3.8-dev.
|
|
67
|
+
"mikro-orm": "6.3.8-dev.8",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -270,7 +270,7 @@ class EntityComparator {
|
|
|
270
270
|
lines.push(`${padding} ${key} = parseDate(${value});`);
|
|
271
271
|
}
|
|
272
272
|
else {
|
|
273
|
-
lines.push(`${padding} } else if (typeof ${value} === 'number' || ${value}.includes('+') || ${value}.endsWith('Z')) {`);
|
|
273
|
+
lines.push(`${padding} } else if (typeof ${value} === 'number' || ${value}.includes('+') || ${value}.lastIndexOf('-') > 10 || ${value}.endsWith('Z')) {`);
|
|
274
274
|
lines.push(`${padding} ${key} = parseDate(${value});`);
|
|
275
275
|
lines.push(`${padding} } else {`);
|
|
276
276
|
lines.push(`${padding} ${key} = parseDate(${value} + '${tz}');`);
|