Comparing version 1.8.3 to 1.8.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1606006
41438