Only define debug function in debug mode.
prepend every call to debug with a check for debugging.
Merge pull request #283 from bottlenose-inc/disable-debugging

Disable debugging
Do not allow channel id values above 2^16
Merge pull request #284 from Kreata/master

Do not allow channel id values above 2^16
longjohn should be dev dep, not dep
Fix #288: Fix body overflow causing invalid_frame_end_marker
Merge pull request #289 from TheDeveloper/master

Fix #288: Fix body overflow causing invalid_frame_end_marker
Improve large body test value check
Merge pull request #290 from TheDeveloper/master

Improve large body test value check
Document callback parameter in queue.bind
Merge pull request #298 from glenjamin/patch-2

Document callback parameter in queue.bind
this.socket.end() needs guard against undefined

When calling reconnect() the first time, this.socket is not defined. The code I found that broke on this was using https://github.com/orlandov/node-amqp-plus to handle reconnections and only called the reconnect() to avoid having separate paths for connect() and reconnect().

This behavior seems to have changed in d729b384879b7e4e96a1ba07152d1f8a4d1caeed
Merge pull request #305 from joshwilsdon/patch-1

this.socket.end() needs guard against undefined this.socket
this.throwError is not defined

replacing this.throwError to 'throw new Error' since this doesn't have throwError method
Merge pull request #310 from obastemur/patch-1

this.throwError is not defined