@hocuspocus/extension-webhook
Advanced tools
Comparing version 1.0.0-alpha.39 to 1.0.0-alpha.40
@@ -91,5 +91,5 @@ import { createHmac } from 'crypto'; | ||
/** | ||
* onCreateDocument hook | ||
* onLoadDocument hook | ||
*/ | ||
async onCreateDocument(data) { | ||
async onLoadDocument(data) { | ||
if (!this.configuration.events.includes(Events.onCreate)) { | ||
@@ -96,0 +96,0 @@ return; |
@@ -111,3 +111,3 @@ import * as Y from 'yjs'; | ||
subscribedToBroadcastChannel: boolean; | ||
webSocket: any; | ||
webSocket: WebSocket | null; | ||
shouldConnect: boolean; | ||
@@ -114,0 +114,0 @@ status: WebSocketStatus; |
@@ -9,3 +9,3 @@ import Connection from './Connection'; | ||
apply(connection: Connection): void; | ||
readSyncMessage(message: IncomingMessage, connection: Connection): 0 | 1 | 2; | ||
readSyncMessage(message: IncomingMessage, connection: Connection): 0 | 2 | 1; | ||
} |
@@ -37,3 +37,7 @@ /// <reference types="node" /> | ||
onConfigure?(data: onConfigurePayload): Promise<any>; | ||
onCreateDocument?(data: onCreateDocumentPayload): Promise<any>; | ||
/** | ||
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead | ||
*/ | ||
onCreateDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
onDestroy?(data: onDestroyPayload): Promise<any>; | ||
@@ -77,3 +81,3 @@ onDisconnect?(data: onDisconnectPayload): Promise<any>; | ||
} | ||
export interface onCreateDocumentPayload { | ||
export interface onLoadDocumentPayload { | ||
context: any; | ||
@@ -80,0 +84,0 @@ document: Document; |
{ | ||
"name": "@hocuspocus/extension-webhook", | ||
"version": "1.0.0-alpha.39", | ||
"version": "1.0.0-alpha.40", | ||
"description": "hocuspocus webhook extension", | ||
@@ -27,7 +27,7 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^1.0.0-alpha.75", | ||
"@hocuspocus/transformer": "^1.0.0-alpha.14", | ||
"@hocuspocus/server": "^1.0.0-alpha.76", | ||
"@hocuspocus/transformer": "^1.0.0-alpha.15", | ||
"axios": "^0.23.0" | ||
}, | ||
"gitHead": "49a520f1b6be37139f5c7243a484dc413640869c" | ||
"gitHead": "fa031748b345c53bd71eaeca2bccfcf29cbb36e8" | ||
} |
@@ -6,3 +6,3 @@ import { createHmac } from 'crypto' | ||
onConnectPayload, | ||
onCreateDocumentPayload, | ||
onLoadDocumentPayload, | ||
onDisconnectPayload, | ||
@@ -132,5 +132,5 @@ } from '@hocuspocus/server' | ||
/** | ||
* onCreateDocument hook | ||
* onLoadDocument hook | ||
*/ | ||
async onCreateDocument(data: onCreateDocumentPayload) { | ||
async onLoadDocument(data: onLoadDocumentPayload) { | ||
if (!this.configuration.events.includes(Events.onCreate)) { | ||
@@ -137,0 +137,0 @@ return |
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
72142
58
1550