@hocuspocus/transformer
Advanced tools
Comparing version 2.6.1 to 2.7.0
@@ -11,3 +11,3 @@ import { Extension, onChangePayload, onLoadDocumentPayload, storePayload, fetchPayload } from '@hocuspocus/server'; | ||
*/ | ||
store: (data: storePayload) => void; | ||
store: (data: storePayload) => Promise<void>; | ||
} | ||
@@ -14,0 +14,0 @@ export declare class Database implements Extension { |
@@ -94,3 +94,2 @@ import * as mutex from 'lib0/mutex'; | ||
boundOnOpen: (event: Event) => Promise<void>; | ||
boundOnMessage: (event: MessageEvent) => void; | ||
boundOnClose: (event: CloseEvent) => void; | ||
@@ -97,0 +96,0 @@ boundOnStatus: ({ status }: onStatusParameters) => void; |
@@ -80,2 +80,6 @@ import * as mutex from 'lib0/mutex'; | ||
quiet: boolean; | ||
/** | ||
* Map of attached providers keyed by documentName. | ||
*/ | ||
providerMap: Map<string, HocuspocusProvider>; | ||
} | ||
@@ -82,0 +86,0 @@ export declare class HocuspocusProviderWebsocket extends EventEmitter { |
@@ -9,2 +9,3 @@ import { Decoder } from 'lib0/decoding'; | ||
constructor(data: any); | ||
peekVarString(): string; | ||
readVarUint(): MessageType; | ||
@@ -11,0 +12,0 @@ readVarString(): string; |
@@ -13,3 +13,3 @@ import Document from './Document.js'; | ||
transact(transaction: (document: Document) => void, transactionOrigin?: any): Promise<void>; | ||
disconnect(): void; | ||
disconnect(): Promise<void>; | ||
} |
@@ -22,2 +22,3 @@ import WebSocket from 'ws'; | ||
isLoading: boolean; | ||
isDestroyed: boolean; | ||
/** | ||
@@ -91,3 +92,4 @@ * Constructor. | ||
broadcastStateless(payload: string): void; | ||
destroy(): void; | ||
} | ||
export default Document; |
@@ -85,3 +85,3 @@ /// <reference types="node" /> | ||
createDocument(documentName: string, request: Partial<Pick<IncomingMessage, 'headers' | 'url'>>, socketId: string, connection: ConnectionConfiguration, context?: any): Promise<Document>; | ||
storeDocumentHooks(document: Document, hookPayload: onStoreDocumentPayload): void; | ||
storeDocumentHooks(document: Document, hookPayload: onStoreDocumentPayload): Promise<void>; | ||
/** | ||
@@ -88,0 +88,0 @@ * Run the given hook on all configured extensions. |
@@ -134,2 +134,3 @@ /// <reference types="node" /> | ||
export interface onAuthenticatePayload { | ||
context: any; | ||
documentName: string; | ||
@@ -136,0 +137,0 @@ instance: Hocuspocus; |
{ | ||
"name": "@hocuspocus/transformer", | ||
"version": "2.6.1", | ||
"version": "2.7.0", | ||
"description": "hocuspocus transformation utilities", | ||
@@ -5,0 +5,0 @@ "homepage": "https://hocuspocus.dev", |
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
694515
7192