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

@mdx-js/esbuild

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/esbuild - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

15

lib/index.js

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

import {URL} from 'url'
import assert from 'node:assert'

@@ -22,3 +21,3 @@ import {promises as fs} from 'node:fs'

import process from 'node:process'
import got from 'got'
import fetch from 'node-fetch'
import {VFile} from 'vfile'

@@ -103,4 +102,14 @@ import {createFormatAwareProcessors} from '@mdx-js/mdx/lib/util/create-format-aware-processors.js'

console.log('%s: downloading `%s`', remoteNamespace, href)
const contents = (await got(href, {cache})).body
/** @type {string} */
let contents
const cachedContents = cache.get(href)
if (cachedContents) {
contents = cachedContents
} else {
contents = await (await fetch(href)).text()
cache.set(href, contents)
}
return filter.test(href)

@@ -107,0 +116,0 @@ ? onload({

4

package.json
{
"name": "@mdx-js/esbuild",
"version": "2.0.0",
"version": "2.1.0",
"description": "esbuild plugin for MDX",

@@ -42,3 +42,3 @@ "license": "MIT",

"@mdx-js/mdx": "^2.0.0",
"got": "^11.0.0",
"node-fetch": "^3.0.0",
"vfile": "^5.0.0"

@@ -45,0 +45,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