@twin.org/engine-server 0.0.2-next.20 → 0.0.2-next.22
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
|
@@ -208,7 +208,7 @@ class EngineServer {
|
|
|
208
208
|
/**
|
|
209
209
|
* Runtime name for the class.
|
|
210
210
|
*/
|
|
211
|
-
CLASS_NAME = "EngineServer";
|
|
211
|
+
static CLASS_NAME = "EngineServer";
|
|
212
212
|
/**
|
|
213
213
|
* The engine.
|
|
214
214
|
* @internal
|
|
@@ -245,8 +245,8 @@ class EngineServer {
|
|
|
245
245
|
* @param options.engineCore The engine core to serve from.
|
|
246
246
|
*/
|
|
247
247
|
constructor(options) {
|
|
248
|
-
core.Guards.object(
|
|
249
|
-
core.Guards.object(
|
|
248
|
+
core.Guards.object(EngineServer.CLASS_NAME, "options", options);
|
|
249
|
+
core.Guards.object(EngineServer.CLASS_NAME, "options.engineCore", options.engineCore);
|
|
250
250
|
this._engineCore = options.engineCore;
|
|
251
251
|
this._restRouteGenerators = [];
|
|
252
252
|
this._socketRouteGenerators = [];
|
|
@@ -306,9 +306,9 @@ class EngineServer {
|
|
|
306
306
|
* @param method The method to call on the module.
|
|
307
307
|
*/
|
|
308
308
|
addRestRouteGenerator(type, module, method) {
|
|
309
|
-
core.Guards.stringValue(
|
|
310
|
-
core.Guards.stringValue(
|
|
311
|
-
core.Guards.stringValue(
|
|
309
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
|
|
310
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
|
|
311
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
|
|
312
312
|
this._restRouteGenerators.push({
|
|
313
313
|
type,
|
|
314
314
|
module,
|
|
@@ -322,9 +322,9 @@ class EngineServer {
|
|
|
322
322
|
* @param method The method to call on the module.
|
|
323
323
|
*/
|
|
324
324
|
addSocketRouteGenerator(type, module, method) {
|
|
325
|
-
core.Guards.stringValue(
|
|
326
|
-
core.Guards.stringValue(
|
|
327
|
-
core.Guards.stringValue(
|
|
325
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
|
|
326
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
|
|
327
|
+
core.Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
|
|
328
328
|
this._socketRouteGenerators.push({
|
|
329
329
|
type,
|
|
330
330
|
module,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -206,7 +206,7 @@ class EngineServer {
|
|
|
206
206
|
/**
|
|
207
207
|
* Runtime name for the class.
|
|
208
208
|
*/
|
|
209
|
-
CLASS_NAME = "EngineServer";
|
|
209
|
+
static CLASS_NAME = "EngineServer";
|
|
210
210
|
/**
|
|
211
211
|
* The engine.
|
|
212
212
|
* @internal
|
|
@@ -243,8 +243,8 @@ class EngineServer {
|
|
|
243
243
|
* @param options.engineCore The engine core to serve from.
|
|
244
244
|
*/
|
|
245
245
|
constructor(options) {
|
|
246
|
-
Guards.object(
|
|
247
|
-
Guards.object(
|
|
246
|
+
Guards.object(EngineServer.CLASS_NAME, "options", options);
|
|
247
|
+
Guards.object(EngineServer.CLASS_NAME, "options.engineCore", options.engineCore);
|
|
248
248
|
this._engineCore = options.engineCore;
|
|
249
249
|
this._restRouteGenerators = [];
|
|
250
250
|
this._socketRouteGenerators = [];
|
|
@@ -304,9 +304,9 @@ class EngineServer {
|
|
|
304
304
|
* @param method The method to call on the module.
|
|
305
305
|
*/
|
|
306
306
|
addRestRouteGenerator(type, module, method) {
|
|
307
|
-
Guards.stringValue(
|
|
308
|
-
Guards.stringValue(
|
|
309
|
-
Guards.stringValue(
|
|
307
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
|
|
308
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
|
|
309
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
|
|
310
310
|
this._restRouteGenerators.push({
|
|
311
311
|
type,
|
|
312
312
|
module,
|
|
@@ -320,9 +320,9 @@ class EngineServer {
|
|
|
320
320
|
* @param method The method to call on the module.
|
|
321
321
|
*/
|
|
322
322
|
addSocketRouteGenerator(type, module, method) {
|
|
323
|
-
Guards.stringValue(
|
|
324
|
-
Guards.stringValue(
|
|
325
|
-
Guards.stringValue(
|
|
323
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
|
|
324
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
|
|
325
|
+
Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
|
|
326
326
|
this._socketRouteGenerators.push({
|
|
327
327
|
type,
|
|
328
328
|
module,
|
|
@@ -8,7 +8,7 @@ export declare class EngineServer<T extends IEngineServerConfig = IEngineServerC
|
|
|
8
8
|
/**
|
|
9
9
|
* Runtime name for the class.
|
|
10
10
|
*/
|
|
11
|
-
readonly CLASS_NAME: string;
|
|
11
|
+
static readonly CLASS_NAME: string;
|
|
12
12
|
/**
|
|
13
13
|
* Create a new instance of EngineServer.
|
|
14
14
|
* @param options The options for the engine.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @twin.org/engine-server - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.22](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.21...engine-server-v0.0.2-next.22) (2025-10-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **engine-server:** Synchronize repo versions
|
|
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.21 to 0.0.2-next.22
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
17
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/engine bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
20
|
+
|
|
21
|
+
## [0.0.2-next.21](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.20...engine-server-v0.0.2-next.21) (2025-10-07)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
|
|
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.20 to 0.0.2-next.21
|
|
34
|
+
* @twin.org/engine-models bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
35
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
36
|
+
* devDependencies
|
|
37
|
+
* @twin.org/engine bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
38
|
+
|
|
3
39
|
## [0.0.2-next.20](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.19...engine-server-v0.0.2-next.20) (2025-10-06)
|
|
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.22",
|
|
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.22",
|
|
21
|
+
"@twin.org/engine-models": "0.0.2-next.22",
|
|
22
|
+
"@twin.org/engine-server-types": "0.0.2-next.22",
|
|
23
23
|
"@twin.org/modules": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|