@mikro-orm/entity-generator 7.2.6-dev.40 → 7.2.6-dev.42
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/SourceFile.js +1 -1
- package/package.json +3 -3
package/SourceFile.js
CHANGED
|
@@ -737,7 +737,7 @@ export class SourceFile {
|
|
|
737
737
|
prop.defaultRaw !== 'null' &&
|
|
738
738
|
prop.defaultRaw !== '' &&
|
|
739
739
|
prop.defaultRaw !==
|
|
740
|
-
(typeof prop.default === 'string' ?
|
|
740
|
+
(typeof prop.default === 'string' ? this.platform.quoteDefaultValue(prop.default) : `${prop.default}`)) {
|
|
741
741
|
// kept as a template literal for readability, but raw SQL may contain `${`, which would otherwise interpolate
|
|
742
742
|
options.defaultRaw = `\`${prop.defaultRaw.replaceAll('\\', '\\\\').replaceAll('`', '\\`').replaceAll('${', '\\${')}\``;
|
|
743
743
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/entity-generator",
|
|
3
|
-
"version": "7.2.6-dev.
|
|
3
|
+
"version": "7.2.6-dev.42",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/sql": "7.2.6-dev.
|
|
50
|
+
"@mikro-orm/sql": "7.2.6-dev.42"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@mikro-orm/core": "^7.2.5"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.2.6-dev.
|
|
56
|
+
"@mikro-orm/core": "7.2.6-dev.42"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|