@hocuspocus/extension-throttle 1.0.0-alpha.37 → 1.0.0-alpha.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export * from './auth';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import WebSocket, { WebSocketServer } from 'ws';
3
3
  import { IncomingMessage, Server as HTTPServer } from 'http';
4
- import { Configuration } from './types';
4
+ import { Configuration, Hook } from './types';
5
5
  import { MessageLogger } from './Debugger';
6
6
  export declare const defaultConfiguration: {
7
7
  name: null;
@@ -64,9 +64,8 @@ export declare class Hocuspocus {
64
64
  /**
65
65
  * Run the given hook on all configured extensions
66
66
  * Runs the given callback after each hook
67
- * @private
68
67
  */
69
- private hooks;
68
+ hooks(name: Hook, payload: any, callback?: Function | null): Promise<any>;
70
69
  /**
71
70
  * Get parameters by the given request
72
71
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-throttle",
3
- "version": "1.0.0-alpha.37",
3
+ "version": "1.0.0-alpha.39",
4
4
  "description": "hocuspocus throttle extension",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -27,7 +27,7 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@hocuspocus/server": "^1.0.0-alpha.81"
30
+ "@hocuspocus/server": "^1.0.0-alpha.83"
31
31
  },
32
- "gitHead": "53a194759b3bfbea5cf22bab39e3788021387f69"
32
+ "gitHead": "0d060abd95ec14eb7e404270e1e2338b2a0db332"
33
33
  }