Comparing version 13.6.13 to 13.6.14
{ | ||
"name": "yjs", | ||
"version": "13.6.13", | ||
"version": "13.6.14", | ||
"description": "Shared Editing Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/yjs.cjs", |
@@ -204,3 +204,3 @@ /** | ||
break | ||
} else if (currPos.right.deleted || (currPos.right.content.constructor === ContentFormat && equalAttrs(attributes[(/** @type {ContentFormat} */ (currPos.right.content)).key] || null, /** @type {ContentFormat} */ (currPos.right.content).value))) { | ||
} else if (currPos.right.deleted || (currPos.right.content.constructor === ContentFormat && equalAttrs(attributes[(/** @type {ContentFormat} */ (currPos.right.content)).key] ?? null, /** @type {ContentFormat} */ (currPos.right.content).value))) { | ||
// | ||
@@ -231,3 +231,3 @@ } else { | ||
const val = attributes[key] | ||
const currentVal = currPos.currentAttributes.get(key) || null | ||
const currentVal = currPos.currentAttributes.get(key) ?? null | ||
if (!equalAttrs(currentVal, val)) { | ||
@@ -394,3 +394,3 @@ // save negated attribute (set null if currentVal undefined) | ||
const { key, value } = /** @type {ContentFormat} */ (content) | ||
const startAttrValue = startAttributes.get(key) || null | ||
const startAttrValue = startAttributes.get(key) ?? null | ||
if (endFormats.get(key) !== content || startAttrValue === value) { | ||
@@ -400,3 +400,3 @@ // Either this format is overwritten or it is not necessary because the attribute already existed. | ||
cleanups++ | ||
if (!reachedCurr && (currAttributes.get(key) || null) === value && startAttrValue !== value) { | ||
if (!reachedCurr && (currAttributes.get(key) ?? null) === value && startAttrValue !== value) { | ||
if (startAttrValue === null) { | ||
@@ -776,3 +776,3 @@ currAttributes.delete(key) | ||
if (!this.deletes(item)) { | ||
const curVal = currentAttributes.get(key) || null | ||
const curVal = currentAttributes.get(key) ?? null | ||
if (!equalAttrs(curVal, value)) { | ||
@@ -782,3 +782,3 @@ if (action === 'retain') { | ||
} | ||
if (equalAttrs(value, (oldAttributes.get(key) || null))) { | ||
if (equalAttrs(value, (oldAttributes.get(key) ?? null))) { | ||
delete attributes[key] | ||
@@ -794,3 +794,3 @@ } else { | ||
oldAttributes.set(key, value) | ||
const curVal = currentAttributes.get(key) || null | ||
const curVal = currentAttributes.get(key) ?? null | ||
if (!equalAttrs(curVal, value)) { | ||
@@ -797,0 +797,0 @@ if (action === 'retain') { |
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