css-query-selector
Advanced tools
Comparing version
@@ -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 @@ |
{ | ||
"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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
12678
-1.45%380
-3.55%1
Infinity%