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

radar_client

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radar_client - npm Package Compare versions

Comparing version 0.15.3 to 0.15.4

3

Changelog.md

@@ -0,1 +1,4 @@

### 0.15.4
* [PR #71](https://github.com/zendesk/radar_client/pull/71) - Second try: flexible minor, patch specifier for radar_message dependency
### 0.15.3

@@ -2,0 +5,0 @@ * [PR #70](https://github.com/zendesk/radar_client/pull/70) - Loosen version range on radar_message dependency

@@ -627,5 +627,2 @@ var RadarClient =

},
listeners: function(ev) {
return (this._events ? this._events[ev] || [] : []);
},
emit: function(ev) {

@@ -1080,3 +1077,3 @@ this._events || (this._events = {});

function getClientVersion () { return '0.15.2' }
function getClientVersion () { return '0.15.4' }

@@ -1092,4 +1089,6 @@ module.exports = getClientVersion

Response = __webpack_require__(12),
Batch = __webpack_require__(13),
RadarMessage = function() {};
RadarMessage.Batch = Batch;
RadarMessage.Request = Request;

@@ -1108,3 +1107,3 @@ RadarMessage.Response = Response;

var opTable = {
control: ['nameSync'],
control: ['nameSync', 'disconnect'],
message: ['publish', 'subscribe', 'sync', 'unsubscribe'],

@@ -1180,3 +1179,3 @@ presence: ['get', 'set', 'subscribe', 'sync', 'unsubscribe'],

Request.buildUnsubscribe = function (scope, options) {
Request.buildUnsubscribe = function (scope) {
var message = { op: 'unsubscribe', to: scope};

@@ -1258,3 +1257,3 @@ return new Request(message);

for (var key in opTable) {
if (opTable.hasOwnProperty(key) && key == type) {
if (opTable.hasOwnProperty(key) && key === type) {
return true;

@@ -1321,3 +1320,3 @@ }

default:
if (this.message.op != 'err' && !this.message.to) {
if (this.message.op !== 'err' && !this.message.to) {
this.errMsg = 'missing to';

@@ -1369,3 +1368,35 @@ logger.error(this.errMsg);

/***/ },
/* 13 */
/***/ function(module, exports) {
function Batch () {
var messages = Array.prototype.slice.call(arguments)
this.value = messages
}
Batch.prototype.op = 'batch'
Object.defineProperty(Batch.prototype, 'length', {
get: function () {
return this.value.length
}
})
Batch.prototype.add = function (message) {
this.value.push(message)
}
Batch.prototype.toJSON = function () {
return {
op: this.op,
length: this.length,
value: this.value
}
}
module.exports = Batch
/***/ }
/******/ ]);

2

lib/client_version.js
// Auto-generated file, overwritten by scripts/add_package_version.js
function getClientVersion () { return '0.15.2' }
function getClientVersion () { return '0.15.4' }
module.exports = getClientVersion
{
"name": "radar_client",
"description": "Realtime apps with a high level API based on engine.io",
"version": "0.15.3",
"version": "0.15.4",
"license": "Apache-2.0",

@@ -39,3 +39,3 @@ "author": "Zendesk, Inc.",

"sfsm": "0.0.4",
"radar_message": "~1.0.1"
"radar_message": "^1.0.1"
},

@@ -42,0 +42,0 @@ "devDependencies": {

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