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