@hocuspocus/provider
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "hocuspocus provider", | ||
@@ -31,3 +31,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^1.0.0", | ||
"@hocuspocus/common": "^1.0.1", | ||
"@lifeomic/attempt": "^3.0.2", | ||
@@ -34,0 +34,0 @@ "lib0": "^0.2.46" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
577119
132
6728
Updated@hocuspocus/common@^1.0.1