Comparing version 0.0.7 to 0.0.8
@@ -235,3 +235,8 @@ "use strict"; | ||
const { node } = render(forgoChild, undefined, []); | ||
parentElement.insertBefore(node, childNodes[forgoChildIndex]); | ||
if (childNodes.length > forgoChildIndex) { | ||
parentElement.insertBefore(node, childNodes[forgoChildIndex]); | ||
} | ||
else { | ||
parentElement.appendChild(node); | ||
} | ||
} | ||
@@ -238,0 +243,0 @@ } |
{ | ||
"name": "forgo", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "./dist", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -428,3 +428,7 @@ /* | ||
const { node } = render(forgoChild, undefined, []); | ||
parentElement.insertBefore(node, childNodes[forgoChildIndex]); | ||
if (childNodes.length > forgoChildIndex) { | ||
parentElement.insertBefore(node, childNodes[forgoChildIndex]); | ||
} else { | ||
parentElement.appendChild(node); | ||
} | ||
} | ||
@@ -431,0 +435,0 @@ } |
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
66950
1134