Socket
Socket
Sign inDemoInstall

parse

Package Overview
Dependencies
Maintainers
6
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse - npm Package Compare versions

Comparing version 1.8.3 to 1.8.4

2

lib/browser/CoreManager.js

@@ -20,3 +20,3 @@ /**

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '1.8.3',
VERSION: 'js' + '1.8.4',
APPLICATION_ID: null,

@@ -23,0 +23,0 @@ JAVASCRIPT_KEY: null,

@@ -388,3 +388,3 @@ /**

value: function _getWebSocketImplementation() {
return typeof WebSocket === 'function' ? WebSocket : null;
return typeof WebSocket === 'function' || typeof WebSocket === 'object' ? WebSocket : null;
}

@@ -391,0 +391,0 @@

@@ -139,7 +139,10 @@ 'use strict';

// Register a default onError callback to make sure we do not crash on error
// Cannot create these events on a nested way because of EventEmiiter from React Native
defaultLiveQueryClient.on('error', function (error) {
LiveQuery.emit('error', error);
}).on('open', function () {
});
defaultLiveQueryClient.on('open', function () {
LiveQuery.emit('open');
}).on('close', function () {
});
defaultLiveQueryClient.on('close', function () {
LiveQuery.emit('close');

@@ -185,14 +188,19 @@ });

subscriptionWrap.unsubscribe = subscription.unsubscribe;
// Cannot create these events on a nested way because of EventEmiiter from React Native
subscription.on('open', function () {
subscriptionWrap.emit('open');
}).on('create', function (object) {
});
subscription.on('create', function (object) {
subscriptionWrap.emit('create', object);
}).on('update', function (object) {
});
subscription.on('update', function (object) {
subscriptionWrap.emit('update', object);
}).on('enter', function (object) {
});
subscription.on('enter', function (object) {
subscriptionWrap.emit('enter', object);
}).on('leave', function (object) {
});
subscription.on('leave', function (object) {
subscriptionWrap.emit('leave', object);
}).on('delete', function (object) {
});
subscription.on('delete', function (object) {
subscriptionWrap.emit('delete', object);

@@ -199,0 +207,0 @@ });

@@ -20,3 +20,3 @@ /**

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '1.8.3',
VERSION: 'js' + '1.8.4',
APPLICATION_ID: null,

@@ -23,0 +23,0 @@ JAVASCRIPT_KEY: null,

@@ -139,7 +139,10 @@ 'use strict';

// Register a default onError callback to make sure we do not crash on error
// Cannot create these events on a nested way because of EventEmiiter from React Native
defaultLiveQueryClient.on('error', function (error) {
LiveQuery.emit('error', error);
}).on('open', function () {
});
defaultLiveQueryClient.on('open', function () {
LiveQuery.emit('open');
}).on('close', function () {
});
defaultLiveQueryClient.on('close', function () {
LiveQuery.emit('close');

@@ -185,14 +188,19 @@ });

subscriptionWrap.unsubscribe = subscription.unsubscribe;
// Cannot create these events on a nested way because of EventEmiiter from React Native
subscription.on('open', function () {
subscriptionWrap.emit('open');
}).on('create', function (object) {
});
subscription.on('create', function (object) {
subscriptionWrap.emit('create', object);
}).on('update', function (object) {
});
subscription.on('update', function (object) {
subscriptionWrap.emit('update', object);
}).on('enter', function (object) {
});
subscription.on('enter', function (object) {
subscriptionWrap.emit('enter', object);
}).on('leave', function (object) {
});
subscription.on('leave', function (object) {
subscriptionWrap.emit('leave', object);
}).on('delete', function (object) {
});
subscription.on('delete', function (object) {
subscriptionWrap.emit('delete', object);

@@ -199,0 +207,0 @@ });

@@ -20,3 +20,3 @@ /**

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '1.8.3',
VERSION: 'js' + '1.8.4',
APPLICATION_ID: null,

@@ -23,0 +23,0 @@ JAVASCRIPT_KEY: null,

@@ -139,7 +139,10 @@ 'use strict';

// Register a default onError callback to make sure we do not crash on error
// Cannot create these events on a nested way because of EventEmiiter from React Native
defaultLiveQueryClient.on('error', function (error) {
LiveQuery.emit('error', error);
}).on('open', function () {
});
defaultLiveQueryClient.on('open', function () {
LiveQuery.emit('open');
}).on('close', function () {
});
defaultLiveQueryClient.on('close', function () {
LiveQuery.emit('close');

@@ -185,14 +188,19 @@ });

subscriptionWrap.unsubscribe = subscription.unsubscribe;
// Cannot create these events on a nested way because of EventEmiiter from React Native
subscription.on('open', function () {
subscriptionWrap.emit('open');
}).on('create', function (object) {
});
subscription.on('create', function (object) {
subscriptionWrap.emit('create', object);
}).on('update', function (object) {
});
subscription.on('update', function (object) {
subscriptionWrap.emit('update', object);
}).on('enter', function (object) {
});
subscription.on('enter', function (object) {
subscriptionWrap.emit('enter', object);
}).on('leave', function (object) {
});
subscription.on('leave', function (object) {
subscriptionWrap.emit('leave', object);
}).on('delete', function (object) {
});
subscription.on('delete', function (object) {
subscriptionWrap.emit('delete', object);

@@ -199,0 +207,0 @@ });

{
"name": "parse",
"version": "1.8.3",
"version": "1.8.4",
"description": "The Parse JavaScript SDK",

@@ -5,0 +5,0 @@ "homepage": "https://www.parse.com",

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