Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hocuspocus/common

Package Overview
Dependencies
Maintainers
6
Versions
130
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
3.3.1
to
3.3.2
+3
-3
dist/packages/server/src/Connection.d.ts

@@ -5,3 +5,3 @@ import type { IncomingMessage as HTTPIncomingMessage } from "node:http";

import type Document from "./Document.ts";
import type { beforeSyncPayload, onStatelessPayload, onTokenSyncPayload } from "./types.ts";
import type { beforeSyncPayload, onTokenSyncPayload, onStatelessPayload } from "./types.ts";
export declare class Connection {

@@ -42,4 +42,4 @@ webSocket: WebSocket;

/**
* Set a callback that will be triggered when on token sync message is received
*/
* Set a callback that will be triggered when on token sync message is received
*/
onTokenSyncCallback(callback: (payload: onTokenSyncPayload) => Promise<void>): Connection;

@@ -46,0 +46,0 @@ /**

@@ -8,5 +8,5 @@ import type Connection from "./Connection.ts";

constructor(message: IncomingMessage, defaultTransactionOrigin?: string);
apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 1 | 2;
apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): Promise<void>;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 1 | 2>;
applyQueryAwarenessMessage(document: Document, reply?: (message: Uint8Array) => void): void;
}
{
"name": "@hocuspocus/common",
"description": "shared code for multiple Hocuspocus packages",
"version": "3.3.1",
"version": "3.3.2",
"homepage": "https://hocuspocus.dev",

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