adding new files in 1.4.6

This commit is contained in:
Martin Karkowski 2022-11-06 11:47:36 +01:00
parent bdd257545b
commit 169f24cc81
5 changed files with 22 additions and 13 deletions

View File

@ -348,5 +348,10 @@ Inital commit, which is working with the browser
- `listMethods` now returns a different array, where the attribute is named `method` instead of `func` -> Adaptions affect `BaseModule` and `GenericModule`
- Added:
- Added Tests for the Properties of NopeRpcManager, NopeConnectivityManager
- `lib/helpers`:
- `PriorityList`: -> List, which sorts the items based on a given priority.
- `LimitedList`: -> Ring-Like list. If the max amount of items is reached, the oldest one will be removed
- `ParallelPriorityTaskQueue` -> A Task-Queue (Parallel and if desired with priority)
- `generateHash` -> A function to generate a hash

View File

@ -24,8 +24,8 @@ To install `NoPE` just extecute the `00-install.bat`-Batch-File in the root-dire
Make shure you run the following tasks
1. `npm install`
2. `npx tsc -p ./tsconfigBackend.json --pretty`
3. `npm link`
2. `./00-compile.bat` (on windows) or `./00-compile.sh` (on linux)
3. `./05-link.bat` (on windows) or `./05-link.sh` (on linux)
# Usage
@ -37,10 +37,14 @@ After installation you can use the following cli-tool:
Please select the option you want. Therefore add one of the following options:
- `help` - Opens the Help
- `run` - Start a NoPE-Backend.
- `init` - Initialize a new project. This project is empty.
- `scan` - Trys to update the configuration file.
- `help` Show this help.
- `run` Start a NoPE-Backend.
- `init` Initialize a new project. This project is empty.
- `conf` Trys to update the configuration file.
- `scan-ui` Scans and extracts the provided uis.
- `upload-ui` Uploads the determined ui-file
- `service` Generate Helper Files to provide services
- `repl` Opens an interactive console.
# Changelog

View File

@ -7,7 +7,7 @@
import { sleep } from "./async";
import { assert, expect } from "chai";
import { describe, it } from "mocha";
import { PriorityTaskQueue } from "./taskQueue";
import { ParallelPriorityTaskQueue } from "./taskQueue";
describe("PriorityTaskQueue", function () {
// Describe the required Test:
@ -22,7 +22,7 @@ describe("PriorityTaskQueue", function () {
return ret;
}
const queue = new PriorityTaskQueue();
const queue = new ParallelPriorityTaskQueue();
queue.maxParallel = 1;
queue.usePriority = false;
@ -50,7 +50,7 @@ describe("PriorityTaskQueue", function () {
return ret;
}
const queue = new PriorityTaskQueue();
const queue = new ParallelPriorityTaskQueue();
queue.maxParallel = 10;
queue.usePriority = false;
@ -78,7 +78,7 @@ describe("PriorityTaskQueue", function () {
return ret;
}
const queue = new PriorityTaskQueue();
const queue = new ParallelPriorityTaskQueue();
queue.maxParallel = 1;
queue.usePriority = true;
@ -107,7 +107,7 @@ describe("PriorityTaskQueue", function () {
return ret;
}
const queue = new PriorityTaskQueue();
const queue = new ParallelPriorityTaskQueue();
queue.maxParallel = 10;
queue.usePriority = true;

View File

@ -22,7 +22,7 @@ import { PriorityList } from "./lists";
* @export
* @class TaskQeue
*/
export class PriorityTaskQueue {
export class ParallelPriorityTaskQueue {
protected _queue = new PriorityList<{
func: (...args) => void;
cancel: () => void;

View File

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