Socket
Socket
Sign inDemoInstall

@hocuspocus/server

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/server - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/tests/extension-throttle/banning.d.ts

7

dist/packages/extension-throttle/src/index.d.ts

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

/// <reference types="node" />
import { Extension, onConnectPayload } from '@hocuspocus/server';
export interface ThrottleConfiguration {
throttle: number | null | false;
consideredSeconds: number;
banTime: number;
cleanupInterval: number;
}

@@ -10,2 +13,3 @@ export declare class Throttle implements Extension {

bannedIps: Map<string, number>;
cleanupInterval?: NodeJS.Timer;
/**

@@ -15,2 +19,5 @@ * Constructor

constructor(configuration?: Partial<ThrottleConfiguration>);
onDestroy(): Promise<void>;
clearMaps(): void;
isBanned(ip: string): boolean;
/**

@@ -17,0 +24,0 @@ * Throttle requests

4

package.json
{
"name": "@hocuspocus/server",
"description": "plug & play collaboration backend",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://hocuspocus.dev",

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

"dependencies": {
"@hocuspocus/common": "^1.0.0",
"@hocuspocus/common": "^1.0.1",
"@types/async-lock": "^1.1.3",

@@ -34,0 +34,0 @@ "@types/uuid": "^9.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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