@superhuman/fast64
Advanced tools
Comparing version 0.6.0 to 0.7.0
20
index.js
@@ -87,3 +87,3 @@ /* | ||
i = 0, | ||
enc = [, , , ]; | ||
enc0, enc1, enc2, enc3; | ||
@@ -102,13 +102,13 @@ if (!B64.lookup) { | ||
while (++position < len) { | ||
enc[0] = B64.lookup[s.charCodeAt(position)]; | ||
enc[1] = B64.lookup[s.charCodeAt(++position)]; | ||
buffer[i++] = (enc[0] << 2) | (enc[1] >> 4); | ||
enc[2] = B64.lookup[s.charCodeAt(++position)]; | ||
if (enc[2] === 64) | ||
enc0 = B64.lookup[s.charCodeAt(position)]; | ||
enc1 = B64.lookup[s.charCodeAt(++position)]; | ||
buffer[i++] = (enc0 << 2) | (enc1 >> 4); | ||
enc2 = B64.lookup[s.charCodeAt(++position)]; | ||
if (enc2 === 64) | ||
break; | ||
buffer[i++] = ((enc[1] & 15) << 4) | (enc[2] >> 2); | ||
enc[3] = B64.lookup[s.charCodeAt(++position)]; | ||
if (enc[3] === 64) | ||
buffer[i++] = ((enc1 & 15) << 4) | (enc2 >> 2); | ||
enc3 = B64.lookup[s.charCodeAt(++position)]; | ||
if (enc3 === 64) | ||
break; | ||
buffer[i++] = ((enc[2] & 3) << 6) | enc[3]; | ||
buffer[i++] = ((enc2 & 3) << 6) | enc3; | ||
} | ||
@@ -115,0 +115,0 @@ |
{ | ||
"name": "@superhuman/fast64", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"license": "Apache", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ConradIrwin/fast64", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386604
6