y-protocols
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "y-protocols", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Yjs encoding protocols", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -82,3 +82,8 @@ /** | ||
export const readSyncStep2 = (decoder, doc, transactionOrigin) => { | ||
Y.applyUpdate(doc, decoding.readVarUint8Array(decoder), transactionOrigin) | ||
try { | ||
Y.applyUpdate(doc, decoding.readVarUint8Array(decoder), transactionOrigin) | ||
} catch (error) { | ||
// This catches errors that are thrown by event handlers | ||
console.error('Caught error while handling a Yjs update', error) | ||
} | ||
} | ||
@@ -85,0 +90,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 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
964729
9861