New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

y-websocket

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

y-websocket - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

2

dist/src/y-websocket.d.ts

@@ -104,3 +104,3 @@ export const messageSync: 0;

_awarenessUpdateHandler: ({ added, updated, removed }: any, _origin: any) => void;
_unloadHandler: () => void;
_exitHandler: () => void;
_checkInterval: any;

@@ -107,0 +107,0 @@ set synced(arg: boolean);

{
"name": "y-websocket",
"version": "1.5.1",
"version": "1.5.2",
"description": "Websockets provider for Yjs",

@@ -5,0 +5,0 @@ "main": "./dist/y-websocket.cjs",

@@ -353,13 +353,11 @@ /**

}
this._unloadHandler = () => {
this._exitHandler = () => {
awarenessProtocol.removeAwarenessStates(
this.awareness,
[doc.clientID],
'window unload'
'app closed'
)
}
if (typeof window !== 'undefined') {
window.addEventListener('unload', this._unloadHandler)
} else if (typeof process !== 'undefined') {
process.on('exit', this._unloadHandler)
if (typeof process !== 'undefined') {
process.on('exit', this._exitHandler)
}

@@ -404,6 +402,4 @@ awareness.on('update', this._awarenessUpdateHandler)

this.disconnect()
if (typeof window !== 'undefined') {
window.removeEventListener('unload', this._unloadHandler)
} else if (typeof process !== 'undefined') {
process.off('exit', this._unloadHandler)
if (typeof process !== 'undefined') {
process.off('exit', this._exitHandler)
}

@@ -410,0 +406,0 @@ this.awareness.off('update', this._awarenessUpdateHandler)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc