diff --git a/package.json b/package.json index dff8746..11be4e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cookies-next", - "version": "2.0.1", + "version": "2.0.2", "description": "Getting, setting and removing cookies on both client and server with next.js", "main": "lib/index.js", "type": "lib/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 1f693fc..9539fa1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ - import { serialize, parse } from 'cookie'; import { OptionsType, TmpCookiesObj, CookieValueTypes } from './types'; diff --git a/src/types.ts b/src/types.ts index 5d95a96..0c546d9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,10 +1,10 @@ -import{ CookieSerializeOptions } from 'cookie'; +import { CookieSerializeOptions } from 'cookie'; import { IncomingMessage, ServerResponse } from "http"; export interface OptionsType extends CookieSerializeOptions { res?: ServerResponse; req?: IncomingMessage & { - cookies:{ [key: string]: string; } + cookies?:{ [key: string]: string; } } }