http-parser-js
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -65,4 +65,4 @@ type ParserType = | ||
} | ||
export type OnHeadersCompleteParser<Mode_0_12 extends boolean = true> = Mode_0_12 extends true | ||
? (info: HeaderInfo)=> number | ||
export type OnHeadersCompleteParser<HEADER = HeaderObject, Mode_0_12 extends boolean = true> = Mode_0_12 extends true | ||
? (info: HeaderInfo<HEADER>)=> number | ||
: ( | ||
@@ -91,6 +91,6 @@ versionMajor: number, | ||
// Some handler stubs, needed for compatibility | ||
[HTTPParserConstructor.kOnHeaders]: OnHeadersParser | ||
[HTTPParserConstructor.kOnHeadersComplete]: OnHeadersCompleteParser | ||
[HTTPParserConstructor.kOnBody]: OnBodyParser | ||
[HTTPParserConstructor.kOnMessageComplete]: noop | ||
[HTTPParser.kOnHeaders]: OnHeadersParser | ||
[HTTPParser.kOnHeadersComplete]: OnHeadersCompleteParser | ||
[HTTPParser.kOnBody]: OnBodyParser | ||
[HTTPParser.kOnMessageComplete]: noop | ||
@@ -137,13 +137,13 @@ reinitialize: HTTPParserConstructor | ||
get onHeaders(): HTTPParser[HTTPParserConstructor.kOnHeaders] | ||
set onHeaders(to: OnHeadersParser): void | ||
get onHeaders(): OnHeadersParser | ||
set onHeaders(to: OnHeadersParser) | ||
get onHeadersComplete(): HTTPParser[HTTPParserConstructor.kOnHeadersComplete] | ||
set onHeadersComplete(to: OnHeadersCompleteParser): void | ||
get onHeadersComplete(): OnHeadersCompleteParser | ||
set onHeadersComplete(to: OnHeadersCompleteParser) | ||
get onBody(): HTTPParser[HTTPParserConstructor.kOnBody] | ||
set onBody(to: OnBodyParser): void | ||
get onBody(): OnBodyParser | ||
set onBody(to: OnBodyParser) | ||
get onMessageComplete(): HTTPParser[HTTPParserConstructor.kOnMessageComplete] | ||
set onMessageComplete(to: noop): void | ||
get onMessageComplete(): noop | ||
set onMessageComplete(to: noop) | ||
} | ||
@@ -150,0 +150,0 @@ |
{ | ||
"name": "http-parser-js", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "A pure JS HTTP parser for node.", | ||
@@ -5,0 +5,0 @@ "main": "http-parser.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25368