@hocuspocus/extension-throttle 1.0.0-beta.5 → 1.0.0-beta.7
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.
|
@@ -30,10 +30,6 @@ export interface Extension {
|
|
|
30
30
|
onConnect?(data: onConnectPayload): Promise<any>;
|
|
31
31
|
connected?(data: connectedPayload): Promise<any>;
|
|
32
32
|
onAuthenticate?(data: onAuthenticatePayload): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead
|
|
35
|
-
*/
|
|
36
|
-
onCreateDocument?(data: onLoadDocumentPayload): Promise<any>;
|
|
37
33
|
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>;
|
|
38
34
|
afterLoadDocument?(data: onLoadDocumentPayload): Promise<any>;
|
|
39
35
|
beforeHandleMessage?(data: beforeHandleMessagePayload): Promise<any>;
|
|
@@ -45,11 +41,7 @@ export interface Extension {
|
|
|
45
41
|
onDisconnect?(data: onDisconnectPayload): Promise<any>;
|
|
46
42
|
onDestroy?(data: onDestroyPayload): Promise<any>;
|
|
47
43
|
}
|
|
48
|
-
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' |
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead
|
|
51
|
-
*/
|
|
52
|
-
'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy';
|
|
44
|
+
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy';
|
|
53
45
|
export declare type HookPayload = onConfigurePayload | onListenPayload | onUpgradePayload | onConnectPayload | connectedPayload | onAuthenticatePayload | onLoadDocumentPayload | onChangePayload | onStoreDocumentPayload | afterStoreDocumentPayload | onAwarenessUpdatePayload | onRequestPayload | onDisconnectPayload | onDestroyPayload;
|
|
54
46
|
export interface Configuration extends Extension {
|
|
55
47
|
/**
|
|
@@ -63,7 +55,11 @@ export interface Configuration extends Extension {
|
|
|
63
55
|
/**
|
|
64
56
|
* The port which the server listens on.
|
|
65
57
|
*/
|
|
66
|
-
port
|
|
58
|
+
port?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The address which the server listens on.
|
|
61
|
+
*/
|
|
62
|
+
address?: string;
|
|
67
63
|
/**
|
|
68
64
|
* Defines in which interval the server sends a ping, and closes the connection when no pong is sent back.
|
|
69
65
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Hocuspocus, Configuration } from '@hocuspocus/server';
|
|
2
|
-
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Hocuspocus
|
|
2
|
+
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Promise<Hocuspocus>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-throttle",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "hocuspocus throttle extension",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@hocuspocus/server": "^1.0.0-beta.
|
|
30
|
+
"@hocuspocus/server": "^1.0.0-beta.7"
|
|
31
31
|
},
|
|
32
32
|
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d"
|
|
33
33
|
}
|