Comparing version 1.0.3 to 1.0.4
@@ -70,3 +70,3 @@ const tt = require('./tokentype'); | ||
case 'positionFilter': | ||
return ':nth-child(' + (node.position - 1) + ')'; | ||
return ':nth-child(' + node.position + ')'; | ||
case 'attributeFilter': | ||
@@ -73,0 +73,0 @@ return attrFilterToStr(node); |
{ | ||
"name": "lc-xpath", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "convert xpath to css selector / jquery selector / sizzle selector", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16949