Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jul 27, 2022
1 parent 50b1f1e commit f35d193
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/pages/docs/apis/access-control.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If access is **denied** due to any of the access control methods, the following
Operation-level access control lets you control which operations can be accessed by a user based on the `session` and `context`.
Individual functions can be provided for each of the operations.

?> Each operation type *defaults to public* unless configured.
?> Each operation type _defaults to public_ unless configured.

!> These functions must return `true` if the operation is allowed, or `false` if it is not allowed.

Expand Down Expand Up @@ -93,7 +93,7 @@ Filter-level access control lets you restrict which items can be operated on by
In general, the filter access control functions will return GraphQL filters.
They can also return boolean values `true` or `false` to match or exclude all items.

?> Each `filter` type *defaults to an empty filter*, unless configured.
?> Each `filter` type _defaults to an empty filter_, unless configured.

```typescript
import { config, list } from '@keystone-6/core';
Expand Down Expand Up @@ -138,7 +138,7 @@ Individual functions can be provided for each of the operations, with each funct
- the **input data** of the mutation (for `create` and `update` operations), and/or
- the **existing item** in the database (for `update` and `delete` operations).

?> Each `item` access type *defaults to public* unless configured.
?> Each `item` access type _defaults to public_ unless configured.

!> These functions must return `true` if the operation is allowed, or `false` if it is not allowed.

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/apis/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ S3 options:
- `pathPrefix`: The prefix for the file, used to set the subfolder of your bucket files will be stored in.
- `endpoint`: The endpoint to use - if provided, this endpoint will be used instead of the default amazon s3 endpoint
- `forcePathStyle`: Force the old pathstyle of using the bucket name after the host
- `signed.expiry`: Use S3 URL signing to keep S3 assets private. `expiry` is in seconds
- `signed.expiry`: Use S3 URL signing to keep S3 assets private. `expiry` is in seconds

```typescript
import { config } from '@keystone-6/core';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/releases/2022-06-30.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Keystone now supports MySQL by setting `mysql` in your `db.provider` [see pull r
- Fixes the generation of an invalid Prisma schema when `{field}.isIndexed: true` and `{field}.db.map` are set - [#7666](https://github.com/keystonejs/keystone/pull/7666) Thanks [@TonnyORG](https://github.com/TonnyORG)!

## Acknowledgements <Emoji symbol="💙" alt="Blue heart" />

Big shoutout to the following community members for their help in improving our documentation with their contributions:

- [#7665](https://github.com/keystonejs/keystone/pull/7665) - [@EvonuX](https://github.com/EvonuX)
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-session-validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ export default myAuth(

## Try it out in CodeSandbox 🧪

You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL https://githubbox.com/keystonejs/keystone/tree/main/examples/custom-session-validation. You can also fork this sandbox to make your own changes.
You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL <https://githubbox.com/keystonejs/keystone/tree/main/examples/custom-session-validation>. You can also fork this sandbox to make your own changes.
2 changes: 1 addition & 1 deletion examples/rest-api/routes/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { Context } from '.keystone/types';

export async function getTasks(req: Request, res: Response) {
// This was added by the context middleware in ../keystone.ts
const { context } = req as (typeof req & { context: Context });
const { context } = req as typeof req & { context: Context };

// Let's map the `complete` query param to a where filter
let isComplete;
Expand Down

0 comments on commit f35d193

Please sign in to comment.