bruce-models 3.7.7 → 3.7.8

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.
@@ -599,7 +599,7 @@
599
599
  }
600
600
  }
601
601
  formatApiUri(uri) {
602
- const ws = "wss";
602
+ const ws = !window.document || window.document.location.protocol === "https:" ? "wss" : "ws";
603
603
  return uri.replace(/^(https|http)/, ws) + "websocket";
604
604
  }
605
605
  onOpen(ev) {
@@ -10686,6 +10686,12 @@
10686
10686
  }
10687
10687
  const callDispose = window[disposeId];
10688
10688
  return () => {
10689
+ if (elementId) {
10690
+ const element = window.document.getElementById(elementId);
10691
+ if (element && element.parentElement) {
10692
+ element.parentElement.removeChild(element);
10693
+ }
10694
+ }
10689
10695
  callDispose();
10690
10696
  };
10691
10697
  }
@@ -10879,7 +10885,7 @@
10879
10885
  })(exports.DataSource || (exports.DataSource = {}));
10880
10886
 
10881
10887
  // This is updated with the package.json version on build.
10882
- const VERSION = "3.7.7";
10888
+ const VERSION = "3.7.8";
10883
10889
 
10884
10890
  exports.VERSION = VERSION;
10885
10891
  exports.AbstractApi = AbstractApi;