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

spdy

Package Overview
Dependencies
Maintainers
2
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 2.0.0-rc2 to 2.0.0-rc3

4

package.json
{
"name": "spdy",
"version": "2.0.0-rc2",
"version": "2.0.0-rc3",
"description": "Implementation of the SPDY protocol on node.js.",

@@ -32,3 +32,3 @@ "license": "MIT",

"select-hose": "^2.0.0",
"spdy-transport": "^1.1.1"
"spdy-transport": "^1.1.2"
},

@@ -35,0 +35,0 @@ "devDependencies": {

var spdy = require('./');
var zlib = require('zlib');
var fs = require('fs');
var heapdump = require('heapdump');

@@ -9,4 +11,26 @@

var headers = fs.readFileSync('/tmp/1').toString().split(/\n/g);
headers = headers.map(function(line) {
if (!line)
return {};
line = line.replace(/^[^=]+=|[^\]]+$/g, '')
var keys = JSON.parse(line);
var res = {};
for (var i = 0; i < keys.length; i++)
res[keys[i].name] = keys[i].value;
return res;
});
spdy.createServer(options, function(req, res) {
res.end('ok');
var test = headers.shift()
console.log('-----');
res.writeHead(200, test);
console.log('-----');
var gzip = zlib.createGzip();
gzip.end('{}');
gzip.pipe(res);
}).listen(1443);
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