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

is-pseudo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-pseudo - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

CHANGELOG.md

@@ -1,6 +0,8 @@

## [v1.0.1]
## [v1.2.0]
> May 24, 2016
- include optional custom extensions of `jQuery` and `CSS Select`
- compare complete input and suffix
## [v1.0.0]

@@ -7,0 +9,0 @@ > May 24, 2016

@@ -15,4 +15,4 @@ 'use strict';

exports.default = ['has', 'matches', 'contains', 'icontains', 'input', 'selected', 'parent', 'header', 'button', 'text', 'checkbox', 'file', 'password', 'reset', 'radio'];
exports.default = ['has', 'matches', 'contains', 'icontains', 'input', 'selected', 'parent', 'header', 'button', 'text', 'checkbox', 'file', 'password', 'reset', 'radio', 'submit', 'image'];
module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbXMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7a0JBU2UsQ0FDYixLQURhLEVBRWIsU0FGYSxFQUdiLFVBSGEsRUFJYixXQUphLEVBS2IsT0FMYSxFQU1iLFVBTmEsRUFPYixRQVBhLEVBUWIsUUFSYSxFQVNiLFFBVGEsRUFVYixNQVZhLEVBV2IsVUFYYSxFQVliLE1BWmEsRUFhYixVQWJhLEVBY2IsT0FkYSxFQWViLE9BZmEsQyIsImZpbGUiOiJjdXN0b21zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiAjIEN1c3RvbXNcbiAqXG4gKiBOb25lIHN0YW5kYXJkIHNlbGVjdG9yIGV4dGVuc2lvbnMgYnkgalF1ZXJ5IGFuZCBDU1NTZWxlY3QuXG4gKlxuICogLSBodHRwczovL2FwaS5qcXVlcnkuY29tL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HM6Ly9naXRodWIuY29tL2ZiNTUvY3NzLXNlbGVjdCNzdXBwb3J0ZWQtc2VsZWN0b3JzXG4gKi9cblxuZXhwb3J0IGRlZmF1bHQgW1xuICAnaGFzJyxcbiAgJ21hdGNoZXMnLFxuICAnY29udGFpbnMnLFxuICAnaWNvbnRhaW5zJyxcbiAgJ2lucHV0JyxcbiAgJ3NlbGVjdGVkJyxcbiAgJ3BhcmVudCcsXG4gICdoZWFkZXInLFxuICAnYnV0dG9uJyxcbiAgJ3RleHQnLFxuICAnY2hlY2tib3gnLFxuICAnZmlsZScsXG4gICdwYXNzd29yZCcsXG4gICdyZXNldCcsXG4gICdyYWRpbycsXG4gICdzdWJtaXQnLFxuICAnaW1hZ2UnXG5dXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=

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

input = input.replace(/:/g, '');
input = input.substr(input.lastIndexOf(':') + 1).replace(/(\(.*\))/g, '');

@@ -56,16 +56,6 @@ var selectors = [].concat(_toConsumableArray(defaultSelectors));

return selectors.some(function (selector) {
return endsWith(input, selector);
return input === selector;
});
}
/**
* Simplified ES2015 'String.prototype.endsWith' replacement.
*
* @param {[type]} searchString [description]
* @return {[type]} [description]
*/
function endsWith(base, suffix) {
return base.indexOf(suffix, base.length - suffix.length) !== -1;
}
module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvb2t1cC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztrQkF1QndCLFE7O0FBakJ4Qjs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0FBRUEsSUFBTSxrSkFBTjs7Ozs7Ozs7QUFZZSxTQUFTLFFBQVQsQ0FBbUIsS0FBbkIsRUFBMEIsY0FBMUIsRUFBMEM7O0FBRXZELE1BQUksT0FBTyxLQUFQLEtBQWlCLFFBQXJCLEVBQStCO0FBQz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nRzLFxuICAuLi52ZW5kb3JzXG5dXG5cbi8qKlxuICogTG9va3VwIHRvIGNoZWNrIGlmIHRoZSBwcm92aWRlZCBpbnB1dCBpcyBhIHZhbGlkIHBzZXVkbyBlbGVtZW50IHNlbGVjdG9yLlxuICpcbiAqIEBwYXJhbSAge3N0cmluZ30gIHNlbGVjdG9yIC1cbiAqIEByZXR1cm4ge2Jvb2xlYW59ICAgICAgICAgIC1cbiAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gaXNQc2V1ZG8gKGlucHV0LCBpbmNsdWRlQ3VzdG9tcykge1xuXG4gIGlmICh0eXBlb2YgaW5wdXQgIT09ICdzdHJpbmcnKSB7XG4gICAgdGhyb3cgRXJyb3IoJ0ludmFsaWQgaW5wdXQgdHlwZSAtIHRoZSBzZWxlY3RvciBoYXMgdG8gYmUgYSBzdHJpbmchJylcbiAgfVxuXG4gIGlucHV0ID0gaW5wdXQuc3Vic3RyKGlucHV0Lmxhc3RJbmRleE9mKCc6JykgKyAxKS5yZXBsYWNlKC8oXFwoLipcXCkpL2csICcnKVxuXG4gIGNvbnN0IHNlbGVjdG9ycyA9IFsuLi5kZWZhdWx0U2VsZWN0b3JzXVxuXG4gIGlmIChpbmNsdWRlQ3VzdG9tcykge1xuICAgIHNlbGVjdG9ycy5wdXNoLmFwcGx5KHNlbGVjdG9ycywgY3VzdG9tcylcbiAgfVxuXG4gIHJldHVybiBzZWxlY3RvcnMuc29tZSgoc2VsZWN0b3IpID0+IGlucHV0ID09PSBzZWxlY3Rvcilcbn1cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
{
"name": "is-pseudo",
"description": "Validate if a CSS selector targets a pseudo class or element",
"version": "1.1.0",
"version": "1.2.0",
"author": "Stefan Dühring | Autarc <autarc@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

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