@friggframework/core 2.0.0--canary.396.bb6e8dc.0 → 2.0.0--canary.396.2008417.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { ModuleRepository } = require('./module-repository');
|
|
2
|
-
const {
|
|
2
|
+
const { ModuleService } = require('./module-service');
|
|
3
3
|
const { Module } = require('./module');
|
|
4
4
|
|
|
5
5
|
class ModuleFactory {
|
|
@@ -7,7 +7,7 @@ class ModuleFactory {
|
|
|
7
7
|
this.moduleDefinitions = params;
|
|
8
8
|
this.moduleTypes = this.moduleDefinitions.map((def) => def.moduleName);
|
|
9
9
|
this.moduleRepository = new ModuleRepository();
|
|
10
|
-
this.
|
|
10
|
+
this.moduleService = new ModuleService({
|
|
11
11
|
moduleRepository: this.moduleRepository,
|
|
12
12
|
moduleDefinitions: this.moduleDefinitions,
|
|
13
13
|
});
|
|
@@ -35,7 +35,7 @@ class ModuleFactory {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
async getModuleInstanceFromEntityId(entityId, userId) {
|
|
38
|
-
return this.
|
|
38
|
+
return this.moduleService.getModuleInstance(entityId, userId);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
async getInstanceFromTypeName(typeName, userId) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.396.
|
|
4
|
+
"version": "2.0.0--canary.396.2008417.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"aws-sdk": "^2.1200.0",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"uuid": "^9.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@friggframework/eslint-config": "2.0.0--canary.396.
|
|
26
|
-
"@friggframework/prettier-config": "2.0.0--canary.396.
|
|
27
|
-
"@friggframework/test": "2.0.0--canary.396.
|
|
25
|
+
"@friggframework/eslint-config": "2.0.0--canary.396.2008417.0",
|
|
26
|
+
"@friggframework/prettier-config": "2.0.0--canary.396.2008417.0",
|
|
27
|
+
"@friggframework/test": "2.0.0--canary.396.2008417.0",
|
|
28
28
|
"@types/lodash": "4.17.15",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
30
30
|
"chai": "^4.3.6",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://github.com/friggframework/frigg#readme",
|
|
55
55
|
"description": "",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "20084171b4794e1bdcfa31bfda76275e9d33f657"
|
|
57
57
|
}
|