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.8.1 to 2.9.0-rc.0

2

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

@@ -8,3 +8,3 @@ import type { AbstractType, YArrayEvent } from 'yjs';

/**
* A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
* A Hocuspocus Cloud App ID, get one here: https://cloud.tiptap.dev
*/

@@ -11,0 +11,0 @@ appId?: string;

@@ -5,3 +5,3 @@ import { CompleteHocuspocusProviderWebsocketConfiguration, HocuspocusProviderWebsocket } from './HocuspocusProviderWebsocket.js';

/**
* A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
* A Hocuspocus Cloud App ID, get one here: https://cloud.tiptap.dev
*/

@@ -8,0 +8,0 @@ appId: string;

@@ -32,3 +32,7 @@ /// <reference types="node" />

debugger: Debugger;
debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
debouncer: {
debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
isDebounced: (id: string) => boolean;
executeNow: (id: string) => any;
};
constructor(configuration?: Partial<Configuration>);

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

@@ -11,4 +11,4 @@ import Connection from './Connection.js';

apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 2 | 1;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 1 | 2;
applyQueryAwarenessMessage(document: Document, reply?: (message: Uint8Array) => void): void;
}

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

export declare const useDebounce: () => (id: string, func: Function, debounce: number, maxDebounce: number) => any;
export declare const useDebounce: () => {
debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
isDebounced: (id: string) => boolean;
executeNow: (id: string) => any;
};
{
"name": "@hocuspocus/common",
"description": "shared code for multiple Hocuspocus packages",
"version": "2.8.1",
"version": "2.9.0-rc.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