@haex-space/vault-sdk 3.2.6 → 3.2.7

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.
@@ -700,7 +700,10 @@ var WebAPI = class {
700
700
  } else if (options.body instanceof Blob) {
701
701
  bodyParam = await this.blobToBase64(options.body);
702
702
  } else {
703
- bodyParam = options.body;
703
+ const bytes = new TextEncoder().encode(options.body);
704
+ bodyParam = this.arrayBufferToBase64(
705
+ bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
706
+ );
704
707
  }
705
708
  }
706
709
  const response = await this.client.request(WEB_COMMANDS.fetch, {