You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

css-query-selector

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-query-selector - npm Package Compare versions

Comparing version

to
0.2.9

6

build/cjs/src/queryFrom.js

@@ -81,2 +81,8 @@ "use strict";

el = queryEl(el);
if (!el) {
console.warn('Element is empty.');
return false;
}
return el.closest ? el.closest(ancestor) : _queryAncestorPolyfill(el, ancestor);

@@ -83,0 +89,0 @@ };

@@ -69,2 +69,8 @@ import _typeof from "reshow-runtime/es/helpers/typeof";

el = queryEl(el);
if (!el) {
console.warn('Element is empty.');
return false;
}
return el.closest ? el.closest(ancestor) : _queryAncestorPolyfill(el, ancestor);

@@ -71,0 +77,0 @@ };

5

package.json
{
"name": "css-query-selector",
"version": "0.2.8",
"version": "0.2.9",
"description": "CSS simple query alias function",

@@ -29,3 +29,4 @@ "repository": "react-atomic/react-atomic-organism",

"prepublishOnly": "npm run test",
"test": "npm run build && mocha 'build/cjs/**/__tests__/*.js' -r jsdom-global/register"
"mocha": "mocha -r jsdom-global/register 'build/cjs/**/__tests__/*.js'",
"test": "npm run build && npm run mocha"
},

@@ -32,0 +33,0 @@ "files": [