Comparing version 13.5.45 to 13.5.46
{ | ||
"name": "yjs", | ||
"version": "13.5.45", | ||
"version": "13.5.46", | ||
"description": "Shared Editing Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/yjs.cjs", |
@@ -385,3 +385,4 @@ | ||
const { key, value } = /** @type {ContentFormat} */ (content) | ||
if ((endAttributes.get(key) || null) !== value || (startAttributes.get(key) || null) === value) { | ||
const startAttrValue = startAttributes.get(key) || null | ||
if ((endAttributes.get(key) || null) !== value || startAttrValue === value) { | ||
// Either this format is overwritten or it is not necessary because the attribute already existed. | ||
@@ -391,3 +392,7 @@ start.delete(transaction) | ||
if (!reachedEndOfCurr && (currAttributes.get(key) || null) === value && (startAttributes.get(key) || null) !== value) { | ||
currAttributes.delete(key) | ||
if (startAttrValue === null) { | ||
currAttributes.delete(key) | ||
} else { | ||
currAttributes.set(key, startAttrValue) | ||
} | ||
} | ||
@@ -394,0 +399,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
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
2129026
32892