@polyv/vote-sdk 2.2.0 → 2.3.0-rc-20260423.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.cjs.js +2 -2
- package/index.es.js +8 -4
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/index.es.js
CHANGED
|
@@ -6539,8 +6539,12 @@ class gi {
|
|
|
6539
6539
|
emit(C, e, t) {
|
|
6540
6540
|
const r = this.__eventStore[C];
|
|
6541
6541
|
r && r.forEach((n) => {
|
|
6542
|
-
|
|
6543
|
-
|
|
6542
|
+
try {
|
|
6543
|
+
const { type: c, handler: p, callbackHandler: g } = n;
|
|
6544
|
+
typeof g == "function" && g(e, t), c === "once" && this.off(C, p);
|
|
6545
|
+
} catch (c) {
|
|
6546
|
+
console.error(c);
|
|
6547
|
+
}
|
|
6544
6548
|
});
|
|
6545
6549
|
}
|
|
6546
6550
|
destroy() {
|
|
@@ -11648,8 +11652,8 @@ let Ar = ye;
|
|
|
11648
11652
|
console.log(
|
|
11649
11653
|
"%c@polyv/vote-sdk",
|
|
11650
11654
|
"background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
11651
|
-
"[version: 2.
|
|
11652
|
-
"[buildTime: 2026-04-
|
|
11655
|
+
"[version: 2.3.0-rc-20260423.1]",
|
|
11656
|
+
"[buildTime: 2026-04-22 09:52:48]"
|
|
11653
11657
|
);
|
|
11654
11658
|
export {
|
|
11655
11659
|
Ar as Vote,
|