@twin.org/engine-core 0.0.2-next.24 → 0.0.2-next.26
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 +2 -14
- package/dist/esm/index.mjs +2 -14
- package/docs/changelog.md +28 -0
- package/package.json +7 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -541,15 +541,14 @@ class EngineCore {
|
|
|
541
541
|
// First bootstrap the components.
|
|
542
542
|
for (const instance of this._context.componentInstances) {
|
|
543
543
|
if (core.Is.function(instance.component.bootstrap)) {
|
|
544
|
-
const instanceName = this.getInstanceName(instance);
|
|
545
544
|
this.logInfo(core.I18n.formatMessage(`${"engineCore"}.bootstrapping`, {
|
|
546
|
-
element:
|
|
545
|
+
element: instance.instanceType
|
|
547
546
|
}));
|
|
548
547
|
const bootstrapSuccess = await instance.component.bootstrap(EngineCore.LOGGING_COMPONENT_TYPE_NAME);
|
|
549
548
|
// If the bootstrap method failed then throw an error
|
|
550
549
|
if (!bootstrapSuccess) {
|
|
551
550
|
throw new core.GeneralError(EngineCore.CLASS_NAME, "bootstrapFailed", {
|
|
552
|
-
component:
|
|
551
|
+
component: instance.instanceType
|
|
553
552
|
});
|
|
554
553
|
}
|
|
555
554
|
}
|
|
@@ -561,17 +560,6 @@ class EngineCore {
|
|
|
561
560
|
this.logInfo(core.I18n.formatMessage(`${"engineCore"}.bootstrapComplete`));
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
|
-
/**
|
|
565
|
-
* Get the instance name.
|
|
566
|
-
* @param instance The instance to get the name for.
|
|
567
|
-
* @param instance.instanceType The instance type.
|
|
568
|
-
* @param instance.component The component.
|
|
569
|
-
* @returns The instance name.
|
|
570
|
-
* @internal
|
|
571
|
-
*/
|
|
572
|
-
getInstanceName(instance) {
|
|
573
|
-
return `${instance.component.CLASS_NAME}-${instance.instanceType}`;
|
|
574
|
-
}
|
|
575
563
|
}
|
|
576
564
|
|
|
577
565
|
// Copyright 2024 IOTA Stiftung.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -539,15 +539,14 @@ class EngineCore {
|
|
|
539
539
|
// First bootstrap the components.
|
|
540
540
|
for (const instance of this._context.componentInstances) {
|
|
541
541
|
if (Is.function(instance.component.bootstrap)) {
|
|
542
|
-
const instanceName = this.getInstanceName(instance);
|
|
543
542
|
this.logInfo(I18n.formatMessage(`${"engineCore"}.bootstrapping`, {
|
|
544
|
-
element:
|
|
543
|
+
element: instance.instanceType
|
|
545
544
|
}));
|
|
546
545
|
const bootstrapSuccess = await instance.component.bootstrap(EngineCore.LOGGING_COMPONENT_TYPE_NAME);
|
|
547
546
|
// If the bootstrap method failed then throw an error
|
|
548
547
|
if (!bootstrapSuccess) {
|
|
549
548
|
throw new GeneralError(EngineCore.CLASS_NAME, "bootstrapFailed", {
|
|
550
|
-
component:
|
|
549
|
+
component: instance.instanceType
|
|
551
550
|
});
|
|
552
551
|
}
|
|
553
552
|
}
|
|
@@ -559,17 +558,6 @@ class EngineCore {
|
|
|
559
558
|
this.logInfo(I18n.formatMessage(`${"engineCore"}.bootstrapComplete`));
|
|
560
559
|
}
|
|
561
560
|
}
|
|
562
|
-
/**
|
|
563
|
-
* Get the instance name.
|
|
564
|
-
* @param instance The instance to get the name for.
|
|
565
|
-
* @param instance.instanceType The instance type.
|
|
566
|
-
* @param instance.component The component.
|
|
567
|
-
* @returns The instance name.
|
|
568
|
-
* @internal
|
|
569
|
-
*/
|
|
570
|
-
getInstanceName(instance) {
|
|
571
|
-
return `${instance.component.CLASS_NAME}-${instance.instanceType}`;
|
|
572
|
-
}
|
|
573
561
|
}
|
|
574
562
|
|
|
575
563
|
// Copyright 2024 IOTA Stiftung.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/engine-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.26](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.25...engine-core-v0.0.2-next.26) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use correct instance type name ([6278486](https://github.com/twinfoundation/engine/commit/6278486d8f0f2d601d3cf521a647898cd7cc1f31))
|
|
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.25 to 0.0.2-next.26
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.25](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.24...engine-core-v0.0.2-next.25) (2025-10-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add validate-locales ([b92ea09](https://github.com/twinfoundation/engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/engine-models bumped from 0.0.2-next.24 to 0.0.2-next.25
|
|
30
|
+
|
|
3
31
|
## [0.0.2-next.24](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.23...engine-core-v0.0.2-next.24) (2025-10-08)
|
|
4
32
|
|
|
5
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-core",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.26",
|
|
4
4
|
"description": "Engine core.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/crypto": "next",
|
|
19
19
|
"@twin.org/data-core": "next",
|
|
20
|
-
"@twin.org/engine-models": "0.0.2-next.
|
|
20
|
+
"@twin.org/engine-models": "0.0.2-next.26",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
22
|
"@twin.org/logging-connector-console": "next",
|
|
23
23
|
"@twin.org/logging-models": "next",
|
|
@@ -53,5 +53,9 @@
|
|
|
53
53
|
"core",
|
|
54
54
|
"foundation",
|
|
55
55
|
"utilities"
|
|
56
|
-
]
|
|
56
|
+
],
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "git+https://github.com/twinfoundation/engine/issues"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://twindev.org"
|
|
57
61
|
}
|