@twin.org/engine-server 0.0.1-next.2 → 0.0.1-next.4
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 +4 -3
- package/dist/esm/index.mjs +4 -3
- package/docs/changelog.md +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -224,7 +224,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
224
224
|
component = new apiProcessors.LoggingProcessor({
|
|
225
225
|
loggingConnectorType: context.defaultTypes.loggingConnector,
|
|
226
226
|
config: {
|
|
227
|
-
...instanceConfig.options
|
|
227
|
+
...instanceConfig.options?.config
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
instanceType = apiProcessors.LoggingProcessor.NAMESPACE;
|
|
@@ -309,8 +309,6 @@ class EngineServer {
|
|
|
309
309
|
this._restRouteGenerators = [];
|
|
310
310
|
this._socketRouteGenerators = [];
|
|
311
311
|
const coreConfig = this._engineCore.getConfig();
|
|
312
|
-
const defaults = this._engineCore.getDefaultTypes();
|
|
313
|
-
this._loggingConnectorType = coreConfig.silent ? undefined : defaults.loggingConnector;
|
|
314
312
|
if (!core.Is.arrayValue(this._config.restRouteProcessor)) {
|
|
315
313
|
this._config.restRouteProcessor = [];
|
|
316
314
|
if (!coreConfig.silent) {
|
|
@@ -395,6 +393,9 @@ class EngineServer {
|
|
|
395
393
|
const restRouteProcessors = apiModels.RestRouteProcessorFactory.names().map(n => apiModels.RestRouteProcessorFactory.get(n));
|
|
396
394
|
const socketRouteProcessors = apiModels.SocketRouteProcessorFactory.names().map(n => apiModels.SocketRouteProcessorFactory.get(n));
|
|
397
395
|
const mimeTypeProcessors = apiModels.MimeTypeProcessorFactory.names().map(n => apiModels.MimeTypeProcessorFactory.get(n));
|
|
396
|
+
const coreConfig = this._engineCore.getConfig();
|
|
397
|
+
const defaults = this._engineCore.getDefaultTypes();
|
|
398
|
+
this._loggingConnectorType = coreConfig.silent ? undefined : defaults.loggingConnector;
|
|
398
399
|
this._webServer = new apiServerFastify.FastifyWebServer({
|
|
399
400
|
loggingConnectorType: this._loggingConnectorType,
|
|
400
401
|
mimeTypeProcessors
|
package/dist/esm/index.mjs
CHANGED
|
@@ -222,7 +222,7 @@ function initialiseSocketRouteProcessorComponent(engineCore, context, instanceCo
|
|
|
222
222
|
component = new LoggingProcessor({
|
|
223
223
|
loggingConnectorType: context.defaultTypes.loggingConnector,
|
|
224
224
|
config: {
|
|
225
|
-
...instanceConfig.options
|
|
225
|
+
...instanceConfig.options?.config
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
instanceType = LoggingProcessor.NAMESPACE;
|
|
@@ -307,8 +307,6 @@ class EngineServer {
|
|
|
307
307
|
this._restRouteGenerators = [];
|
|
308
308
|
this._socketRouteGenerators = [];
|
|
309
309
|
const coreConfig = this._engineCore.getConfig();
|
|
310
|
-
const defaults = this._engineCore.getDefaultTypes();
|
|
311
|
-
this._loggingConnectorType = coreConfig.silent ? undefined : defaults.loggingConnector;
|
|
312
310
|
if (!Is.arrayValue(this._config.restRouteProcessor)) {
|
|
313
311
|
this._config.restRouteProcessor = [];
|
|
314
312
|
if (!coreConfig.silent) {
|
|
@@ -393,6 +391,9 @@ class EngineServer {
|
|
|
393
391
|
const restRouteProcessors = RestRouteProcessorFactory.names().map(n => RestRouteProcessorFactory.get(n));
|
|
394
392
|
const socketRouteProcessors = SocketRouteProcessorFactory.names().map(n => SocketRouteProcessorFactory.get(n));
|
|
395
393
|
const mimeTypeProcessors = MimeTypeProcessorFactory.names().map(n => MimeTypeProcessorFactory.get(n));
|
|
394
|
+
const coreConfig = this._engineCore.getConfig();
|
|
395
|
+
const defaults = this._engineCore.getDefaultTypes();
|
|
396
|
+
this._loggingConnectorType = coreConfig.silent ? undefined : defaults.loggingConnector;
|
|
396
397
|
this._webServer = new FastifyWebServer({
|
|
397
398
|
loggingConnectorType: this._loggingConnectorType,
|
|
398
399
|
mimeTypeProcessors
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-server",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.4",
|
|
4
4
|
"description": "Engine implementation for a server.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@twin.org/crypto": "next",
|
|
44
44
|
"@twin.org/data-core": "next",
|
|
45
45
|
"@twin.org/data-schema-org": "next",
|
|
46
|
-
"@twin.org/engine-core": "0.0.1-next.
|
|
47
|
-
"@twin.org/engine-models": "0.0.1-next.
|
|
46
|
+
"@twin.org/engine-core": "0.0.1-next.4",
|
|
47
|
+
"@twin.org/engine-models": "0.0.1-next.4",
|
|
48
48
|
"@twin.org/entity": "next",
|
|
49
49
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
50
50
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|