From 3380d83027b45096963d76f22ab0d8d94d94b7d9 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Thu, 22 Jul 2021 15:55:05 +0200 Subject: [PATCH] mutate opt with options arg --- src/client/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/index.js b/src/client/index.js index 0425d18..a525044 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -22,7 +22,7 @@ class Bridge { } function generateDispatcher(bridge, method, route, getContext) { - return async function (body, query, ...context) { + return async function (body, query, options) { let obj = Object() let opt = { parseData: true, @@ -30,7 +30,7 @@ function generateDispatcher(bridge, method, route, getContext) { url: route, data: body, params: query, - ...context + ...options } if (typeof getContext === "function") {