11/**
2- * SocketCluster JavaScript client v8.0.1
2+ * SocketCluster JavaScript client v8.0.2
33 */
44( function ( f ) { if ( typeof exports === "object" && typeof module !== "undefined" ) { module . exports = f ( ) } else if ( typeof define === "function" && define . amd ) { define ( [ ] , f ) } else { var g ; if ( typeof window !== "undefined" ) { g = window } else if ( typeof global !== "undefined" ) { g = global } else if ( typeof self !== "undefined" ) { g = self } else { g = this } g . socketCluster = f ( ) } } ) ( function ( ) { var define , module , exports ; return ( function e ( t , n , r ) { function s ( o , u ) { if ( ! n [ o ] ) { if ( ! t [ o ] ) { var a = typeof require == "function" && require ; if ( ! u && a ) return a ( o , ! 0 ) ; if ( i ) return i ( o , ! 0 ) ; var f = new Error ( "Cannot find module '" + o + "'" ) ; throw f . code = "MODULE_NOT_FOUND" , f } var l = n [ o ] = { exports :{ } } ; t [ o ] [ 0 ] . call ( l . exports , function ( e ) { var n = t [ o ] [ 1 ] [ e ] ; return s ( n ?n :e ) } , l , l . exports , e , t , n , r ) } return n [ o ] . exports } var i = typeof require == "function" && require ; for ( var o = 0 ; o < r . length ; o ++ ) s ( r [ o ] ) ; return s } ) ( { 1 :[ function ( _dereq_ , module , exports ) {
55var Emitter = _dereq_ ( 'component-emitter' ) ;
@@ -257,7 +257,7 @@ module.exports.destroy = function (options) {
257257
258258module . exports . connections = SCSocketCreator . connections ;
259259
260- module . exports . version = '8.0.1 ' ;
260+ module . exports . version = '8.0.2 ' ;
261261
262262} , { "./lib/scsocket" :6 , "./lib/scsocketcreator" :7 , "component-emitter" :14 } ] , 4 :[ function ( _dereq_ , module , exports ) {
263263( function ( global ) {
@@ -5350,7 +5350,7 @@ var binaryToBase64Replacer = function (key, value) {
53505350 // Some versions of Node.js convert Buffers to Objects before they are passed to
53515351 // the replacer function - Because of this, we need to rehydrate Buffers
53525352 // before we can convert them to base64 strings.
5353- if ( value && value . type == 'Buffer' && value . data instanceof Array ) {
5353+ if ( value && value . type === 'Buffer' && Array . isArray ( value . data ) ) {
53545354 var rehydratedBuffer ;
53555355 if ( global . Buffer . from ) {
53565356 rehydratedBuffer = global . Buffer . from ( value . data ) ;
@@ -5373,7 +5373,7 @@ module.exports.decode = function (input) {
53735373 return null ;
53745374 }
53755375 // Leave ping or pong message as is
5376- if ( input == '#1' || input == '#2' ) {
5376+ if ( input === '#1' || input = == '#2' ) {
53775377 return input ;
53785378 }
53795379 var message = input . toString ( ) ;
@@ -5384,7 +5384,6 @@ module.exports.decode = function (input) {
53845384 return message ;
53855385} ;
53865386
5387-
53885387// Encode a raw JavaScript object (which is in the SC protocol format) into a format for
53895388// transfering it over the wire. In this case, we just convert it into a simple JSON string.
53905389// If you want to create your own custom codec, you can encode the object into any format
@@ -5395,7 +5394,7 @@ module.exports.decode = function (input) {
53955394// for details about the SC protocol.
53965395module . exports . encode = function ( object ) {
53975396 // Leave ping or pong message as is
5398- if ( object == '#1' || object == '#2' ) {
5397+ if ( object === '#1' || object = == '#2' ) {
53995398 return object ;
54005399 }
54015400 return JSON . stringify ( object , binaryToBase64Replacer ) ;
0 commit comments