@hocuspocus/server
Advanced tools
Comparing version 1.0.0-alpha.78 to 1.0.0-alpha.79
@@ -5,6 +5,49 @@ import { Extension, onChangePayload, onConfigurePayload, onConnectPayload, onLoadDocumentPayload, onDestroyPayload, onDisconnectPayload, onListenPayload, onRequestPayload, onUpgradePayload } from '@hocuspocus/server'; | ||
* Prepend all logging message with a string. | ||
* | ||
* @deprecated | ||
*/ | ||
prefix: null | string; | ||
/** | ||
* Whether to log something for the `onLoadDocument` hook. | ||
*/ | ||
onLoadDocument: boolean; | ||
/** | ||
* Whether to log something for the `onChange` hook. | ||
*/ | ||
onChange: boolean; | ||
/** | ||
* Whether to log something for the `onConnect` hook. | ||
*/ | ||
onConnect: boolean; | ||
/** | ||
* Whether to log something for the `onDisconnect` hook. | ||
*/ | ||
onDisconnect: boolean; | ||
/** | ||
* Whether to log something for the `onUpgrade` hook. | ||
*/ | ||
onUpgrade: boolean; | ||
/** | ||
* Whether to log something for the `onRequest` hook. | ||
*/ | ||
onRequest: boolean; | ||
/** | ||
* Whether to log something for the `onListen` hook. | ||
*/ | ||
onListen: boolean; | ||
/** | ||
* Whether to log something for the `onDestroy` hook. | ||
*/ | ||
onDestroy: boolean; | ||
/** | ||
* Whether to log something for the `onConfigure` hook. | ||
*/ | ||
onConfigure: boolean; | ||
/** | ||
* A log function, if none is provided output will go to console | ||
*/ | ||
log: (...args: any[]) => void; | ||
} | ||
export declare class Logger implements Extension { | ||
name: string | null; | ||
configuration: LoggerConfiguration; | ||
@@ -24,3 +67,4 @@ /** | ||
onConfigure(data: onConfigurePayload): Promise<void>; | ||
private logRawText; | ||
private log; | ||
} |
@@ -7,2 +7,3 @@ /// <reference types="node" /> | ||
export declare const defaultConfiguration: { | ||
name: null; | ||
port: number; | ||
@@ -9,0 +10,0 @@ timeout: number; |
@@ -50,2 +50,6 @@ /// <reference types="node" /> | ||
/** | ||
* A name for the instance, used for logging. | ||
*/ | ||
name: string | null; | ||
/** | ||
* A list of hocuspocus extenions. | ||
@@ -52,0 +56,0 @@ */ |
{ | ||
"name": "@hocuspocus/server", | ||
"description": "plug & play collaboration backend", | ||
"version": "1.0.0-alpha.78", | ||
"version": "1.0.0-alpha.79", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -18,4 +18,9 @@ "keywords": [ | ||
"exports": { | ||
"import": "./dist/hocuspocus-server.esm.js", | ||
"require": "./dist/hocuspocus-server.cjs" | ||
"development": { | ||
"import": "./src" | ||
}, | ||
"default": { | ||
"import": "./dist/hocuspocus-server.esm.js", | ||
"require": "./dist/hocuspocus-server.cjs" | ||
} | ||
}, | ||
@@ -36,3 +41,3 @@ "files": [ | ||
}, | ||
"gitHead": "0cc0acea1bbc8ba2106d9b5faa9384f4dc34f57d" | ||
"gitHead": "f9f5acf828d4a1f5ae4df8188000b5c3873e18cf" | ||
} |
@@ -18,2 +18,3 @@ import * as decoding from 'lib0/decoding' | ||
export const defaultConfiguration = { | ||
name: null, | ||
port: 80, | ||
@@ -20,0 +21,0 @@ timeout: 30000, |
@@ -57,2 +57,6 @@ import { | ||
/** | ||
* A name for the instance, used for logging. | ||
*/ | ||
name: string | null, | ||
/** | ||
* A list of hocuspocus extenions. | ||
@@ -59,0 +63,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
525141
6318