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.103 to 2.5.104

2

dist/cjs/mixins/attr.js

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

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

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

'use strict'
import { exec, isNot, isDefined, isNull } 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 (isDefined(val) && !isNull(val) && node.setAttribute) node.setAttribute(attr, val)
if (isDefined(val) && 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.103",
"version": "2.5.104",
"license": "MIT",

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

},
"gitHead": "ea84723f30fae3a15aabde75c2d3a719b7088baf",
"gitHead": "3be73d07263ecdb28c3212d5cf1932b0dc7ba7e5",
"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