Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bianco.attr

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bianco.attr - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

26

index.js

@@ -12,3 +12,3 @@ 'use strict';

* @param { Array } values - list of values we want to return
* @returns { Array|String|Boolean } either the whole list of values or the single one found
* @returns { Array|string|boolean } either the whole list of values or the single one found
* @private

@@ -21,5 +21,5 @@ */

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes
* @param { String } method - method that will be used to parse the attributes
* @returns { Array|String } result of the parsing in a list or a single value
* @param { string|Array } name - name or list of attributes
* @param { string } method - method that will be used to parse the attributes
* @returns { Array|string } result of the parsing in a list or a single value
* @private

@@ -37,5 +37,5 @@ */

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Object } name - either the name of the attribute to set
* @param { string|Object } name - either the name of the attribute to set
* or a list of properties as object key - value
* @param { String } value - the new value of the attribute (optional)
* @param { string } value - the new value of the attribute (optional)
* @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function

@@ -71,4 +71,4 @@ *

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to get
* @returns { Array|String } list of the attributes found
* @param { string|Array } name - name or list of attributes to get
* @returns { Array|string } list of the attributes found
*

@@ -96,3 +96,3 @@ * @example

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to remove
* @param { string|Array } name - name or list of attributes to remove
* @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function

@@ -119,4 +119,4 @@ *

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to detect
* @returns { Boolean|Array } true or false or an array of boolean values
* @param { string|Array } name - name or list of attributes to detect
* @returns { boolean|Array } true or false or an array of boolean values
* @example

@@ -143,3 +143,3 @@ *

has
};
}

@@ -150,2 +150,2 @@ exports.set = set;

exports.has = has;
exports['default'] = index_next;
exports.default = index_next;

@@ -6,3 +6,3 @@ import domToArray from 'bianco.dom-to-array'

* @param { Array } values - list of values we want to return
* @returns { Array|String|Boolean } either the whole list of values or the single one found
* @returns { Array|string|boolean } either the whole list of values or the single one found
* @private

@@ -15,5 +15,5 @@ */

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes
* @param { String } method - method that will be used to parse the attributes
* @returns { Array|String } result of the parsing in a list or a single value
* @param { string|Array } name - name or list of attributes
* @param { string } method - method that will be used to parse the attributes
* @returns { Array|string } result of the parsing in a list or a single value
* @private

@@ -31,5 +31,5 @@ */

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Object } name - either the name of the attribute to set
* @param { string|Object } name - either the name of the attribute to set
* or a list of properties as object key - value
* @param { String } value - the new value of the attribute (optional)
* @param { string } value - the new value of the attribute (optional)
* @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function

@@ -65,4 +65,4 @@ *

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to get
* @returns { Array|String } list of the attributes found
* @param { string|Array } name - name or list of attributes to get
* @returns { Array|string } list of the attributes found
*

@@ -90,3 +90,3 @@ * @example

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to remove
* @param { string|Array } name - name or list of attributes to remove
* @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function

@@ -113,4 +113,4 @@ *

* @param { HTMLElement|NodeList|Array } els - DOM node/s to parse
* @param { String|Array } name - name or list of attributes to detect
* @returns { Boolean|Array } true or false or an array of boolean values
* @param { string|Array } name - name or list of attributes to detect
* @returns { boolean|Array } true or false or an array of boolean values
* @example

@@ -117,0 +117,0 @@ *

{
"name": "bianco.attr",
"version": "0.0.3",
"version": "0.0.4",
"description": "Helper to set/get/remove DOM attributes on a list of nodes",

@@ -34,4 +34,9 @@ "main": "index.js",

"devDependencies": {
"jsdom": "11.7.0",
"jsdom-global": "3.0.2"
"@gianlucaguarini/eslint-config": "^2.0.0",
"eslint": "^4.19.1",
"jsdom": "11.11.0",
"jsdom-global": "3.0.2",
"mocha": "^5.2.0",
"rollup": "^0.59.4",
"rollup-plugin-node-resolve": "^3.3.0"
},

@@ -38,0 +43,0 @@ "dependencies": {

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