THRIFT-3727 Incorrect require paths in Node.js tutorial
This closes #937
diff --git a/tutorial/nodejs/NodeClient.js b/tutorial/nodejs/NodeClient.js
index 74aa55a..475e304 100644
--- a/tutorial/nodejs/NodeClient.js
+++ b/tutorial/nodejs/NodeClient.js
@@ -18,14 +18,12 @@
*/
var thrift = require('thrift');
-var ThriftTransports = require('thrift/transport');
-var ThriftProtocols = require('thrift/protocol');
var Calculator = require('./gen-nodejs/Calculator');
var ttypes = require('./gen-nodejs/tutorial_types');
-transport = ThriftTransports.TBufferedTransport()
-protocol = ThriftProtocols.TBinaryProtocol()
+var transport = thrift.TBufferedTransport();
+var protocol = thrift.TBinaryProtocol();
var connection = thrift.createConnection("localhost", 9090, {
transport : transport,
diff --git a/tutorial/nodejs/NodeClientPromise.js b/tutorial/nodejs/NodeClientPromise.js
index 7bcf884..d0245c5 100644
--- a/tutorial/nodejs/NodeClientPromise.js
+++ b/tutorial/nodejs/NodeClientPromise.js
@@ -18,14 +18,12 @@
*/
var thrift = require('thrift');
-var ThriftTransports = require('thrift/transport');
-var ThriftProtocols = require('thrift/protocol');
var Calculator = require('./gen-nodejs/Calculator');
var ttypes = require('./gen-nodejs/tutorial_types');
-transport = ThriftTransports.TBufferedTransport()
-protocol = ThriftProtocols.TBinaryProtocol()
+var transport = thrift.TBufferedTransport();
+var protocol = thrift.TBinaryProtocol();
var connection = thrift.createConnection("localhost", 9090, {
transport : transport,