@twin.org/node-core 0.0.2-next.13 → 0.0.2-next.14
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 +12 -3
- package/dist/esm/index.mjs +12 -3
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +1 -1
- package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +12 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +1 -1
- package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +24 -0
- package/docs/reference/interfaces/INodeEnvironmentVariables.md +37 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1655,11 +1655,18 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
1655
1655
|
});
|
|
1656
1656
|
}
|
|
1657
1657
|
if (!coreEngineConfig.silent) {
|
|
1658
|
+
const includeBody = core.Coerce.boolean(envVars.routeLoggingIncludeBody) ?? coreEngineConfig.debug;
|
|
1659
|
+
const fullBase64 = core.Coerce.boolean(envVars.routeLoggingFullBase64) ?? false;
|
|
1660
|
+
const obfuscateProperties = core.Is.stringValue(envVars.routeLoggingObfuscateProperties)
|
|
1661
|
+
? envVars.routeLoggingObfuscateProperties.split(",")
|
|
1662
|
+
: undefined;
|
|
1658
1663
|
serverConfig.types.restRouteProcessor.push({
|
|
1659
1664
|
type: engineServerTypes.RestRouteProcessorType.Logging,
|
|
1660
1665
|
options: {
|
|
1661
1666
|
config: {
|
|
1662
|
-
includeBody
|
|
1667
|
+
includeBody,
|
|
1668
|
+
fullBase64,
|
|
1669
|
+
obfuscateProperties
|
|
1663
1670
|
}
|
|
1664
1671
|
}
|
|
1665
1672
|
});
|
|
@@ -1667,7 +1674,9 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
1667
1674
|
type: engineServerTypes.SocketRouteProcessorType.Logging,
|
|
1668
1675
|
options: {
|
|
1669
1676
|
config: {
|
|
1670
|
-
includeBody
|
|
1677
|
+
includeBody,
|
|
1678
|
+
fullBase64,
|
|
1679
|
+
obfuscateProperties
|
|
1671
1680
|
}
|
|
1672
1681
|
}
|
|
1673
1682
|
});
|
|
@@ -1806,7 +1815,7 @@ async function run(nodeOptions) {
|
|
|
1806
1815
|
nodeOptions ??= {};
|
|
1807
1816
|
const serverInfo = {
|
|
1808
1817
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1809
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1818
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.14" // x-release-please-version
|
|
1810
1819
|
};
|
|
1811
1820
|
console.log(`\u001B[4m🌩️ ${serverInfo.name} v${serverInfo.version}\u001B[24m\n`);
|
|
1812
1821
|
if (!core.Is.stringValue(nodeOptions?.executionDirectory)) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1634,11 +1634,18 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
1634
1634
|
});
|
|
1635
1635
|
}
|
|
1636
1636
|
if (!coreEngineConfig.silent) {
|
|
1637
|
+
const includeBody = Coerce.boolean(envVars.routeLoggingIncludeBody) ?? coreEngineConfig.debug;
|
|
1638
|
+
const fullBase64 = Coerce.boolean(envVars.routeLoggingFullBase64) ?? false;
|
|
1639
|
+
const obfuscateProperties = Is.stringValue(envVars.routeLoggingObfuscateProperties)
|
|
1640
|
+
? envVars.routeLoggingObfuscateProperties.split(",")
|
|
1641
|
+
: undefined;
|
|
1637
1642
|
serverConfig.types.restRouteProcessor.push({
|
|
1638
1643
|
type: RestRouteProcessorType.Logging,
|
|
1639
1644
|
options: {
|
|
1640
1645
|
config: {
|
|
1641
|
-
includeBody
|
|
1646
|
+
includeBody,
|
|
1647
|
+
fullBase64,
|
|
1648
|
+
obfuscateProperties
|
|
1642
1649
|
}
|
|
1643
1650
|
}
|
|
1644
1651
|
});
|
|
@@ -1646,7 +1653,9 @@ function buildEngineServerConfiguration(envVars, coreEngineConfig, serverInfo, o
|
|
|
1646
1653
|
type: SocketRouteProcessorType.Logging,
|
|
1647
1654
|
options: {
|
|
1648
1655
|
config: {
|
|
1649
|
-
includeBody
|
|
1656
|
+
includeBody,
|
|
1657
|
+
fullBase64,
|
|
1658
|
+
obfuscateProperties
|
|
1650
1659
|
}
|
|
1651
1660
|
}
|
|
1652
1661
|
});
|
|
@@ -1785,7 +1794,7 @@ async function run(nodeOptions) {
|
|
|
1785
1794
|
nodeOptions ??= {};
|
|
1786
1795
|
const serverInfo = {
|
|
1787
1796
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1788
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1797
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.14" // x-release-please-version
|
|
1789
1798
|
};
|
|
1790
1799
|
console.log(`\u001B[4m🌩️ ${serverInfo.name} v${serverInfo.version}\u001B[24m\n`);
|
|
1791
1800
|
if (!Is.stringValue(nodeOptions?.executionDirectory)) {
|
|
@@ -258,7 +258,7 @@ export interface IEngineEnvironmentVariables {
|
|
|
258
258
|
*/
|
|
259
259
|
hashicorpVaultEndpoint?: string;
|
|
260
260
|
/**
|
|
261
|
-
* The type of
|
|
261
|
+
* The type of logging task connector, can be a comma separated list: console, entity-storage.
|
|
262
262
|
*/
|
|
263
263
|
loggingConnector?: string;
|
|
264
264
|
/**
|
|
@@ -50,4 +50,16 @@ export interface IEngineServerEnvironmentVariables {
|
|
|
50
50
|
* Disable Node Identity route processors.
|
|
51
51
|
*/
|
|
52
52
|
disableNodeIdentity?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Include the body in the REST logging output, useful for debugging.
|
|
55
|
+
*/
|
|
56
|
+
routeLoggingIncludeBody?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Include the full base 64 output in the REST logging output, useful for debugging.
|
|
59
|
+
*/
|
|
60
|
+
routeLoggingFullBase64?: string;
|
|
61
|
+
/**
|
|
62
|
+
* List of properties to obfuscate in the REST logging output, comma separated.
|
|
63
|
+
*/
|
|
64
|
+
routeLoggingObfuscateProperties?: string;
|
|
53
65
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/node-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.14](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.13...node-core-v0.0.2-next.14) (2025-09-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* additional route logging env vars ([7152c88](https://github.com/twinfoundation/node/commit/7152c887c3ba76778e2d9e68ba57198b8d81d802))
|
|
9
|
+
|
|
3
10
|
## [0.0.2-next.13](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.12...node-core-v0.0.2-next.13) (2025-09-24)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -519,7 +519,7 @@ Hashicorp Vault endpoint.
|
|
|
519
519
|
|
|
520
520
|
> `optional` **loggingConnector**: `string`
|
|
521
521
|
|
|
522
|
-
The type of
|
|
522
|
+
The type of logging task connector, can be a comma separated list: console, entity-storage.
|
|
523
523
|
|
|
524
524
|
***
|
|
525
525
|
|
|
@@ -101,3 +101,27 @@ Enable to the route processor for verifiable credentials.
|
|
|
101
101
|
> `optional` **disableNodeIdentity**: `string`
|
|
102
102
|
|
|
103
103
|
Disable Node Identity route processors.
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### routeLoggingIncludeBody?
|
|
108
|
+
|
|
109
|
+
> `optional` **routeLoggingIncludeBody**: `string`
|
|
110
|
+
|
|
111
|
+
Include the body in the REST logging output, useful for debugging.
|
|
112
|
+
|
|
113
|
+
***
|
|
114
|
+
|
|
115
|
+
### routeLoggingFullBase64?
|
|
116
|
+
|
|
117
|
+
> `optional` **routeLoggingFullBase64**: `string`
|
|
118
|
+
|
|
119
|
+
Include the full base 64 output in the REST logging output, useful for debugging.
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### routeLoggingObfuscateProperties?
|
|
124
|
+
|
|
125
|
+
> `optional` **routeLoggingObfuscateProperties**: `string`
|
|
126
|
+
|
|
127
|
+
List of properties to obfuscate in the REST logging output, comma separated.
|
|
@@ -771,7 +771,7 @@ Hashicorp Vault endpoint.
|
|
|
771
771
|
|
|
772
772
|
> `optional` **loggingConnector**: `string`
|
|
773
773
|
|
|
774
|
-
The type of
|
|
774
|
+
The type of logging task connector, can be a comma separated list: console, entity-storage.
|
|
775
775
|
|
|
776
776
|
#### Inherited from
|
|
777
777
|
|
|
@@ -1608,6 +1608,42 @@ Disable Node Identity route processors.
|
|
|
1608
1608
|
|
|
1609
1609
|
***
|
|
1610
1610
|
|
|
1611
|
+
### routeLoggingIncludeBody?
|
|
1612
|
+
|
|
1613
|
+
> `optional` **routeLoggingIncludeBody**: `string`
|
|
1614
|
+
|
|
1615
|
+
Include the body in the REST logging output, useful for debugging.
|
|
1616
|
+
|
|
1617
|
+
#### Inherited from
|
|
1618
|
+
|
|
1619
|
+
[`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`routeLoggingIncludeBody`](IEngineServerEnvironmentVariables.md#routeloggingincludebody)
|
|
1620
|
+
|
|
1621
|
+
***
|
|
1622
|
+
|
|
1623
|
+
### routeLoggingFullBase64?
|
|
1624
|
+
|
|
1625
|
+
> `optional` **routeLoggingFullBase64**: `string`
|
|
1626
|
+
|
|
1627
|
+
Include the full base 64 output in the REST logging output, useful for debugging.
|
|
1628
|
+
|
|
1629
|
+
#### Inherited from
|
|
1630
|
+
|
|
1631
|
+
[`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`routeLoggingFullBase64`](IEngineServerEnvironmentVariables.md#routeloggingfullbase64)
|
|
1632
|
+
|
|
1633
|
+
***
|
|
1634
|
+
|
|
1635
|
+
### routeLoggingObfuscateProperties?
|
|
1636
|
+
|
|
1637
|
+
> `optional` **routeLoggingObfuscateProperties**: `string`
|
|
1638
|
+
|
|
1639
|
+
List of properties to obfuscate in the REST logging output, comma separated.
|
|
1640
|
+
|
|
1641
|
+
#### Inherited from
|
|
1642
|
+
|
|
1643
|
+
[`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`routeLoggingObfuscateProperties`](IEngineServerEnvironmentVariables.md#routeloggingobfuscateproperties)
|
|
1644
|
+
|
|
1645
|
+
***
|
|
1646
|
+
|
|
1611
1647
|
### features?
|
|
1612
1648
|
|
|
1613
1649
|
> `optional` **features**: `string`
|