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

@hocuspocus/extension-sqlite

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-sqlite - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

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/extension-sqlite",
"description": "a generic Hocuspocus persistence driver for the sqlite",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"homepage": "https://hocuspocus.dev",

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

"dependencies": {
"@hocuspocus/extension-database": "^1.0.0-alpha.6",
"@hocuspocus/extension-database": "^1.0.0-alpha.7",
"kleur": "^4.1.4",

@@ -40,3 +40,3 @@ "sqlite3": "^5.0.2"

},
"gitHead": "125d94dc3520bb5185293c9b316f66ddd9215992"
"gitHead": "05a7eb3d660175613d2fe7b6d9ec030e8e509683"
}
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