repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: revert internal exports
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
UIServiceWorkerBroadcastChannel.ts
diff --git
a/src/charging-station/UIServiceWorkerBroadcastChannel.ts
b/src/charging-station/UIServiceWorkerBroadcastChannel.ts
index d9e746393d32b03f6062787a8924d819d864bf1d..075a92c46249cc90a4426564c8cd0d0de64b278a 100644
(file)
--- a/
src/charging-station/UIServiceWorkerBroadcastChannel.ts
+++ b/
src/charging-station/UIServiceWorkerBroadcastChannel.ts
@@
-1,4
+1,5
@@
-import { type AbstractUIService, WorkerBroadcastChannel } from './internal';
+import type { AbstractUIService } from './ui-server/ui-services/AbstractUIService';
+import { WorkerBroadcastChannel } from './WorkerBroadcastChannel';
import {
type BroadcastChannelResponse,
type BroadcastChannelResponsePayload,
import {
type BroadcastChannelResponse,
type BroadcastChannelResponsePayload,
@@
-6,7
+7,7
@@
import {
type ResponsePayload,
ResponseStatus,
} from '../types';
type ResponsePayload,
ResponseStatus,
} from '../types';
-import {
logger } from '../utils/Logger
';
+import {
Utils, logger } from '../utils
';
const moduleName = 'UIServiceWorkerBroadcastChannel';
const moduleName = 'UIServiceWorkerBroadcastChannel';
@@
-69,7
+70,7
@@
export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
status: responsesStatus,
hashIdsSucceeded: this.responses
.get(uuid)
status: responsesStatus,
hashIdsSucceeded: this.responses
.get(uuid)
- ?.responses.filter(({ hashId }) =>
hashId !== undefined
)
+ ?.responses.filter(({ hashId }) =>
!Utils.isNullOrUndefined(hashId)
)
.map(({ status, hashId }) => {
if (status === ResponseStatus.SUCCESS) {
return hashId;
.map(({ status, hashId }) => {
if (status === ResponseStatus.SUCCESS) {
return hashId;
@@
-78,7
+79,7
@@
export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
...(responsesStatus === ResponseStatus.FAILURE && {
hashIdsFailed: this.responses
.get(uuid)
...(responsesStatus === ResponseStatus.FAILURE && {
hashIdsFailed: this.responses
.get(uuid)
- ?.responses.filter(({ hashId }) =>
hashId !== undefined
)
+ ?.responses.filter(({ hashId }) =>
!Utils.isNullOrUndefined(hashId)
)
.map(({ status, hashId }) => {
if (status === ResponseStatus.FAILURE) {
return hashId;
.map(({ status, hashId }) => {
if (status === ResponseStatus.FAILURE) {
return hashId;
@@
-88,7
+89,7
@@
export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
...(responsesStatus === ResponseStatus.FAILURE && {
responsesFailed: this.responses
.get(uuid)
...(responsesStatus === ResponseStatus.FAILURE && {
responsesFailed: this.responses
.get(uuid)
- ?.responses.filter((response) =>
response !== undefined
)
+ ?.responses.filter((response) =>
!Utils.isNullOrUndefined(response)
)
.map((response) => {
if (response.status === ResponseStatus.FAILURE) {
return response;
.map((response) => {
if (response.status === ResponseStatus.FAILURE) {
return response;