@hocuspocus/extension-webhook
Advanced tools
Comparing version 2.4.0 to 2.5.0-rc.0
@@ -12,4 +12,4 @@ import Document from './Document.js'; | ||
constructor(document: Document, instance: Hocuspocus, context?: any); | ||
transact(transaction: (document: Document) => void): Promise<void>; | ||
transact(transaction: (document: Document) => void, transactionOrigin?: any): Promise<void>; | ||
disconnect(): void; | ||
} |
@@ -22,2 +22,3 @@ /// <reference types="node" /> | ||
}; | ||
unloadImmediately: boolean; | ||
}; | ||
@@ -76,2 +77,5 @@ /** | ||
* Handle update of the given document | ||
* | ||
* "connection" is not necessarily type "Connection", it's the Yjs "origin" (which is "Connection" if | ||
* the update is incoming from the provider, but can be anything if the updates is originated from an extension. | ||
*/ | ||
@@ -78,0 +82,0 @@ private handleDocumentUpdate; |
@@ -112,2 +112,10 @@ /// <reference types="node" /> | ||
/** | ||
* If set to false, respects the debounce time of `onStoreDocument` before unloading a document. | ||
* Otherwise, the document will be unloaded immediately. | ||
* | ||
* This prevents a client from DOSing the server by repeatedly connecting and disconnecting when | ||
* your onStoreDocument is rate-limited. | ||
*/ | ||
unloadImmediately: boolean; | ||
/** | ||
* options to pass to the ydoc document | ||
@@ -194,2 +202,3 @@ */ | ||
socketId: string; | ||
transactionOrigin: any; | ||
} | ||
@@ -222,2 +231,3 @@ export interface beforeHandleMessagePayload { | ||
socketId: string; | ||
transactionOrigin?: any; | ||
} | ||
@@ -224,0 +234,0 @@ export interface afterStoreDocumentPayload extends onStoreDocumentPayload { |
{ | ||
"name": "@hocuspocus/extension-webhook", | ||
"version": "2.4.0", | ||
"version": "2.5.0-rc.0", | ||
"description": "hocuspocus webhook extension", | ||
@@ -33,5 +33,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^2.4.0", | ||
"@hocuspocus/server": "^2.4.0", | ||
"@hocuspocus/transformer": "^2.4.0", | ||
"@hocuspocus/common": "^2.5.0-rc.0", | ||
"@hocuspocus/server": "^2.5.0-rc.0", | ||
"@hocuspocus/transformer": "^2.5.0-rc.0", | ||
"axios": "^1.2.2" | ||
@@ -38,0 +38,0 @@ }, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
102335
2272
1