Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-util-to-hast

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-to-hast - npm Package Compare versions

Comparing version 12.2.2 to 12.2.3

4

lib/handlers/image-reference.js

@@ -7,3 +7,3 @@ /**

import normalize from 'mdurl/encode.js'
import {sanitizeUri} from 'micromark-util-sanitize-uri'
import {revert} from '../revert.js'

@@ -23,3 +23,3 @@

/** @type {Properties} */
const props = {src: normalize(def.url || ''), alt: node.alt}
const props = {src: sanitizeUri(def.url || ''), alt: node.alt}

@@ -26,0 +26,0 @@ if (def.title !== null && def.title !== undefined) {

@@ -7,3 +7,3 @@ /**

import normalize from 'mdurl/encode.js'
import {sanitizeUri} from 'micromark-util-sanitize-uri'

@@ -16,3 +16,3 @@ /**

/** @type {Properties} */
const props = {src: normalize(node.url), alt: node.alt}
const props = {src: sanitizeUri(node.url), alt: node.alt}

@@ -19,0 +19,0 @@ if (node.title !== null && node.title !== undefined) {

@@ -7,3 +7,3 @@ /**

import normalize from 'mdurl/encode.js'
import {sanitizeUri} from 'micromark-util-sanitize-uri'
import {revert} from '../revert.js'

@@ -24,3 +24,3 @@ import {all} from '../traverse.js'

/** @type {Properties} */
const props = {href: normalize(def.url || '')}
const props = {href: sanitizeUri(def.url || '')}

@@ -27,0 +27,0 @@ if (def.title !== null && def.title !== undefined) {

@@ -7,3 +7,3 @@ /**

import normalize from 'mdurl/encode.js'
import {sanitizeUri} from 'micromark-util-sanitize-uri'
import {all} from '../traverse.js'

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

/** @type {Properties} */
const props = {href: normalize(node.url)}
const props = {href: sanitizeUri(node.url)}

@@ -20,0 +20,0 @@ if (node.title !== null && node.title !== undefined) {

{
"name": "mdast-util-to-hast",
"version": "12.2.2",
"version": "12.2.3",
"description": "mdast utility to transform to hast",

@@ -40,5 +40,3 @@ "license": "MIT",

"@types/mdast": "^3.0.0",
"@types/mdurl": "^1.0.0",
"mdast-util-definitions": "^5.0.0",
"mdurl": "^1.0.0",
"micromark-util-sanitize-uri": "^1.0.0",

@@ -45,0 +43,0 @@ "trim-lines": "^3.0.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