@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.
@@ -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, await strippedContext(request.bind_call));
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=7B9431FBBB6E4B0564756E2164756E21
11928
+ //# debugId=AA979855B0C12EAC64756E2164756E21