@debridge-finance/solana-utils 5.3.1 → 5.3.2
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/browser/index.js
CHANGED
|
@@ -11841,8 +11841,12 @@ function base$1 (ALPHABET) {
|
|
|
11841
11841
|
var b256 = new Uint8Array(size);
|
|
11842
11842
|
// Process the characters.
|
|
11843
11843
|
while (psz < source.length) {
|
|
11844
|
+
// Find code of next character
|
|
11845
|
+
var charCode = source.charCodeAt(psz);
|
|
11846
|
+
// Base map can not be indexed using char code
|
|
11847
|
+
if (charCode > 255) { return }
|
|
11844
11848
|
// Decode character
|
|
11845
|
-
var carry = BASE_MAP[
|
|
11849
|
+
var carry = BASE_MAP[charCode];
|
|
11846
11850
|
// Invalid character
|
|
11847
11851
|
if (carry === 255) { return }
|
|
11848
11852
|
var i = 0;
|