@zenorm/generate 1.9.0 → 1.10.0
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/CHANGELOG.md +6 -0
- package/dist/generate.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/generate.js
CHANGED
|
@@ -13,6 +13,7 @@ async function generate(tables, cfg) {
|
|
|
13
13
|
outputDir: './src/model',
|
|
14
14
|
tablesFilename: '_tables',
|
|
15
15
|
repositoriesFilename: '_repositories',
|
|
16
|
+
staticMethods: true,
|
|
16
17
|
instanceMethods: true,
|
|
17
18
|
}, cfg);
|
|
18
19
|
const outputDir = (0, utils_1.cwdPath)(config.outputDir);
|
|
@@ -123,6 +124,7 @@ async function generate(tables, cfg) {
|
|
|
123
124
|
'exists',
|
|
124
125
|
'create',
|
|
125
126
|
'createAndGet',
|
|
127
|
+
'getOrCreate',
|
|
126
128
|
'save',
|
|
127
129
|
'update',
|
|
128
130
|
'delete',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenorm/generate",
|
|
3
3
|
"description": "Easy ORM, easy query. easy typing! Auto generate typescript declaration.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"homepage": "https://zenorm.node.ltd",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"rimraf": "^4.4.1",
|
|
36
36
|
"ts-node": "^10.9.1",
|
|
37
37
|
"typescript": "^5.0.4",
|
|
38
|
-
"zenorm": "^3.
|
|
38
|
+
"zenorm": "^3.34.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"pascal-case": "^3.1.2",
|