@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.
@@ -8201,8 +8201,9 @@ function registerCatalogMethods(protocol, catalog, _catalogName, signingKey) {
8201
8201
  }
8202
8202
 
8203
8203
  // src/protocol/dispatch.ts
8204
+ var VGI_PROTOCOL_NAME = "vgi.v2";
8204
8205
  function buildVgiProtocol(config) {
8205
- const protocol = new Protocol("vgi", { protocolVersion: "2.0.0" });
8206
+ const protocol = new Protocol(VGI_PROTOCOL_NAME, { protocolVersion: "2.0.0" });
8206
8207
  registerFunctionMethods(protocol, {
8207
8208
  registry: config.registry,
8208
8209
  recoverExchangeState: config.recoverExchangeState,
@@ -8357,7 +8358,10 @@ function createVgiFetch(opts) {
8357
8358
  ...opts.protocol,
8358
8359
  recoverExchangeState: async (opaqueData) => {
8359
8360
  const tokenString = new TextDecoder().decode(opaqueData);
8360
- const unpacked = await unpackStateToken(tokenString, opts.signingKey, tokenTtl, undefined);
8361
+ const unpacked = await unpackStateToken(tokenString, opts.signingKey, tokenTtl, {
8362
+ protocol: VGI_PROTOCOL_NAME,
8363
+ principal: undefined
8364
+ });
8361
8365
  return arrowStateSerializer.deserialize(unpacked.stateBytes);
8362
8366
  }
8363
8367
  });
@@ -10794,4 +10798,4 @@ export {
10794
10798
  utf82 as utf8
10795
10799
  };
10796
10800
 
10797
- //# debugId=EA846480EA87AD9964756E2164756E21
10801
+ //# debugId=1377812C4628E9D564756E2164756E21