@bob-kit/client 0.0.9 → 0.0.11
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/index.js +1 -1
- package/package.json +1 -1
- package/dist/motor.exe +0 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Daemon } from "./daemon.js";
|
|
2
2
|
let daemon;
|
|
3
3
|
export const bobQuery = async ({ id, driver: { cache, driver }, input, }) => {
|
|
4
|
-
daemon = new Daemon(driver);
|
|
5
4
|
const query = typeof input === "string" ? input : input.join("?");
|
|
6
5
|
const cacheKey = id ?? query;
|
|
7
6
|
if (cache) {
|
|
@@ -23,6 +22,7 @@ export const bobQuery = async ({ id, driver: { cache, driver }, input, }) => {
|
|
|
23
22
|
return json;
|
|
24
23
|
};
|
|
25
24
|
export default function bob(driver) {
|
|
25
|
+
daemon = new Daemon(driver.driver);
|
|
26
26
|
const execute = async (input, parameters = [], id) => {
|
|
27
27
|
const { error, tables, actions } = await bobQuery({ input, driver, id });
|
|
28
28
|
if (error)
|
package/package.json
CHANGED
package/dist/motor.exe
DELETED
|
Binary file
|