@asgard-js/core 0.0.13 → 0.0.14
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/dist/lib/channel.d.ts +1 -1
- package/dist/lib/channel.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1554,12 +1554,12 @@ class ke {
|
|
|
1554
1554
|
throw new Error("customChannelId must be required");
|
|
1555
1555
|
this.client = t.client, this.customChannelId = t.customChannelId, this.customMessageId = t.customMessageId, this.isConnecting$ = new re(!1), this.conversation$ = new re(t.conversation), this.statesObserver = t.statesObserver;
|
|
1556
1556
|
}
|
|
1557
|
-
static async reset(t, e) {
|
|
1558
|
-
const
|
|
1557
|
+
static async reset(t, e, r) {
|
|
1558
|
+
const i = new ke(t);
|
|
1559
1559
|
try {
|
|
1560
|
-
return
|
|
1561
|
-
} catch (
|
|
1562
|
-
throw
|
|
1560
|
+
return i.subscribe(), await i.resetChannel(e, r), i;
|
|
1561
|
+
} catch (o) {
|
|
1562
|
+
throw i.close(), o;
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
1565
|
subscribe() {
|
|
@@ -1592,15 +1592,16 @@ class ke {
|
|
|
1592
1592
|
});
|
|
1593
1593
|
});
|
|
1594
1594
|
}
|
|
1595
|
-
resetChannel(t) {
|
|
1595
|
+
resetChannel(t, e) {
|
|
1596
1596
|
return this.fetchSse(
|
|
1597
1597
|
{
|
|
1598
1598
|
action: K.RESET_CHANNEL,
|
|
1599
1599
|
customChannelId: this.customChannelId,
|
|
1600
1600
|
customMessageId: this.customMessageId,
|
|
1601
|
-
text: ""
|
|
1601
|
+
text: (t == null ? void 0 : t.text) || "",
|
|
1602
|
+
payload: t == null ? void 0 : t.payload
|
|
1602
1603
|
},
|
|
1603
|
-
|
|
1604
|
+
e
|
|
1604
1605
|
);
|
|
1605
1606
|
}
|
|
1606
1607
|
sendMessage(t, e) {
|