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