@mikro-orm/seeder 7.3.0-dev.23 → 7.3.0-dev.24
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/SeedManager.js +2 -0
- package/package.json +3 -3
package/SeedManager.js
CHANGED
|
@@ -109,6 +109,8 @@ export class SeedManager {
|
|
|
109
109
|
await this.init();
|
|
110
110
|
const { fs } = await import('@mikro-orm/core/fs-utils');
|
|
111
111
|
fs.ensureDir(this.#absolutePath);
|
|
112
|
+
// the name becomes a class identifier and a file name
|
|
113
|
+
className = className.replace(/[^$\p{ID_Continue}]+/gu, '_').replace(/^(?![$\p{ID_Start}_])/u, '_');
|
|
112
114
|
return this.generate(fs, className);
|
|
113
115
|
}
|
|
114
116
|
async generate(fs, className) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/seeder",
|
|
3
|
-
"version": "7.3.0-dev.
|
|
3
|
+
"version": "7.3.0-dev.24",
|
|
4
4
|
"description": "Seeder package for MikroORM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"copy": "node ../../scripts/copy.mjs"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@mikro-orm/core": "^7.2.
|
|
51
|
+
"@mikro-orm/core": "^7.2.11"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@mikro-orm/core": "7.3.0-dev.
|
|
54
|
+
"@mikro-orm/core": "7.3.0-dev.24"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">= 22.17.0"
|