@portal-hq/connect 1.0.3 → 1.0.4
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.
- package/lib/commonjs/index.js +3 -0
- package/lib/esm/index.js +3 -0
- package/package.json +2 -2
- package/src/index.ts +4 -0
package/lib/commonjs/index.js
CHANGED
|
@@ -44,6 +44,9 @@ class PortalConnect {
|
|
|
44
44
|
this.bindToSocketEvents(this.socket, uri);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
+
deinit() {
|
|
48
|
+
this.events = {};
|
|
49
|
+
}
|
|
47
50
|
/**
|
|
48
51
|
* Invokes all registered event handlers with the data provided
|
|
49
52
|
* - If any `once` handlers exist, they are removed after all handlers are invoked
|
package/lib/esm/index.js
CHANGED
|
@@ -42,6 +42,9 @@ class PortalConnect {
|
|
|
42
42
|
this.bindToSocketEvents(this.socket, uri);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
+
deinit() {
|
|
46
|
+
this.events = {};
|
|
47
|
+
}
|
|
45
48
|
/**
|
|
46
49
|
* Invokes all registered event handlers with the data provided
|
|
47
50
|
* - If any `once` handlers exist, they are removed after all handlers are invoked
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portal-hq/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"main": "lib/commonjs/index",
|
|
5
5
|
"module": "lib/esm/index",
|
|
6
6
|
"source": "src/index",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react": "*",
|
|
33
33
|
"react-native": "*"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "46c6408b260c034fbbc736ea84aa05ea50a3e1ae"
|
|
36
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -59,6 +59,10 @@ class PortalConnect {
|
|
|
59
59
|
this.bindToSocketEvents(this.socket, uri)
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
public deinit() {
|
|
63
|
+
this.events = {}
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
/**
|
|
63
67
|
* Invokes all registered event handlers with the data provided
|
|
64
68
|
* - If any `once` handlers exist, they are removed after all handlers are invoked
|