@twin.org/engine-server 0.0.2-next.16 → 0.0.2-next.18
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 -2
- package/dist/esm/index.mjs +4 -2
- package/docs/changelog.md +36 -0
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -237,11 +237,12 @@ class EngineServer {
|
|
|
237
237
|
const generateRoutes = await modules.ModuleHelper.getModuleEntry(module, method);
|
|
238
238
|
for (let i = 0; i < typeConfig.length; i++) {
|
|
239
239
|
const restPath = typeConfig[i].restPath;
|
|
240
|
+
const restOptions = typeConfig[i].restOptions;
|
|
240
241
|
if (core.Is.string(restPath)) {
|
|
241
242
|
const serviceType = typeConfig[i].overrideInstanceType ??
|
|
242
243
|
this._engineCore.getRegisteredInstanceType(typeKey);
|
|
243
244
|
if (core.Is.stringValue(serviceType)) {
|
|
244
|
-
const generatedRoutes = generateRoutes(restPath, serviceType);
|
|
245
|
+
const generatedRoutes = generateRoutes(restPath, serviceType, restOptions);
|
|
245
246
|
for (const route of generatedRoutes) {
|
|
246
247
|
// Don't strip trailing slashes from the root path.
|
|
247
248
|
if (core.Is.stringValue(route.path) && route.path.length > 1) {
|
|
@@ -268,11 +269,12 @@ class EngineServer {
|
|
|
268
269
|
const generateRoutes = await modules.ModuleHelper.getModuleEntry(module, method);
|
|
269
270
|
for (let i = 0; i < typeConfig.length; i++) {
|
|
270
271
|
const socketPath = typeConfig[i].socketPath;
|
|
272
|
+
const socketOptions = typeConfig[i].socketOptions;
|
|
271
273
|
if (core.Is.string(socketPath)) {
|
|
272
274
|
const serviceType = typeConfig[i].overrideInstanceType ??
|
|
273
275
|
this._engineCore.getRegisteredInstanceType(typeKey);
|
|
274
276
|
if (core.Is.stringValue(serviceType)) {
|
|
275
|
-
routes.push(...generateRoutes(socketPath, serviceType));
|
|
277
|
+
routes.push(...generateRoutes(socketPath, serviceType, socketOptions));
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -235,11 +235,12 @@ class EngineServer {
|
|
|
235
235
|
const generateRoutes = await ModuleHelper.getModuleEntry(module, method);
|
|
236
236
|
for (let i = 0; i < typeConfig.length; i++) {
|
|
237
237
|
const restPath = typeConfig[i].restPath;
|
|
238
|
+
const restOptions = typeConfig[i].restOptions;
|
|
238
239
|
if (Is.string(restPath)) {
|
|
239
240
|
const serviceType = typeConfig[i].overrideInstanceType ??
|
|
240
241
|
this._engineCore.getRegisteredInstanceType(typeKey);
|
|
241
242
|
if (Is.stringValue(serviceType)) {
|
|
242
|
-
const generatedRoutes = generateRoutes(restPath, serviceType);
|
|
243
|
+
const generatedRoutes = generateRoutes(restPath, serviceType, restOptions);
|
|
243
244
|
for (const route of generatedRoutes) {
|
|
244
245
|
// Don't strip trailing slashes from the root path.
|
|
245
246
|
if (Is.stringValue(route.path) && route.path.length > 1) {
|
|
@@ -266,11 +267,12 @@ class EngineServer {
|
|
|
266
267
|
const generateRoutes = await ModuleHelper.getModuleEntry(module, method);
|
|
267
268
|
for (let i = 0; i < typeConfig.length; i++) {
|
|
268
269
|
const socketPath = typeConfig[i].socketPath;
|
|
270
|
+
const socketOptions = typeConfig[i].socketOptions;
|
|
269
271
|
if (Is.string(socketPath)) {
|
|
270
272
|
const serviceType = typeConfig[i].overrideInstanceType ??
|
|
271
273
|
this._engineCore.getRegisteredInstanceType(typeKey);
|
|
272
274
|
if (Is.stringValue(serviceType)) {
|
|
273
|
-
routes.push(...generateRoutes(socketPath, serviceType));
|
|
275
|
+
routes.push(...generateRoutes(socketPath, serviceType, socketOptions));
|
|
274
276
|
}
|
|
275
277
|
}
|
|
276
278
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @twin.org/engine-server - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.18](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.17...engine-server-v0.0.2-next.18) (2025-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
17
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/engine bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
20
|
+
|
|
21
|
+
## [0.0.2-next.17](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.16...engine-server-v0.0.2-next.17) (2025-09-26)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add REST options for route construction ([4adf0af](https://github.com/twinfoundation/engine/commit/4adf0af8a03689a4dbdf67e8527d6db0d2c5d59d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* The following workspace dependencies were updated
|
|
32
|
+
* dependencies
|
|
33
|
+
* @twin.org/engine-core bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
34
|
+
* @twin.org/engine-models bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
35
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
36
|
+
* devDependencies
|
|
37
|
+
* @twin.org/engine bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
38
|
+
|
|
3
39
|
## [0.0.2-next.16](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.15...engine-server-v0.0.2-next.16) (2025-09-25)
|
|
4
40
|
|
|
5
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-server",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.18",
|
|
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.2-next.
|
|
21
|
-
"@twin.org/engine-models": "0.0.2-next.
|
|
22
|
-
"@twin.org/engine-server-types": "0.0.2-next.
|
|
20
|
+
"@twin.org/engine-core": "0.0.2-next.18",
|
|
21
|
+
"@twin.org/engine-models": "0.0.2-next.18",
|
|
22
|
+
"@twin.org/engine-server-types": "0.0.2-next.18",
|
|
23
23
|
"@twin.org/modules": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|