Socket
Socket
Sign inDemoInstall

rehype-remove-duplicate-attribute-values

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

index.js

@@ -10,3 +10,2 @@ /**

var has = require('has');
var uniq = require('uniq');

@@ -20,2 +19,4 @@ var array = require('x-is-array');

var own = {}.hasOwnProperty;
function empty() {

@@ -37,3 +38,3 @@ return transform;

if (has(attributes, prop) && is(node, attributes[prop]) && array(val)) {
if (own.call(attributes, prop) && is(node, attributes[prop]) && array(val)) {
uniq(val);

@@ -40,0 +41,0 @@ }

6

package.json
{
"name": "rehype-remove-duplicate-attribute-values",
"version": "1.0.0",
"version": "1.0.1",
"description": "Remove duplicates in attribute values with unique tokens",

@@ -25,3 +25,2 @@ "license": "MIT",

"dependencies": {
"has": "^1.0.1",
"hast-util-is-element": "^1.0.0",

@@ -31,3 +30,4 @@ "uniq": "^1.0.1",

"x-is-array": "^0.1.0"
}
},
"xo": false
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc