Socket
Socket
Sign inDemoInstall

@hocuspocus/common

Package Overview
Dependencies
Maintainers
5
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/common - npm Package Compare versions

Comparing version 2.7.1 to 2.8.0

dist/tests/server/afterLoadDocument.d.ts

4

dist/packages/provider/src/HocuspocusProviderWebsocket.d.ts

@@ -1,2 +0,1 @@

import * as mutex from 'lib0/mutex';
import type { MessageEvent } from 'ws';

@@ -88,3 +87,2 @@ import { Event } from 'ws';

configuration: CompleteHocuspocusProviderWebsocketConfiguration;
subscribedToBroadcastChannel: boolean;
webSocket: HocusPocusWebSocket | null;

@@ -98,3 +96,2 @@ webSocketHandlers: {

identifier: number;
mux: mutex.mutex;
intervals: any;

@@ -113,3 +110,2 @@ connectionAttempt: {

setConfiguration(configuration?: Partial<HocuspocusProviderWebsocketConfiguration>): void;
boundConnect: () => Promise<unknown>;
cancelWebsocketRetry?: () => void;

@@ -116,0 +112,0 @@ connect(): Promise<unknown>;

@@ -22,2 +22,3 @@ /// <reference types="node" />

unloadImmediately: boolean;
stopOnSignals: boolean;
};

@@ -32,3 +33,3 @@ /**

debugger: Debugger;
debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => void;
debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
constructor(configuration?: Partial<Configuration>);

@@ -35,0 +36,0 @@ /**

@@ -120,2 +120,8 @@ /// <reference types="node" />

/**
* the server will gracefully stop if SIGINT, SIGQUIT or SIGTERM is received.
*
* Set this to false if you don't want that.
*/
stopOnSignals: boolean;
/**
* options to pass to the ydoc document

@@ -122,0 +128,0 @@ */

@@ -1,1 +0,1 @@

export declare const useDebounce: () => (id: string, func: Function, debounce: number, maxDebounce: number) => void;
export declare const useDebounce: () => (id: string, func: Function, debounce: number, maxDebounce: number) => any;
{
"name": "@hocuspocus/common",
"description": "shared code for multiple Hocuspocus packages",
"version": "2.7.1",
"version": "2.8.0",
"homepage": "https://hocuspocus.dev",

@@ -6,0 +6,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc