Skip to content

Commit

Permalink
consent-cookies: Update cookie dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ac-martin committed Nov 8, 2024
1 parent 2bd8cfa commit f16c23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/consent-cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
},
"devDependencies": {
"@types/connect": "3.4.38",
"@types/cookie": "0.6.0",
"@types/cryptr": "4.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"ts-jest": "29.2.5",
"typescript": "4.9.5"
},
"dependencies": {
"cookie": "^0.7.2",
"cookie": "^1.0.1",
"cryptr": "^6.3.0"
}
}
4 changes: 2 additions & 2 deletions lib/consent-cookies/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CookieSerializeOptions } from 'cookie';
import type { SerializeOptions } from 'cookie';
import type { NextFunction } from 'connect';
import type { IncomingMessage as _Request, ServerResponse as _Response } from 'node:http';

export type CookieOptions = Omit<CookieSerializeOptions, 'encode'>;
export type CookieOptions = Omit<SerializeOptions, 'encode'>;

export type SetCookie = (this: Response, name: string, value: any, options?: Omit<CookieOptions, 'httpOnly'>) => void;
export type SetCookieConsent = (this: ResponseFull, value: string[]) => void;
Expand Down

1 comment on commit f16c23a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.