@hocuspocus/extension-webhook
Advanced tools
Comparing version 1.0.0-alpha.49 to 1.0.0-alpha.50
@@ -1,2 +0,2 @@ | ||
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onLoadDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server'; | ||
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onLoadDocumentPayload, onDestroyPayload, onDisconnectPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server'; | ||
export interface LoggerConfiguration { | ||
@@ -34,6 +34,2 @@ /** | ||
/** | ||
* Whether to log something for the `onListen` hook. | ||
*/ | ||
onListen: boolean; | ||
/** | ||
* Whether to log something for the `onDestroy` hook. | ||
@@ -58,2 +54,3 @@ */ | ||
constructor(configuration?: Partial<LoggerConfiguration>); | ||
onConfigure(data: onConfigurePayload): Promise<void>; | ||
onLoadDocument(data: onLoadDocumentPayload): Promise<void>; | ||
@@ -65,7 +62,4 @@ onChange(data: onChangePayload): Promise<void>; | ||
onRequest(data: onRequestPayload): Promise<void>; | ||
onListen(data: onListenPayload): Promise<void>; | ||
onDestroy(data: onDestroyPayload): Promise<void>; | ||
onConfigure(data: onConfigurePayload): Promise<void>; | ||
private logRawText; | ||
private log; | ||
} |
@@ -6,2 +6,3 @@ /// <reference types="node" /> | ||
import { MessageLogger } from './Debugger'; | ||
import { onListenPayload } from '.'; | ||
export declare const defaultConfiguration: { | ||
@@ -11,5 +12,6 @@ name: null; | ||
timeout: number; | ||
quiet: boolean; | ||
}; | ||
/** | ||
* Hocuspocus server | ||
* Hocuspocus Server | ||
*/ | ||
@@ -30,3 +32,4 @@ export declare class Hocuspocus { | ||
*/ | ||
listen(): Promise<void>; | ||
listen(portOrCallback?: number | ((data: onListenPayload) => Promise<any>) | null, callback?: any): Promise<void>; | ||
private showStartScreen; | ||
/** | ||
@@ -33,0 +36,0 @@ * Get the total number of active documents |
@@ -71,2 +71,6 @@ /// <reference types="node" /> | ||
/** | ||
* By default, the servers show a start screen. If passed false, the server will start quietly. | ||
*/ | ||
quiet: boolean; | ||
/** | ||
* Function which returns the (customized) document name based on the request | ||
@@ -73,0 +77,0 @@ */ |
{ | ||
"name": "@hocuspocus/extension-webhook", | ||
"version": "1.0.0-alpha.49", | ||
"version": "1.0.0-alpha.50", | ||
"description": "hocuspocus webhook extension", | ||
@@ -32,7 +32,7 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^1.0.0-alpha.85", | ||
"@hocuspocus/server": "^1.0.0-alpha.86", | ||
"@hocuspocus/transformer": "^1.0.0-alpha.17", | ||
"axios": "^0.23.0" | ||
}, | ||
"gitHead": "63a50dd02286693b5025ac385c3fb4afd6b29050" | ||
"gitHead": "505fc82451201ef77847dc5bc9e92edb498dcb8e" | ||
} |
74232
1613