@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/index.mjs CHANGED
@@ -1482,7 +1482,10 @@ var WebAPI = class {
1482
1482
  } else if (options.body instanceof Blob) {
1483
1483
  bodyParam = await this.blobToBase64(options.body);
1484
1484
  } else {
1485
- bodyParam = options.body;
1485
+ const bytes = new TextEncoder().encode(options.body);
1486
+ bodyParam = this.arrayBufferToBase64(
1487
+ bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
1488
+ );
1486
1489
  }
1487
1490
  }
1488
1491
  const response = await this.client.request(WEB_COMMANDS.fetch, {