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.4.2

12

build/cjs/src/queryFrom.js

@@ -20,10 +20,2 @@ "use strict";

/**
* @param {any} el
* @returns {HTMLElement}
*/
var toEl = function toEl(el) {
return el;
};
/**
* @param {HTMLElement[]} all

@@ -95,3 +87,3 @@ * @param {HTMLElement} el

var queryAll = function queryAll(sel) {
return sel && (_reshowConstant.STRING === typeof sel ? _all((0, _reshowConstant.castToStr)(sel)) : (0, _reshowConstant.castToArr)(sel).reduce(
return sel && (_reshowConstant.STRING === typeof sel ? _all( /** @type {string}*/sel) : /** @type {string[]}*/sel.reduce(
/**

@@ -111,3 +103,3 @@ * @param {HTMLElement[]} accumulator

var queryEl = function queryEl(el) {
return _reshowConstant.STRING === typeof el ? queryOne((0, _reshowConstant.castToStr)(el)) : toEl(el);
return _reshowConstant.STRING === typeof el ? queryOne( /** @type {string}*/el) : /** @type {HTMLElement}*/el;
};

@@ -114,0 +106,0 @@

2

package.json
{
"version": "0.4.1",
"version": "0.4.2",
"name": "css-query-selector",

@@ -4,0 +4,0 @@ "repository": {

Sorry, the diff of this file is not supported yet