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

bianco.events

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bianco.events - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

19

index.js

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

* Split a string into several items separed by spaces
* @param { String } l - events list
* @param { string } l - events list
* @returns { Array } all the events detected

@@ -21,6 +21,7 @@ * @private

* @param { HTMLElement|NodeList|Array } els - DOM node/s where the listeners will be bound
* @param { String } evList - list of events we want to bind or unbind space separated
* @param { string } evList - list of events we want to bind or unbind space separated
* @param { Function } cb - listeners callback
* @param { String } method - either 'addEventListener' or 'removeEventListener'
* @param { string } method - either 'addEventListener' or 'removeEventListener'
* @param { Object } options - event options (capture, once and passive)
* @returns { undefined }
* @private

@@ -32,3 +33,3 @@ */

split(evList).forEach((e) => {
for (let el of els) el[method](e, cb, options || false);
els.forEach(el => el[method](e, cb, options || false));
});

@@ -40,3 +41,3 @@ }

* @param { HTMLElement|Array } els - DOM node/s where the listeners will be bound
* @param { String } evList - list of events we want to bind space separated
* @param { string } evList - list of events we want to bind space separated
* @param { Function } cb - listeners callback

@@ -54,3 +55,3 @@ * @param { Object } options - event options (capture, once and passive)

* @param { HTMLElement|Array } els - DOM node where the listeners will be bound
* @param { String } evList - list of events we want to bind space separated
* @param { string } evList - list of events we want to bind space separated
* @param { Function } cb - listeners callback

@@ -68,3 +69,3 @@ * @param { Object } options - event options (capture, once and passive)

* @param { HTMLElement|Array } els - DOM node/s where the events will be unbind
* @param { String } evList - list of events we want unbind space separated
* @param { string } evList - list of events we want unbind space separated
* @param { Function } cb - listeners callback

@@ -83,3 +84,3 @@ * @param { Object } options - event options (capture, once and passive)

remove
};
}

@@ -89,2 +90,2 @@ exports.add = add;

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

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

* Split a string into several items separed by spaces
* @param { String } l - events list
* @param { string } l - events list
* @returns { Array } all the events detected

@@ -15,6 +15,7 @@ * @private

* @param { HTMLElement|NodeList|Array } els - DOM node/s where the listeners will be bound
* @param { String } evList - list of events we want to bind or unbind space separated
* @param { string } evList - list of events we want to bind or unbind space separated
* @param { Function } cb - listeners callback
* @param { String } method - either 'addEventListener' or 'removeEventListener'
* @param { string } method - either 'addEventListener' or 'removeEventListener'
* @param { Object } options - event options (capture, once and passive)
* @returns { undefined }
* @private

@@ -26,3 +27,3 @@ */

split(evList).forEach((e) => {
for (let el of els) el[method](e, cb, options || false)
els.forEach(el => el[method](e, cb, options || false))
})

@@ -34,3 +35,3 @@ }

* @param { HTMLElement|Array } els - DOM node/s where the listeners will be bound
* @param { String } evList - list of events we want to bind space separated
* @param { string } evList - list of events we want to bind space separated
* @param { Function } cb - listeners callback

@@ -48,3 +49,3 @@ * @param { Object } options - event options (capture, once and passive)

* @param { HTMLElement|Array } els - DOM node where the listeners will be bound
* @param { String } evList - list of events we want to bind space separated
* @param { string } evList - list of events we want to bind space separated
* @param { Function } cb - listeners callback

@@ -62,3 +63,3 @@ * @param { Object } options - event options (capture, once and passive)

* @param { HTMLElement|Array } els - DOM node/s where the events will be unbind
* @param { String } evList - list of events we want unbind space separated
* @param { string } evList - list of events we want unbind space separated
* @param { Function } cb - listeners callback

@@ -65,0 +66,0 @@ * @param { Object } options - event options (capture, once and passive)

{
"name": "bianco.events",
"version": "0.0.6",
"version": "0.0.7",
"description": "Modern DOM events helpers written in es2015",

@@ -37,4 +37,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"
},

@@ -41,0 +46,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