From f3b87f876ea342fb287ccbb11f44631db4f91462 Mon Sep 17 00:00:00 2001 From: maticzav Date: Thu, 21 Jan 2021 14:25:19 +0100 Subject: [PATCH] fix: optional options in setCookie function --- .gitignore | 2 ++ packages/nookies/src/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 635393ba..67da6c54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ dist .DS_Store *.log* +packages/**/README.md + .yarn/cache .yarn/install-state.gz .yarn/build-state.yml \ No newline at end of file diff --git a/packages/nookies/src/index.ts b/packages/nookies/src/index.ts index 94cad680..f32a5503 100644 --- a/packages/nookies/src/index.ts +++ b/packages/nookies/src/index.ts @@ -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) {