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

@hocuspocus/transformer

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

dist/packages/common/src/awarenessStatesToArray.d.ts

1

dist/packages/common/src/index.d.ts
export * from './auth';
export * from './CloseEvents';
export * from './awarenessStatesToArray';

8

dist/packages/extension-throttle/src/index.d.ts
import { Extension, onConnectPayload } from '@hocuspocus/server';
export interface Configuration {
export interface ThrottleConfiguration {
throttle: number | null | false;

@@ -7,6 +7,10 @@ banTime: number;

export declare class Throttle implements Extension {
configuration: Configuration;
configuration: ThrottleConfiguration;
connectionsByIp: Map<string, Array<number>>;
bannedIps: Map<string, number>;
/**
* Constructor
*/
constructor(configuration?: Partial<ThrottleConfiguration>);
/**
* Throttle requests

@@ -13,0 +17,0 @@ * @private

export * from './HocuspocusProvider';
export * from './HocuspocusCloudProvider';
export * from './types';
export * from './utils';

@@ -11,4 +11,4 @@ import { Awareness } from 'y-protocols/awareness';

apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): 0 | 1 | 2;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): 0 | 2 | 1;
applyQueryAwarenessMessage(awareness: Awareness, reply?: (message: Uint8Array) => void): void;
}

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

onConnect?(data: onConnectPayload): Promise<any>;
connected?(data: connectedPayload): Promise<any>;
onAuthenticate?(data: onAuthenticatePayload): Promise<any>;

@@ -57,3 +58,3 @@ /**

}
export declare type Hook = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'onAuthenticate' |
export declare type Hook = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' |
/**

@@ -121,2 +122,11 @@ * @deprecated onCreateDocument is deprecated, use onLoadDocument instead

}
export interface connectedPayload {
documentName: string;
instance: Hocuspocus;
request: IncomingMessage;
requestHeaders: IncomingHttpHeaders;
requestParameters: URLSearchParams;
socketId: string;
connection: ConnectionConfiguration;
}
export interface onLoadDocumentPayload {

@@ -123,0 +133,0 @@ context: any;

{
"name": "@hocuspocus/transformer",
"version": "1.0.0-alpha.19",
"version": "1.0.0-alpha.20",
"description": "hocuspocus transformation utilities",

@@ -36,3 +36,3 @@ "homepage": "https://hocuspocus.dev",

},
"gitHead": "125d94dc3520bb5185293c9b316f66ddd9215992"
"gitHead": "41c2ca3452f17e7dab914c633cde04ae68f45929"
}
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