THRIFT-5848: Expose InputBufferUnderrunError in nodejs client

When implementing a custom `Connection`, it is very useful to be able to respond to `InputBufferUnderrunError` to roll back the position of the transport. This is now exposed through the root module, so that custom connections can use this.
diff --git a/lib/nodejs/lib/thrift/browser.js b/lib/nodejs/lib/thrift/browser.js
index e217704..1d225c6 100644
--- a/lib/nodejs/lib/thrift/browser.js
+++ b/lib/nodejs/lib/thrift/browser.js
@@ -51,3 +51,5 @@
 exports.TJSONProtocol = require('./json_protocol');
 exports.TBinaryProtocol = require('./binary_protocol');
 exports.TCompactProtocol = require('./compact_protocol');
+
+exports.InputBufferUnderrunError = require('./input_buffer_underrun_error');
diff --git a/lib/nodejs/lib/thrift/index.js b/lib/nodejs/lib/thrift/index.js
index 00f2174..df4a5dc 100644
--- a/lib/nodejs/lib/thrift/index.js
+++ b/lib/nodejs/lib/thrift/index.js
@@ -74,3 +74,5 @@
 exports.TBinaryProtocol = require('./binary_protocol');
 exports.TCompactProtocol = require('./compact_protocol');
 exports.THeaderProtocol = require('./header_protocol');
+
+exports.InputBufferUnderrunError = require('./input_buffer_underrun_error');
diff --git a/lib/nodejs/test/exceptions.js b/lib/nodejs/test/exceptions.js
index ab2798a..f30f987 100644
--- a/lib/nodejs/test/exceptions.js
+++ b/lib/nodejs/test/exceptions.js
@@ -20,7 +20,7 @@
 "use strict";
 const test = require("tape");
 const thrift = require("../lib/thrift/thrift.js");
-const InputBufferUnderrunError = require("../lib/thrift/input_buffer_underrun_error");
+const { InputBufferUnderrunError } = require("../lib/thrift");
 
 test("TApplicationException", function t(assert) {
   const e = new thrift.TApplicationException(1, "foo");