Skip to content

Commit

Permalink
Format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
n4bb12 committed Sep 19, 2023
1 parent 7d73e04 commit 6ad1ae9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/fastify-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { FastifyInstance } from "fastify"
// https://www.fastify.io/docs/latest/Serverless/#vercel
// https://vercel.com/docs/serverless-functions/supported-languages#using-typescript
//
export const createLambdaHandler: (server: FastifyInstance) => VercelApiHandler = (
server,
) => {
export const createLambdaHandler: (
server: FastifyInstance,
) => VercelApiHandler = (server) => {
return async (req: VercelRequest, res: VercelResponse) => {
await server.ready()
server.server.emit("request", req, res)
Expand Down
6 changes: 3 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { registerServeStatic } from "./fastify-static"
import { registerGitHubOAuth } from "./github-oauth"
import { Config } from "./types"

export const createLambdaProxyAuthHandler: (config: Config) => VercelApiHandler = (
config,
) => {
export const createLambdaProxyAuthHandler: (
config: Config,
) => VercelApiHandler = (config) => {
assert(config.cryptoSecret, "config.cryptoSecret", assert.string.nonEmpty)
assert(config.githubClientId, "config.githubClientId", assert.string.nonEmpty)
assert(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dist"
],
"scripts": {
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
"format": "prettier --write .",
"prepack": "tsc --project tsconfig.build.json",
"typecheck": "tsc --noEmit"
},
Expand Down
14 changes: 12 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@
color: #0a0d15;
padding: 1rem;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}
a {
color: inherit;
Expand Down
14 changes: 12 additions & 2 deletions static/user/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@
color: #0a0d15;
padding: 1rem;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}
</style>
</head>
Expand Down

0 comments on commit 6ad1ae9

Please sign in to comment.