@hocuspocus/server
Advanced tools
Comparing version 2.8.0 to 2.8.1
{ | ||
"name": "@hocuspocus/server", | ||
"description": "plug & play collaboration backend", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@hocuspocus/common": "^2.8.0", | ||
"@hocuspocus/common": "^2.8.1", | ||
"async-lock": "^1.3.1", | ||
@@ -46,6 +46,6 @@ "kleur": "^4.1.4", | ||
"peerDependencies": { | ||
"y-protocols": "^1.0.5", | ||
"yjs": "^13.6.4" | ||
"y-protocols": "^1.0.6", | ||
"yjs": "^13.6.8" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
@@ -301,4 +301,4 @@ import { IncomingMessage } from 'http' | ||
*/ | ||
destroy(): Promise<any> { | ||
return new Promise(async resolve => { | ||
async destroy(): Promise<any> { | ||
await new Promise(async resolve => { | ||
@@ -316,3 +316,6 @@ this.server?.httpServer?.close() | ||
this.server?.webSocketServer?.close() | ||
if (this.getDocumentsCount() === 0) resolve('') | ||
this.closeConnections() | ||
} catch (error) { | ||
@@ -324,5 +327,5 @@ console.error(error) | ||
await this.hooks('onDestroy', { instance: this }) | ||
}) | ||
await this.hooks('onDestroy', { instance: this }) | ||
} | ||
@@ -329,0 +332,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
3
805185
9495
Updated@hocuspocus/common@^2.8.1