@things-factory/shell 7.0.68 → 7.0.72
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/shell",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.72",
|
4
4
|
"description": "Core module for framework",
|
5
5
|
"bin": {
|
6
6
|
"things-factory": "bin/things-factory",
|
@@ -61,11 +61,11 @@
|
|
61
61
|
"@operato/typeorm-history": "^7.0.0",
|
62
62
|
"@operato/utils": "^7.0.0",
|
63
63
|
"@reduxjs/toolkit": "^2.2.5",
|
64
|
-
"@things-factory/ejs-remote": "^7.0.
|
65
|
-
"@things-factory/env": "^7.0.
|
64
|
+
"@things-factory/ejs-remote": "^7.0.70",
|
65
|
+
"@things-factory/env": "^7.0.70",
|
66
66
|
"@things-factory/operato-license-checker": "^4.0.4",
|
67
|
-
"@things-factory/styles": "^7.0.
|
68
|
-
"@things-factory/utils": "^7.0.
|
67
|
+
"@things-factory/styles": "^7.0.70",
|
68
|
+
"@things-factory/utils": "^7.0.70",
|
69
69
|
"@webcomponents/scoped-custom-element-registry": "^0.0.9",
|
70
70
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
71
71
|
"args": "^5.0.0",
|
@@ -133,5 +133,5 @@
|
|
133
133
|
"pg": "^8.7.3",
|
134
134
|
"sqlite3": "^5.0.8"
|
135
135
|
},
|
136
|
-
"gitHead": "
|
136
|
+
"gitHead": "6131a0f20fcc11bc8e9e9d839de8e9700a2b0ac0"
|
137
137
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createConnection, DataSource, EntityTarget, Repository } from 'typeorm'
|
1
|
+
import { createConnection, DataSource, EntityManager, EntityTarget, Repository } from 'typeorm'
|
2
2
|
|
3
3
|
import { appRootPath, config, logger } from '@things-factory/env'
|
4
4
|
|
@@ -52,8 +52,8 @@ export function getDataSourceNames() {
|
|
52
52
|
* @param {EntityTarget<X>} target - The target entity for which to get the repository.
|
53
53
|
* @returns {Repository<X>} - The repository for the specified entity.
|
54
54
|
*/
|
55
|
-
export function getRepository<X>(target: EntityTarget<X
|
56
|
-
return getDataSource('default').getRepository<X>(target)
|
55
|
+
export function getRepository<X>(target: EntityTarget<X>, tx?: EntityManager): Repository<X> {
|
56
|
+
return tx ? tx.getRepository<X>(target) : getDataSource('default').getRepository<X>(target)
|
57
57
|
}
|
58
58
|
|
59
59
|
/**
|