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 1.0.0 to 1.1.0

index.d.ts

16

index.js

@@ -5,6 +5,8 @@ '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);
/**

@@ -28,3 +30,3 @@ * Normalize the return values, in case of a single value we avoid to return an array

const names = typeof name === 'string' ? [name] : name;
return normalize(domToArray(els).map(el => {
return normalize(domToArray__default["default"](els).map(el => {
return normalize(names.map(n => el[method](n)))

@@ -61,3 +63,3 @@ }))

domToArray(els).forEach(el => {
domToArray__default["default"](els).forEach(el => {
props.forEach(prop => el.setAttribute(prop, attrs[prop]));

@@ -142,6 +144,6 @@ });

exports.set = set;
exports["default"] = index_next;
exports.get = get;
exports.has = has;
exports.remove = remove;
exports.has = has;
exports.default = index_next;
exports.set = set;
{
"name": "bianco.attr",
"version": "1.0.0",
"version": "1.1.0",
"description": "Helper to set/get/remove DOM attributes on a list of nodes",

@@ -8,2 +8,3 @@ "main": "index.js",

"module": "index.next.js",
"types": "index.d.ts",
"scripts": {

@@ -18,3 +19,4 @@ "prepare": "npm run build && npm test",

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

@@ -37,12 +39,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.1.0"
}
}
# bianco.attr
[![Build Status][travis-image]][travis-url]
[![Build Status][ci-image]][ci-url]
[![NPM version][npm-version-image]][npm-url]

@@ -25,6 +24,5 @@ [![NPM downloads][npm-downloads-image]][npm-url]

[travis-image]: https://img.shields.io/travis/biancojs/attr.svg?style=flat-square
[ci-image]:https://img.shields.io/github/workflow/status/biancojs/attr/test?style=flat-square
[ci-url]:https://github.com/biancojs/attr/actions
[travis-url]: https://travis-ci.org/biancojs/attr
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square

@@ -31,0 +29,0 @@

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