@friggframework/core 2.0.0--canary.545.5ec2975.0 → 2.0.0--canary.545.8db2e0d.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/admin-scripts/repositories/admin-process-repository-factory.js +2 -4
- package/admin-scripts/repositories/script-schedule-repository-factory.js +2 -4
- package/credential/repositories/credential-repository-factory.js +2 -4
- package/index.js +1 -4
- package/integrations/repositories/process-repository-factory.js +2 -4
- package/modules/index.js +3 -2
- package/modules/repositories/module-repository-factory.js +2 -4
- package/package.json +5 -5
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
const { AdminProcessRepositoryPostgres } = require('./admin-process-repository-postgres');
|
|
2
|
-
const {
|
|
3
|
-
AdminProcessRepositoryDocumentDB,
|
|
4
|
-
} = require('./admin-process-repository-documentdb');
|
|
5
2
|
const config = require('../../database/config');
|
|
6
3
|
|
|
7
4
|
/**
|
|
@@ -33,6 +30,7 @@ function createAdminProcessRepository() {
|
|
|
33
30
|
return new AdminProcessRepositoryPostgres();
|
|
34
31
|
|
|
35
32
|
case 'documentdb':
|
|
33
|
+
const { AdminProcessRepositoryDocumentDB } = require('./admin-process-repository-documentdb');
|
|
36
34
|
return new AdminProcessRepositoryDocumentDB();
|
|
37
35
|
|
|
38
36
|
default:
|
|
@@ -47,5 +45,5 @@ module.exports = {
|
|
|
47
45
|
// Export adapters for direct testing
|
|
48
46
|
get AdminProcessRepositoryMongo() { return require('./admin-process-repository-mongo').AdminProcessRepositoryMongo; },
|
|
49
47
|
AdminProcessRepositoryPostgres,
|
|
50
|
-
AdminProcessRepositoryDocumentDB,
|
|
48
|
+
get AdminProcessRepositoryDocumentDB() { return require('./admin-process-repository-documentdb').AdminProcessRepositoryDocumentDB; },
|
|
51
49
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
const { ScriptScheduleRepositoryPostgres } = require('./script-schedule-repository-postgres');
|
|
2
|
-
const {
|
|
3
|
-
ScriptScheduleRepositoryDocumentDB,
|
|
4
|
-
} = require('./script-schedule-repository-documentdb');
|
|
5
2
|
const config = require('../../database/config');
|
|
6
3
|
|
|
7
4
|
/**
|
|
@@ -33,6 +30,7 @@ function createScriptScheduleRepository() {
|
|
|
33
30
|
return new ScriptScheduleRepositoryPostgres();
|
|
34
31
|
|
|
35
32
|
case 'documentdb':
|
|
33
|
+
const { ScriptScheduleRepositoryDocumentDB } = require('./script-schedule-repository-documentdb');
|
|
36
34
|
return new ScriptScheduleRepositoryDocumentDB();
|
|
37
35
|
|
|
38
36
|
default:
|
|
@@ -47,5 +45,5 @@ module.exports = {
|
|
|
47
45
|
// Export adapters for direct testing
|
|
48
46
|
get ScriptScheduleRepositoryMongo() { return require('./script-schedule-repository-mongo').ScriptScheduleRepositoryMongo; },
|
|
49
47
|
ScriptScheduleRepositoryPostgres,
|
|
50
|
-
ScriptScheduleRepositoryDocumentDB,
|
|
48
|
+
get ScriptScheduleRepositoryDocumentDB() { return require('./script-schedule-repository-documentdb').ScriptScheduleRepositoryDocumentDB; },
|
|
51
49
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
const {
|
|
2
2
|
CredentialRepositoryPostgres,
|
|
3
3
|
} = require('./credential-repository-postgres');
|
|
4
|
-
const {
|
|
5
|
-
CredentialRepositoryDocumentDB,
|
|
6
|
-
} = require('./credential-repository-documentdb');
|
|
7
4
|
const config = require('../../database/config');
|
|
8
5
|
|
|
9
6
|
/**
|
|
@@ -36,6 +33,7 @@ function createCredentialRepository() {
|
|
|
36
33
|
return new CredentialRepositoryPostgres();
|
|
37
34
|
|
|
38
35
|
case 'documentdb':
|
|
36
|
+
const { CredentialRepositoryDocumentDB } = require('./credential-repository-documentdb');
|
|
39
37
|
return new CredentialRepositoryDocumentDB();
|
|
40
38
|
|
|
41
39
|
default:
|
|
@@ -50,5 +48,5 @@ module.exports = {
|
|
|
50
48
|
// Export adapters for direct testing
|
|
51
49
|
get CredentialRepositoryMongo() { return require('./credential-repository-mongo').CredentialRepositoryMongo; },
|
|
52
50
|
CredentialRepositoryPostgres,
|
|
53
|
-
CredentialRepositoryDocumentDB,
|
|
51
|
+
get CredentialRepositoryDocumentDB() { return require('./credential-repository-documentdb').CredentialRepositoryDocumentDB; },
|
|
54
52
|
};
|
package/index.js
CHANGED
|
@@ -67,8 +67,6 @@ const {
|
|
|
67
67
|
const { TimeoutCatcher } = require('./lambda/index');
|
|
68
68
|
const { debug, initDebugLog, flushDebugLog } = require('./logs/index');
|
|
69
69
|
const {
|
|
70
|
-
Credential,
|
|
71
|
-
Entity,
|
|
72
70
|
ApiKeyRequester,
|
|
73
71
|
BasicAuthRequester,
|
|
74
72
|
OAuth2Requester,
|
|
@@ -190,8 +188,7 @@ module.exports = {
|
|
|
190
188
|
flushDebugLog,
|
|
191
189
|
|
|
192
190
|
// module plugin
|
|
193
|
-
|
|
194
|
-
Entity,
|
|
191
|
+
get Entity() { return require('./modules/entity').Entity; },
|
|
195
192
|
ApiKeyRequester,
|
|
196
193
|
BasicAuthRequester,
|
|
197
194
|
OAuth2Requester,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
const { ProcessRepositoryPostgres } = require('./process-repository-postgres');
|
|
2
|
-
const {
|
|
3
|
-
ProcessRepositoryDocumentDB,
|
|
4
|
-
} = require('./process-repository-documentdb');
|
|
5
2
|
const config = require('../../database/config');
|
|
6
3
|
|
|
7
4
|
/**
|
|
@@ -34,6 +31,7 @@ function createProcessRepository() {
|
|
|
34
31
|
return new ProcessRepositoryPostgres();
|
|
35
32
|
|
|
36
33
|
case 'documentdb':
|
|
34
|
+
const { ProcessRepositoryDocumentDB } = require('./process-repository-documentdb');
|
|
37
35
|
return new ProcessRepositoryDocumentDB();
|
|
38
36
|
|
|
39
37
|
default:
|
|
@@ -48,5 +46,5 @@ module.exports = {
|
|
|
48
46
|
// Export adapters for direct testing
|
|
49
47
|
get ProcessRepositoryMongo() { return require('./process-repository-mongo').ProcessRepositoryMongo; },
|
|
50
48
|
ProcessRepositoryPostgres,
|
|
51
|
-
ProcessRepositoryDocumentDB,
|
|
49
|
+
get ProcessRepositoryDocumentDB() { return require('./process-repository-documentdb').ProcessRepositoryDocumentDB; },
|
|
52
50
|
};
|
package/modules/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { Entity } = require('./entity');
|
|
2
1
|
const { ApiKeyRequester } = require('./requester/api-key');
|
|
3
2
|
const { BasicAuthRequester } = require('./requester/basic');
|
|
4
3
|
const { OAuth2Requester } = require('./requester/oauth-2');
|
|
@@ -7,7 +6,9 @@ const { ModuleConstants } = require('./ModuleConstants');
|
|
|
7
6
|
const { ModuleFactory } = require('./module-factory');
|
|
8
7
|
|
|
9
8
|
module.exports = {
|
|
10
|
-
Entity
|
|
9
|
+
// Entity is a Mongoose model — lazy-load to avoid pulling in mongoose
|
|
10
|
+
// for PostgreSQL-only deployments
|
|
11
|
+
get Entity() { return require('./entity').Entity; },
|
|
11
12
|
ApiKeyRequester,
|
|
12
13
|
BasicAuthRequester,
|
|
13
14
|
OAuth2Requester,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
const { ModuleRepositoryPostgres } = require('./module-repository-postgres');
|
|
2
|
-
const {
|
|
3
|
-
ModuleRepositoryDocumentDB,
|
|
4
|
-
} = require('./module-repository-documentdb');
|
|
5
2
|
const config = require('../../database/config');
|
|
6
3
|
|
|
7
4
|
/**
|
|
@@ -22,6 +19,7 @@ function createModuleRepository() {
|
|
|
22
19
|
return new ModuleRepositoryPostgres();
|
|
23
20
|
|
|
24
21
|
case 'documentdb':
|
|
22
|
+
const { ModuleRepositoryDocumentDB } = require('./module-repository-documentdb');
|
|
25
23
|
return new ModuleRepositoryDocumentDB();
|
|
26
24
|
|
|
27
25
|
default:
|
|
@@ -36,5 +34,5 @@ module.exports = {
|
|
|
36
34
|
// Export adapters for direct testing
|
|
37
35
|
get ModuleRepositoryMongo() { return require('./module-repository-mongo').ModuleRepositoryMongo; },
|
|
38
36
|
ModuleRepositoryPostgres,
|
|
39
|
-
ModuleRepositoryDocumentDB,
|
|
37
|
+
get ModuleRepositoryDocumentDB() { return require('./module-repository-documentdb').ModuleRepositoryDocumentDB; },
|
|
40
38
|
};
|
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.545.
|
|
4
|
+
"version": "2.0.0--canary.545.8db2e0d.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"bcryptjs": "^2.4.3",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.545.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.545.
|
|
39
|
-
"@friggframework/test": "2.0.0--canary.545.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.545.8db2e0d.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.545.8db2e0d.0",
|
|
39
|
+
"@friggframework/test": "2.0.0--canary.545.8db2e0d.0",
|
|
40
40
|
"@prisma/client": "^6.17.0",
|
|
41
41
|
"@types/lodash": "4.17.15",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "8db2e0d4780e0df93678329bf3ec8d5fb9238274"
|
|
81
81
|
}
|