@twin.org/engine-server-types 0.0.2-next.4 → 0.0.2-next.6
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/dist/cjs/index.cjs +6 -6
- package/dist/esm/index.mjs +6 -6
- package/docs/changelog.md +30 -0
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -46,8 +46,8 @@ function initialiseAuthenticationComponent(engineCore, context, instanceConfig,
|
|
|
46
46
|
apiAuthEntityStorageService.initSchema();
|
|
47
47
|
engineTypes.initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.userEntityStorageType, "AuthenticationUser");
|
|
48
48
|
component = new apiAuthEntityStorageService.EntityStorageAuthenticationService({
|
|
49
|
-
vaultConnectorType:
|
|
50
|
-
authenticationAdminServiceType:
|
|
49
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
50
|
+
authenticationAdminServiceType: engineCore.getRegisteredInstanceType("authenticationAdminComponent"),
|
|
51
51
|
...instanceConfig.options
|
|
52
52
|
});
|
|
53
53
|
instanceType = core.StringHelper.kebabCase("EntityStorageAuthenticationService");
|
|
@@ -278,7 +278,7 @@ function initialiseRestRouteProcessorComponent(engineCore, context, instanceConf
|
|
|
278
278
|
let instanceType;
|
|
279
279
|
if (type === RestRouteProcessorType.AuthHeader) {
|
|
280
280
|
component = new apiAuthEntityStorageService.AuthHeaderProcessor({
|
|
281
|
-
vaultConnectorType:
|
|
281
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
282
282
|
config: {
|
|
283
283
|
...instanceConfig.options?.config
|
|
284
284
|
}
|
|
@@ -287,7 +287,7 @@ function initialiseRestRouteProcessorComponent(engineCore, context, instanceConf
|
|
|
287
287
|
}
|
|
288
288
|
else if (type === RestRouteProcessorType.Logging) {
|
|
289
289
|
component = new apiProcessors.LoggingProcessor({
|
|
290
|
-
loggingComponentType:
|
|
290
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
291
291
|
config: {
|
|
292
292
|
...instanceConfig.options?.config
|
|
293
293
|
}
|
|
@@ -370,7 +370,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
370
370
|
let instanceType;
|
|
371
371
|
if (type === SocketRouteProcessorType.AuthHeader) {
|
|
372
372
|
component = new apiAuthEntityStorageService.AuthHeaderProcessor({
|
|
373
|
-
vaultConnectorType:
|
|
373
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
374
374
|
config: {
|
|
375
375
|
...instanceConfig.options?.config
|
|
376
376
|
}
|
|
@@ -379,7 +379,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
379
379
|
}
|
|
380
380
|
else if (type === SocketRouteProcessorType.Logging) {
|
|
381
381
|
component = new apiProcessors.LoggingProcessor({
|
|
382
|
-
loggingComponentType:
|
|
382
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
383
383
|
config: {
|
|
384
384
|
...instanceConfig.options?.config
|
|
385
385
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -44,8 +44,8 @@ function initialiseAuthenticationComponent(engineCore, context, instanceConfig,
|
|
|
44
44
|
initSchema();
|
|
45
45
|
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.userEntityStorageType, "AuthenticationUser");
|
|
46
46
|
component = new EntityStorageAuthenticationService({
|
|
47
|
-
vaultConnectorType:
|
|
48
|
-
authenticationAdminServiceType:
|
|
47
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
48
|
+
authenticationAdminServiceType: engineCore.getRegisteredInstanceType("authenticationAdminComponent"),
|
|
49
49
|
...instanceConfig.options
|
|
50
50
|
});
|
|
51
51
|
instanceType = StringHelper.kebabCase("EntityStorageAuthenticationService");
|
|
@@ -276,7 +276,7 @@ function initialiseRestRouteProcessorComponent(engineCore, context, instanceConf
|
|
|
276
276
|
let instanceType;
|
|
277
277
|
if (type === RestRouteProcessorType.AuthHeader) {
|
|
278
278
|
component = new AuthHeaderProcessor({
|
|
279
|
-
vaultConnectorType:
|
|
279
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
280
280
|
config: {
|
|
281
281
|
...instanceConfig.options?.config
|
|
282
282
|
}
|
|
@@ -285,7 +285,7 @@ function initialiseRestRouteProcessorComponent(engineCore, context, instanceConf
|
|
|
285
285
|
}
|
|
286
286
|
else if (type === RestRouteProcessorType.Logging) {
|
|
287
287
|
component = new LoggingProcessor({
|
|
288
|
-
loggingComponentType:
|
|
288
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
289
289
|
config: {
|
|
290
290
|
...instanceConfig.options?.config
|
|
291
291
|
}
|
|
@@ -368,7 +368,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
368
368
|
let instanceType;
|
|
369
369
|
if (type === SocketRouteProcessorType.AuthHeader) {
|
|
370
370
|
component = new AuthHeaderProcessor({
|
|
371
|
-
vaultConnectorType:
|
|
371
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
372
372
|
config: {
|
|
373
373
|
...instanceConfig.options?.config
|
|
374
374
|
}
|
|
@@ -377,7 +377,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
377
377
|
}
|
|
378
378
|
else if (type === SocketRouteProcessorType.Logging) {
|
|
379
379
|
component = new LoggingProcessor({
|
|
380
|
-
loggingComponentType:
|
|
380
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
381
381
|
config: {
|
|
382
382
|
...instanceConfig.options?.config
|
|
383
383
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/engine-server-types - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/engine/compare/engine-server-types-v0.0.2-next.5...engine-server-types-v0.0.2-next.6) (2025-08-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-models bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
16
|
+
* @twin.org/engine-types bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
17
|
+
|
|
18
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/engine/compare/engine-server-types-v0.0.2-next.4...engine-server-types-v0.0.2-next.5) (2025-08-14)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/engine-models bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
31
|
+
* @twin.org/engine-types bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
32
|
+
|
|
3
33
|
## [0.0.2-next.4](https://github.com/twinfoundation/engine/compare/engine-server-types-v0.0.2-next.3...engine-server-types-v0.0.2-next.4) (2025-07-25)
|
|
4
34
|
|
|
5
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-server-types",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.6",
|
|
4
4
|
"description": "Server types to use in an engine server.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@twin.org/api-server-fastify": "next",
|
|
24
24
|
"@twin.org/api-service": "next",
|
|
25
25
|
"@twin.org/core": "next",
|
|
26
|
-
"@twin.org/engine-models": "0.0.2-next.
|
|
27
|
-
"@twin.org/engine-types": "0.0.2-next.
|
|
26
|
+
"@twin.org/engine-models": "0.0.2-next.6",
|
|
27
|
+
"@twin.org/engine-types": "0.0.2-next.6",
|
|
28
28
|
"@twin.org/entity": "next",
|
|
29
29
|
"@twin.org/nameof": "next"
|
|
30
30
|
},
|