doover-js 0.6.2 → 0.6.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.
|
@@ -31,8 +31,10 @@ class RpcDispatcher {
|
|
|
31
31
|
const startedAt = this.stats?.recordRpcStart() ?? null;
|
|
32
32
|
this.messages
|
|
33
33
|
.postMessage(channel.agentId, channel.channelName, {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
data: {
|
|
35
|
+
type: "rpc",
|
|
36
|
+
...request,
|
|
37
|
+
},
|
|
36
38
|
})
|
|
37
39
|
.then((message) => {
|
|
38
40
|
const pending = {
|
|
@@ -77,8 +77,9 @@ describe("MessagesApi overloads + defaults", () => {
|
|
|
77
77
|
const restB = makeRestStub();
|
|
78
78
|
const apiA = new messages_api_1.MessagesApi(restA);
|
|
79
79
|
const apiB = new messages_api_1.MessagesApi(restB);
|
|
80
|
-
|
|
81
|
-
await
|
|
80
|
+
const before = "185536526405337088";
|
|
81
|
+
await apiA.listMessages("a1", "c1", { limit: 5, order: "desc", before });
|
|
82
|
+
await apiB.listMessages({ agentId: "a1", channelName: "c1" }, { limit: 5, order: "desc", before });
|
|
82
83
|
(0, chai_1.expect)(restA.calls).to.deep.equal(restB.calls);
|
|
83
84
|
});
|
|
84
85
|
it("listMessages defaults limit to 10 when omitted", async () => {
|