diff --git a/lib/parse.js b/lib/parse.js index 23bf0c7..9ff8035 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -4,7 +4,7 @@ module.exports = parse var Parser = require('css-selector-parser').CssSelectorParser var zwitch = require('zwitch') -var nthCheck = require('nth-check') +var nthCheck = require('nth-check').default var nth = ['nth-child', 'nth-last-child', 'nth-of-type', 'nth-last-of-type'] diff --git a/package.json b/package.json index 3fff8c6..0224511 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "dependencies": { "css-selector-parser": "^1.0.0", "not": "^0.1.0", - "nth-check": "^1.0.0", + "nth-check": "^2.0.0", "unist-util-is": "^4.0.0", "zwitch": "^1.0.0" },