Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-parser-js

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-parser-js - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

28

http-parser.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc