@zenorm/generate 1.9.0 → 1.9.1

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.1] - 2023-8-9
4
+ - 默认选项: staticMethods=true
5
+
3
6
  ## [1.9.0] - 2023-8-9
4
7
  - 增加配置选项: staticMethods instanceMethods
5
8
 
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);
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.9.0",
4
+ "version": "1.9.1",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "homepage": "https://zenorm.node.ltd",