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

freedom-social-xmpp

Package Overview
Dependencies
Maintainers
5
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.0.3 to 0.0.6

4

build/socialprovider.js

@@ -174,2 +174,6 @@ /*globals freedom:true,setTimeout,console,VCardStore */

XMPPSocialProvider.prototype.getUsers = function(continuation) {
continuation(this.vCardStore.getUsers());
};
/**

@@ -176,0 +180,0 @@ * Sends a message to a user on the network.

14

build/vcardstore.js

@@ -77,9 +77,9 @@ /*globals freedom:true,setTimeout,window */

VCardStore.prototype.getUsers = function() {
var user, cards = {};
for (user in this.cards) {
if (this.cards.hasOwnProperty(user)) {
cards[user] = this.getUser(user);
var allUsers = {}, userId;
for (userId in this.users) {
if (this.users.hasOwnProperty(userId)) {
allUsers[userId] = this.getUser(userId);
}
}
return cards;
return allUsers;
};

@@ -92,3 +92,3 @@

changed = false;
if (message.attr.xmlns !== 'vcard-temp' ||
if (message.attr('xmlns') !== 'vcard-temp' ||
!this.storage) {

@@ -130,4 +130,6 @@ return;

}
if (changed) {
user.timestamp = Date.now();
this.users[userid] = user;
this.onUserChange(user);

@@ -134,0 +136,0 @@ }

@@ -14,2 +14,3 @@ {

"identity",
"storage",
"https://www.googleapis.com/*"

@@ -16,0 +17,0 @@ ],

@@ -174,2 +174,6 @@ /*globals freedom:true,setTimeout,console,VCardStore */

XMPPSocialProvider.prototype.getUsers = function(continuation) {
continuation(this.vCardStore.getUsers());
};
/**

@@ -176,0 +180,0 @@ * Sends a message to a user on the network.

@@ -77,9 +77,9 @@ /*globals freedom:true,setTimeout,window */

VCardStore.prototype.getUsers = function() {
var user, cards = {};
for (user in this.cards) {
if (this.cards.hasOwnProperty(user)) {
cards[user] = this.getUser(user);
var allUsers = {}, userId;
for (userId in this.users) {
if (this.users.hasOwnProperty(userId)) {
allUsers[userId] = this.getUser(userId);
}
}
return cards;
return allUsers;
};

@@ -92,3 +92,3 @@

changed = false;
if (message.attr.xmlns !== 'vcard-temp' ||
if (message.attr('xmlns') !== 'vcard-temp' ||
!this.storage) {

@@ -130,4 +130,6 @@ return;

}
if (changed) {
user.timestamp = Date.now();
this.users[userid] = user;
this.onUserChange(user);

@@ -134,0 +136,0 @@ }

{
"name": "freedom-social-xmpp",
"description": "XMPP Social provider for freedomjs",
"version": "0.0.3",
"version": "0.0.6",
"homepage": "http://freedomjs.org",

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

@@ -174,2 +174,6 @@ /*globals freedom:true,setTimeout,console,VCardStore */

XMPPSocialProvider.prototype.getUsers = function(continuation) {
continuation(this.vCardStore.getUsers());
};
/**

@@ -176,0 +180,0 @@ * Sends a message to a user on the network.

@@ -77,9 +77,9 @@ /*globals freedom:true,setTimeout,window */

VCardStore.prototype.getUsers = function() {
var user, cards = {};
for (user in this.cards) {
if (this.cards.hasOwnProperty(user)) {
cards[user] = this.getUser(user);
var allUsers = {}, userId;
for (userId in this.users) {
if (this.users.hasOwnProperty(userId)) {
allUsers[userId] = this.getUser(userId);
}
}
return cards;
return allUsers;
};

@@ -92,3 +92,3 @@

changed = false;
if (message.attr.xmlns !== 'vcard-temp' ||
if (message.attr('xmlns') !== 'vcard-temp' ||
!this.storage) {

@@ -130,4 +130,6 @@ return;

}
if (changed) {
user.timestamp = Date.now();
this.users[userid] = user;
this.onUserChange(user);

@@ -134,0 +136,0 @@ }

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