@litejs/dom 23.11.0 → 23.11.1

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -493,7 +493,7 @@ function getElement(childs, index, step, type) {
493
493
  function getSibling(node, step, type) {
494
494
  var silbings = node.parentNode && node.parentNode.childNodes
495
495
  , index = silbings ? silbings.indexOf(node) : -1
496
- return type > 0 ? getElement(silbings, index + step, step, type) : silbings[index + step] || null
496
+ return type > 0 ? getElement(silbings, index + step, step, type) : silbings && silbings[index + step] || null
497
497
  }
498
498
 
499
499
  function camelCase(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litejs/dom",
3
- "version": "23.11.0",
3
+ "version": "23.11.1",
4
4
  "description": "A small DOM library for server-side testing, rendering, and handling of HTML files",
5
5
  "license": "MIT",
6
6
  "author": "Lauri Rooden <lauri@rooden.ee>",