@twin.org/engine-server 0.0.1-next.65 → 0.0.1-next.67
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
CHANGED
|
@@ -333,14 +333,28 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
333
333
|
]
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
+
if (core.Is.stringValue(envVars.mimeTypeProcessors)) {
|
|
337
|
+
const mimeTypeProcessors = envVars.mimeTypeProcessors.split(",");
|
|
338
|
+
if (core.Is.arrayValue(mimeTypeProcessors)) {
|
|
339
|
+
serverConfig.types.mimeTypeProcessor ??= [];
|
|
340
|
+
for (const mimeTypeProcessor of mimeTypeProcessors) {
|
|
341
|
+
serverConfig.types.mimeTypeProcessor.push({
|
|
342
|
+
type: mimeTypeProcessor
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
336
347
|
serverConfig.types.restRouteProcessor ??= [];
|
|
337
348
|
serverConfig.types.socketRouteProcessor ??= [];
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
349
|
+
const disableNodeIdentity = core.Coerce.boolean(envVars.disableNodeIdentity);
|
|
350
|
+
if (!disableNodeIdentity) {
|
|
351
|
+
serverConfig.types.restRouteProcessor.push({
|
|
352
|
+
type: engineServerTypes.RestRouteProcessorType.NodeIdentity
|
|
353
|
+
});
|
|
354
|
+
serverConfig.types.socketRouteProcessor.push({
|
|
355
|
+
type: engineServerTypes.SocketRouteProcessorType.NodeIdentity
|
|
356
|
+
});
|
|
357
|
+
}
|
|
344
358
|
if (!coreEngineConfig.silent) {
|
|
345
359
|
serverConfig.types.restRouteProcessor.push({
|
|
346
360
|
type: engineServerTypes.RestRouteProcessorType.Logging,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -331,14 +331,28 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
331
331
|
]
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
+
if (Is.stringValue(envVars.mimeTypeProcessors)) {
|
|
335
|
+
const mimeTypeProcessors = envVars.mimeTypeProcessors.split(",");
|
|
336
|
+
if (Is.arrayValue(mimeTypeProcessors)) {
|
|
337
|
+
serverConfig.types.mimeTypeProcessor ??= [];
|
|
338
|
+
for (const mimeTypeProcessor of mimeTypeProcessors) {
|
|
339
|
+
serverConfig.types.mimeTypeProcessor.push({
|
|
340
|
+
type: mimeTypeProcessor
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
334
345
|
serverConfig.types.restRouteProcessor ??= [];
|
|
335
346
|
serverConfig.types.socketRouteProcessor ??= [];
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
347
|
+
const disableNodeIdentity = Coerce.boolean(envVars.disableNodeIdentity);
|
|
348
|
+
if (!disableNodeIdentity) {
|
|
349
|
+
serverConfig.types.restRouteProcessor.push({
|
|
350
|
+
type: RestRouteProcessorType.NodeIdentity
|
|
351
|
+
});
|
|
352
|
+
serverConfig.types.socketRouteProcessor.push({
|
|
353
|
+
type: SocketRouteProcessorType.NodeIdentity
|
|
354
|
+
});
|
|
355
|
+
}
|
|
342
356
|
if (!coreEngineConfig.silent) {
|
|
343
357
|
serverConfig.types.restRouteProcessor.push({
|
|
344
358
|
type: RestRouteProcessorType.Logging,
|
|
@@ -34,4 +34,12 @@ export interface IEngineServerEnvironmentVariables {
|
|
|
34
34
|
* The id of the key in the vault to use for signing in auth operations.
|
|
35
35
|
*/
|
|
36
36
|
authSigningKeyId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Additional MIME type processors to include, comma separated.
|
|
39
|
+
*/
|
|
40
|
+
mimeTypeProcessors?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Disable Node Identity route processors.
|
|
43
|
+
*/
|
|
44
|
+
disableNodeIdentity?: string;
|
|
37
45
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @twin.org/engine-server - Changelog
|
|
2
2
|
|
|
3
|
-
## v0.0.1-next.
|
|
3
|
+
## [0.0.1-next.67](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.66...engine-server-v0.0.1-next.67) (2025-03-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.1-next.66 to 0.0.1-next.67
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.1-next.66 to 0.0.1-next.67
|
|
17
|
+
* @twin.org/engine-server-types bumped from 0.0.1-next.66 to 0.0.1-next.67
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/engine bumped from 0.0.1-next.66 to 0.0.1-next.67
|
|
20
|
+
|
|
21
|
+
## v0.0.1-next.66
|
|
4
22
|
|
|
5
23
|
- Initial Release
|
|
@@ -65,3 +65,19 @@ The type of auth processor to use on the API: entity-storage.
|
|
|
65
65
|
> `optional` **authSigningKeyId**: `string`
|
|
66
66
|
|
|
67
67
|
The id of the key in the vault to use for signing in auth operations.
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### mimeTypeProcessors?
|
|
72
|
+
|
|
73
|
+
> `optional` **mimeTypeProcessors**: `string`
|
|
74
|
+
|
|
75
|
+
Additional MIME type processors to include, comma separated.
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### disableNodeIdentity?
|
|
80
|
+
|
|
81
|
+
> `optional` **disableNodeIdentity**: `string`
|
|
82
|
+
|
|
83
|
+
Disable Node Identity route processors.
|
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.67",
|
|
4
4
|
"description": "Engine implementation for a server.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
18
|
"@twin.org/api-server-fastify": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/engine-core": "0.0.1-next.
|
|
21
|
-
"@twin.org/engine-models": "0.0.1-next.
|
|
22
|
-
"@twin.org/engine-server-types": "0.0.1-next.
|
|
20
|
+
"@twin.org/engine-core": "0.0.1-next.67",
|
|
21
|
+
"@twin.org/engine-models": "0.0.1-next.67",
|
|
22
|
+
"@twin.org/engine-server-types": "0.0.1-next.67",
|
|
23
23
|
"@twin.org/modules": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|