@twin.org/node-core 0.0.2-next.23 â 0.0.2-next.24
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 +11 -3
- package/dist/esm/index.mjs +11 -3
- package/docs/changelog.md +7 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -959,14 +959,22 @@ async function configureLogging(coreConfig, envVars) {
|
|
|
959
959
|
additionalConnectorCount++;
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
+
// If more than one logging connector, then we need to add a multi connector
|
|
963
|
+
// and set it as the default one
|
|
962
964
|
if (additionalConnectorCount > 1) {
|
|
963
|
-
coreConfig.types.loggingConnector
|
|
965
|
+
coreConfig.types.loggingConnector.push({
|
|
964
966
|
type: engineTypes.LoggingConnectorType.Multi,
|
|
965
967
|
options: {
|
|
966
968
|
loggingConnectorTypes
|
|
967
|
-
}
|
|
969
|
+
},
|
|
970
|
+
isDefault: true
|
|
968
971
|
});
|
|
969
972
|
}
|
|
973
|
+
else if (additionalConnectorCount > 0) {
|
|
974
|
+
// If only one connector, then we set it as the default one
|
|
975
|
+
coreConfig.types.loggingConnector[coreConfig.types.loggingConnector.length - 1].isDefault =
|
|
976
|
+
true;
|
|
977
|
+
}
|
|
970
978
|
if (additionalConnectorCount > 0) {
|
|
971
979
|
coreConfig.types.loggingComponent ??= [];
|
|
972
980
|
// We set the isDefault flag so that other components will get this service by default
|
|
@@ -1986,7 +1994,7 @@ async function run(nodeOptions) {
|
|
|
1986
1994
|
nodeOptions ??= {};
|
|
1987
1995
|
const serverInfo = {
|
|
1988
1996
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1989
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1997
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.24" // x-release-please-version
|
|
1990
1998
|
};
|
|
1991
1999
|
cliCore.CLIDisplay.header(serverInfo.name, serverInfo.version, "đŠī¸ ");
|
|
1992
2000
|
if (!core.Is.stringValue(nodeOptions?.executionDirectory)) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -938,14 +938,22 @@ async function configureLogging(coreConfig, envVars) {
|
|
|
938
938
|
additionalConnectorCount++;
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
+
// If more than one logging connector, then we need to add a multi connector
|
|
942
|
+
// and set it as the default one
|
|
941
943
|
if (additionalConnectorCount > 1) {
|
|
942
|
-
coreConfig.types.loggingConnector
|
|
944
|
+
coreConfig.types.loggingConnector.push({
|
|
943
945
|
type: LoggingConnectorType.Multi,
|
|
944
946
|
options: {
|
|
945
947
|
loggingConnectorTypes
|
|
946
|
-
}
|
|
948
|
+
},
|
|
949
|
+
isDefault: true
|
|
947
950
|
});
|
|
948
951
|
}
|
|
952
|
+
else if (additionalConnectorCount > 0) {
|
|
953
|
+
// If only one connector, then we set it as the default one
|
|
954
|
+
coreConfig.types.loggingConnector[coreConfig.types.loggingConnector.length - 1].isDefault =
|
|
955
|
+
true;
|
|
956
|
+
}
|
|
949
957
|
if (additionalConnectorCount > 0) {
|
|
950
958
|
coreConfig.types.loggingComponent ??= [];
|
|
951
959
|
// We set the isDefault flag so that other components will get this service by default
|
|
@@ -1965,7 +1973,7 @@ async function run(nodeOptions) {
|
|
|
1965
1973
|
nodeOptions ??= {};
|
|
1966
1974
|
const serverInfo = {
|
|
1967
1975
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1968
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1976
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.24" // x-release-please-version
|
|
1969
1977
|
};
|
|
1970
1978
|
CLIDisplay.header(serverInfo.name, serverInfo.version, "đŠī¸ ");
|
|
1971
1979
|
if (!Is.stringValue(nodeOptions?.executionDirectory)) {
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/node-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.24](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.23...node-core-v0.0.2-next.24) (2025-10-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add isDefault flag to logging connectors ([358e839](https://github.com/twinfoundation/node/commit/358e8394819dab9832d3a9ebfac74b897b7d5f40))
|
|
9
|
+
|
|
3
10
|
## [0.0.2-next.23](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.22...node-core-v0.0.2-next.23) (2025-10-07)
|
|
4
11
|
|
|
5
12
|
|