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

freedom-social-xmpp

Package Overview
Dependencies
Maintainers
7
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freedom-social-xmpp - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

10

dist/socialprovider.js

@@ -284,6 +284,7 @@ /*jslint white:true,sloppy:true */

messageType = status === 'ONLINE_WITH_OTHER_APP' ? 'chat' : 'normal',
message = new window.XMPP.Element('message', {
stanza = new window.XMPP.Element('message', {
to: to,
type: messageType
}).c('body'),
}),
message = stanza.c('body'),
body;

@@ -297,2 +298,6 @@

message.t(JSON.stringify(body));
stanza.c('nos:skiparchive', {
value: 'true',
'xmlns:nos' : 'google:nosave'
});
} else {

@@ -309,2 +314,3 @@ body = '';

try {

@@ -311,0 +317,0 @@ this.client.send(message);

2

package.json
{
"name": "freedom-social-xmpp",
"description": "XMPP Social provider for freedomjs",
"version": "0.3.13",
"version": "0.3.14",
"homepage": "http://freedomjs.org",

@@ -6,0 +6,0 @@ "bugs": {

@@ -284,6 +284,7 @@ /*jslint white:true,sloppy:true */

messageType = status === 'ONLINE_WITH_OTHER_APP' ? 'chat' : 'normal',
message = new window.XMPP.Element('message', {
stanza = new window.XMPP.Element('message', {
to: to,
type: messageType
}).c('body'),
}),
message = stanza.c('body'),
body;

@@ -297,2 +298,6 @@

message.t(JSON.stringify(body));
stanza.c('nos:skiparchive', {
value: 'true',
'xmlns:nos' : 'google:nosave'
});
} else {

@@ -309,2 +314,3 @@ body = '';

try {

@@ -311,0 +317,0 @@ this.client.send(message);

@@ -26,3 +26,3 @@ {

"recv-err": {"type": "event", "value": {"message": "string"}},
"recv-message": {"type": "event", "value": {"message": "string", "from": {"userId": "string"}}},
"recv-message": {"type": "event", "value": {"message": "string", "from": {"clientId": "string"}}},
"recv-buddylist": {"type": "event", "value": "object"},

@@ -29,0 +29,0 @@ "recv-uid": {"type": "event", "value": "string"}

@@ -26,3 +26,3 @@ {

"recv-err": {"type": "event", "value": {"message": "string"}},
"recv-message": {"type": "event", "value": {"message": "string", "from": {"userId": "string"}}},
"recv-message": {"type": "event", "value": {"message": "string", "from": {"clientId": "string"}}},
"recv-buddylist": {"type": "event", "value": "object"},

@@ -29,0 +29,0 @@ "recv-uid": {"type": "event", "value": "string"}

@@ -108,3 +108,4 @@ /*jslint sloppy:true */

if (this.userList[userId]) {
buddylist[userId] = this.userList[userId];
buddylist[k] = this.clientList[k];
buddylist[k].name = this.userList[userId].name;
}

@@ -111,0 +112,0 @@ }

@@ -36,4 +36,4 @@ /*globals freedom, console, self*/

return buddylistEntry.name && buddylistEntry.name !== buddylistEntry.userId ?
buddylistEntry.name + ' (' + buddylistEntry.userId + ')' :
buddylistEntry.userId;
buddylistEntry.name + ' (' + buddylistEntry.clientId + ')' :
buddylistEntry.clientId;
}

@@ -81,4 +81,4 @@

// Show the name instead of the userId, if it's available.
var userId = data.from.userId,
displayName = buddylist[userId].name || userId,
var clientId = data.from.clientId,
displayName = buddylist[clientId].name || clientId,
message = displayName + ": " + data.message;

@@ -118,3 +118,3 @@ appendLog(document.createTextNode(message));

appendLog(document.createTextNode("You: " + text));
chatClient.send(activeBuddylistEntry.userId, text);
chatClient.send(activeBuddylistEntry.clientId, text);
}

@@ -121,0 +121,0 @@ };

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