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

@hocuspocus/extension-webhook

Package Overview
Dependencies
Maintainers
3
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 1.0.0-alpha.39 to 1.0.0-alpha.40

dist/demos/backend/src/load-document.d.ts

4

dist/hocuspocus-webhook.esm.js

@@ -91,5 +91,5 @@ import { createHmac } from 'crypto';

/**
* onCreateDocument hook
* onLoadDocument hook
*/
async onCreateDocument(data) {
async onLoadDocument(data) {
if (!this.configuration.events.includes(Events.onCreate)) {

@@ -96,0 +96,0 @@ return;

@@ -111,3 +111,3 @@ import * as Y from 'yjs';

subscribedToBroadcastChannel: boolean;
webSocket: any;
webSocket: WebSocket | null;
shouldConnect: boolean;

@@ -114,0 +114,0 @@ status: WebSocketStatus;

@@ -9,3 +9,3 @@ import Connection from './Connection';

apply(connection: Connection): void;
readSyncMessage(message: IncomingMessage, connection: Connection): 0 | 1 | 2;
readSyncMessage(message: IncomingMessage, connection: Connection): 0 | 2 | 1;
}

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

onConfigure?(data: onConfigurePayload): Promise<any>;
onCreateDocument?(data: onCreateDocumentPayload): Promise<any>;
/**
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead
*/
onCreateDocument?(data: onLoadDocumentPayload): Promise<any>;
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>;
onDestroy?(data: onDestroyPayload): Promise<any>;

@@ -77,3 +81,3 @@ onDisconnect?(data: onDisconnectPayload): Promise<any>;

}
export interface onCreateDocumentPayload {
export interface onLoadDocumentPayload {
context: any;

@@ -80,0 +84,0 @@ document: Document;

{
"name": "@hocuspocus/extension-webhook",
"version": "1.0.0-alpha.39",
"version": "1.0.0-alpha.40",
"description": "hocuspocus webhook extension",

@@ -27,7 +27,7 @@ "homepage": "https://hocuspocus.dev",

"dependencies": {
"@hocuspocus/server": "^1.0.0-alpha.75",
"@hocuspocus/transformer": "^1.0.0-alpha.14",
"@hocuspocus/server": "^1.0.0-alpha.76",
"@hocuspocus/transformer": "^1.0.0-alpha.15",
"axios": "^0.23.0"
},
"gitHead": "49a520f1b6be37139f5c7243a484dc413640869c"
"gitHead": "fa031748b345c53bd71eaeca2bccfcf29cbb36e8"
}

@@ -6,3 +6,3 @@ import { createHmac } from 'crypto'

onConnectPayload,
onCreateDocumentPayload,
onLoadDocumentPayload,
onDisconnectPayload,

@@ -132,5 +132,5 @@ } from '@hocuspocus/server'

/**
* onCreateDocument hook
* onLoadDocument hook
*/
async onCreateDocument(data: onCreateDocumentPayload) {
async onLoadDocument(data: onLoadDocumentPayload) {
if (!this.configuration.events.includes(Events.onCreate)) {

@@ -137,0 +137,0 @@ return

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 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