New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cheerio-get-css-selector

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheerio-get-css-selector - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "cheerio-get-css-selector",
"version": "1.0.0",
"version": "1.0.1",
"description": "gets a unique selector for this element",

@@ -5,0 +5,0 @@ "main": "./src/get-unique-selector.js",

@@ -32,3 +32,3 @@ var $ = require('cheerio');

} else {
return el.get(0).tagName + ':nth-child(' + el.index() + ')'; // TODO if num children === 1 => don't add nth child
return el.get(0).tagName + ':nth-child(' + (el.index() + 1) + ')'; // TODO if num children === 1 => don't add nth child
}

@@ -35,0 +35,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc