Skip to content

Commit

Permalink
build(deps): bump prettier from 3.0.3 to 3.1.0 (#16939)
Browse files Browse the repository at this point in the history
Co-authored-by: Allo <[email protected]>
Co-authored-by: Sasha Sushko <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2023
1 parent b570f13 commit b0cdd99
Show file tree
Hide file tree
Showing 72 changed files with 412 additions and 431 deletions.
90 changes: 45 additions & 45 deletions files/es/glossary/base64/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ function b64ToUint6(nChr) {
return nChr > 64 && nChr < 91
? nChr - 65
: nChr > 96 && nChr < 123
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
}

function base64DecToArr(sBase64, nBlocksSize) {
Expand Down Expand Up @@ -169,14 +169,14 @@ function uint6ToB64(nUint6) {
return nUint6 < 26
? nUint6 + 65
: nUint6 < 52
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
}

function base64EncArr(aBytes) {
Expand Down Expand Up @@ -224,27 +224,27 @@ function UTF8ArrToStr(aBytes) {
aBytes[++nIdx] -
128
: nPart > 247 && nPart < 252 && nIdx + 4 < nLen /* five bytes */
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* four bytes */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* three bytes */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* two bytes */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* one byte */
nPart,
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* four bytes */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* three bytes */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* two bytes */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* one byte */
nPart,
);
}

Expand All @@ -265,14 +265,14 @@ function strToUTF8Arr(sDOMStr) {
nChr < 0x80
? 1
: nChr < 0x800
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
}

aBytes = new Uint8Array(nArrLen);
Expand Down
8 changes: 4 additions & 4 deletions files/es/web/api/window/scrolly/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
var x = supportPageOffset
? window.pageXOffset
: isCSS1Compat
? document.documentElement.scrollLeft
: document.body.scrollLeft;
? document.documentElement.scrollLeft
: document.body.scrollLeft;
var y = supportPageOffset
? window.pageYOffset
: isCSS1Compat
? document.documentElement.scrollTop
: document.body.scrollTop;
? document.documentElement.scrollTop
: document.body.scrollTop;
```

## Especificación
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ formas de _enviar_, y de **subir archivos**:
? this.contentType === "multipart\/form-data"
? 3
: this.contentType === "text\/plain"
? 2
: 1
? 2
: 1
: 0;
this.receiver = oTarget.action;
this.status = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ if (!Array.prototype.copyWithin) {
positiveT
? [target, stop - start, hold]
: positiveS
? [target, stop, hold]
: [target, start, hold],
? [target, stop, hold]
: [target, start, hold],
),
this.join(delimiter).split(delimiter).slice(zero, length)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ var docCookies = new Proxy(docCookies, {
return oTarget.setItem(sKey, vValue);
},
deleteProperty: function (oTarget, sKey) {
if (!sKey in oTarget) {
if ((!sKey) in oTarget) {
return false;
}
return oTarget.removeItem(sKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ var firstCheck = false,
access = firstCheck
? "Acceso Denegado"
: secondCheck
? "Acceso Denegado"
: "Acceso Permitido";
? "Acceso Denegado"
: "Acceso Permitido";

console.log(access); // muestra "Acceso Permitido"
```
Expand Down
4 changes: 2 additions & 2 deletions files/es/web/javascript/reference/template_literals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ let classes = "header";
classes += isLargeScreen()
? ""
: item.isCollapsed
? " icon-expander"
: " icon-collapser";
? " icon-expander"
: " icon-collapser";
```

En ES2015 con plantillas literales y sin anidamiento:
Expand Down
90 changes: 45 additions & 45 deletions files/fr/glossary/base64/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ function b64ToUint6(nChr) {
return nChr > 64 && nChr < 91
? nChr - 65
: nChr > 96 && nChr < 123
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
}

function base64DecToArr(sBase64, nBlocksSize) {
Expand Down Expand Up @@ -130,14 +130,14 @@ function uint6ToB64(nUint6) {
return nUint6 < 26
? nUint6 + 65
: nUint6 < 52
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
}

function base64EncArr(aBytes) {
Expand Down Expand Up @@ -187,27 +187,27 @@ function UTF8ArrToStr(aBytes) {
aBytes[++nIdx] -
128
: nPart > 247 && nPart < 252 && nIdx + 4 < nLen /* cinq octets */
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* quatre octets */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* trois octets */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* deux octets */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* un octet */
nPart,
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* quatre octets */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* trois octets */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* deux octets */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* un octet */
nPart,
);
}
return sView;
Expand All @@ -229,14 +229,14 @@ function strToUTF8Arr(sDOMStr) {
nChr < 0x80
? 1
: nChr < 0x800
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
}
aBytes = new Uint8Array(nArrLen);

Expand Down
10 changes: 4 additions & 6 deletions files/fr/learn/javascript/asynchronous/introducing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ function genererNbPremiers(quota) {
document.querySelector("#generer").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const nbPremiers = genererNbPremiers(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
});

document.querySelector("#recharger").addEventListener("click", () => {
Expand Down Expand Up @@ -177,9 +176,8 @@ function genererNbPremiers(quota) {
document.querySelector("#generer").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const nbPremiers = genererNbPremiers(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
});

document.querySelector("#recharger").addEventListener("click", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ function generatePrimes(quota) {
document.querySelector("#generate").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const primes = generatePrimes(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
});

document.querySelector("#reload").addEventListener("click", () => {
Expand Down Expand Up @@ -159,9 +158,8 @@ document.querySelector("#generate").addEventListener("click", () => {
// du message, on met à jour la zone de sortie avec un texte, indiquant aussi
// le quantité de nombres premiers générés.
worker.addEventListener("message", (message) => {
document.querySelector(
"#output",
).textContent = `Génération de ${message.data} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${message.data} nombres premiers terminée !`;
});

document.querySelector("#reload").addEventListener("click", () => {
Expand Down
12 changes: 6 additions & 6 deletions files/fr/web/api/event/eventphase/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ function onDivClick(e) {
e.eventPhase == 0
? "none"
: e.eventPhase == 1
? "capturing"
: e.eventPhase == 2
? "target"
: e.eventPhase == 3
? "bubbling"
: "error";
? "capturing"
: e.eventPhase == 2
? "target"
: e.eventPhase == 3
? "bubbling"
: "error";
const para = document.createElement("p");
para.textContent = `${e.currentTarget.id}; eventPhase: ${level}`;
divInfo.appendChild(para);
Expand Down
Loading

0 comments on commit b0cdd99

Please sign in to comment.