Skip to content

Commit 178138c

Browse files
fix ci
1 parent 8fe3c39 commit 178138c

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

packages/engine.io/lib/contrib/cookie.types.d.ts renamed to packages/engine.io/lib/contrib/types.cookie.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -115,48 +115,3 @@ export interface CookieSerializeOptions {
115115
*/
116116
secure?: boolean | undefined;
117117
}
118-
119-
/**
120-
* Additional parsing options
121-
*/
122-
export interface CookieParseOptions {
123-
/**
124-
* Specifies a function that will be used to decode a cookie's value. Since
125-
* the value of a cookie has a limited character set (and must be a simple
126-
* string), this function can be used to decode a previously-encoded cookie
127-
* value into a JavaScript string or other object.
128-
*
129-
* The default function is the global `decodeURIComponent`, which will decode
130-
* any URL-encoded sequences into their byte representations.
131-
*
132-
* *Note* if an error is thrown from this function, the original, non-decoded
133-
* cookie value will be returned as the cookie's value.
134-
*/
135-
decode?(value: string): string;
136-
}
137-
138-
/**
139-
* Parse an HTTP Cookie header string and returning an object of all cookie
140-
* name-value pairs.
141-
*
142-
* @param str the string representing a `Cookie` header value
143-
* @param [options] object containing parsing options
144-
*/
145-
export function parse(
146-
str: string,
147-
options?: CookieParseOptions,
148-
): Record<string, string>;
149-
150-
/**
151-
* Serialize a cookie name-value pair into a `Set-Cookie` header string.
152-
*
153-
* @param name the name for the cookie
154-
* @param value value to set the cookie to
155-
* @param [options] object containing serialization options
156-
* @throws {TypeError} when `maxAge` options is invalid
157-
*/
158-
export function serialize(
159-
name: string,
160-
value: string,
161-
options?: CookieSerializeOptions,
162-
): string;

packages/engine.io/lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { Duplex } from "stream";
1717
import { WebTransport } from "./transports/webtransport";
1818
import { createPacketDecoderStream } from "engine.io-parser";
1919
import type { EngineRequest } from "./transport";
20-
import { CookieSerializeOptions } from "./contrib/cookie.types";
20+
import type { CookieSerializeOptions } from "./contrib/types.cookie";
2121

2222
const debug = debugModule("engine");
2323

0 commit comments

Comments
 (0)