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.3.1 to 2.4.0-rc.0

12

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

@@ -24,4 +24,9 @@ import * as mutex from 'lib0/mutex';

* An Awareness instance to keep the presence state of all clients.
*
* You can disable sharing awareness information by passing `null`.
* Note that having no awareness information shared across all connections will break our ping checks
* and thus trigger reconnects. You should always have at least one Provider with enabled awareness per
* socket connection, or ensure that the Provider receives messages before running into `HocuspocusProviderWebsocket.messageReconnectTimeout`.
*/
awareness: Awareness;
awareness: Awareness | null;
/**

@@ -72,2 +77,5 @@ * A token that’s sent to the backend for authentication purposes.

}
export declare class AwarenessError extends Error {
code: number;
}
export declare class HocuspocusProvider extends EventEmitter {

@@ -99,3 +107,3 @@ configuration: CompleteHocuspocusProviderConfiguration;

get document(): Y.Doc;
get awareness(): Awareness;
get awareness(): Awareness | null;
get hasUnsyncedChanges(): boolean;

@@ -102,0 +110,0 @@ incrementUnsyncedChanges(): void;

2

dist/packages/server/src/Document.d.ts

@@ -27,3 +27,3 @@ import WebSocket from 'ws';

/**
* Check if the Document is empty
* Check if the Document (XMLFragment or Map) is empty
*/

@@ -30,0 +30,0 @@ isEmpty(fieldName: string): boolean;

@@ -10,6 +10,9 @@ import { Decoder } from 'lib0/decoding';

/**
* Access to the reply.
* Private encoder; can be undefined.
*
* Lazy creation of the encoder speeds up IncomingMessages that need only a decoder.
*/
encoder: Encoder;
private encoderInternal?;
constructor(input: any);
get encoder(): Encoder;
readVarUint8Array(): Uint8Array;

@@ -16,0 +19,0 @@ readVarUint(): number;

{
"name": "@hocuspocus/common",
"description": "shared code for multiple Hocuspocus packages",
"version": "2.3.1",
"version": "2.4.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