Skip to content

Commit

Permalink
Upgrade all dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Oct 8, 2021
1 parent b7b6372 commit 45e67fc
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 74 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
},
"devDependencies": {
"@tsconfig/node14": "^1.0.1",
"@types/content-type": "^1.1.3",
"@types/content-type": "^1.1.5",
"@types/node": "^14.17.0",
"esbuild-register": "^2.6.0",
"esbuild-register": "^3.0.0",
"node-dev": "^7.0.0",
"prettier": "^2.3.1",
"prettier-plugin-organize-imports": "^2.2.0",
"prettier-plugin-pkg": "^0.9.0",
"ts-node": "^10.0.0",
"typescript": "^4.3.4"
"prettier": "^2.4.1",
"prettier-plugin-organize-imports": "^2.3.4",
"prettier-plugin-pkg": "^0.10.0",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
}
}
132 changes: 68 additions & 64 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/zap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function serve(handler: Handler, options: ServeOptions = {}) {
const serverRequest = requestFromHTTP(req, options)
const serverResponse = responseFromHTTP(res)
await handler(serverRequest, serverResponse, async (_, res) => notFound(res))
} catch (error) {
} catch (error: any) {
if (options.onError) await options.onError(error)
else if (!res.writableEnded) sendError(res, error)
}
Expand Down Expand Up @@ -102,7 +102,7 @@ export async function buffer(req: ServerRequest, {limit = '1mb', encoding}: Requ
const body = Buffer.from(await getRawBody(req as any, {limit, length, encoding}))
requestBodyMap.set(req, body)
return body
} catch (error) {
} catch (error: any) {
if (error.type === 'entity.too.large') {
throw createError(413, `Body exceeded ${limit} limit`, error)
}
Expand All @@ -118,7 +118,7 @@ export async function json(req: ServerRequest, options: RequestBodyOptions = {})
return await text(req, options).then((body) => {
try {
return JSON.parse(body)
} catch (error) {
} catch (error: any) {
throw createError(400, 'Invalid JSON', error)
}
})
Expand Down

0 comments on commit 45e67fc

Please sign in to comment.