@hocuspocus/extension-logger
Advanced tools
Comparing version
@@ -150,3 +150,3 @@ import type { AbstractType, YArrayEvent } from 'yjs'; | ||
*/ | ||
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options: DeleteCommentOptions): TCollabThread | null | undefined; | ||
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options?: DeleteCommentOptions): TCollabThread | null | undefined; | ||
/** | ||
@@ -153,0 +153,0 @@ * Start watching threads for changes |
@@ -53,6 +53,7 @@ /// <reference types="node" /> | ||
onDisconnect?(data: onDisconnectPayload): Promise<any>; | ||
beforeUnloadDocument?(data: beforeUnloadDocumentPayload): Promise<any>; | ||
afterUnloadDocument?(data: afterUnloadDocumentPayload): Promise<any>; | ||
onDestroy?(data: onDestroyPayload): Promise<any>; | ||
} | ||
export type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'beforeBroadcastStateless' | 'onStateless' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'afterUnloadDocument' | 'onDestroy'; | ||
export type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'beforeBroadcastStateless' | 'onStateless' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'beforeUnloadDocument' | 'afterUnloadDocument' | 'onDestroy'; | ||
export type HookPayloadByName = { | ||
@@ -78,2 +79,3 @@ onConfigure: onConfigurePayload; | ||
afterUnloadDocument: afterUnloadDocumentPayload; | ||
beforeUnloadDocument: beforeUnloadDocumentPayload; | ||
onDestroy: onDestroyPayload; | ||
@@ -315,2 +317,6 @@ }; | ||
} | ||
export interface beforeUnloadDocumentPayload { | ||
instance: Hocuspocus; | ||
documentName: string; | ||
} | ||
export interface DirectConnection { | ||
@@ -317,0 +323,0 @@ transact(transaction: (document: Document) => void): Promise<void>; |
{ | ||
"name": "@hocuspocus/extension-logger", | ||
"version": "2.15.1", | ||
"version": "2.15.2", | ||
"description": "hocuspocus logging extension", | ||
@@ -32,5 +32,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.15.1" | ||
"@hocuspocus/server": "^2.15.2" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
97163
0.27%2362
0.25%+ Added
- Removed
Updated