Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clear-cut

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clear-cut - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

12

index.js

@@ -86,3 +86,3 @@ /**

exports.specificity = function(selector) {
exports.calculateSpecificity = function(selector) {
var specificity = specificityCache[selector];

@@ -100,3 +100,3 @@ if (specificity === undefined) {

exports.isValidSelector = function(selector) {
exports.isSelectorValid = function(selector) {
var valid = validSelectorCache[selector];

@@ -114,2 +114,10 @@ if (valid === undefined) {

}
exports.validateSelector = function(selector) {
if (!exports.isSelectorValid(selector)) {
var error = new Error("'#{selector}' is not a valid selector")
error.code = 'EBADSELECTOR'
throw error;
}
}
}

2

package.json
{
"name": "clear-cut",
"version": "1.0.0",
"version": "2.0.0",
"description": "Calculate specificity of CSS selectors",

@@ -5,0 +5,0 @@ "main": "./index.js",

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