@solana/kit 8.0.0 → 8.0.1-canary-20260824185106

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.
@@ -1693,6 +1693,14 @@ this.globalThis.solanaWeb3 = (function (exports) {
1693
1693
  return output;
1694
1694
  }
1695
1695
  var alphabet3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1696
+ var MAX_BYTES_PER_CHAR_CODE_CALL = 32768;
1697
+ function getBinaryString(bytes) {
1698
+ let binaryString = "";
1699
+ for (let offset = 0; offset < bytes.length; offset += MAX_BYTES_PER_CHAR_CODE_CALL) {
1700
+ binaryString += String.fromCharCode(...bytes.subarray(offset, offset + MAX_BYTES_PER_CHAR_CODE_CALL));
1701
+ }
1702
+ return binaryString;
1703
+ }
1696
1704
  var getBase64Encoder = () => {
1697
1705
  {
1698
1706
  return createEncoder({
@@ -1727,8 +1735,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
1727
1735
  {
1728
1736
  return createDecoder({
1729
1737
  read(bytes, offset = 0) {
1730
- const slice = bytes.slice(offset);
1731
- const value = btoa(String.fromCharCode(...slice));
1738
+ const value = btoa(getBinaryString(bytes.subarray(offset)));
1732
1739
  return [value, bytes.length];
1733
1740
  }
1734
1741
  });
@@ -10664,7 +10671,7 @@ ${lastLines.map((line) => ` > ${line}
10664
10671
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
10665
10672
  ...{
10666
10673
  // Keep these headers lowercase so they will override any user-supplied headers above.
10667
- "solana-client": `js/${"8.0.0"}`
10674
+ "solana-client": `js/${"8.0.1-canary-20260824185106"}`
10668
10675
  }
10669
10676
  }
10670
10677
  }),