DEV: prettier 2.2.1 (#11862)

This commit is contained in:
Joffrey JAFFEUX
2021-01-27 12:39:20 +01:00
committed by GitHub
parent 7be556fc19
commit c6a1042950
117 changed files with 2495 additions and 2433 deletions

View File

@ -302,7 +302,7 @@ export function setup(helper) {
* http://www.opensource.org/licenses/bsd-license
*/
function md5cycle(x, k) {
var a = x[0],
let a = x[0],
b = x[1],
c = x[2],
d = x[3];
@ -406,14 +406,14 @@ function md51(s) {
// Converts the string to UTF-8 "bytes"
s = unescape(encodeURI(s));
var n = s.length,
let n = s.length,
state = [1732584193, -271733879, -1732584194, 271733878],
i;
for (i = 64; i <= s.length; i += 64) {
md5cycle(state, md5blk(s.substring(i - 64, i)));
}
s = s.substring(i - 64);
var tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
let tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
for (i = 0; i < s.length; i++) {
tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
}
@ -431,7 +431,7 @@ function md51(s) {
function md5blk(s) {
/* I figured global was faster. */
var md5blks = [],
let md5blks = [],
i; /* Andy King said do it this way. */
for (i = 0; i < 64; i += 4) {
md5blks[i >> 2] =
@ -443,10 +443,10 @@ function md5blk(s) {
return md5blks;
}
var hex_chr = "0123456789abcdef".split("");
let hex_chr = "0123456789abcdef".split("");
function rhex(n) {
var s = "",
let s = "",
j = 0;
for (; j < 4; j++) {
s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
@ -455,7 +455,7 @@ function rhex(n) {
}
function hex(x) {
for (var i = 0; i < x.length; i++) {
for (let i = 0; i < x.length; i++) {
x[i] = rhex(x[i]);
}
return x.join("");