New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rehype-external-links

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-external-links - npm Package Compare versions

Comparing version

to
2.0.1

8

index.js

@@ -60,3 +60,3 @@ /**

import {parse} from 'space-separated-tokens'
import absolute from 'is-absolute-url'
import isAbsoluteUrl from 'is-absolute-url'
import extend from 'extend'

@@ -111,3 +111,7 @@

if (absolute(url) && protocols.includes(protocol)) {
if (
isAbsoluteUrl(url)
? protocols.includes(protocol)
: url.startsWith('//')
) {
if (target) {

@@ -114,0 +118,0 @@ node.properties.target = target

{
"name": "rehype-external-links",
"version": "2.0.0",
"version": "2.0.1",
"description": "rehype plugin to automatically add `target` and `rel` attributes to external links",

@@ -5,0 +5,0 @@ "license": "MIT",