@hocuspocus/extension-sqlite
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/extension-sqlite", | ||
"description": "a generic Hocuspocus persistence driver for the sqlite", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@hocuspocus/extension-database": "^1.0.0", | ||
"@hocuspocus/extension-database": "^1.0.1", | ||
"kleur": "^4.1.4", | ||
@@ -32,0 +32,0 @@ "sqlite3": "^5.0.11" |
70025
120
1756