Skip to content

Commit 6ad1ae9

Browse files
committed
Format with prettier
1 parent 7d73e04 commit 6ad1ae9

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

lib/fastify-lambda.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { FastifyInstance } from "fastify"
55
// https://www.fastify.io/docs/latest/Serverless/#vercel
66
// https://vercel.com/docs/serverless-functions/supported-languages#using-typescript
77
//
8-
export const createLambdaHandler: (server: FastifyInstance) => VercelApiHandler = (
9-
server,
10-
) => {
8+
export const createLambdaHandler: (
9+
server: FastifyInstance,
10+
) => VercelApiHandler = (server) => {
1111
return async (req: VercelRequest, res: VercelResponse) => {
1212
await server.ready()
1313
server.server.emit("request", req, res)

lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { registerServeStatic } from "./fastify-static"
88
import { registerGitHubOAuth } from "./github-oauth"
99
import { Config } from "./types"
1010

11-
export const createLambdaProxyAuthHandler: (config: Config) => VercelApiHandler = (
12-
config,
13-
) => {
11+
export const createLambdaProxyAuthHandler: (
12+
config: Config,
13+
) => VercelApiHandler = (config) => {
1414
assert(config.cryptoSecret, "config.cryptoSecret", assert.string.nonEmpty)
1515
assert(config.githubClientId, "config.githubClientId", assert.string.nonEmpty)
1616
assert(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dist"
2323
],
2424
"scripts": {
25-
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
25+
"format": "prettier --write .",
2626
"prepack": "tsc --project tsconfig.build.json",
2727
"typecheck": "tsc --noEmit"
2828
},

static/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@
1616
color: #0a0d15;
1717
padding: 1rem;
1818
margin: 0;
19-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
20-
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
19+
font-family:
20+
-apple-system,
21+
BlinkMacSystemFont,
22+
Segoe UI,
23+
Roboto,
24+
Oxygen,
25+
Ubuntu,
26+
Cantarell,
27+
Fira Sans,
28+
Droid Sans,
29+
Helvetica Neue,
30+
sans-serif;
2131
}
2232
a {
2333
color: inherit;

static/user/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@
1616
color: #0a0d15;
1717
padding: 1rem;
1818
margin: 0;
19-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
20-
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
19+
font-family:
20+
-apple-system,
21+
BlinkMacSystemFont,
22+
Segoe UI,
23+
Roboto,
24+
Oxygen,
25+
Ubuntu,
26+
Cantarell,
27+
Fira Sans,
28+
Droid Sans,
29+
Helvetica Neue,
30+
sans-serif;
2131
}
2232
</style>
2333
</head>

0 commit comments

Comments
 (0)