@hocuspocus/provider
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -6,2 +6,10 @@ # Change Log | ||
# [1.0.0-alpha.9](https://github.com/ueberdosis/hocuspocus/compare/@hocuspocus/provider@1.0.0-alpha.8...@hocuspocus/provider@1.0.0-alpha.9) (2021-08-19) | ||
**Note:** Version bump only for package @hocuspocus/provider | ||
# [1.0.0-alpha.8](https://github.com/ueberdosis/hocuspocus/compare/@hocuspocus/provider@1.0.0-alpha.7...@hocuspocus/provider@1.0.0-alpha.8) (2021-06-23) | ||
@@ -8,0 +16,0 @@ |
@@ -1725,2 +1725,3 @@ import * as Y from 'yjs'; | ||
connect: true, | ||
broadcast: true, | ||
forceSyncInterval: false, | ||
@@ -2003,5 +2004,9 @@ reconnectTimeoutBase: 1200, | ||
broadcast(Message, args) { | ||
if (this.subscribedToBroadcastChannel) { | ||
new MessageSender(Message, args).broadcast(this.broadcastChannel); | ||
if (!this.options.broadcast) { | ||
return; | ||
} | ||
if (!this.subscribedToBroadcastChannel) { | ||
return; | ||
} | ||
new MessageSender(Message, args).broadcast(this.broadcastChannel); | ||
} | ||
@@ -2008,0 +2013,0 @@ log(message) { |
@@ -17,2 +17,3 @@ import * as Y from 'yjs'; | ||
connect: boolean; | ||
broadcast: boolean; | ||
awareness: Awareness; | ||
@@ -19,0 +20,0 @@ parameters: { |
@@ -8,3 +8,3 @@ import { RedisPersistence } from 'y-redis'; | ||
cluster: boolean; | ||
persistence: RedisPersistence; | ||
persistence: RedisPersistence | undefined; | ||
/** | ||
@@ -11,0 +11,0 @@ * Constructor |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "hocuspocus provider", | ||
@@ -30,3 +30,3 @@ "homepage": "https://hocuspocus.dev", | ||
}, | ||
"gitHead": "2fbb1979df24a734dc4753ee102fa1e40fc98b07", | ||
"gitHead": "f948b9dfda2d056dff2851670fa6fb4b34081c56", | ||
"publishConfig": { | ||
@@ -33,0 +33,0 @@ "access": "public" |
@@ -35,2 +35,3 @@ // @ts-nocheck | ||
connect: boolean, | ||
broadcast: boolean, | ||
awareness: Awareness, | ||
@@ -63,2 +64,3 @@ parameters: { [key: string]: any }, | ||
connect: true, | ||
broadcast: true, | ||
forceSyncInterval: false, | ||
@@ -441,5 +443,11 @@ reconnectTimeoutBase: 1200, | ||
broadcast(Message: OutgoingMessage, args: any) { | ||
if (this.subscribedToBroadcastChannel) { | ||
new MessageSender(Message, args).broadcast(this.broadcastChannel) | ||
if (!this.options.broadcast) { | ||
return | ||
} | ||
if (!this.subscribedToBroadcastChannel) { | ||
return | ||
} | ||
new MessageSender(Message, args).broadcast(this.broadcastChannel) | ||
} | ||
@@ -446,0 +454,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
489279
5334