Comparing version 4.3.4 to 4.3.5
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
export declare function createTemporaryNode(container: HTMLDivElement): Text; | ||
export declare function createTemporaryNode(container: HTMLDivElement): Text | null; | ||
/** | ||
@@ -18,0 +18,0 @@ * Removes all temporary nodes from the highlight overlay container. |
@@ -14,3 +14,6 @@ import { diffChars } from 'diff'; | ||
if (textNodes.length == 0) { | ||
textNodes.push(createTemporaryNode(container)); | ||
const tempNode = createTemporaryNode(container); | ||
if (!tempNode) | ||
return; // Could not create a temporary node | ||
textNodes.push(tempNode); | ||
} | ||
@@ -106,2 +109,4 @@ let currentNodeIdx = 0; | ||
const span = Array.from(container.querySelectorAll('.line')).at(-1); | ||
if (!span) | ||
return null; // Could not find a line | ||
const node = document.createTextNode(''); | ||
@@ -108,0 +113,0 @@ span.appendChild(node); |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "4.3.4", | ||
"version": "4.3.5", | ||
"scripts": { | ||
@@ -22,0 +22,0 @@ "dev": "vite dev", |
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
289722
7641