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

@hocuspocus/extension-database

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/extension-database - npm Package Compare versions

Comparing version 1.0.0-alpha.11 to 1.0.0-alpha.12

2

dist/packages/extension-monitor/src/Collector.d.ts

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

version: string;
yjsVersion: string;
connections: {};

@@ -60,5 +59,4 @@ messages: {};

version: string;
yjsVersion: string;
}>;
private static readableYDoc;
}

32

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

@@ -6,10 +6,4 @@ import * as Y from 'yjs';

import EventEmitter from './EventEmitter';
import { OutgoingMessage } from './OutgoingMessage';
import { ConstructableOutgoingMessage } from './types';
import { ConstructableOutgoingMessage, onAuthenticationFailedParameters, onCloseParameters, onDisconnectParameters, onMessageParameters, onOpenParameters, onOutgoingMessageParameters, onStatusParameters, onSyncedParameters, WebSocketStatus } from './types';
import { onAwarenessChangeParameters, onAwarenessUpdateParameters } from '.';
export declare enum WebSocketStatus {
Connecting = "connecting",
Connected = "connected",
Disconnected = "disconnected"
}
export declare type HocuspocusProviderConfiguration = Required<Pick<CompleteHocuspocusProviderConfiguration, 'url' | 'name'>> & Partial<CompleteHocuspocusProviderConfiguration>;

@@ -96,18 +90,14 @@ export interface CompleteHocuspocusProviderConfiguration {

onAuthenticated: () => void;
onAuthenticationFailed: ({ reason }: {
reason: string;
}) => void;
onOpen: (event: Event) => void;
onAuthenticationFailed: (data: onAuthenticationFailedParameters) => void;
onOpen: (data: onOpenParameters) => void;
onConnect: () => void;
onMessage: (event: MessageEvent) => void;
onOutgoingMessage: (message: OutgoingMessage) => void;
onStatus: (status: any) => void;
onSynced: ({ state }: {
state: boolean;
}) => void;
onDisconnect: (event: CloseEvent) => void;
onClose: (event: CloseEvent) => void;
onMessage: (data: onMessageParameters) => void;
onOutgoingMessage: (data: onOutgoingMessageParameters) => void;
onStatus: (data: onStatusParameters) => void;
onSynced: (data: onSyncedParameters) => void;
onDisconnect: (data: onDisconnectParameters) => void;
onClose: (data: onCloseParameters) => void;
onDestroy: () => void;
onAwarenessUpdate: ({ states }: onAwarenessUpdateParameters) => void;
onAwarenessChange: ({ states }: onAwarenessChangeParameters) => void;
onAwarenessUpdate: (data: onAwarenessUpdateParameters) => void;
onAwarenessChange: (data: onAwarenessChangeParameters) => void;
/**

@@ -114,0 +104,0 @@ * Don’t output any warnings.

import { Awareness } from 'y-protocols/awareness';
import * as Y from 'yjs';
import { Encoder } from 'lib0/encoding';
import type { Event, CloseEvent, MessageEvent } from 'ws';
import { AuthenticationMessage } from './OutgoingMessages/AuthenticationMessage';

@@ -10,2 +11,4 @@ import { AwarenessMessage } from './OutgoingMessages/AwarenessMessage';

import { UpdateMessage } from './OutgoingMessages/UpdateMessage';
import { IncomingMessage } from './IncomingMessage';
import { OutgoingMessage } from './OutgoingMessage';
export declare enum MessageType {

@@ -17,2 +20,7 @@ Sync = 0,

}
export declare enum WebSocketStatus {
Connecting = "connecting",
Connected = "connected",
Disconnected = "disconnected"
}
export interface OutgoingMessageInterface {

@@ -37,2 +45,27 @@ encoder: Encoder;

export declare type ConstructableOutgoingMessage = Constructable<AuthenticationMessage> | Constructable<AwarenessMessage> | Constructable<QueryAwarenessMessage> | Constructable<SyncStepOneMessage> | Constructable<SyncStepTwoMessage> | Constructable<UpdateMessage>;
export declare type onAuthenticationFailedParameters = {
reason: string;
};
export declare type onOpenParameters = {
event: Event;
};
export declare type onMessageParameters = {
event: MessageEvent;
message: IncomingMessage;
};
export declare type onOutgoingMessageParameters = {
message: OutgoingMessage;
};
export declare type onStatusParameters = {
status: WebSocketStatus;
};
export declare type onSyncedParameters = {
state: boolean;
};
export declare type onDisconnectParameters = {
event: CloseEvent;
};
export declare type onCloseParameters = {
event: CloseEvent;
};
export declare type onAwarenessUpdateParameters = {

@@ -39,0 +72,0 @@ states: StatesArray;

@@ -215,4 +215,3 @@ /// <reference types="node" />

version: string;
yjsVersion: string;
instance: Hocuspocus;
}
{
"name": "@hocuspocus/extension-database",
"description": "a generic Hocuspocus persistence driver for the database",
"version": "1.0.0-alpha.11",
"version": "1.0.0-alpha.12",
"homepage": "https://hocuspocus.dev",

@@ -29,4 +29,4 @@ "keywords": [

"dependencies": {
"@hocuspocus/server": "^1.0.0-alpha.97",
"yjs": "^13.5.28"
"@hocuspocus/server": "^1.0.0-alpha.98",
"yjs": "^13.5.29"
},

@@ -36,3 +36,3 @@ "publishConfig": {

},
"gitHead": "673dd4b2c723e71bf9b33b8f7804ab35c8417417"
"gitHead": "1fc2a6cff1b5fd626b8dd7c486755111965da20d"
}

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