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