@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.
package/dist/vue.mjs CHANGED
@@ -1057,7 +1057,10 @@ var WebAPI = class {
1057
1057
  } else if (options.body instanceof Blob) {
1058
1058
  bodyParam = await this.blobToBase64(options.body);
1059
1059
  } else {
1060
- bodyParam = options.body;
1060
+ const bytes = new TextEncoder().encode(options.body);
1061
+ bodyParam = this.arrayBufferToBase64(
1062
+ bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
1063
+ );
1061
1064
  }
1062
1065
  }
1063
1066
  const response = await this.client.request(WEB_COMMANDS.fetch, {