Merge pull request #10588 from backstage/dependabot/npm_and_yarn/prettier-2.6.2
build(deps-dev): bump prettier from 2.5.1 to 2.6.2
This commit is contained in:
+1
-1
@@ -109,4 +109,4 @@ _If you're using Backstage in your organization, please try to add your company
|
||||
| [Bonial International GmbH](https://www.bonial.com/) | [@pjungermann](https://github.com/pjungermann) | Centralized developer portal with software catalog, tech docs, templates, and more. |
|
||||
| [Beez Innovation Labs Pvt. Ltd](https://www.beezlabs.com/) | [Karthikeyan Venkatesan](https://github.com/karthikeyan23) | Developer portal with software catalog, scaffolding, tech docs, templates, and infra. |
|
||||
| [Agorapulse](https://www.agorapulse.com/) | [@jvdrean](https://github.com/jvdrean) | Developer portal with software catalog, documentation, monitoring, runbooks, tech radar and more. |
|
||||
| [Wistia](https://wistia.com/) | [@qrush](https://github.com/qrush), [@okize](https://github.com/okize) | Internal Developer Portal, service catalog, tech docs and more |
|
||||
| [Wistia](https://wistia.com/) | [@qrush](https://github.com/qrush), [@okize](https://github.com/okize) | Internal Developer Portal, service catalog, tech docs and more |
|
||||
|
||||
@@ -22,8 +22,9 @@ import { AppContextProvider } from './AppContext';
|
||||
|
||||
describe('v1 consumer', () => {
|
||||
function useMockAppV1(): AppContextV1 {
|
||||
const impl =
|
||||
useVersionedContext<{ 1: AppContextV1 }>('app-context')?.atVersion(1);
|
||||
const impl = useVersionedContext<{ 1: AppContextV1 }>(
|
||||
'app-context',
|
||||
)?.atVersion(1);
|
||||
if (!impl) {
|
||||
throw new Error('no impl');
|
||||
}
|
||||
|
||||
@@ -27,8 +27,9 @@ import {
|
||||
import { RouteResolver } from './RouteResolver';
|
||||
import { BackstageRouteObject } from './types';
|
||||
|
||||
const RoutingContext =
|
||||
createVersionedContext<{ 1: RouteResolver }>('routing-context');
|
||||
const RoutingContext = createVersionedContext<{ 1: RouteResolver }>(
|
||||
'routing-context',
|
||||
);
|
||||
|
||||
type ProviderProps = {
|
||||
routePaths: Map<RouteRef, string>;
|
||||
|
||||
@@ -23,8 +23,9 @@ import { AppContext as AppContextV1 } from './types';
|
||||
* @public
|
||||
*/
|
||||
export const useApp = (): AppContextV1 => {
|
||||
const versionedContext =
|
||||
useVersionedContext<{ 1: AppContextV1 }>('app-context');
|
||||
const versionedContext = useVersionedContext<{ 1: AppContextV1 }>(
|
||||
'app-context',
|
||||
);
|
||||
if (!versionedContext) {
|
||||
throw new Error('App context is not available');
|
||||
}
|
||||
|
||||
@@ -86,8 +86,9 @@ export function useRouteRef<Params extends AnyParams>(
|
||||
| ExternalRouteRef<Params, any>,
|
||||
): RouteFunc<Params> | undefined {
|
||||
const sourceLocation = useLocation();
|
||||
const versionedContext =
|
||||
useVersionedContext<{ 1: RouteResolver }>('routing-context');
|
||||
const versionedContext = useVersionedContext<{ 1: RouteResolver }>(
|
||||
'routing-context',
|
||||
);
|
||||
if (!versionedContext) {
|
||||
throw new Error('Routing context is not available');
|
||||
}
|
||||
|
||||
@@ -32,8 +32,9 @@ export type EntityLoadingStatus<TEntity extends Entity = Entity> = {
|
||||
// This context has support for multiple concurrent versions of this package.
|
||||
// It is currently used in parallel with the old context in order to provide
|
||||
// a smooth transition, but will eventually be the only context we use.
|
||||
const NewEntityContext =
|
||||
createVersionedContext<{ 1: EntityLoadingStatus }>('entity-context');
|
||||
const NewEntityContext = createVersionedContext<{ 1: EntityLoadingStatus }>(
|
||||
'entity-context',
|
||||
);
|
||||
|
||||
/**
|
||||
* Properties for the AsyncEntityProvider component.
|
||||
@@ -104,8 +105,9 @@ export const EntityProvider = (props: EntityProviderProps) => (
|
||||
export function useEntity<TEntity extends Entity = Entity>(): {
|
||||
entity: TEntity;
|
||||
} {
|
||||
const versionedHolder =
|
||||
useVersionedContext<{ 1: EntityLoadingStatus }>('entity-context');
|
||||
const versionedHolder = useVersionedContext<{ 1: EntityLoadingStatus }>(
|
||||
'entity-context',
|
||||
);
|
||||
|
||||
if (!versionedHolder) {
|
||||
throw new Error('Entity context is not available');
|
||||
@@ -133,8 +135,9 @@ export function useEntity<TEntity extends Entity = Entity>(): {
|
||||
export function useAsyncEntity<
|
||||
TEntity extends Entity = Entity,
|
||||
>(): EntityLoadingStatus<TEntity> {
|
||||
const versionedHolder =
|
||||
useVersionedContext<{ 1: EntityLoadingStatus }>('entity-context');
|
||||
const versionedHolder = useVersionedContext<{ 1: EntityLoadingStatus }>(
|
||||
'entity-context',
|
||||
);
|
||||
|
||||
if (!versionedHolder) {
|
||||
throw new Error('Entity context is not available');
|
||||
|
||||
@@ -20364,9 +20364,9 @@ prettier@^1.16.4, prettier@^1.19.1:
|
||||
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
|
||||
|
||||
prettier@^2.2.1:
|
||||
version "2.5.1"
|
||||
resolved "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
|
||||
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
|
||||
version "2.6.2"
|
||||
resolved "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
|
||||
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==
|
||||
|
||||
pretty-bytes@^5.3.0, pretty-bytes@^5.6.0:
|
||||
version "5.6.0"
|
||||
|
||||
Reference in New Issue
Block a user