@friggframework/core 2.0.0-next.1 → 2.0.0-next.3
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/index.js +28 -12
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -7,7 +7,12 @@ const {
|
|
|
7
7
|
getArrayParamAndVerifyParamType,
|
|
8
8
|
getAndVerifyType,
|
|
9
9
|
} = require('./assertions/index');
|
|
10
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
Delegate,
|
|
12
|
+
Worker,
|
|
13
|
+
loadInstalledModules,
|
|
14
|
+
createHandler,
|
|
15
|
+
} = require('./core/index');
|
|
11
16
|
const {
|
|
12
17
|
mongoose,
|
|
13
18
|
connectToDatabase,
|
|
@@ -17,7 +22,8 @@ const {
|
|
|
17
22
|
OrganizationUser,
|
|
18
23
|
State,
|
|
19
24
|
Token,
|
|
20
|
-
UserModel
|
|
25
|
+
UserModel,
|
|
26
|
+
WebsocketConnection,
|
|
21
27
|
} = require('./database/index');
|
|
22
28
|
const { Encrypt, Cryptor } = require('./encrypt/encrypt');
|
|
23
29
|
const {
|
|
@@ -26,7 +32,7 @@ const {
|
|
|
26
32
|
HaltError,
|
|
27
33
|
RequiredPropertyError,
|
|
28
34
|
ParameterTypeError,
|
|
29
|
-
} =
|
|
35
|
+
} = require('./errors/index');
|
|
30
36
|
const {
|
|
31
37
|
IntegrationBase,
|
|
32
38
|
IntegrationModel,
|
|
@@ -36,14 +42,10 @@ const {
|
|
|
36
42
|
IntegrationHelper,
|
|
37
43
|
createIntegrationRouter,
|
|
38
44
|
checkRequiredParams,
|
|
39
|
-
createFriggBackend
|
|
45
|
+
createFriggBackend,
|
|
40
46
|
} = require('./integrations/index');
|
|
41
47
|
const { TimeoutCatcher } = require('./lambda/index');
|
|
42
|
-
const {
|
|
43
|
-
debug,
|
|
44
|
-
initDebugLog,
|
|
45
|
-
flushDebugLog
|
|
46
|
-
} = require('./logs/index');
|
|
48
|
+
const { debug, initDebugLog, flushDebugLog } = require('./logs/index');
|
|
47
49
|
const {
|
|
48
50
|
Credential,
|
|
49
51
|
EntityManager,
|
|
@@ -55,11 +57,13 @@ const {
|
|
|
55
57
|
Requester,
|
|
56
58
|
ModuleConstants,
|
|
57
59
|
ModuleFactory,
|
|
58
|
-
Auther
|
|
60
|
+
Auther,
|
|
59
61
|
} = require('./module-plugin/index');
|
|
60
62
|
|
|
61
63
|
// const {Sync } = require('./syncs/model');
|
|
62
64
|
|
|
65
|
+
const { QueuerUtil } = require('./queues');
|
|
66
|
+
|
|
63
67
|
module.exports = {
|
|
64
68
|
// assertions
|
|
65
69
|
expectShallowEqualDbObject,
|
|
@@ -69,11 +73,13 @@ module.exports = {
|
|
|
69
73
|
getParamAndVerifyParamType,
|
|
70
74
|
getArrayParamAndVerifyParamType,
|
|
71
75
|
getAndVerifyType,
|
|
76
|
+
|
|
72
77
|
// core
|
|
73
78
|
Delegate,
|
|
74
79
|
Worker,
|
|
75
80
|
loadInstalledModules,
|
|
76
81
|
createHandler,
|
|
82
|
+
|
|
77
83
|
// database
|
|
78
84
|
mongoose,
|
|
79
85
|
connectToDatabase,
|
|
@@ -84,15 +90,19 @@ module.exports = {
|
|
|
84
90
|
State,
|
|
85
91
|
Token,
|
|
86
92
|
UserModel,
|
|
93
|
+
WebsocketConnection,
|
|
94
|
+
|
|
87
95
|
// encrypt
|
|
88
96
|
Encrypt,
|
|
89
97
|
Cryptor,
|
|
98
|
+
|
|
90
99
|
// errors
|
|
91
100
|
BaseError,
|
|
92
101
|
FetchError,
|
|
93
102
|
HaltError,
|
|
94
103
|
RequiredPropertyError,
|
|
95
104
|
ParameterTypeError,
|
|
105
|
+
|
|
96
106
|
// integrations
|
|
97
107
|
IntegrationBase,
|
|
98
108
|
IntegrationModel,
|
|
@@ -103,12 +113,15 @@ module.exports = {
|
|
|
103
113
|
checkRequiredParams,
|
|
104
114
|
createIntegrationRouter,
|
|
105
115
|
createFriggBackend,
|
|
116
|
+
|
|
106
117
|
// lambda
|
|
107
118
|
TimeoutCatcher,
|
|
119
|
+
|
|
108
120
|
// logs
|
|
109
121
|
debug,
|
|
110
122
|
initDebugLog,
|
|
111
123
|
flushDebugLog,
|
|
124
|
+
|
|
112
125
|
// module plugin
|
|
113
126
|
Credential,
|
|
114
127
|
EntityManager,
|
|
@@ -120,5 +133,8 @@ module.exports = {
|
|
|
120
133
|
Requester,
|
|
121
134
|
ModuleConstants,
|
|
122
135
|
ModuleFactory,
|
|
123
|
-
Auther
|
|
124
|
-
|
|
136
|
+
Auther,
|
|
137
|
+
|
|
138
|
+
// queues
|
|
139
|
+
QueuerUtil,
|
|
140
|
+
};
|
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-next.
|
|
4
|
+
"version": "2.0.0-next.3",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"aws-sdk": "^2.1200.0",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"node-fetch": "^2.6.7"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@friggframework/eslint-config": "2.0.0-next.
|
|
19
|
-
"@friggframework/prettier-config": "2.0.0-next.
|
|
20
|
-
"@friggframework/test": "2.0.0-next.
|
|
18
|
+
"@friggframework/eslint-config": "2.0.0-next.3",
|
|
19
|
+
"@friggframework/prettier-config": "2.0.0-next.3",
|
|
20
|
+
"@friggframework/test": "2.0.0-next.3",
|
|
21
21
|
"@types/lodash": "^4.14.191",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
23
23
|
"chai": "^4.3.6",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/friggframework/frigg#readme",
|
|
50
50
|
"description": "",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "431427564322cdb02a43b686af70b0fb30a17a8b"
|
|
52
52
|
}
|