Socket
Socket
Sign inDemoInstall

spdy

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spdy - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

lib/spdy/agent.js

@@ -97,2 +97,3 @@ 'use strict'

proto._connect = function _connect (options, callback) {
var self = this
var state = this._spdyState

@@ -147,2 +148,7 @@

// Pass connection level errors are passed to the agent.
connection.on('error', function (err) {
self.emit('error', err)
})
// Set version when we are certain

@@ -149,0 +155,0 @@ if (protocol === 'h2') {

9

package.json
{
"name": "spdy",
"version": "4.0.0",
"version": "4.0.1",
"description": "Implementation of the SPDY protocol on node.js.",

@@ -45,9 +45,8 @@ "license": "MIT",

"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"mocha": "^6.2.0",
"pre-commit": "^1.2.2",
"standard": "^12.0.1"
"standard": "^13.1.0"
},
"engines": {
"node": ">=6.0.0",
"npm": ">=6.0.0"
"node": ">=6.0.0"
},

@@ -54,0 +53,0 @@ "main": "./lib/spdy",

@@ -63,3 +63,3 @@ /* eslint-env mocha */

protocol: plain ? alpn : null,
protocols: [ alpn ]
protocols: [alpn]
}

@@ -170,2 +170,4 @@ })

var hmodule
// The underlying spdy Connection created by the agent.
var connection

@@ -194,7 +196,10 @@ beforeEach(function (done) {

protocol: plain ? alpn : null,
protocols: [ alpn ]
protocols: [alpn]
}
})
done()
// Once aagent has connection, keep a copy for testing.
agent.once('_connect', function () {
connection = agent._spdyState.connection
done()
})
})

@@ -230,4 +235,12 @@ })

})
it('agent should emit connection level errors', function (done) {
agent.once('error', function (err) {
assert.strictEqual(err.message, 'mock error')
done()
})
connection.emit('error', new Error('mock error'))
})
})
})
})

@@ -89,3 +89,3 @@ /* eslint-env mocha */

[ false, true ].forEach(function (plain) {
[false, true].forEach(function (plain) {
describe(plain ? 'plain mode' : 'ssl mode', function () {

@@ -92,0 +92,0 @@ body(protocol, alpn, version, plain)

@@ -30,3 +30,3 @@ /* eslint-env mocha */

port: fixtures.port,
ALPNProtocols: [ alpn ]
ALPNProtocols: [alpn]
}, function () {

@@ -437,3 +437,3 @@ client = transport.connection.create(socket, {

rejectUnauthorized: false,
NPNProtocols: [ 'http/1.1' ],
NPNProtocols: ['http/1.1'],
port: fixtures.port,

@@ -474,3 +474,3 @@ method: 'GET',

rejectUnauthorized: false,
NPNProtocols: [ 'http/1.1' ],
NPNProtocols: ['http/1.1'],
port: fixtures.port,

@@ -477,0 +477,0 @@ method: 'GET',

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