Socket
Socket
Sign inDemoInstall

@mdx-js/loader

Package Overview
Dependencies
Maintainers
2
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/loader - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0-0

4

index.js
const { getOptions } = require('loader-utils')
const mdx = require('@mdx-js/mdx')
module.exports = function(content) {
module.exports = async function(content) {
const callback = this.async()
const options = getOptions(this)
const result = mdx(content, options || {})
const result = await mdx(content, options || {})

@@ -10,0 +10,0 @@ const code = `

{
"name": "@mdx-js/loader",
"version": "0.6.0",
"version": "0.7.0-0",
"license": "MIT",

@@ -17,3 +17,6 @@ "repository": "mdx-js/mdx",

"loader"
]
],
"dependencies": {
"@mdx-js/tag": "^0.7.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