@hocuspocus/provider 2.6.0 → 2.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/provider",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "hocuspocus provider",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@hocuspocus/common": "^2.6.0",
32
+ "@hocuspocus/common": "^2.6.1",
33
33
  "@lifeomic/attempt": "^3.0.2",
34
34
  "lib0": "^0.2.47",
35
35
  "ws": "^7.5.9"
@@ -546,11 +546,16 @@ export class HocuspocusProvider extends EventEmitter {
546
546
  }
547
547
 
548
548
  this.mux(() => {
549
- this.broadcast(SyncStepOneMessage, { document: this.document })
550
- this.broadcast(SyncStepTwoMessage, { document: this.document })
551
- this.broadcast(QueryAwarenessMessage, { document: this.document })
549
+ this.broadcast(SyncStepOneMessage, { document: this.document, documentName: this.configuration.name })
550
+ this.broadcast(SyncStepTwoMessage, { document: this.document, documentName: this.configuration.name })
551
+ this.broadcast(QueryAwarenessMessage, { document: this.document, documentName: this.configuration.name })
552
552
  if (this.awareness) {
553
- this.broadcast(AwarenessMessage, { awareness: this.awareness, clients: [this.document.clientID], document: this.document })
553
+ this.broadcast(AwarenessMessage, {
554
+ awareness: this.awareness,
555
+ clients: [this.document.clientID],
556
+ document: this.document,
557
+ documentName: this.configuration.name,
558
+ })
554
559
  }
555
560
  })
556
561
  }