vovk 3.0.0-draft.170 → 3.0.0-draft.172

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.
@@ -68,18 +68,18 @@ const createLLMFunction = ({ rpcModuleName, handlerName, handler, callRPCMethod,
68
68
  };
69
69
  };
70
70
  const defaultCallRPCMethod = async ({ handler, body, query, params, }) => {
71
- return await handler({
71
+ return Promise.resolve(handler({
72
72
  body,
73
73
  query,
74
74
  params,
75
- });
75
+ }));
76
76
  };
77
77
  const defaultCallControllerMethod = async ({ handler, body, query, params, }) => {
78
- return await handler.func({
78
+ return Promise.resolve(handler.func({
79
79
  body,
80
80
  query,
81
81
  params,
82
- });
82
+ }));
83
83
  };
84
84
  function createLLMFunctions({ modules, callRPCMethod = defaultCallRPCMethod, callControllerMethod = defaultCallControllerMethod, }) {
85
85
  const functions = Object.entries(modules)
@@ -68,18 +68,18 @@ const createLLMFunction = ({ rpcModuleName, handlerName, handler, callRPCMethod,
68
68
  };
69
69
  };
70
70
  const defaultCallRPCMethod = async ({ handler, body, query, params, }) => {
71
- return await handler({
71
+ return Promise.resolve(handler({
72
72
  body,
73
73
  query,
74
74
  params,
75
- });
75
+ }));
76
76
  };
77
77
  const defaultCallControllerMethod = async ({ handler, body, query, params, }) => {
78
- return await handler.func({
78
+ return Promise.resolve(handler.func({
79
79
  body,
80
80
  query,
81
81
  params,
82
- });
82
+ }));
83
83
  };
84
84
  function createLLMFunctions({ modules, callRPCMethod = defaultCallRPCMethod, callControllerMethod = defaultCallControllerMethod, }) {
85
85
  const functions = Object.entries(modules)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.170",
3
+ "version": "3.0.0-draft.172",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",