@query-farm/vgi 0.30.0 → 0.31.0
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/README.md +1 -1
- package/dist/client-entry.js +19 -1
- package/dist/client-entry.js.map +3 -3
- package/dist/index.js +21 -2
- package/dist/index.js.map +4 -4
- package/dist/protocol/dispatch.d.ts +26 -0
- package/dist/serve-entry.js +7 -3
- package/dist/serve-entry.js.map +4 -4
- package/dist/worker-cf-entry.js +7 -3
- package/dist/worker-cf-entry.js.map +4 -4
- package/package.json +5 -4
- package/src/client/errors.ts +19 -0
- package/src/http/fetch.ts +10 -3
- package/src/protocol/dispatch.ts +28 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ npm install @query-farm/vgi
|
|
|
41
41
|
Requires **Node.js ≥ 22.15** or **Bun**.
|
|
42
42
|
|
|
43
43
|
> **Peer dependencies (since 0.3.0).** `@query-farm/apache-arrow` (`^21.1.1`) and
|
|
44
|
-
> `@query-farm/vgi-rpc` (`^0.
|
|
44
|
+
> `@query-farm/vgi-rpc` (`^0.24.0`) are **peerDependencies** — install them directly
|
|
45
45
|
> alongside `@query-farm/vgi`:
|
|
46
46
|
>
|
|
47
47
|
> ```bash
|
package/dist/client-entry.js
CHANGED
|
@@ -3409,6 +3409,24 @@ function wrapRpcWithErrorEnrichment(rpc) {
|
|
|
3409
3409
|
throw e;
|
|
3410
3410
|
}
|
|
3411
3411
|
},
|
|
3412
|
+
async callRaw(method, input) {
|
|
3413
|
+
try {
|
|
3414
|
+
return await rpc.callRaw(method, input);
|
|
3415
|
+
} catch (e) {
|
|
3416
|
+
if (e instanceof RpcError)
|
|
3417
|
+
throw VgiClientError.fromRpcError(e);
|
|
3418
|
+
throw e;
|
|
3419
|
+
}
|
|
3420
|
+
},
|
|
3421
|
+
async streamRaw(method, input, options) {
|
|
3422
|
+
try {
|
|
3423
|
+
return await rpc.streamRaw(method, input, options);
|
|
3424
|
+
} catch (e) {
|
|
3425
|
+
if (e instanceof RpcError)
|
|
3426
|
+
throw VgiClientError.fromRpcError(e);
|
|
3427
|
+
throw e;
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3412
3430
|
describe: () => rpc.describe(),
|
|
3413
3431
|
close: () => rpc.close()
|
|
3414
3432
|
};
|
|
@@ -4344,4 +4362,4 @@ export {
|
|
|
4344
4362
|
typeSignature
|
|
4345
4363
|
};
|
|
4346
4364
|
|
|
4347
|
-
//# debugId=
|
|
4365
|
+
//# debugId=883855CB7A9BD5B664756E2164756E21
|