@twin.org/node-core 0.0.2-next.2 → 0.0.2-next.3
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 +5 -5
- package/dist/esm/index.mjs +5 -5
- package/docs/changelog.md +7 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -245,7 +245,7 @@ async function finaliseWallet(engineCore, envVars, features, finalIdentity, addr
|
|
|
245
245
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
246
246
|
// If we are using entity storage for wallet the identity associated with the
|
|
247
247
|
// address will be wrong, so fix it
|
|
248
|
-
if (engineDefaultTypes.walletConnector ===
|
|
248
|
+
if (engineDefaultTypes.walletConnector === engineTypes.WalletConnectorType.EntityStorage) {
|
|
249
249
|
const walletAddress = entityStorageModels.EntityStorageConnectorFactory.get(core.StringHelper.kebabCase("WalletAddress"));
|
|
250
250
|
const addr = await walletAddress.get(addresses[0]);
|
|
251
251
|
if (!core.Is.empty(addr)) {
|
|
@@ -313,7 +313,7 @@ async function finaliseMnemonic(vaultConnector, workingIdentity, finalIdentity)
|
|
|
313
313
|
async function bootstrapNodeUser(engineCore, context, envVars, features) {
|
|
314
314
|
if (features.includes(NodeFeatures.NodeUser)) {
|
|
315
315
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
316
|
-
if (engineDefaultTypes.authenticationComponent === "
|
|
316
|
+
if (engineDefaultTypes.authenticationComponent === "entity-storage-authentication-service" &&
|
|
317
317
|
core.Is.stringValue(context.state.nodeIdentity)) {
|
|
318
318
|
const authUserEntityStorage = entityStorageModels.EntityStorageConnectorFactory.get(core.StringHelper.kebabCase("AuthenticationUser"));
|
|
319
319
|
const email = envVars.username ?? DEFAULT_NODE_USERNAME;
|
|
@@ -497,7 +497,7 @@ async function bootstrapBlobEncryption(engineCore, context, envVars, features) {
|
|
|
497
497
|
*/
|
|
498
498
|
async function bootstrapAuth(engineCore, context, envVars, features) {
|
|
499
499
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
500
|
-
if (engineDefaultTypes.authenticationComponent === "
|
|
500
|
+
if (engineDefaultTypes.authenticationComponent === "entity-storage-authentication-service" &&
|
|
501
501
|
core.Is.stringValue(context.state.nodeIdentity)) {
|
|
502
502
|
// Create a new JWT signing key and a user login for the node
|
|
503
503
|
const vaultConnector = vaultModels.VaultConnectorFactory.get(engineDefaultTypes.vaultConnector);
|
|
@@ -1343,7 +1343,7 @@ function configureTaskScheduler(coreConfig, envVars) {
|
|
|
1343
1343
|
if (core.Coerce.boolean(envVars.taskSchedulerEnabled) ?? true) {
|
|
1344
1344
|
coreConfig.types.taskSchedulerComponent ??= [];
|
|
1345
1345
|
coreConfig.types.taskSchedulerComponent.push({
|
|
1346
|
-
type: engineTypes.TaskSchedulerComponentType.
|
|
1346
|
+
type: engineTypes.TaskSchedulerComponentType.Service
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
@@ -1587,7 +1587,7 @@ async function run(nodeOptions) {
|
|
|
1587
1587
|
nodeOptions ??= {};
|
|
1588
1588
|
const serverInfo = {
|
|
1589
1589
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1590
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1590
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.3" // x-release-please-version
|
|
1591
1591
|
};
|
|
1592
1592
|
console.log(`\u001B[4m🌩️ ${serverInfo.name} v${serverInfo.version}\u001B[24m\n`);
|
|
1593
1593
|
if (!core.Is.stringValue(nodeOptions?.executionDirectory)) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -224,7 +224,7 @@ async function finaliseWallet(engineCore, envVars, features, finalIdentity, addr
|
|
|
224
224
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
225
225
|
// If we are using entity storage for wallet the identity associated with the
|
|
226
226
|
// address will be wrong, so fix it
|
|
227
|
-
if (engineDefaultTypes.walletConnector ===
|
|
227
|
+
if (engineDefaultTypes.walletConnector === WalletConnectorType.EntityStorage) {
|
|
228
228
|
const walletAddress = EntityStorageConnectorFactory.get(StringHelper.kebabCase("WalletAddress"));
|
|
229
229
|
const addr = await walletAddress.get(addresses[0]);
|
|
230
230
|
if (!Is.empty(addr)) {
|
|
@@ -292,7 +292,7 @@ async function finaliseMnemonic(vaultConnector, workingIdentity, finalIdentity)
|
|
|
292
292
|
async function bootstrapNodeUser(engineCore, context, envVars, features) {
|
|
293
293
|
if (features.includes(NodeFeatures.NodeUser)) {
|
|
294
294
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
295
|
-
if (engineDefaultTypes.authenticationComponent === "
|
|
295
|
+
if (engineDefaultTypes.authenticationComponent === "entity-storage-authentication-service" &&
|
|
296
296
|
Is.stringValue(context.state.nodeIdentity)) {
|
|
297
297
|
const authUserEntityStorage = EntityStorageConnectorFactory.get(StringHelper.kebabCase("AuthenticationUser"));
|
|
298
298
|
const email = envVars.username ?? DEFAULT_NODE_USERNAME;
|
|
@@ -476,7 +476,7 @@ async function bootstrapBlobEncryption(engineCore, context, envVars, features) {
|
|
|
476
476
|
*/
|
|
477
477
|
async function bootstrapAuth(engineCore, context, envVars, features) {
|
|
478
478
|
const engineDefaultTypes = engineCore.getDefaultTypes();
|
|
479
|
-
if (engineDefaultTypes.authenticationComponent === "
|
|
479
|
+
if (engineDefaultTypes.authenticationComponent === "entity-storage-authentication-service" &&
|
|
480
480
|
Is.stringValue(context.state.nodeIdentity)) {
|
|
481
481
|
// Create a new JWT signing key and a user login for the node
|
|
482
482
|
const vaultConnector = VaultConnectorFactory.get(engineDefaultTypes.vaultConnector);
|
|
@@ -1322,7 +1322,7 @@ function configureTaskScheduler(coreConfig, envVars) {
|
|
|
1322
1322
|
if (Coerce.boolean(envVars.taskSchedulerEnabled) ?? true) {
|
|
1323
1323
|
coreConfig.types.taskSchedulerComponent ??= [];
|
|
1324
1324
|
coreConfig.types.taskSchedulerComponent.push({
|
|
1325
|
-
type: TaskSchedulerComponentType.
|
|
1325
|
+
type: TaskSchedulerComponentType.Service
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
@@ -1566,7 +1566,7 @@ async function run(nodeOptions) {
|
|
|
1566
1566
|
nodeOptions ??= {};
|
|
1567
1567
|
const serverInfo = {
|
|
1568
1568
|
name: nodeOptions?.serverName ?? "TWIN Node Server",
|
|
1569
|
-
version: nodeOptions?.serverVersion ?? "0.0.2-next.
|
|
1569
|
+
version: nodeOptions?.serverVersion ?? "0.0.2-next.3" // x-release-please-version
|
|
1570
1570
|
};
|
|
1571
1571
|
console.log(`\u001B[4m🌩️ ${serverInfo.name} v${serverInfo.version}\u001B[24m\n`);
|
|
1572
1572
|
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.3](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.2...node-core-v0.0.2-next.3) (2025-07-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update to latest engine config ([347386c](https://github.com/twinfoundation/node/commit/347386c0609e717dc20c456ad2264c83df793c59))
|
|
9
|
+
|
|
3
10
|
## [0.0.2-next.2](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.1...node-core-v0.0.2-next.2) (2025-07-17)
|
|
4
11
|
|
|
5
12
|
|