@hocuspocus/extension-throttle
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-beta.0
@@ -5,3 +5,2 @@ /// <reference types="node" /> | ||
import { Transformer } from '@hocuspocus/transformer'; | ||
import { AxiosResponse } from 'axios'; | ||
export declare enum Events { | ||
@@ -45,3 +44,3 @@ onChange = "change", | ||
*/ | ||
sendRequest(event: Events, payload: any): Promise<AxiosResponse<any, any>>; | ||
sendRequest(event: Events, payload: any): Promise<import("axios").AxiosResponse<any, any>>; | ||
/** | ||
@@ -48,0 +47,0 @@ * onChange hook |
@@ -7,5 +7,5 @@ import * as Y from 'yjs'; | ||
import { ConstructableOutgoingMessage, onAuthenticationFailedParameters, onCloseParameters, onDisconnectParameters, onMessageParameters, onOpenParameters, onOutgoingMessageParameters, onStatelessParameters, onStatusParameters, onSyncedParameters, WebSocketStatus } from './types'; | ||
import { HocuspocusProviderWebsocket } from './HocuspocusProviderWebsocket'; | ||
import { CompleteHocuspocusProviderWebsocketConfiguration, HocuspocusProviderWebsocket } from './HocuspocusProviderWebsocket'; | ||
import { onAwarenessChangeParameters, onAwarenessUpdateParameters } from '.'; | ||
export declare type HocuspocusProviderConfiguration = Required<Pick<CompleteHocuspocusProviderConfiguration, 'name' | 'websocketProvider'>> & Partial<CompleteHocuspocusProviderConfiguration>; | ||
export declare type HocuspocusProviderConfiguration = Required<Pick<CompleteHocuspocusProviderConfiguration, 'name'>> & Partial<CompleteHocuspocusProviderConfiguration> & (Required<Pick<CompleteHocuspocusProviderWebsocketConfiguration, 'url'>> | Required<Pick<CompleteHocuspocusProviderConfiguration, 'websocketProvider'>>); | ||
export interface CompleteHocuspocusProviderConfiguration { | ||
@@ -74,2 +74,3 @@ /** | ||
intervals: any; | ||
isConnected: boolean; | ||
constructor(configuration: HocuspocusProviderConfiguration); | ||
@@ -76,0 +77,0 @@ onStatus({ status }: onStatusParameters): void; |
{ | ||
"name": "@hocuspocus/extension-throttle", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-beta.0", | ||
"description": "hocuspocus throttle extension", | ||
@@ -30,5 +30,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.0.0-alpha.1" | ||
"@hocuspocus/server": "^2.0.0-beta.0" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
83147
126
1971