@hocuspocus/extension-database
Advanced tools
Comparing version 1.0.0-alpha.9 to 1.0.0-alpha.10
export * from './auth'; | ||
export * from './CloseEvents'; | ||
export * from './awarenessStatesToArray'; | ||
export * from './types'; |
/// <reference types="node" /> | ||
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onLoadDocumentPayload, onDisconnectPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server'; | ||
import { Extension, onChangePayload, onConfigurePayload, onLoadDocumentPayload, onDisconnectPayload, onRequestPayload, onUpgradePayload, connectedPayload } from '@hocuspocus/server'; | ||
import { IncomingMessage, ServerResponse } from 'http'; | ||
@@ -33,3 +33,3 @@ import WebSocket from 'ws'; | ||
onUpgrade({ request, socket, head }: onUpgradePayload): Promise<void>; | ||
onConnect(data: onConnectPayload): Promise<void>; | ||
connected(data: connectedPayload): Promise<void>; | ||
onDisconnect(data: onDisconnectPayload): Promise<void>; | ||
@@ -36,0 +36,0 @@ onLoadDocument(data: onLoadDocumentPayload): Promise<void>; |
@@ -136,2 +136,3 @@ import * as Y from 'yjs'; | ||
resolveConnectionAttempt(): void; | ||
stopConnectionAttempt(): void; | ||
rejectConnectionAttempt(): void; | ||
@@ -153,5 +154,4 @@ get document(): Y.Doc; | ||
disconnect(): void; | ||
onOpen(event: Event): void; | ||
onOpen(event: Event): Promise<void>; | ||
getToken(): Promise<string | null>; | ||
webSocketConnectionEstablished(): Promise<void>; | ||
startSync(): void; | ||
@@ -158,0 +158,0 @@ send(Message: ConstructableOutgoingMessage, args: any, broadcast?: boolean): void; |
@@ -15,12 +15,2 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* State of the WebSocket connection. | ||
* https://developer.mozilla.org/de/docs/Web/API/WebSocket/readyState | ||
*/ | ||
export declare enum WsReadyStates { | ||
Connecting = 0, | ||
Open = 1, | ||
Closing = 2, | ||
Closed = 3 | ||
} | ||
export interface AwarenessUpdate { | ||
@@ -27,0 +17,0 @@ added: Array<any>; |
{ | ||
"name": "@hocuspocus/extension-database", | ||
"description": "a generic Hocuspocus persistence driver for the database", | ||
"version": "1.0.0-alpha.9", | ||
"version": "1.0.0-alpha.10", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@hocuspocus/server": "^1.0.0-alpha.95", | ||
"@hocuspocus/server": "^1.0.0-alpha.96", | ||
"yjs": "^13.5.24" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "41c2ca3452f17e7dab914c633cde04ae68f45929" | ||
"gitHead": "771a8cbad1016dd12080ff4b35fabb9680ec69a7" | ||
} |
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
60075
120
1584