Skip to content

Commit

Permalink
fix: use cookie-es to avoid esm bundling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 11, 2022
1 parent dd3c855 commit ceedbbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test": "vitest run"
},
"dependencies": {
"cookie": "^0.4.2",
"cookie-es": "^0.5.0",
"destr": "^1.1.0",
"radix3": "^0.1.1",
"ufo": "^0.7.11"
Expand All @@ -41,7 +41,6 @@
"autocannon": "latest",
"c8": "latest",
"connect": "latest",
"cookie-es": "latest",
"eslint": "latest",
"express": "latest",
"get-port": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/cookie.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IncomingMessage, ServerResponse } from 'http'
import { parse, serialize } from 'cookie'
import { parse, serialize } from 'cookie-es'
import type { CookieSerializeOptions } from '../types/cookie'
import { appendHeader } from './response'

Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ convert-source-map@~1.1.0:
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860"
integrity sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=

cookie-es@latest:
cookie-es@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-0.5.0.tgz#a6ad89923e68c542fc9e760b07aefa5ab020d719"
integrity sha512-RyZrFi6PNpBFbIaQjXDlFIhFVqV42QeKSZX1yQIl6ihImq6vcHNGMtqQ/QzY3RMPuYSkvsRwtnt5M9NeYxKt0g==
Expand All @@ -1593,7 +1593,7 @@ cookie-signature@1.0.6:
resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw=

cookie@0.4.2, cookie@^0.4.2:
cookie@0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==
Expand Down

0 comments on commit ceedbbc

Please sign in to comment.