@hocuspocus/provider
Advanced tools
Comparing version 1.0.0-beta.6 to 1.0.0-beta.7
@@ -11,2 +11,3 @@ /// <reference types="node" /> | ||
port: number; | ||
address: string; | ||
timeout: number; | ||
@@ -13,0 +14,0 @@ debounce: number; |
@@ -33,6 +33,2 @@ /// <reference types="node" /> | ||
onAuthenticate?(data: onAuthenticatePayload): Promise<any>; | ||
/** | ||
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead | ||
*/ | ||
onCreateDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
@@ -49,7 +45,3 @@ afterLoadDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
} | ||
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | | ||
/** | ||
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead | ||
*/ | ||
'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy'; | ||
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy'; | ||
export declare type HookPayload = onConfigurePayload | onListenPayload | onUpgradePayload | onConnectPayload | connectedPayload | onAuthenticatePayload | onLoadDocumentPayload | onChangePayload | onStoreDocumentPayload | afterStoreDocumentPayload | onAwarenessUpdatePayload | onRequestPayload | onDisconnectPayload | onDestroyPayload; | ||
@@ -68,4 +60,8 @@ export interface Configuration extends Extension { | ||
*/ | ||
port: number | null; | ||
port?: number; | ||
/** | ||
* The address which the server listens on. | ||
*/ | ||
address?: string; | ||
/** | ||
* Defines in which interval the server sends a ping, and closes the connection when no pong is sent back. | ||
@@ -72,0 +68,0 @@ */ |
import { Hocuspocus, Configuration } from '@hocuspocus/server'; | ||
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Hocuspocus; | ||
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Promise<Hocuspocus>; |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"description": "hocuspocus provider", | ||
@@ -31,3 +31,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^1.0.0-beta.6", | ||
"@hocuspocus/common": "^1.0.0-beta.7", | ||
"@lifeomic/attempt": "^3.0.2", | ||
@@ -34,0 +34,0 @@ "lib0": "^0.2.46" |
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
576897
6720