@tinycloud/node-sdk 3.3.0-beta.8 → 3.3.0-beta.9

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/dist/index.js CHANGED
@@ -24921,7 +24921,7 @@ var _TinyCloudNode = class _TinyCloudNode {
24921
24921
  };
24922
24922
  const requestBodyDigest = base64UrlEncode(new Uint8Array(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(canonicalizeEncryptionJson(body)))));
24923
24923
  const request = { ...body, requestBodyDigest };
24924
- const authorization = authorizationHeader(this.invokeAnyWithRuntimePermissions(serviceSession, [{ spaceId: session.spaceId, service: "kv", path: input.resourcePath, action: "tinycloud.kv/get" }]));
24924
+ const authorization = authorizationHeader(this.wasmBindings.invoke(serviceSession, "kv", input.resourcePath, "tinycloud.kv/get"));
24925
24925
  const response = await fetch(`${this.config.host}/policy/v3/deliveries/authorize`, {
24926
24926
  method: "POST",
24927
24927
  headers: { accept: "application/json", "content-type": "application/json", authorization },