# 1.4.1
- Fixes: - Fixing time based issue in `ConnectivityManager` (using the now synced time for checkups) - `dispatchers.ConnectivityManager.ConnectivityManager`: fixing `_checkDispatcherHealth` - Fixing `extractUniqueValues` now it is possible to use different pathes for the `key` and `value` - `lib\helpers\mapMethods.ts` has been adapted
This commit is contained in:
parent
02f951aa7d
commit
fa234b9a9b
@ -260,3 +260,9 @@ Inital commit, which is working with the browser
|
|||||||
- `loadFunctions` in `lib\loader\loadPackages.ts` to match the interface of `loadPackages` and add the functions to the package-loader.
|
- `loadFunctions` in `lib\loader\loadPackages.ts` to match the interface of `loadPackages` and add the functions to the package-loader.
|
||||||
- added the function `addDecoratedElements` in the package-loader and the interface.
|
- added the function `addDecoratedElements` in the package-loader and the interface.
|
||||||
|
|
||||||
|
# 1.4.1
|
||||||
|
- Fixes:
|
||||||
|
- Fixing time based issue in `ConnectivityManager` (using the now synced time for checkups)
|
||||||
|
- `dispatchers.ConnectivityManager.ConnectivityManager`: fixing `_checkDispatcherHealth`
|
||||||
|
- Fixing `extractUniqueValues` now it is possible to use different pathes for the `key` and `value`
|
||||||
|
- `lib\helpers\mapMethods.ts` has been adapted
|
@ -440,7 +440,7 @@ export class NopeConnectivityManager implements INopeConnectivityManager {
|
|||||||
* @memberof NopeConnectivityManager
|
* @memberof NopeConnectivityManager
|
||||||
*/
|
*/
|
||||||
protected _checkDispatcherHealth(): void {
|
protected _checkDispatcherHealth(): void {
|
||||||
const currentTime = Date.now();
|
const currentTime = this.now;
|
||||||
let changes = false;
|
let changes = false;
|
||||||
|
|
||||||
for (const status of this._externalDispatchers.values()) {
|
for (const status of this._externalDispatchers.values()) {
|
||||||
|
@ -7,7 +7,7 @@ import { BehaviorSubject, ReplaySubject, Subject } from "rxjs";
|
|||||||
|
|
||||||
export interface TSubjectOptions {
|
export interface TSubjectOptions {
|
||||||
/**
|
/**
|
||||||
* Definitin whether to use the history or not.
|
* Definition whether to show the current value on subscription.
|
||||||
*
|
*
|
||||||
* @author M.Karkowski
|
* @author M.Karkowski
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
@ -42,13 +42,13 @@ export function extractUniqueValues<D, K = any, V = any>(
|
|||||||
|
|
||||||
if (path !== pathKey) {
|
if (path !== pathKey) {
|
||||||
// Get the Common segment of the item.
|
// Get the Common segment of the item.
|
||||||
const commonSegment = getLeastCommonPathSegment([path, pathKey], {
|
let commonSegment = getLeastCommonPathSegment([path, pathKey], {
|
||||||
considerSingleLevel: false,
|
considerSingleLevel: false,
|
||||||
considerMultiLevel: false,
|
considerMultiLevel: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (commonSegment == false) {
|
if (commonSegment == false) {
|
||||||
return new Set();
|
commonSegment = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
const commonSegmentLength = commonSegment.split(SPLITCHAR).length;
|
const commonSegmentLength = commonSegment.split(SPLITCHAR).length;
|
||||||
@ -188,6 +188,9 @@ export function tranformMap<
|
|||||||
value: null,
|
value: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// We migt adapt the key and the Value. Therefore we will use
|
||||||
|
// the next if statements
|
||||||
|
|
||||||
if (typeof pathExtractedKey === "string") {
|
if (typeof pathExtractedKey === "string") {
|
||||||
if (pathExtractedKey.length > 0) {
|
if (pathExtractedKey.length > 0) {
|
||||||
data.key = rgetattr(v, pathExtractedKey);
|
data.key = rgetattr(v, pathExtractedKey);
|
||||||
|
@ -76,6 +76,9 @@ export type TLibraries = {
|
|||||||
w2confirm: (...args) => any;
|
w2confirm: (...args) => any;
|
||||||
w2prompt: (...args) => any;
|
w2prompt: (...args) => any;
|
||||||
w2utils: any;
|
w2utils: any;
|
||||||
|
/**
|
||||||
|
* The Custom W2UI-Helper provided by the nope-ui package.
|
||||||
|
*/
|
||||||
nopeW2ui: any;
|
nopeW2ui: any;
|
||||||
};
|
};
|
||||||
w2ui: any;
|
w2ui: any;
|
||||||
|
Loading…
Reference in New Issue
Block a user