spdy-push
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -183,2 +183,4 @@ | ||
else resolve() | ||
stream.on('error', postDestroyError) | ||
} | ||
@@ -219,1 +221,6 @@ }) | ||
} | ||
// sometimes this happens and crashes the entire server | ||
function postDestroyError(err) { | ||
console.error(err.stack) | ||
} |
{ | ||
"name": "spdy-push", | ||
"description": "SPDY Push helper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": { | ||
@@ -25,3 +25,3 @@ "name": "Jonathan Ong", | ||
"raw-body": "1", | ||
"mocha": "1", | ||
"mocha": "2", | ||
"spdy": "1", | ||
@@ -32,3 +32,3 @@ "spdy-keys": "0", | ||
"scripts": { | ||
"test": "mocha --reporter spec", | ||
"test": "mocha", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot", | ||
@@ -35,0 +35,0 @@ "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot" |
@@ -40,3 +40,3 @@ | ||
### spdy(res).push([path], [options], [priority]) | ||
### spdy(res).push([path], [options], [priority]).then( => ) | ||
@@ -61,2 +61,10 @@ - `path` is the path of the object being pushed. | ||
### .then( => ) | ||
Waits until the acknowledge event. | ||
### .send().then( => ) | ||
Waits until the entire stream has been flushed. | ||
[npm-image]: https://img.shields.io/npm/v/spdy-push.svg?style=flat-square | ||
@@ -63,0 +71,0 @@ [npm-url]: https://npmjs.org/package/spdy-push |
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
11513
5
202
84
0