@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/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";