@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/dist/worker-cf-entry.js
CHANGED
|
@@ -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(
|
|
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,
|
|
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=
|
|
10801
|
+
//# debugId=1377812C4628E9D564756E2164756E21
|