@bigmistqke/rpc 0.1.4 → 0.1.5
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/LICENSE +21 -0
- package/dist/fetch-node.js +1 -1
- package/dist/fetch-node.js.map +1 -1
- package/dist/fetch.js +1 -1
- package/dist/fetch.js.map +1 -1
- package/dist/messenger.js +1 -1
- package/dist/messenger.js.map +1 -1
- package/dist/stream.js +1 -1
- package/dist/stream.js.map +1 -1
- package/dist/websocket.js +1 -1
- package/dist/websocket.js.map +1 -1
- package/package.json +8 -9
- package/src/core.ts +2 -2
package/dist/messenger.js
CHANGED
|
@@ -503,7 +503,7 @@ function callMethod(methods, topics, args) {
|
|
|
503
503
|
if (typeof method !== "function") {
|
|
504
504
|
throw new Error(`Topics did not resolve to a function: [${topics.join(",")}]`);
|
|
505
505
|
}
|
|
506
|
-
return method(...args);
|
|
506
|
+
return method.call(methods, ...args);
|
|
507
507
|
}
|
|
508
508
|
function isHandleResponse(value) {
|
|
509
509
|
return !!value && typeof value === "object" && $MESSENGER_HANDLE in value && typeof value[$MESSENGER_HANDLE] === "string";
|