- Fixes:
  - communication.layer.events: -> fixing receivingOwnMessages.
  - runNopeBackend -> if io-server is used, no configuration file is loaded
This commit is contained in:
Martin Karkowski 2022-03-22 21:22:37 +01:00
parent 60c4c4fe6e
commit 44dcfee9a5
6 changed files with 18 additions and 6 deletions

View File

@ -22,4 +22,9 @@ Inital commit, which is working with the browser
- helpers.jsonSchemaMethods: -> renamed flatten to nested.
- Added:
- helpers.descriptors: -> parseFunctionToJsonSchema
- helpers.jsonSchemaMethods: -> added `flattenSchema` and `reduceSchema`. This Function will create a nested JSON-Schema.
- helpers.jsonSchemaMethods: -> added `flattenSchema` and `reduceSchema`. This Function will create a nested JSON-Schema.
# 1.0.28
- Fixes:
- communication.layer.events: -> fixing receivingOwnMessages.
- runNopeBackend -> if io-server is used, no configuration file is loaded

View File

@ -1,4 +1,4 @@
![](public/nope/logo.png)
![](public/logo.png)
# No Programming Environment - `NoPE`

View File

@ -1 +1 @@
1.0.27
1.0.28

View File

@ -255,6 +255,10 @@ export async function runNopeBackend(
const args = Object.assign(_defaultSettings, _args);
if (args.channel === "io-server") {
args.skipLoadingConfig = true;
}
const closeCallbacks = [];
try {
@ -286,6 +290,11 @@ export async function runNopeBackend(
closeCallbacks.push(recordCPUProfile());
}
if (args.channel === "io-server") {
logger.warn("Running as Server. Wont load any module!");
args.skipLoadingConfig = true;
}
if (!Object.getOwnPropertyNames(validLayers).includes(args.channel)) {
logger.error(
"Invalid Channel. Please use the following values. " +

View File

@ -87,8 +87,6 @@ export class EventCommunicationInterface implements ICommunicationInterface {
) {
this.connected = new NopeObservable<boolean>();
this.connected.setContent(true);
this.receivesOwnMessages = true;
this.id = generateId();
}

View File

@ -1,6 +1,6 @@
{
"name": "nope",
"version": "1.0.26",
"version": "1.0.28",
"description": "NoPE Runtime for Nodejs. For Browser-Support please use nope-browser",
"files": [
"dist-nodejs/**/*",