@hocuspocus/extension-logger 1.0.0-alpha.57 → 1.0.0-alpha.58

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.
@@ -75,7 +75,7 @@ export declare class Hocuspocus {
75
75
  * Get document name by the given request
76
76
  * @private
77
77
  */
78
- private static getDocumentName;
78
+ private getDocumentNameFromRequest;
79
79
  enableDebugging(): void;
80
80
  enableMessageLogging(): void;
81
81
  disableLogging(): void;
@@ -67,6 +67,14 @@ export interface Configuration extends Extension {
67
67
  * Defines in which interval the server sends a ping, and closes the connection when no pong is sent back.
68
68
  */
69
69
  timeout: number;
70
+ /**
71
+ * Function which returns the (customized) document name based on the request
72
+ */
73
+ getDocumentName?(data: {
74
+ documentName: string;
75
+ request: IncomingMessage;
76
+ requestParameters: URLSearchParams;
77
+ }): string;
70
78
  }
71
79
  export interface onAuthenticatePayload {
72
80
  documentName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-logger",
3
- "version": "1.0.0-alpha.57",
3
+ "version": "1.0.0-alpha.58",
4
4
  "description": "hocuspocus logging extension",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@hocuspocus/server": "^1.0.0-alpha.83"
31
+ "@hocuspocus/server": "^1.0.0-alpha.84"
32
32
  },
33
- "gitHead": "0d060abd95ec14eb7e404270e1e2338b2a0db332"
33
+ "gitHead": "fa947e4cb14426c27c53f7b0a77dcd73d1714cda"
34
34
  }