@query-farm/vgi 0.48.1 → 0.48.2
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 +24 -1
- package/dist/catalog/descriptors.d.ts +14 -0
- package/dist/catalog/read-only.d.ts +4 -5
- package/dist/functions/registry.d.ts +1 -0
- package/dist/functions/scalar.d.ts +16 -5
- package/dist/functions/types.d.ts +6 -2
- package/dist/index.core.d.ts +1 -1
- package/dist/index.js +47 -23
- package/dist/index.js.map +11 -11
- package/dist/serve-entry.js +6 -4
- package/dist/serve-entry.js.map +4 -4
- package/dist/worker-cf-entry.js +45 -22
- package/dist/worker-cf-entry.js.map +11 -11
- package/package.json +1 -1
- package/src/catalog/descriptors.ts +14 -0
- package/src/catalog/read-only.ts +18 -13
- package/src/functions/registry.ts +6 -3
- package/src/functions/scalar.ts +30 -8
- package/src/functions/table-buffering.ts +3 -0
- package/src/functions/table-in-out.ts +29 -9
- package/src/functions/table.ts +9 -6
- package/src/functions/types.ts +13 -3
- package/src/index.core.ts +1 -1
- package/src/protocol/handlers/function.ts +16 -3
package/dist/serve-entry.js
CHANGED
|
@@ -8705,13 +8705,14 @@ function functionHandlers(config) {
|
|
|
8705
8705
|
} else {
|
|
8706
8706
|
const carried = parseCarriedInitRequest(state.initRequestPacked);
|
|
8707
8707
|
const request = carried.request;
|
|
8708
|
+
request.bind_call.attach_opaque_data = await stripAttach(request.bind_call.attach_opaque_data, undefined);
|
|
8708
8709
|
await resolveSplitPayloads(request, { bind_call: carried.bindCallIpc }, {
|
|
8709
8710
|
auth: currentRequestAuth(),
|
|
8710
8711
|
signingKey,
|
|
8711
8712
|
catalogInterface,
|
|
8712
8713
|
checkAnchor: false
|
|
8713
8714
|
});
|
|
8714
|
-
const func = registry.get(state.functionName,
|
|
8715
|
+
const func = registry.get(state.functionName, overloadContext(request.bind_call, catalogInterface));
|
|
8715
8716
|
const executionId = state.executionId;
|
|
8716
8717
|
const opaqueData = state.opaqueData ?? null;
|
|
8717
8718
|
const initResponse = {
|
|
@@ -8720,10 +8721,11 @@ function functionHandlers(config) {
|
|
|
8720
8721
|
opaque_data: opaqueData
|
|
8721
8722
|
};
|
|
8722
8723
|
handlers = func.createStreamHandlers(request, initResponse, state.filterHistory ?? null);
|
|
8724
|
+
const restored = state.userState != null ? { state: state.userState } : undefined;
|
|
8723
8725
|
if (handlers.producerInit) {
|
|
8724
|
-
handlerState = handlers.producerInit();
|
|
8726
|
+
handlerState = handlers.producerInit(restored);
|
|
8725
8727
|
} else if (handlers.exchangeInit) {
|
|
8726
|
-
handlerState = handlers.exchangeInit();
|
|
8728
|
+
handlerState = handlers.exchangeInit(restored);
|
|
8727
8729
|
}
|
|
8728
8730
|
if (state.userState != null && handlerState?.state !== undefined) {
|
|
8729
8731
|
handlerState.state = state.userState;
|
|
@@ -11923,4 +11925,4 @@ export {
|
|
|
11923
11925
|
serveVgiWorker
|
|
11924
11926
|
};
|
|
11925
11927
|
|
|
11926
|
-
//# debugId=
|
|
11928
|
+
//# debugId=AA979855B0C12EAC64756E2164756E21
|