@vanillaspa/event-bus 2.0.0 → 2.0.1
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/index.js +1 -2
- package/package.json +1 -4
package/index.js
CHANGED
|
@@ -112,7 +112,6 @@ export function removeAllEventListeners(context) {
|
|
|
112
112
|
*/
|
|
113
113
|
export function dispatchEvent(event, context = undefined) {
|
|
114
114
|
if (!context) context = event instanceof CustomEvent ? event.detail?.target : event.target;
|
|
115
|
-
|
|
116
115
|
const refs = typeIndex.get(event.type);
|
|
117
116
|
if (refs) {
|
|
118
117
|
for (const ref of refs) {
|
|
@@ -124,7 +123,7 @@ export function dispatchEvent(event, context = undefined) {
|
|
|
124
123
|
}
|
|
125
124
|
}
|
|
126
125
|
|
|
127
|
-
// Bridge
|
|
126
|
+
// Contract & Bridge
|
|
128
127
|
export function mountBridge(contract, host) {
|
|
129
128
|
const { namespace, events, handlers, responseDetail = {} } = contract;
|
|
130
129
|
|
package/package.json
CHANGED
|
@@ -18,9 +18,6 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "Unlicense",
|
|
20
20
|
"main": "index.js",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": "./index.js"
|
|
23
|
-
},
|
|
24
21
|
"name": "@vanillaspa/event-bus",
|
|
25
22
|
"publishConfig": {
|
|
26
23
|
"access": "public"
|
|
@@ -30,5 +27,5 @@
|
|
|
30
27
|
"url": "git+https://github.com/vanillaspa/event-bus.git"
|
|
31
28
|
},
|
|
32
29
|
"type": "module",
|
|
33
|
-
"version": "2.0.
|
|
30
|
+
"version": "2.0.1"
|
|
34
31
|
}
|