Socket
Socket
Sign inDemoInstall

@domql/element

Package Overview
Dependencies
Maintainers
0
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domql/element - npm Package Compare versions

Comparing version 2.5.101 to 2.5.102

2

dist/cjs/mixins/attr.js

@@ -34,3 +34,3 @@ "use strict";

const val = (0, import_utils.exec)(params[attr], element);
if (val && node.setAttribute)
if ((0, import_utils.isDefined)(val) && node.setAttribute)
node.setAttribute(attr, val);

@@ -37,0 +37,0 @@ else if (node.removeAttribute)

'use strict'
import { exec, isNot } from '@domql/utils'
import { exec, isNot, isDefined } from '@domql/utils'
import { report } from '@domql/report'

@@ -17,3 +17,3 @@

// if (__attr[attr] === val) return
if (val && node.setAttribute) node.setAttribute(attr, val)
if (isDefined(val) && node.setAttribute) node.setAttribute(attr, val)
else if (node.removeAttribute) node.removeAttribute(attr)

@@ -20,0 +20,0 @@ __attr[attr] = val

{
"name": "@domql/element",
"version": "2.5.101",
"version": "2.5.102",
"license": "MIT",

@@ -34,3 +34,3 @@ "type": "module",

},
"gitHead": "5a5e8988f25e9a77e44596d9fd23e8a00b725685",
"gitHead": "9f0516bbf6310b86c6d78f6bb0bfd3bf3347469b",
"devDependencies": {

@@ -37,0 +37,0 @@ "@babel/core": "^7.12.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