Socket
Socket
Sign inDemoInstall

http2

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2 - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

.npmignore

6

HISTORY.md
Version history
===============
### 2.3.0 (2014-03-12) ###
* Upgrade to the latest draft: [draft-ietf-httpbis-http2-10]
[draft-ietf-httpbis-http2-10]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-10
### 2.2.0 (2013-12-25) ###

@@ -5,0 +11,0 @@

13

lib/http.js

@@ -124,3 +124,3 @@ // Public API

// [2]: http://nodejs.org/api/http.html
// [3]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3.2
// [3]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-10#section-8.1.3.2
// [expect-continue]: https://github.com/http2/http2-spec/issues/18

@@ -140,2 +140,3 @@ // [connect]: https://github.com/http2/http2-spec/issues/230

var Endpoint = require('http2-protocol').Endpoint;
var implementedVersion = require('http2-protocol').ImplementedVersion;
var http = require('http');

@@ -158,6 +159,2 @@ var https = require('https');

// The implemented version of the HTTP/2 specification is [draft 09][1].
// [1]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-09
var implementedVersion = 'HTTP-draft-09/2.0';
// When doing NPN/ALPN negotiation, HTTP/1.1 is used as fallback

@@ -213,3 +210,3 @@ var supportedProtocols = [implementedVersion, 'http/1.1', 'http/1.0'];

// [Request Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3.1)
// [Request Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-10#section-8.1.3.1)
// * `headers` argument: HTTP/2.0 request and response header fields carry information as a series

@@ -507,3 +504,3 @@ // of key-value pairs. This includes the target URI for the request, the status code for the

// [Request Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3.1)
// [Request Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-10#section-8.1.3.1)
// * `headers` argument: HTTP/2.0 request and response header fields carry information as a series

@@ -939,3 +936,3 @@ // of key-value pairs. This includes the target URI for the request, the status code for the

// [Response Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3.2)
// [Response Header Fields](http://tools.ietf.org/html/draft-ietf-httpbis-http2-10#section-8.1.3.2)
// * `headers` argument: HTTP/2.0 request and response header fields carry information as a series

@@ -942,0 +939,0 @@ // of key-value pairs. This includes the target URI for the request, the status code for the

@@ -1,2 +0,2 @@

// [node-http2][homepage] is an [HTTP/2 (draft 09)][http2] implementation for [node.js][node].
// [node-http2][homepage] is an [HTTP/2 (draft 10)][http2] implementation for [node.js][node].
//

@@ -14,3 +14,3 @@ // The core of the protocol is implemented by the [http2-protocol] module. This module provides

// [http2-protocol]: https://github.com/molnarg/node-http2-protocol
// [http2]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-09
// [http2]: http://tools.ietf.org/html/draft-ietf-httpbis-http2-10
// [node]: http://nodejs.org/

@@ -17,0 +17,0 @@ // [node-https]: http://nodejs.org/api/https.html

{
"name": "http2",
"version": "2.2.0",
"version": "2.3.0",
"description": "An HTTP/2 client and server implementation",

@@ -10,3 +10,3 @@ "main": "lib/index.js",

"dependencies": {
"http2-protocol": "0.9.x"
"http2-protocol": "0.10.x"
},

@@ -22,3 +22,3 @@ "devDependencies": {

"test": "istanbul test _mocha -- --reporter spec --slow 200",
"prepublish": "docco lib/* --output doc --layout parallel --css doc/docco.css"
"doc": "docco lib/* --output doc --layout parallel --css doc/docco.css"
},

@@ -42,3 +42,4 @@ "repository": {

"Nick Hurley",
"Mike Belshe"
"Mike Belshe",
"Yoshihiro Iwanaga"
],

@@ -45,0 +46,0 @@ "license": "MIT",

node-http2
==========
An HTTP/2 ([draft-ietf-httpbis-http2-09](http://tools.ietf.org/html/draft-ietf-httpbis-http2-9))
An HTTP/2 ([draft-ietf-httpbis-http2-10](http://tools.ietf.org/html/draft-ietf-httpbis-http2-10))
client and server implementation for node.js.

@@ -105,5 +105,5 @@

The developer documentation is located in the `doc` directory. The docs are usually updated only
before releasing a new version. To regenerate them manually, run `npm run-script prepublish`.
There's a hosted version which is located [here](http://molnarg.github.io/node-http2/doc/).
The developer documentation is generated from the source code using docco and can be viewed online
[here](http://molnarg.github.io/node-http2/doc/). If you'd like to have an offline copy, just run
`npm run-script doc`.

@@ -118,8 +118,8 @@ ### Running the tests ###

To generate a code coverage report, run `npm test --coverage` (which runs very slowly, be patient).
Code coverage summary as of version 1.0.1:
Code coverage summary as of version 2.3.0:
```
Statements : 93.26% ( 1563/1676 )
Branches : 84.85% ( 605/713 )
Functions : 94.81% ( 201/212 )
Lines : 93.23% ( 1557/1670 )
Statements : 94% ( 392/417 )
Branches : 80.63% ( 129/160 )
Functions : 93.65% ( 59/63 )
Lines : 94% ( 392/417 )
```

@@ -158,2 +158,3 @@

* Mike Belshe
* Yoshihiro Iwanaga

@@ -160,0 +161,0 @@ Special thanks to Google for financing the development of this module as part of their [Summer of

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