From 0fbf8c3cfaf685f927c43fd646618ade8a48a6bd Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 5 Jan 2022 10:47:36 -0800
Subject: [PATCH] Bump prettier from 2.4.1 to 2.5.1 in /desktop (#3232)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Summary:
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.1.
Release notes
Sourced from prettier's releases.
2.5.1
🔗 Changelog
2.5.0
diff
🔗 Release note
Changelog
Sourced from prettier's changelog.
2.5.1
diff
Improve formatting for empty tuple types (#11884 by @​sosukesuzuki)
// Input
type Foo =
Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
? Foo3
: Foo4;
// Prettier 2.5.0
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
]
? Foo3
: Foo4;
// Prettier 2.5.0 (tailingCommma = all)
// Invalid TypeScript code
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
,
]
? Foo3
: Foo4;
// Prettier 2.5.1
type Foo =
Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
? Foo3
: Foo4;
Fix compatibility with Jest inline snapshot test (#11892 by @​fisker)
A internal change in Prettier@v2.5.0 accidentally breaks the Jest inline snapshot test.
Support Glimmer's named blocks (#11899 by @​duailibe)
Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler.
See: Glimmer's named blocks.
// Input
</tr></table>
... (truncated)
Commits
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request resolved: https://github.com/facebook/flipper/pull/3232
Reviewed By: lawrencelomax
Differential Revision: D33403866
Pulled By: passy
fbshipit-source-id: 184b3db11f10dc34500c01e6a11790b89032dba4
---
desktop/package.json | 2 +-
desktop/plugins/public/cpu/index.tsx | 34 +++++++++++++++-------------
desktop/yarn.lock | 8 +++----
3 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/desktop/package.json b/desktop/package.json
index be8910b65..75cf3d749 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -96,7 +96,7 @@
"jest-fetch-mock": "^3.0.3",
"less": "^4.1.2",
"patch-package": "^6.4.7",
- "prettier": "^2.4.1",
+ "prettier": "^2.5.1",
"pretty-format": "^27.4.2",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
diff --git a/desktop/plugins/public/cpu/index.tsx b/desktop/plugins/public/cpu/index.tsx
index ec553d7bc..40e0516d3 100644
--- a/desktop/plugins/public/cpu/index.tsx
+++ b/desktop/plugins/public/cpu/index.tsx
@@ -87,23 +87,25 @@ export function devicePlugin(client: PluginClient<{}, {}>) {
displayCPUDetail: true,
});
- const updateCoreFrequency: (core: number, type: string) => Promise =
- async (core: number, type: string) => {
- const output = await executeShell(
- 'cat /sys/devices/system/cpu/cpu' + core + '/cpufreq/' + type,
- );
- cpuState.update((draft) => {
- const newFreq = isNormalInteger(output) ? parseInt(output, 10) : -1;
- // update table only if frequency changed
- if (draft.cpuFreq[core][type] != newFreq) {
- draft.cpuFreq[core][type] = newFreq;
- if (type == 'scaling_cur_freq' && draft.cpuFreq[core][type] < 0) {
- // cannot find current freq means offline
- draft.cpuFreq[core][type] = -2;
- }
+ const updateCoreFrequency: (
+ core: number,
+ type: string,
+ ) => Promise = async (core: number, type: string) => {
+ const output = await executeShell(
+ 'cat /sys/devices/system/cpu/cpu' + core + '/cpufreq/' + type,
+ );
+ cpuState.update((draft) => {
+ const newFreq = isNormalInteger(output) ? parseInt(output, 10) : -1;
+ // update table only if frequency changed
+ if (draft.cpuFreq[core][type] != newFreq) {
+ draft.cpuFreq[core][type] = newFreq;
+ if (type == 'scaling_cur_freq' && draft.cpuFreq[core][type] < 0) {
+ // cannot find current freq means offline
+ draft.cpuFreq[core][type] = -2;
}
- });
- };
+ }
+ });
+ };
const updateAvailableFrequencies: (core: number) => Promise = async (
core: number,
diff --git a/desktop/yarn.lock b/desktop/yarn.lock
index a62f165c9..73d55425f 100644
--- a/desktop/yarn.lock
+++ b/desktop/yarn.lock
@@ -9587,10 +9587,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
-prettier@^2.4.1:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
- integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
+prettier@^2.5.1:
+ version "2.5.1"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
+ integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
pretty-format@^26.0.0, pretty-format@^26.6.2:
version "26.6.2"