Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 3.0.3 to 3.1.0 (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Nov 15, 2023
1 parent 47783ca commit 363da74
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 83 deletions.
28 changes: 15 additions & 13 deletions extensions/JeremyGamer13/tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@
return x === 0
? 0
: x === 1
? 1
: x < 0.5
? Math.pow(2, 20 * x - 10) / 2
: (2 - Math.pow(2, -20 * x + 10)) / 2;
? 1
: x < 0.5
? Math.pow(2, 20 * x - 10) / 2
: (2 - Math.pow(2, -20 * x + 10)) / 2;
}
default:
return 0;
Expand Down Expand Up @@ -178,27 +178,29 @@
return x === 0
? 0
: x === 1
? 1
: -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4);
? 1
: -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4);
}
case "out": {
const c4 = (2 * Math.PI) / 3;
return x === 0
? 0
: x === 1
? 1
: Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1;
? 1
: Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1;
}
case "in out": {
const c5 = (2 * Math.PI) / 4.5;
return x === 0
? 0
: x === 1
? 1
: x < 0.5
? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2
: (Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5)) / 2 +
1;
? 1
: x < 0.5
? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) /
2
: (Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5)) /
2 +
1;
}
default:
return 0;
Expand Down
22 changes: 11 additions & 11 deletions extensions/NOname-awa/cn-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,24 @@
String(Number2).slice(-j).charAt(0) == "2" && j >= 3
? "两"
: k == "0"
? j == 1
? ""
: i.slice(-1) == "零"
? ""
: String(Number2).slice(-1) == "0" &&
(j != 3 || String(Number2).charAt(2) == "0")
? " "
: "零"
: C_Number[k - 1]
? j == 1
? ""
: i.slice(-1) == "零"
? ""
: String(Number2).slice(-1) == "0" &&
(j != 3 || String(Number2).charAt(2) == "0")
? " "
: "零"
: C_Number[k - 1]
);
i =
String(i) +
String(
i.slice(-1) == "零" || i.slice(-1) == " "
? ""
: unit[j - 1] == "个"
? ""
: unit[j - 1]
? ""
: unit[j - 1]
);
} else {
if (j != 1) {
Expand Down
46 changes: 23 additions & 23 deletions extensions/TheShovel/LZ-String.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
return null == r
? ""
: "" == r
? null
: i._decompress(r.length, 32, function (n) {
return t(o, r.charAt(n));
});
? null
: i._decompress(r.length, 32, function (n) {
return t(o, r.charAt(n));
});
},
compressToUTF16: function (o) {
return null == o
Expand All @@ -79,10 +79,10 @@
return null == r
? ""
: "" == r
? null
: i._decompress(r.length, 16384, function (o) {
return r.charCodeAt(o) - 32;
});
? null
: i._decompress(r.length, 16384, function (o) {
return r.charCodeAt(o) - 32;
});
},
compressToUint8Array: function (r) {
for (
Expand Down Expand Up @@ -121,11 +121,11 @@
return null == r
? ""
: "" == r
? null
: ((r = r.replace(/ /g, "+")),
i._decompress(r.length, 32, function (o) {
return t(n, r.charAt(o));
}));
? null
: ((r = r.replace(/ /g, "+")),
i._decompress(r.length, 32, function (o) {
return t(n, r.charAt(o));
}));
},
compress: function (o) {
return i._compress(o, 16, function (o) {
Expand Down Expand Up @@ -231,10 +231,10 @@
return null == r
? ""
: "" == r
? null
: i._decompress(r.length, 32768, function (o) {
return r.charCodeAt(o);
});
? null
: i._decompress(r.length, 32768, function (o) {
return r.charCodeAt(o);
});
},
_decompress: function (o, n, e) {
var t,
Expand Down Expand Up @@ -336,12 +336,12 @@
// @ts-ignore
})
: "undefined" != typeof module && null != module
? (module.exports = LZString)
: "undefined" != typeof angular &&
null != angular &&
angular.module("LZString", []).factory("LZString", function () {
return LZString;
});
? (module.exports = LZString)
: "undefined" != typeof angular &&
null != angular &&
angular.module("LZString", []).factory("LZString", function () {
return LZString;
});
/* eslint-enable */

class lzcompress {
Expand Down
16 changes: 8 additions & 8 deletions extensions/box2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -2124,13 +2124,13 @@
dX > 0
? (aabb.upperBound.x - this.p1.x) / dX
: dX < 0
? (aabb.lowerBound.x - this.p1.x) / dX
: Number.POSITIVE_INFINITY,
? (aabb.lowerBound.x - this.p1.x) / dX
: Number.POSITIVE_INFINITY,
dY > 0
? (aabb.upperBound.y - this.p1.y) / dY
: dY < 0
? (aabb.lowerBound.y - this.p1.y) / dY
: Number.POSITIVE_INFINITY
? (aabb.lowerBound.y - this.p1.y) / dY
: Number.POSITIVE_INFINITY
);
this.p2.x = this.p1.x + dX * lambda;
this.p2.y = this.p1.y + dY * lambda;
Expand All @@ -2142,13 +2142,13 @@
dX > 0
? (aabb.upperBound.x - this.p2.x) / dX
: dX < 0
? (aabb.lowerBound.x - this.p2.x) / dX
: Number.POSITIVE_INFINITY,
? (aabb.lowerBound.x - this.p2.x) / dX
: Number.POSITIVE_INFINITY,
dY > 0
? (aabb.upperBound.y - this.p2.y) / dY
: dY < 0
? (aabb.lowerBound.y - this.p2.y) / dY
: Number.POSITIVE_INFINITY
? (aabb.lowerBound.y - this.p2.y) / dY
: Number.POSITIVE_INFINITY
);
this.p1.x = this.p2.x + dX * lambda;
this.p1.y = this.p2.y + dY * lambda;
Expand Down
4 changes: 2 additions & 2 deletions extensions/obviousAlexC/SensingPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
typeof webkitSpeechRecognition !== "undefined"
? window.webkitSpeechRecognition
: typeof window.SpeechRecognition !== "undefined"
? window.SpeechRecognition
: null;
? window.SpeechRecognition
: null;

let recognizedSpeech = "";
let recording = false;
Expand Down
4 changes: 2 additions & 2 deletions extensions/obviousAlexC/newgroundsIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@
typeof options["social"] === "undefined"
? false
: options["social"]
? true
: false,
? true
: false,
skip: typeof options["skip"] !== "number" ? 0 : options["skip"],
limit: typeof options["limit"] !== "number" ? 10 : options["limit"],
};
Expand Down
16 changes: 8 additions & 8 deletions extensions/true-fantom/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,35 +552,35 @@
Number(WIDTH) < 100
? 100
: Number(WIDTH) > window.screen.width
? window.screen.width
: Number(WIDTH)
? window.screen.width
: Number(WIDTH)
}`;
params += isNaN(HEIGHT)
? ""
: `,height=${
Number(HEIGHT) < 100
? 100
: Number(HEIGHT) > window.screen.height
? window.screen.height
: Number(HEIGHT)
? window.screen.height
: Number(HEIGHT)
}`;
params += isNaN(LEFT)
? ""
: `,left=${
Number(LEFT) < 0
? 0
: Number(LEFT) > window.screen.width
? window.screen.width
: Number(LEFT)
? window.screen.width
: Number(LEFT)
}`;
params += isNaN(TOP)
? ""
: `,top=${
Number(TOP) < 0
? 0
: Number(TOP) > window.screen.height
? window.screen.height
: Number(TOP)
? window.screen.height
: Number(TOP)
}`;
Scratch.openWindow(String(USER_URL), params);
}
Expand Down
20 changes: 10 additions & 10 deletions extensions/true-fantom/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
return isObject(val)
? val
: isArray(val)
? val.reduce(
(array, currentValue, currentIndex) => ({
...array,
[currentIndex + 1]: currentValue,
}),
{}
)
: { 1: val };
? val.reduce(
(array, currentValue, currentIndex) => ({
...array,
[currentIndex + 1]: currentValue,
}),
{}
)
: { 1: val };
};

const dataValues = (val) => {
Expand Down Expand Up @@ -551,8 +551,8 @@
redat.global
? data
: Object.keys(data)[0]
? { [Object.keys(data)[0]]: Object.values(data)[0] }
: {}
? { [Object.keys(data)[0]]: Object.values(data)[0] }
: {}
);
case "map":
data = Array.from(str.matchAll(gredat)).map((val) => [
Expand Down
4 changes: 2 additions & 2 deletions extensions/turboloader/audiostream.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@
? 0.1
: Math.abs(VAL) / 700
: VAL > 700
? 15
: VAL / 50 + 1;
? 15
: VAL / 50 + 1;
}

am_setvolume({ VAL }, util) {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": "^8.53.0",
"espree": "^9.6.1",
"esquery": "^1.5.0",
"prettier": "^3.0.3"
"prettier": "^3.1.0"
},
"private": true
}

0 comments on commit 363da74

Please sign in to comment.