Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hocuspocus/extension-webhook

Package Overview
Dependencies
Maintainers
5
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/extension-webhook - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0-rc.0

2

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

@@ -12,4 +12,4 @@ import Document from './Document.js';

constructor(document: Document, instance: Hocuspocus, context?: any);
transact(transaction: (document: Document) => void): Promise<void>;
transact(transaction: (document: Document) => void, transactionOrigin?: any): Promise<void>;
disconnect(): void;
}

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

};
unloadImmediately: boolean;
};

@@ -76,2 +77,5 @@ /**

* Handle update of the given document
*
* "connection" is not necessarily type "Connection", it's the Yjs "origin" (which is "Connection" if
* the update is incoming from the provider, but can be anything if the updates is originated from an extension.
*/

@@ -78,0 +82,0 @@ private handleDocumentUpdate;

@@ -112,2 +112,10 @@ /// <reference types="node" />

/**
* If set to false, respects the debounce time of `onStoreDocument` before unloading a document.
* Otherwise, the document will be unloaded immediately.
*
* This prevents a client from DOSing the server by repeatedly connecting and disconnecting when
* your onStoreDocument is rate-limited.
*/
unloadImmediately: boolean;
/**
* options to pass to the ydoc document

@@ -194,2 +202,3 @@ */

socketId: string;
transactionOrigin: any;
}

@@ -222,2 +231,3 @@ export interface beforeHandleMessagePayload {

socketId: string;
transactionOrigin?: any;
}

@@ -224,0 +234,0 @@ export interface afterStoreDocumentPayload extends onStoreDocumentPayload {

{
"name": "@hocuspocus/extension-webhook",
"version": "2.4.0",
"version": "2.5.0-rc.0",
"description": "hocuspocus webhook extension",

@@ -33,5 +33,5 @@ "homepage": "https://hocuspocus.dev",

"dependencies": {
"@hocuspocus/common": "^2.4.0",
"@hocuspocus/server": "^2.4.0",
"@hocuspocus/transformer": "^2.4.0",
"@hocuspocus/common": "^2.5.0-rc.0",
"@hocuspocus/server": "^2.5.0-rc.0",
"@hocuspocus/transformer": "^2.5.0-rc.0",
"axios": "^1.2.2"

@@ -38,0 +38,0 @@ },

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