socketcluster-client
Advanced tools
Comparing version 14.2.1 to 14.2.2
{ | ||
"name": "socketcluster-client", | ||
"main": "socketcluster.js", | ||
"version": "14.2.1", | ||
"version": "14.2.2", | ||
"homepage": "https://github.com/SocketCluster/socketcluster-client", | ||
@@ -6,0 +6,0 @@ "description": "SocketCluster JavaScript client", |
@@ -0,0 +0,0 @@ var gulp = require('gulp'); |
@@ -21,2 +21,2 @@ var SCClientSocket = require('./lib/scclientsocket'); | ||
module.exports.version = '14.2.1'; | ||
module.exports.version = '14.2.2'; |
@@ -0,0 +0,0 @@ var AuthEngine = function () { |
@@ -0,0 +0,0 @@ var scErrors = require('sc-errors'); |
@@ -9,3 +9,3 @@ var Emitter = require('component-emitter'); | ||
var LinkedList = require('linked-list'); | ||
var base64 = require('base-64'); | ||
var Buffer = require('buffer/').Buffer; | ||
var clone = require('clone'); | ||
@@ -384,29 +384,7 @@ | ||
SCClientSocket.prototype.decodeBase64 = function (encodedString) { | ||
var decodedString; | ||
if (typeof Buffer === 'undefined') { | ||
if (global.atob) { | ||
decodedString = global.atob(encodedString); | ||
} else { | ||
decodedString = base64.decode(encodedString); | ||
} | ||
} else { | ||
var buffer = Buffer.from(encodedString, 'base64'); | ||
decodedString = buffer.toString('utf8'); | ||
} | ||
return decodedString; | ||
return Buffer.from(encodedString, 'base64').toString('utf8'); | ||
}; | ||
SCClientSocket.prototype.encodeBase64 = function (decodedString) { | ||
var encodedString; | ||
if (typeof Buffer === 'undefined') { | ||
if (global.btoa) { | ||
encodedString = global.btoa(decodedString); | ||
} else { | ||
encodedString = base64.encode(decodedString); | ||
} | ||
} else { | ||
var buffer = Buffer.from(decodedString, 'utf8'); | ||
encodedString = buffer.toString('base64'); | ||
} | ||
return encodedString; | ||
return Buffer.from(decodedString, 'utf8').toString('base64'); | ||
}; | ||
@@ -413,0 +391,0 @@ |
@@ -0,0 +0,0 @@ var global; |
{ | ||
"name": "socketcluster-client", | ||
"description": "SocketCluster JavaScript client", | ||
"version": "14.2.1", | ||
"version": "14.2.2", | ||
"homepage": "http://socketcluster.io", | ||
@@ -21,3 +21,3 @@ "contributors": [ | ||
"dependencies": { | ||
"base-64": "0.1.0", | ||
"buffer": "^5.2.1", | ||
"clone": "2.1.1", | ||
@@ -24,0 +24,0 @@ "component-emitter": "1.2.1", |
Sorry, the diff of this file is too big to display
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
333475
7464
+ Addedbuffer@^5.2.1
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedieee754@1.2.1(transitive)
- Removedbase-64@0.1.0
- Removedbase-64@0.1.0(transitive)