From e440d00ba06b48d04e80eff50e8118b0d8a87b9a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:52:27 -0700 Subject: [PATCH] chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer (#17785) * chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer Bumps [prettier](https://github.com/prettier/prettier) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.3.0...2.3.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * fix formatting Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Starry --- explorer/package-lock.json | 14 ++++----- explorer/package.json | 2 +- explorer/src/providers/accounts/rewards.tsx | 5 ++-- explorer/src/providers/cluster.tsx | 5 ++-- .../providers/stats/solanaClusterStats.tsx | 29 ++++++++++--------- .../src/providers/transactions/details.tsx | 5 ++-- 6 files changed, 32 insertions(+), 28 deletions(-) diff --git a/explorer/package-lock.json b/explorer/package-lock.json index 1bd16e75d6..c1fbd2f8b6 100644 --- a/explorer/package-lock.json +++ b/explorer/package-lock.json @@ -40,7 +40,7 @@ "cross-fetch": "^3.1.4", "humanize-duration-ts": "^2.1.1", "node-sass": "^5.0.0", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "react": "^17.0.2", "react-chartjs-2": "^2.11.2", "react-countup": "^4.3.3", @@ -18573,9 +18573,9 @@ } }, "node_modules/prettier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", - "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz", + "integrity": "sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==", "bin": { "prettier": "bin-prettier.js" }, @@ -39868,9 +39868,9 @@ "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=" }, "prettier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", - "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz", + "integrity": "sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==" }, "pretty-bytes": { "version": "5.6.0", diff --git a/explorer/package.json b/explorer/package.json index e9183930e2..0d8000810e 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -36,7 +36,7 @@ "cross-fetch": "^3.1.4", "humanize-duration-ts": "^2.1.1", "node-sass": "^5.0.0", - "prettier": "^2.3.0", + "prettier": "^2.3.1", "react": "^17.0.2", "react-chartjs-2": "^2.11.2", "react-countup": "^4.3.3", diff --git a/explorer/src/providers/accounts/rewards.tsx b/explorer/src/providers/accounts/rewards.tsx index 4d8684bb34..4b3517ad05 100644 --- a/explorer/src/providers/accounts/rewards.tsx +++ b/explorer/src/providers/accounts/rewards.tsx @@ -46,8 +46,9 @@ function reconcile( } export const StateContext = React.createContext(undefined); -export const DispatchContext = - React.createContext(undefined); +export const DispatchContext = React.createContext( + undefined +); type RewardsProviderProps = { children: React.ReactNode }; diff --git a/explorer/src/providers/cluster.tsx b/explorer/src/providers/cluster.tsx index cdb1ddec27..c29ae62617 100644 --- a/explorer/src/providers/cluster.tsx +++ b/explorer/src/providers/cluster.tsx @@ -119,8 +119,9 @@ function parseQuery(query: URLSearchParams): Cluster { } type SetShowModal = React.Dispatch>; -const ModalContext = - React.createContext<[boolean, SetShowModal] | undefined>(undefined); +const ModalContext = React.createContext<[boolean, SetShowModal] | undefined>( + undefined +); const StateContext = React.createContext(undefined); const DispatchContext = React.createContext(undefined); diff --git a/explorer/src/providers/stats/solanaClusterStats.tsx b/explorer/src/providers/stats/solanaClusterStats.tsx index ca49596672..8672d0f22f 100644 --- a/explorer/src/providers/stats/solanaClusterStats.tsx +++ b/explorer/src/providers/stats/solanaClusterStats.tsx @@ -53,24 +53,25 @@ const initialDashboardInfo: DashboardInfo = { }; type SetActive = React.Dispatch>; -const StatsProviderContext = - React.createContext< - | { - setActive: SetActive; - setTimedOut: Function; - retry: Function; - active: boolean; - } - | undefined - >(undefined); +const StatsProviderContext = React.createContext< + | { + setActive: SetActive; + setTimedOut: Function; + retry: Function; + active: boolean; + } + | undefined +>(undefined); type DashboardState = { info: DashboardInfo }; -const DashboardContext = - React.createContext(undefined); +const DashboardContext = React.createContext( + undefined +); type PerformanceState = { info: PerformanceInfo }; -const PerformanceContext = - React.createContext(undefined); +const PerformanceContext = React.createContext( + undefined +); type Props = { children: React.ReactNode }; export function SolanaClusterStatsProvider({ children }: Props) { diff --git a/explorer/src/providers/transactions/details.tsx b/explorer/src/providers/transactions/details.tsx index 35227c2bc2..b65a7eb1db 100644 --- a/explorer/src/providers/transactions/details.tsx +++ b/explorer/src/providers/transactions/details.tsx @@ -19,8 +19,9 @@ type State = Cache.State
; type Dispatch = Cache.Dispatch
; export const StateContext = React.createContext(undefined); -export const DispatchContext = - React.createContext(undefined); +export const DispatchContext = React.createContext( + undefined +); type DetailsProviderProps = { children: React.ReactNode }; export function DetailsProvider({ children }: DetailsProviderProps) {