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

12

build/cjs/src/queryFrom.js

@@ -14,2 +14,6 @@ "use strict";

var _winDoc = require("win-doc");
var _reshowConstant = require("reshow-constant");
var arrayFrom = function arrayFrom(a) {

@@ -23,3 +27,3 @@ return (0, _toConsumableArray2.default)(a);

switch ((0, _typeof2.default)(base)) {
case 'function':
case _reshowConstant.FUNCTION:
doc = base;

@@ -45,3 +49,3 @@ break;

var queryEl = function queryEl(el) {
return 'string' === typeof el ? queryOne(el) : el;
return _reshowConstant.STRING === (0, _typeof2.default)(el) ? queryOne(el) : el;
};

@@ -92,7 +96,5 @@

var defaultQuery = queryFrom(function () {
return document;
});
var defaultQuery = queryFrom(_winDoc.doc);
exports.defaultQuery = defaultQuery;
var _default = queryFrom;
exports.default = _default;
import _typeof from "reshow-runtime/es/helpers/typeof";
import _toConsumableArray from "reshow-runtime/es/helpers/toConsumableArray";
import { doc } from 'win-doc';
import { FUNCTION, STRING } from 'reshow-constant';

@@ -12,3 +14,3 @@ var arrayFrom = function arrayFrom(a) {

switch (_typeof(base)) {
case 'function':
case FUNCTION:
doc = base;

@@ -34,3 +36,3 @@ break;

var queryEl = function queryEl(el) {
return 'string' === typeof el ? queryOne(el) : el;
return STRING === _typeof(el) ? queryOne(el) : el;
};

@@ -81,6 +83,4 @@

var defaultQuery = queryFrom(function () {
return document;
});
var defaultQuery = queryFrom(doc);
export default queryFrom;
export { defaultQuery };
{
"name": "css-query-selector",
"version": "0.2.1",
"version": "0.2.2",
"description": "CSS simple query alias function",

@@ -12,2 +12,4 @@ "repository": "react-atomic/react-atomic-organism",

"dependencies": {
"win-doc": "*",
"reshow-constant": "*",
"reshow-runtime": "*"

@@ -14,0 +16,0 @@ },