Skip to content

Commit

Permalink
fix: optional options in setCookie function
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Jan 21, 2021
1 parent cb152f1 commit f3b87f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -4,6 +4,8 @@ dist
.DS_Store
*.log*

packages/**/README.md

.yarn/cache
.yarn/install-state.gz
.yarn/build-state.yml
2 changes: 1 addition & 1 deletion packages/nookies/src/index.ts
Expand Up @@ -49,7 +49,7 @@ export function setCookie(
| undefined,
name: string,
value: string,
options: cookie.CookieSerializeOptions,
options: cookie.CookieSerializeOptions = {},
) {
// SSR
if (ctx?.res?.getHeader && ctx.res.setHeader) {
Expand Down

0 comments on commit f3b87f8

Please sign in to comment.