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

deselect

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deselect - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

index.js

@@ -23,5 +23,5 @@ 'use strict';

return ['*:not(', selector, ')'].join('');
}).join(',');
}).join(' ');
};
module.exports = deselect;
{
"name": "deselect",
"version": "1.0.0",
"version": "1.1.0",
"description": "Returns a selector that excludes all passed selectors",

@@ -5,0 +5,0 @@ "author": "Tyler Peterson <tylerjpeterson@gmail.com>",

@@ -6,2 +6,3 @@ # deselect

## Installation

@@ -32,3 +33,2 @@

// returns *:not(p),*:not(a),*:not(h2)
```

@@ -17,3 +17,3 @@ 'use strict';

it('should return selector excluding all passed selectors', function () {
assert.equal(deselect(['p','a','h2']), '*:not(p),*:not(a),*:not(h2)');
assert.equal(deselect(['p','a','h2']), '*:not(p) *:not(a) *:not(h2)');
});

@@ -30,4 +30,4 @@

it('should split a string on commas', function () {
assert.equal(deselect('p,a,h2'), '*:not(p),*:not(a),*:not(h2)');
assert.equal(deselect('p,a,h2'), '*:not(p) *:not(a) *:not(h2)');
});
});
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