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.28 to 1.0.0-alpha.29

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

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [1.0.0-alpha.29](https://github.com/ueberdosis/hocuspocus/compare/@hocuspocus/extension-webhook@1.0.0-alpha.28...@hocuspocus/extension-webhook@1.0.0-alpha.29) (2021-08-27)
**Note:** Version bump only for package @hocuspocus/extension-webhook
# [1.0.0-alpha.28](https://github.com/ueberdosis/hocuspocus/compare/@hocuspocus/extension-webhook@1.0.0-alpha.27...@hocuspocus/extension-webhook@1.0.0-alpha.28) (2021-08-19)

@@ -8,0 +16,0 @@

10

dist/hocuspocus-webhook.esm.js

@@ -147,12 +147,2 @@ import { createHmac } from 'crypto';

}
async onUpgrade(data) {
}
async onRequest(data) {
}
async onListen(data) {
}
async onDestroy(data) {
}
async onConfigure(data) {
}
}

@@ -159,0 +149,0 @@

4

dist/packages/monitor/src/index.d.ts
/// <reference types="node" />
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDisconnectPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { IncomingMessage, ServerResponse } from 'http';

@@ -37,5 +37,3 @@ import WebSocket from 'ws';

onChange(data: onChangePayload): Promise<void>;
onListen(data: onListenPayload): Promise<void>;
onDestroy(data: onDestroyPayload): Promise<void>;
onConfigure(data: onConfigurePayload): Promise<void>;
}

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

onDestroy: () => void;
onAwarenessUpdate: (states: any) => void;
onAwarenessChange: (states: any) => void;

@@ -43,0 +44,0 @@ debug: boolean;

@@ -1,11 +0,13 @@

import * as decoding from 'lib0/decoding';
import * as encoding from 'lib0/encoding';
import { Decoder } from 'lib0/decoding';
import { Encoder } from 'lib0/encoding';
import { MessageType } from './types';
export declare class IncomingMessage {
data: any;
encoder: encoding.Encoder;
decoder: decoding.Decoder;
type: MessageType;
encoder: Encoder;
decoder: Decoder;
constructor(data: any);
get name(): string;
readVarUint(): MessageType;
readVarUint8Array(): Uint8Array;
writeVarUint(type: MessageType): void;
writeVarUint8Array(data: Uint8Array): void;
}

@@ -1,2 +0,1 @@

import * as encoding from 'lib0/encoding';
import { HocuspocusProvider } from './HocuspocusProvider';

@@ -7,3 +6,3 @@ import { IncomingMessage } from './IncomingMessage';

constructor(message: IncomingMessage);
apply(provider: HocuspocusProvider, emitSynced?: boolean): encoding.Encoder;
apply(provider: HocuspocusProvider, emitSynced?: boolean): void;
private applySyncMessage;

@@ -10,0 +9,0 @@ private applyAwarenessMessage;

@@ -1,2 +0,2 @@

import * as encoding from 'lib0/encoding';
import { Encoder } from 'lib0/encoding';
import { AuthenticationMessage } from './OutgoingMessages/AuthenticationMessage';

@@ -10,3 +10,3 @@ import { AwarenessMessage } from './OutgoingMessages/AwarenessMessage';

export declare class MessageSender {
encoder: encoding.Encoder;
encoder: Encoder;
message: any;

@@ -13,0 +13,0 @@ constructor(Message: Constructable<AuthenticationMessage> | Constructable<AwarenessMessage> | Constructable<QueryAwarenessMessage> | Constructable<SyncStepOneMessage> | Constructable<SyncStepTwoMessage> | Constructable<UpdateMessage>, args?: any);

@@ -1,8 +0,8 @@

import * as encoding from 'lib0/encoding';
import { Encoder } from 'lib0/encoding';
import { MessageType, OutgoingMessageInterface } from './types';
export declare class OutgoingMessage implements OutgoingMessageInterface {
encoder: encoding.Encoder;
encoder: Encoder;
type?: MessageType;
constructor();
get name(): string;
toUint8Array(): Uint8Array;
}

@@ -1,2 +0,1 @@

import * as encoding from 'lib0/encoding';
import { MessageType, OutgoingMessageArguments } from '../types';

@@ -7,3 +6,3 @@ import { OutgoingMessage } from '../OutgoingMessage';

description: string;
get(args: Partial<OutgoingMessageArguments>): encoding.Encoder;
get(args: Partial<OutgoingMessageArguments>): import("lib0/encoding").Encoder;
}

@@ -1,2 +0,1 @@

import * as encoding from 'lib0/encoding';
import { MessageType, OutgoingMessageArguments } from '../types';

@@ -7,3 +6,3 @@ import { OutgoingMessage } from '../OutgoingMessage';

description: string;
get(args: Partial<OutgoingMessageArguments>): encoding.Encoder;
get(args: Partial<OutgoingMessageArguments>): import("lib0/encoding").Encoder;
}
import { RedisPersistence } from 'y-redis';
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { Extension, onConnectPayload, onCreateDocumentPayload, onDisconnectPayload } from '@hocuspocus/server';
export interface Configuration {

@@ -15,9 +15,3 @@ }

onConnect(data: onConnectPayload): Promise<void>;
onChange(data: onChangePayload): Promise<void>;
onDisconnect(data: onDisconnectPayload): Promise<void>;
onListen(data: onListenPayload): Promise<void>;
onDestroy(data: onDestroyPayload): Promise<void>;
onConfigure(data: onConfigurePayload): Promise<void>;
onRequest(data: onRequestPayload): Promise<void>;
onUpgrade(data: onUpgradePayload): Promise<void>;
}

