-import { type AbstractUIService, WorkerBroadcastChannel } from './internal';
+import type { AbstractUIService } from './ui-server/ui-services/AbstractUIService';
+import { WorkerBroadcastChannel } from './WorkerBroadcastChannel';
import {
type BroadcastChannelResponse,
type BroadcastChannelResponsePayload,
type ResponsePayload,
ResponseStatus,
} from '../types';
-import { logger } from '../utils/Logger';
+import { Utils, logger } from '../utils';
const moduleName = 'UIServiceWorkerBroadcastChannel';
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;
...(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;
...(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;