Comparing version 8.0.6 to 8.1.0
14
index.js
@@ -293,4 +293,4 @@ /** | ||
bpmux will emit `error` events on multiplexed streams if their underlying | ||
(carrier) stream closes before they have closed. The error message will be one | ||
of these two strings: | ||
(carrier) stream closes before they have closed. The error object will have one | ||
of the following messages: | ||
@@ -302,2 +302,4 @@ ``` | ||
and have a property `carrier_done` set to `true`. | ||
As this is an `error` event, you must register an event listener on multiplexed | ||
@@ -602,3 +604,5 @@ streams [if you don't want the Node process to exit](https://nodejs.org/dist/latest-v13.x/docs/api/events.html#events_error_events). | ||
{ | ||
duplex.destroy(new Error('carrier stream finished before duplex finished')); | ||
const err = new Error('carrier stream finished before duplex finished'); | ||
err.carrier_done = true; | ||
duplex.destroy(err); | ||
} | ||
@@ -620,3 +624,5 @@ } | ||
duplex._ended = true; // we won't get any more messages for it | ||
duplex.destroy(new Error('carrier stream ended before end message received')); | ||
const err = new Error('carrier stream ended before end message received'); | ||
err.carrier_done = true; | ||
duplex.destroy(err); | ||
} | ||
@@ -623,0 +629,0 @@ } |
{ | ||
"name": "bpmux", | ||
"description": "Node stream multiplexing with back-pressure on each stream", | ||
"version": "8.0.6", | ||
"version": "8.1.0", | ||
"homepage": "https://github.com/davedoesdev/bpmux", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -292,4 +292,4 @@ # bpmux [![Build Status](https://travis-ci.org/davedoesdev/bpmux.png)](https://travis-ci.org/davedoesdev/bpmux) [![Coverage Status](https://coveralls.io/repos/davedoesdev/bpmux/badge.png?branch=master&service=github)](https://coveralls.io/r/davedoesdev/bpmux?branch=master) [![NPM version](https://badge.fury.io/js/bpmux.png)](http://badge.fury.io/js/bpmux) | ||
bpmux will emit `error` events on multiplexed streams if their underlying | ||
(carrier) stream closes before they have closed. The error message will be one | ||
of these two strings: | ||
(carrier) stream closes before they have closed. The error object will have one | ||
of the following messages: | ||
@@ -301,2 +301,4 @@ ``` | ||
and have a property `carrier_done` set to `true`. | ||
As this is an `error` event, you must register an event listener on multiplexed | ||
@@ -303,0 +305,0 @@ streams [if you don't want the Node process to exit](https://nodejs.org/dist/latest-v13.x/docs/api/events.html#events_error_events). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
537864
5160
546