@hocuspocus/transformer
Advanced tools
Comparing version 1.0.0-alpha.17 to 1.0.0-alpha.18
@@ -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; | ||
} |
@@ -45,3 +45,3 @@ /// <reference types="node" /> | ||
*/ | ||
sendRequest(event: Events, payload: any): Promise<AxiosResponse<unknown, any>>; | ||
sendRequest(event: Events, payload: any): Promise<AxiosResponse<any, any>>; | ||
/** | ||
@@ -48,0 +48,0 @@ * onChange hook |
@@ -133,3 +133,3 @@ import * as Y from 'yjs'; | ||
forceSync(): void; | ||
registerBeforeUnloadEventListener(): void; | ||
registerEventListeners(): void; | ||
documentUpdateHandler(update: Uint8Array, origin: any): void; | ||
@@ -136,0 +136,0 @@ awarenessUpdateHandler({ added, updated, removed }: any, origin: any): void; |
export * from './HocuspocusProvider'; | ||
export * from './HocuspocusCloudProvider'; | ||
export * from './types'; | ||
export * from './utils'; |
/// <reference types="node" /> | ||
import WebSocket, { WebSocketServer } from 'ws'; | ||
import { IncomingMessage, Server as HTTPServer } from 'http'; | ||
import { Configuration } from './types'; | ||
import { Configuration, Hook } from './types'; | ||
import { MessageLogger } from './Debugger'; | ||
import { onListenPayload } from '.'; | ||
export declare const defaultConfiguration: { | ||
@@ -10,5 +11,6 @@ name: null; | ||
timeout: number; | ||
quiet: boolean; | ||
}; | ||
/** | ||
* Hocuspocus server | ||
* Hocuspocus Server | ||
*/ | ||
@@ -29,3 +31,4 @@ export declare class Hocuspocus { | ||
*/ | ||
listen(): Promise<void>; | ||
listen(portOrCallback?: number | ((data: onListenPayload) => Promise<any>) | null, callback?: any): Promise<void>; | ||
private showStartScreen; | ||
/** | ||
@@ -69,5 +72,4 @@ * Get the total number of active documents | ||
* Runs the given callback after each hook | ||
* @private | ||
*/ | ||
private hooks; | ||
hooks(name: Hook, payload: any, callback?: Function | null): Promise<any>; | ||
/** | ||
@@ -82,3 +84,3 @@ * Get parameters by the given request | ||
*/ | ||
private static getDocumentName; | ||
private getDocumentNameFromRequest; | ||
enableDebugging(): void; | ||
@@ -85,0 +87,0 @@ enableMessageLogging(): void; |
@@ -70,2 +70,14 @@ /// <reference types="node" /> | ||
timeout: number; | ||
/** | ||
* 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 | ||
*/ | ||
getDocumentName?(data: { | ||
documentName: string; | ||
request: IncomingMessage; | ||
requestParameters: URLSearchParams; | ||
}): string | Promise<string>; | ||
} | ||
@@ -72,0 +84,0 @@ export interface onAuthenticatePayload { |
{ | ||
"name": "@hocuspocus/transformer", | ||
"version": "1.0.0-alpha.17", | ||
"version": "1.0.0-alpha.18", | ||
"description": "hocuspocus transformation utilities", | ||
@@ -30,8 +30,8 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@tiptap/core": "^2.0.0-beta.6", | ||
"prosemirror-model": "^1.13.3", | ||
"y-prosemirror": "^1.0.7", | ||
"yjs": "^13.5.0" | ||
"@tiptap/core": "^2.0.0-beta.150", | ||
"prosemirror-model": "^1.15.0", | ||
"y-prosemirror": "^1.0.13", | ||
"yjs": "^13.5.22" | ||
}, | ||
"gitHead": "53a194759b3bfbea5cf22bab39e3788021387f69" | ||
"gitHead": "8ffe8d8f4d10ba33f4f203806bd1d4415bef5dc3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2403721
67
19571
Updated@tiptap/core@^2.0.0-beta.150
Updatedprosemirror-model@^1.15.0
Updatedy-prosemirror@^1.0.13
Updatedyjs@^13.5.22