obi-sdk 0.1.2 → 0.1.3

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.
@@ -1,20 +1,4 @@
1
- import { S as SDKState, z } from "./index-634e0df5.js";
2
- function mitt(n) {
3
- return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e2) {
4
- var i = n.get(t);
5
- i ? i.push(e2) : n.set(t, [e2]);
6
- }, off: function(t, e2) {
7
- var i = n.get(t);
8
- i && (e2 ? i.splice(i.indexOf(e2) >>> 0, 1) : n.set(t, []));
9
- }, emit: function(t, e2) {
10
- var i = n.get(t);
11
- i && i.slice().map(function(n2) {
12
- n2(e2);
13
- }), (i = n.get("*")) && i.slice().map(function(n2) {
14
- n2(t, e2);
15
- });
16
- } };
17
- }
1
+ import { S as SDKState, z } from "./obi-widget-9c0306f4.js";
18
2
  function _mergeNamespaces(n, m) {
19
3
  m.forEach(function(e2) {
20
4
  e2 && typeof e2 !== "string" && !Array.isArray(e2) && Object.keys(e2).forEach(function(k) {
@@ -21867,6 +21851,22 @@ class ConnectionCheck extends eventsExports.EventEmitter {
21867
21851
  });
21868
21852
  }
21869
21853
  }
21854
+ function mitt(n) {
21855
+ return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e2) {
21856
+ var i = n.get(t);
21857
+ i ? i.push(e2) : n.set(t, [e2]);
21858
+ }, off: function(t, e2) {
21859
+ var i = n.get(t);
21860
+ i && (e2 ? i.splice(i.indexOf(e2) >>> 0, 1) : n.set(t, []));
21861
+ }, emit: function(t, e2) {
21862
+ var i = n.get(t);
21863
+ i && i.slice().map(function(n2) {
21864
+ n2(e2);
21865
+ }), (i = n.get("*")) && i.slice().map(function(n2) {
21866
+ n2(t, e2);
21867
+ });
21868
+ } };
21869
+ }
21870
21870
  class ObiSession {
21871
21871
  constructor(options = {}) {
21872
21872
  this.currentState = SDKState.READY;
@@ -22165,4 +22165,4 @@ export {
22165
22165
  mitt as m,
22166
22166
  session as s
22167
22167
  };
22168
- //# sourceMappingURL=session-e208b5bb.js.map
22168
+ //# sourceMappingURL=session-37970ed1.js.map