mftsccs-browser 3.2.13-beta → 3.2.15-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10569,9 +10569,11 @@ class TypeNode {
10569
10569
  }
10570
10570
  else {
10571
10571
  // If key already exists, insert unique value into the set
10572
- console.log("this is type dispatch already exist", key);
10573
- (0,_app__WEBPACK_IMPORTED_MODULE_0__.dispatchIdEvent)(key, { detail: value });
10574
- node.value.push(value);
10572
+ if (!node.value.includes(value)) {
10573
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.dispatchIdEvent)(key, { detail: value });
10574
+ console.log("this is type dispatch already exist", key);
10575
+ node.value.push(value);
10576
+ }
10575
10577
  return node;
10576
10578
  }
10577
10579
  // Step 2: Update height of this ancestor node
@@ -26769,8 +26771,8 @@ const broadcastActions = {
26769
26771
  }),
26770
26772
  dispatchEvent: (payload) => __awaiter(void 0, void 0, void 0, function* () {
26771
26773
  if (serviceWorker) {
26772
- console.log("this is dispatching the event for test", payload);
26773
26774
  let event = new CustomEvent(payload.id || '', payload.data);
26775
+ console.log("this is the dispatch final");
26774
26776
  dispatchEvent(event);
26775
26777
  }
26776
26778
  // self.clients.matchAll({ includeUncontrolled: true }).then(clients => {
@@ -26954,7 +26956,6 @@ function initConceptConnection() {
26954
26956
  * @param data any
26955
26957
  */
26956
26958
  function dispatchIdEvent(id, data = {}) {
26957
- console.log("this is the dispatch id event", id, data);
26958
26959
  if (serviceWorker || typeof window != "undefined") {
26959
26960
  // let event = new Event(`${id}`);
26960
26961
  console.log("this is the dispatch event in the undefined", id, data);