@seafile/sdoc-editor 0.1.154-beta1 → 0.1.154-beta2

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.
@@ -185,12 +185,12 @@ var SocketClient = /*#__PURE__*/_createClass(function SocketClient(config) {
185
185
  this.socket.on('doc-replaced-error', this.receiveDocumentReplacedError);
186
186
 
187
187
  // doc published
188
- this.socket.on('publish-document', this.receivePublishDocument);
189
- this.socket.on('publish-document-error', this.receivePublishDocumentError);
188
+ this.socket.on('doc-published', this.receivePublishDocument);
189
+ this.socket.on('doc-published-error', this.receivePublishDocumentError);
190
190
 
191
191
  // doc removed
192
- this.socket.on('remove-document', this.receiveRemoveDocument);
193
- this.socket.on('remove-document-error', this.receiveRemoveDocumentError);
192
+ this.socket.on('doc-removed', this.receiveRemoveDocument);
193
+ this.socket.on('doc-removed-error', this.receiveRemoveDocumentError);
194
194
  this.socket.on('update-cursor', this.receiveCursorLocation);
195
195
  this.socket.io.on('reconnect', this.onReconnect);
196
196
  this.socket.io.on('reconnect_attempt', this.onReconnectAttempt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.154beta1",
3
+ "version": "0.1.154beta2",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",