New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bianco.query

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bianco.query - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

index.d.ts

8

index.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var domToArray = require('bianco.dom-to-array');
var domToArray = _interopDefault(require('bianco.dom-to-array'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var domToArray__default = /*#__PURE__*/_interopDefaultLegacy(domToArray);
/**

@@ -14,3 +16,3 @@ * Simple helper to find DOM nodes returning them as array like loopable object

function $(selector, scope) {
return domToArray(typeof selector === 'string' ?
return domToArray__default["default"](typeof selector === 'string' ?
(scope || document).querySelectorAll(selector) :

@@ -17,0 +19,0 @@ selector

{
"name": "bianco.query",
"version": "1.1.0",
"version": "1.1.1",
"description": "Modern DOM query selectors helpers written in es2015",

@@ -13,3 +13,3 @@ "main": "index.js",

"build": "rollup -c",
"doc": "documentation readme index.next.js -s API",
"doc": "npx documentation readme index.next.js -s API",
"test": "npm run lint && mocha test.js"

@@ -19,3 +19,4 @@ },

"index.js",
"index.next.js"
"index.next.js",
"index.d.ts"
],

@@ -43,12 +44,12 @@ "repository": {

"@gianlucaguarini/eslint-config": "^2.0.0",
"eslint": "^5.8.0",
"jsdom": "12.2.0",
"eslint": "^8.10.0",
"jsdom": "19.0.0",
"jsdom-global": "3.0.2",
"mocha": "^5.2.0",
"rollup": "^0.66.6",
"mocha": "^9.2.1",
"rollup": "^2.70.0",
"rollup-plugin-node-resolve": "^3.4.0"
},
"dependencies": {
"bianco.dom-to-array": "^0.0.10"
"bianco.dom-to-array": "^1.0.0"
}
}
# bianco.query
[![Build Status][travis-image]][travis-url]
[![Build Status][ci-image]][ci-url]
[![NPM version][npm-version-image]][npm-url]

@@ -27,14 +27,11 @@ [![NPM downloads][npm-downloads-image]][npm-url]

[travis-image]: https://img.shields.io/travis/biancojs/query.svg?style=flat-square
[ci-image]:https://img.shields.io/github/workflow/status/biancojs/query/test?style=flat-square
[ci-url]:https://github.com/biancojs/query/actions
[travis-url]: https://travis-ci.org/biancojs/query
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]: LICENSE.txt
[npm-version-image]: http://img.shields.io/npm/v/bianco.query.svg?style=flat-square
[npm-downloads-image]: http://img.shields.io/npm/dm/bianco.query.svg?style=flat-square
[npm-url]: https://npmjs.org/package/bianco.query

@@ -48,4 +45,4 @@

- [$](#)
- [Parameters](#parameters)
* [$](#)
* [Parameters](#parameters)

@@ -58,5 +55,5 @@ ### $

- `selector` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | DOMNodeList)** either the query or the DOM nodes to arraify
- `ctx` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** context defining where the query will search for the DOM nodes
* `selector` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | DOMNodeList)** either the query or the DOM nodes to arraify
* `scope` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** context defining where the query will search for the DOM nodes
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** DOM nodes found as array
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