Skip to content

Commit 1f62763

Browse files
upgrade to cookie@1
1 parent 48b94da commit 1f62763

File tree

4 files changed

+8
-90
lines changed

4 files changed

+8
-90
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/engine.io/lib/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { EventEmitter } from "events";
66
import { Socket } from "./socket";
77
import debugModule from "debug";
88
import { serialize } from "cookie";
9+
import type { SerializeOptions } from "cookie";
910
import { Server as DEFAULT_WS_ENGINE } from "ws";
1011
import type {
1112
IncomingMessage,
1213
Server as HttpServer,
1314
ServerResponse,
1415
} from "http";
15-
import type { CookieSerializeOptions } from "./types/cookie";
1616
import type { CorsOptions, CorsOptionsDelegate } from "cors";
1717
import type { Duplex } from "stream";
1818
import { WebTransport } from "./transports/webtransport";
@@ -123,7 +123,7 @@ export interface ServerOptions {
123123
* might be used for sticky-session. Defaults to not sending any cookie.
124124
* @default false
125125
*/
126-
cookie?: (CookieSerializeOptions & { name: string }) | boolean;
126+
cookie?: (SerializeOptions & { name: string }) | boolean;
127127
/**
128128
* the options that will be forwarded to the cors module
129129
*/

packages/engine.io/lib/types/cookie.ts

Lines changed: 0 additions & 82 deletions
This file was deleted.

packages/engine.io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@types/node": ">=10.0.0",
3636
"accepts": "~1.3.4",
3737
"base64id": "2.0.0",
38-
"cookie": "~0.7.2",
38+
"cookie": "~1.0.2",
3939
"cors": "~2.8.5",
4040
"debug": "~4.3.1",
4141
"engine.io-parser": "~5.2.1",

0 commit comments

Comments
 (0)