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