Skip to content

Commit 5e8550a

Browse files
committed
bumping prettier to allow 'unknown' in catch block
1 parent 4c07bfd commit 5e8550a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"jest": "^24.9.0",
1515
"lambda-local": "^1.6.3",
1616
"node-fetch": "^2.6.1",
17-
"prettier": "^1.18.2",
17+
"prettier": "2.1.1",
1818
"ts-jest": "^24.1.0",
1919
"typescript": "^3.6.4"
2020
},

src/lambdas/random-get.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function handler(): Promise<RandomResponse | ErrorResponse> {
2222
statusCode: 200,
2323
body: payload,
2424
}
25-
} catch (e) {
25+
} catch (err: unknown) {
2626
return {
2727
statusCode: 500,
2828
message: 'Something went wrong',

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3393,10 +3393,10 @@ prettier-linter-helpers@^1.0.0:
33933393
dependencies:
33943394
fast-diff "^1.1.2"
33953395

3396-
prettier@^1.18.2:
3397-
version "1.18.2"
3398-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
3399-
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
3396+
prettier@2.1.1:
3397+
version "2.1.1"
3398+
resolved "https://extend-159581800400.d.codeartifact.us-east-1.amazonaws.com:443/npm/extend-npm/prettier/-/prettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6"
3399+
integrity sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw==
34003400

34013401
pretty-format@^24.9.0:
34023402
version "24.9.0"

0 commit comments

Comments
 (0)