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

node-quic

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-quic - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

speed-comparison/data/0kb

16

lib/index.js

@@ -61,3 +61,3 @@ 'use strict';

var message = ''; // TODO turn into buf?
var message = '';

@@ -76,7 +76,3 @@ stream.on('error', function (err) {

promise.handleData(message, stream);
// TODO have to have mechanism to end stream when not returning anything
// stream.end()
}).on('finish', function () {
// ilog.info(`server stream ${stream.id} finished`)
});
}).on('finish', function () {});
});

@@ -118,2 +114,7 @@ });

// These clients are ephemeral so we'll nuke em when they're done
client.on('close', function () {
client.destroy();
});
client.connect(port, address).then(function () {

@@ -128,6 +129,5 @@

}).on('data', function (data) {
return message += data.toString();
message += data.toString();
}).on('end', function () {
client.close();
client.destroy();
promise.handleData(message);

@@ -134,0 +134,0 @@ }).on('finish', function () {});

{
"name": "node-quic",
"version": "0.0.4",
"version": "0.1.0",
"description": "A wrapper around fidm/quic, node-quic is a dead simple stream based QUIC server / client for use in node.js.",

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

"clean:build": "rimraf lib",
"clean:coverage": "rimraf .nyc_output coverage"
"clean:coverage": "rimraf .nyc_output coverage",
"speed-test": "babel-node speed-comparison/speed-comparison.js"
},

@@ -28,3 +29,9 @@ "repository": {

},
"keywords": ["quic", "udp", "fast open", "speed", "fast"],
"keywords": [
"quic",
"udp",
"fast open",
"speed",
"fast"
],
"author": {

@@ -47,2 +54,3 @@ "name": "Aaron Sullivan",

"babel-preset-es2015": "^6.9.0",
"body-parser": "^1.18.3",
"chai": "^3.5.0",

@@ -58,2 +66,3 @@ "codecov": "^1.0.1",

"eslint-plugin-react": "^5.1.1",
"express": "^4.16.3",
"ghooks": "^1.2.4",

@@ -64,2 +73,3 @@ "mocha": "^5.2.0",

"nyc": "^13.0.0",
"request": "^2.87.0",
"rimraf": "^2.5.2",

@@ -69,7 +79,7 @@ "semantic-release": "^15.8.0",

"sinon-chai": "^2.8.0",
"validate-commit-msg": "^2.6.1"
"validate-commit-msg": "^2.6.1",
"ws": "^6.0.0"
},
"dependencies": {
"arbitrary-promise": "1.2.0",
"in-publish": "2.0.0",
"quic": "0.4.2"

@@ -76,0 +86,0 @@ },

Sorry, the diff of this file is not supported yet

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