radar_client
Advanced tools
Comparing version 0.14.4 to 0.14.5
@@ -0,1 +1,5 @@ | ||
### 0.14.5 | ||
* Presence resource can set online and include client data (to be broadcasted | ||
as part of the client_online and client_updated events). | ||
### 0.14.4 | ||
@@ -2,0 +6,0 @@ * One change to the modfified set of build steps |
@@ -31,3 +31,3 @@ (function(){function require(e,t){for(var n=[],r=e.split("/"),i,s,o=0;s=r[o++];)".."==s?n.pop():"."!=s&&n.push(s);n=n.join("/"),o=require,s=o.m[t||0],i=s[n+".js"]||s[n+"/index.js"]||s[n];if(s=i.c)i=o.m[t=s][e=i.m];return i.exports||i(i,i.exports={},function(n){return o("."!=n.charAt(0)?n:e+"/../"+n,t)}),i.exports}; | ||
function getClientVersion() { return '0.14.4'; }; | ||
function getClientVersion() { return '0.14.5'; }; | ||
@@ -203,4 +203,4 @@ module.exports = getClientVersion;}, | ||
Client.prototype.set = function(scope, value, callback) { | ||
return this._write({ | ||
Client.prototype.set = function(scope, value, clientData, callback) { | ||
var message = { | ||
op: 'set', | ||
@@ -211,3 +211,11 @@ to: scope, | ||
type: this._configuration.userType | ||
}, callback); | ||
}; | ||
if (typeof(clientData) === 'function') { | ||
callback = clientData; | ||
} else { | ||
message.clientData = clientData; | ||
} | ||
return this._write(message, callback); | ||
}; | ||
@@ -214,0 +222,0 @@ |
// Auto-generated file, overwritten by scripts/add_package_version.js | ||
function getClientVersion() { return '0.14.4'; }; | ||
function getClientVersion() { return '0.14.5'; }; | ||
module.exports = getClientVersion; |
@@ -158,4 +158,4 @@ /* globals setImmediate */ | ||
Client.prototype.set = function(scope, value, callback) { | ||
return this._write({ | ||
Client.prototype.set = function(scope, value, clientData, callback) { | ||
var message = { | ||
op: 'set', | ||
@@ -166,3 +166,11 @@ to: scope, | ||
type: this._configuration.userType | ||
}, callback); | ||
}; | ||
if (typeof(clientData) === 'function') { | ||
callback = clientData; | ||
} else { | ||
message.clientData = clientData; | ||
} | ||
return this._write(message, callback); | ||
}; | ||
@@ -169,0 +177,0 @@ |
{ | ||
"name": "radar_client", | ||
"description": "Realtime apps with a high level API based on engine.io", | ||
"version": "0.14.4", | ||
"version": "0.14.5", | ||
"author": "Mikito Takada <mikito.takada@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -82,3 +82,4 @@ var assert = require('assert'), | ||
type: 2, | ||
userData: undefined | ||
userData: undefined, | ||
clientData: undefined | ||
}); | ||
@@ -85,0 +86,0 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
111036
2927
6