@@ -1,2 +0,2 @@

import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { Extension, onCreateDocumentPayload } from '@hocuspocus/server';
import { LeveldbPersistence } from 'y-leveldb';

@@ -22,10 +22,2 @@ export interface Configuration {

store(documentName: string, update: Uint8Array): Promise<any>;
onChange(data: onChangePayload): Promise<void>;
onConnect(data: onConnectPayload): Promise<void>;
onDisconnect(data: onDisconnectPayload): Promise<void>;
onListen(data: onListenPayload): Promise<void>;
onDestroy(data: onDestroyPayload): Promise<void>;
onConfigure(data: onConfigurePayload): Promise<void>;
onRequest(data: onRequestPayload): Promise<void>;
onUpgrade(data: onUpgradePayload): Promise<void>;
}
import { Decoder } from 'lib0/decoding';
import { Encoder } from 'lib0/encoding';
import Document from './Document';
import Connection from './Connection';
import { MessageType } from './types';
export declare class IncomingMessage {
/**
* Access to the received message.
*/
decoder: Decoder;
syncMessageEncoder?: Encoder;
/**
* Access to the reply.
*/
encoder: Encoder;
constructor(input: any);
readSyncMessageAndApplyItTo(document: Document, connection?: Connection): void;
readUint8Array(): Uint8Array;
readVarUint8Array(): Uint8Array;
readVarUint(): number;
toUint8Array(): Uint8Array;
writeVarUint(type: MessageType): void;
get length(): number;
get type(): number;
private get encoder();
}

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

export declare enum MessageType {
Unknown = -1,
Sync = 0,

@@ -23,11 +24,11 @@ Awareness = 1,

onAuthenticate?(data: onAuthenticatePayload): Promise<any>;
onChange(data: onChangePayload): Promise<any>;
onConnect(data: onConnectPayload): Promise<any>;
onConfigure(data: onConfigurePayload): Promise<any>;
onCreateDocument(data: onCreateDocumentPayload): Promise<any>;
onDestroy(data: onDestroyPayload): Promise<any>;
onDisconnect(data: onDisconnectPayload): Promise<any>;
onListen(data: onListenPayload): Promise<any>;
onRequest(data: onRequestPayload): Promise<any>;
onUpgrade(data: onUpgradePayload): Promise<any>;
onChange?(data: onChangePayload): Promise<any>;
onConnect?(data: onConnectPayload): Promise<any>;
onConfigure?(data: onConfigurePayload): Promise<any>;
onCreateDocument?(data: onCreateDocumentPayload): Promise<any>;
onDestroy?(data: onDestroyPayload): Promise<any>;
onDisconnect?(data: onDisconnectPayload): Promise<any>;
onListen?(data: onListenPayload): Promise<any>;
onRequest?(data: onRequestPayload): Promise<any>;
onUpgrade?(data: onUpgradePayload): Promise<any>;
}

@@ -34,0 +35,0 @@ export interface Configuration extends Extension {

@@ -1,2 +0,2 @@

import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { Extension, onConnectPayload } from '@hocuspocus/server';
export interface Configuration {

@@ -20,10 +20,2 @@ throttle: number | null | false;

onConnect(data: onConnectPayload): Promise<any>;
onCreateDocument(data: onCreateDocumentPayload): Promise<void>;
onChange(data: onChangePayload): Promise<void>;
onDisconnect(data: onDisconnectPayload): Promise<void>;
onUpgrade(data: onUpgradePayload): Promise<void>;
onRequest(data: onRequestPayload): Promise<void>;
onListen(data: onListenPayload): Promise<void>;
onDestroy(data: onDestroyPayload): Promise<void>;
onConfigure(data: onConfigurePayload): Promise<void>;
}
/// <reference types="node" />
import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onCreateDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server';
import { Extension, onChangePayload, onConnectPayload, onCreateDocumentPayload, onDisconnectPayload } from '@hocuspocus/server';
import { Doc } from 'yjs';

@@ -59,7 +59,2 @@ import { Transformer } from '@hocuspocus/transformer';

onDisconnect(data: onDisconnectPayload): Promise<void>;
onUpgrade(data: onUpgradePayload): Promise<void>;
onRequest(data: onRequestPayload): Promise<void>;
onListen(data: onListenPayload): Promise<void>;
onDestroy(data: onDestroyPayload): Promise<void>;
onConfigure(data: onConfigurePayload): Promise<void>;
}
{
"name": "@hocuspocus/extension-webhook",
"version": "1.0.0-alpha.28",
"version": "1.0.0-alpha.29",
"description": "hocuspocus webhook extension",

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

"dependencies": {
"@hocuspocus/server": "^1.0.0-alpha.63",
"@hocuspocus/server": "^1.0.0-alpha.64",
"@hocuspocus/transformer": "^1.0.0-alpha.14",
"axios": "^0.21.1"
},
"gitHead": "13bb2b38c5887bb09c2b6565754888092c8e345b"
"gitHead": "d8938e5d42a85a8d447e7e63fd5e2bf4f18a7d2d"
}

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

onChangePayload,
onConfigurePayload,
onConnectPayload,
onCreateDocumentPayload,
onDestroyPayload,
onDisconnectPayload,
onListenPayload,
onRequestPayload,
onUpgradePayload,
} from '@hocuspocus/server'

@@ -203,17 +198,2 @@ import { Doc } from 'yjs'

async onUpgrade(data: onUpgradePayload) {
}
async onRequest(data: onRequestPayload) {
}
async onListen(data: onListenPayload) {
}
async onDestroy(data: onDestroyPayload) {
}
async onConfigure(data: onConfigurePayload) {
}
}

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