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

queried

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queried - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

lib/index.js

@@ -10,3 +10,3 @@ /**

//TODO: third query param - include self
//TODO: .closest, .all, .next, .prev, .parent, .mathes etc methods - all with the same API: query(selector, [el], [incSelf], [within]).
//TODO: .closest, .all, .next, .prev, .parent, .filter, .mathes etc methods - all with the same API: query(selector, [el], [incSelf], [within]).
//TODO: .all('.x', '.selector');

@@ -13,0 +13,0 @@ //TODO: use universal pseudo mapper/filter instead of separate ones.

var q = require('..');
var doc = require('get-doc');
/** CSS4 matches */
function matches(el, selector){
if (!el.parentNode) {
var fragment = doc.createDocumentFragment();
fragment.appendChild(el);
}
return q.all(selector, el.parentNode).indexOf(el) > -1;

@@ -6,0 +11,0 @@ }

{
"name": "queried",
"version": "1.3.0",
"version": "1.3.1",
"description": "Query selector CSS4 +",

@@ -36,3 +36,4 @@ "main": "css4.js",

"assert": "^1.3.0",
"chai": "~1.10.0"
"chai": "~1.10.0",
"domify": "~1.3.1"
},

@@ -39,0 +40,0 @@ "repository": {

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