Socket
Socket
Sign inDemoInstall

@hocuspocus/server

Package Overview
Dependencies
Maintainers
5
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/server - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

2

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

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

private getYThread;
createThread(data: Omit<TCollabThread, '_id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread | null;
createThread(data: Omit<TCollabThread, 'id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread | null;
updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data' | 'resolvedAt'>>): TCollabThread | null;

@@ -51,0 +51,0 @@ deleteThread(id: TCollabThread['id']): void;

@@ -90,5 +90,5 @@ import WebSocket from 'ws';

*/
broadcastStateless(payload: string): void;
broadcastStateless(payload: string, filter?: (conn: Connection) => boolean): void;
destroy(): void;
}
export default Document;
{
"name": "@hocuspocus/server",
"description": "plug & play collaboration backend",
"version": "2.10.0",
"version": "2.11.0",
"homepage": "https://hocuspocus.dev",

@@ -32,3 +32,3 @@ "keywords": [

"dependencies": {
"@hocuspocus/common": "^2.10.0",
"@hocuspocus/common": "^2.11.0",
"async-lock": "^1.3.1",

@@ -35,0 +35,0 @@ "kleur": "^4.1.4",

@@ -251,6 +251,8 @@ import WebSocket from 'ws'

*/
public broadcastStateless(payload: string): void {
public broadcastStateless(payload: string, filter?: (conn: Connection) => boolean): void {
this.callbacks.beforeBroadcastStateless(this, payload)
this.getConnections().forEach(connection => {
const connections = filter ? this.getConnections().filter(filter) : this.getConnections()
connections.forEach(connection => {
connection.sendStateless(payload)

@@ -257,0 +259,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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