Comparing version 0.0.4 to 0.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
314472
2
23
336
30
5
1
+ Addedin-publish@2.0.1(transitive)
- Removedin-publish@2.0.0
- Removedin-publish@2.0.0(transitive)