@hocuspocus/provider
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -42,3 +42,3 @@ /// <reference types="node" /> | ||
*/ | ||
beforeHandleMessage(callback: (payload: Document, update: Uint8Array) => Promise<any>): Connection; | ||
beforeHandleMessage(callback: (connection: Connection, update: Uint8Array) => Promise<any>): Connection; | ||
/** | ||
@@ -45,0 +45,0 @@ * Send the given message |
@@ -179,2 +179,3 @@ /// <reference types="node" /> | ||
socketId: string; | ||
connection: Connection; | ||
} | ||
@@ -181,0 +182,0 @@ export interface beforeBroadcastStatelessPayload { |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "hocuspocus provider", | ||
@@ -31,3 +31,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^2.0.1", | ||
"@hocuspocus/common": "^2.0.2", | ||
"@lifeomic/attempt": "^3.0.2", | ||
@@ -34,0 +34,0 @@ "lib0": "^0.2.47", |
@@ -216,3 +216,8 @@ import * as Y from 'yjs' | ||
if (!configuration.websocketProvider && (configuration as CompleteHocuspocusProviderWebsocketConfiguration).url) { | ||
this.configuration.websocketProvider = new HocuspocusProviderWebsocket({ url: (configuration as CompleteHocuspocusProviderWebsocketConfiguration).url }) | ||
const websocketProviderConfig = configuration as CompleteHocuspocusProviderWebsocketConfiguration | ||
this.configuration.websocketProvider = new HocuspocusProviderWebsocket({ | ||
url: websocketProviderConfig.url, | ||
parameters: websocketProviderConfig.parameters, | ||
}) | ||
} | ||
@@ -219,0 +224,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
671546
7702
143
5
Updated@hocuspocus/common@^2.0.2