sharedb 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/backend.js +1 -1
  2. package/package.json +1 -1
package/lib/backend.js CHANGED
@@ -36,7 +36,7 @@ function Backend(options) {
36
36
  this.maxSubmitRetries = options.maxSubmitRetries || null;
37
37
  this.presenceEnabled = !!options.presence;
38
38
  this.doNotForwardSendPresenceErrorsToClient = !!options.doNotForwardSendPresenceErrorsToClient;
39
- if (!this.doNotForwardSendPresenceErrorsToClient) {
39
+ if (this.presenceEnabled && !this.doNotForwardSendPresenceErrorsToClient) {
40
40
  logger.warn(
41
41
  'Broadcasting "sendPresence" middleware errors to clients is deprecated ' +
42
42
  'and will be removed in a future release. Disable this behaviour with:\n\n' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharedb",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "JSON OT database backend",
5
5
  "main": "lib/index.js",
6
6
  "dependencies": {