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

@hocuspocus/transformer

Package Overview
Dependencies
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/transformer - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

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

3

dist/packages/server/src/DirectConnection.d.ts
import Document from './Document.js';
import type { Hocuspocus } from './Hocuspocus.js';
export declare class DirectConnection {
import type { DirectConnection as DirectConnectionInterface } from './types';
export declare class DirectConnection implements DirectConnectionInterface {
document: Document | null;

@@ -5,0 +6,0 @@ instance: Hocuspocus;

/// <reference types="node" />
/// <reference types="node" />
import { IncomingMessage, Server as HTTPServer } from 'http';
import { Server as HTTPServer, IncomingMessage } from 'http';
import WebSocket, { AddressInfo, WebSocketServer } from 'ws';
import { Configuration, HookName, HookPayload, onListenPayload, onStoreDocumentPayload } from './types.js';
import Document from './Document.js';
import { Debugger } from './Debugger.js';
import { DirectConnection } from './DirectConnection.js';
import Document from './Document.js';
import { Configuration, ConnectionConfiguration, HookName, HookPayload, onListenPayload, onStoreDocumentPayload } from './types.js';
export declare const defaultConfiguration: {

@@ -72,3 +72,3 @@ name: null;

*/
handleConnection(incoming: WebSocket, request: IncomingMessage, context?: any): void;
handleConnection(incoming: WebSocket, request: IncomingMessage, defaultContext?: any): void;
/**

@@ -89,7 +89,3 @@ * Handle update of the given document

*/
private createDocument;
/**
* Create a new connection by the given request and document
*/
private createConnection;
createDocument(documentName: string, request: Partial<Pick<IncomingMessage, 'headers' | 'url'>>, socketId: string, connection: ConnectionConfiguration, context?: any): Promise<Document>;
storeDocumentHooks(document: Document, hookPayload: onStoreDocumentPayload): void;

@@ -101,6 +97,2 @@ /**

hooks(name: HookName, payload: HookPayload, callback?: Function | null): Promise<any>;
/**
* Get parameters by the given request
*/
private static getParameters;
enableDebugging(): void;

@@ -107,0 +99,0 @@ enableMessageLogging(): void;

@@ -267,1 +267,5 @@ /// <reference types="node" />

}
export interface DirectConnection {
transact(transaction: (document: Document) => void): Promise<void>;
disconnect(): void;
}
{
"name": "@hocuspocus/transformer",
"version": "2.1.0",
"version": "2.2.0",
"description": "hocuspocus transformation utilities",

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

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