Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socketcluster-client

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketcluster-client - npm Package Compare versions

Comparing version 14.2.1 to 14.2.2

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc