@friggframework/core 2.0.0--canary.461.efcd1bf.0 → 2.0.0--canary.461.02fc54a.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/handlers/routers/health.js +4 -33
- package/package.json +5 -5
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
const { Router } = require('express');
|
|
2
2
|
const { createAppHandler } = require('./../app-handler-helpers');
|
|
3
|
-
const { loadAppDefinition } = require('./../app-definition-loader');
|
|
4
|
-
const { ModuleFactory } = require('../../modules/module-factory');
|
|
5
|
-
const { IntegrationFactory } = require('../../integrations/integration-factory');
|
|
6
3
|
const {
|
|
7
4
|
createHealthCheckRepository,
|
|
8
5
|
} = require('../../database/repositories/health-check-repository-factory');
|
|
@@ -25,34 +22,6 @@ const {
|
|
|
25
22
|
const router = Router();
|
|
26
23
|
const healthCheckRepository = createHealthCheckRepository();
|
|
27
24
|
|
|
28
|
-
// Load app definition to get integration classes for factory creation
|
|
29
|
-
let moduleFactory, integrationFactory;
|
|
30
|
-
try {
|
|
31
|
-
const { integrations: integrationClasses } = loadAppDefinition();
|
|
32
|
-
const {
|
|
33
|
-
createModuleRepository,
|
|
34
|
-
} = require('../../modules/repositories/module-repository-factory');
|
|
35
|
-
const {
|
|
36
|
-
createIntegrationRepository,
|
|
37
|
-
} = require('../../integrations/repositories/integration-repository-factory');
|
|
38
|
-
|
|
39
|
-
const moduleRepository = createModuleRepository();
|
|
40
|
-
const integrationRepository = createIntegrationRepository();
|
|
41
|
-
|
|
42
|
-
moduleFactory = new ModuleFactory({
|
|
43
|
-
moduleRepository,
|
|
44
|
-
integrationClasses,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
integrationFactory = new IntegrationFactory({
|
|
48
|
-
integrationRepository,
|
|
49
|
-
integrationClasses,
|
|
50
|
-
});
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.warn('Could not initialize module/integration factories for health check:', error.message);
|
|
53
|
-
// Factories will be undefined, health check will handle gracefully
|
|
54
|
-
}
|
|
55
|
-
|
|
56
25
|
const testEncryptionUseCase = new TestEncryptionUseCase({
|
|
57
26
|
healthCheckRepository,
|
|
58
27
|
});
|
|
@@ -63,9 +32,11 @@ const checkEncryptionHealthUseCase = new CheckEncryptionHealthUseCase({
|
|
|
63
32
|
testEncryptionUseCase,
|
|
64
33
|
});
|
|
65
34
|
const checkExternalApisHealthUseCase = new CheckExternalApisHealthUseCase();
|
|
35
|
+
// Module/Integration factories not available in health check context
|
|
36
|
+
// Pass undefined - the use case will handle gracefully
|
|
66
37
|
const checkIntegrationsHealthUseCase = new CheckIntegrationsHealthUseCase({
|
|
67
|
-
moduleFactory,
|
|
68
|
-
integrationFactory,
|
|
38
|
+
moduleFactory: undefined,
|
|
39
|
+
integrationFactory: undefined,
|
|
69
40
|
});
|
|
70
41
|
|
|
71
42
|
const validateApiKey = (req, res, next) => {
|
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.461.
|
|
4
|
+
"version": "2.0.0--canary.461.02fc54a.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
41
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
42
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
40
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.02fc54a.0",
|
|
41
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.02fc54a.0",
|
|
42
|
+
"@friggframework/test": "2.0.0--canary.461.02fc54a.0",
|
|
43
43
|
"@prisma/client": "^6.17.0",
|
|
44
44
|
"@types/lodash": "4.17.15",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "02fc54ae7404113a9cb68b70437ce2879a7d7e5f"
|
|
83
83
|
}
|