@easy-editor/core 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -6907,9 +6907,6 @@ class NodeChildren {
6907
6907
  if (i === index) {
6908
6908
  return;
6909
6909
  }
6910
- if (index === i) {
6911
- return;
6912
- }
6913
6910
  children.splice(index, 1);
6914
6911
  children.splice(i, 0, node);
6915
6912
  }
@@ -7385,7 +7382,7 @@ let Node$1 = class Node {
7385
7382
  return false;
7386
7383
  }
7387
7384
  insert(node, ref, useMutator = true) {
7388
- if (ref && typeof ref === 'number') {
7385
+ if (ref !== undefined && typeof ref === 'number') {
7389
7386
  const nodeInstance = ensureNode(node, this.document);
7390
7387
  this.children?.internalInsert(nodeInstance, ref, useMutator);
7391
7388
  } else {