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

markdown-magic

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-magic - npm Package Compare versions

Comparing version 2.2.0 to 2.2.2

8

lib/processFile.js

@@ -93,3 +93,3 @@ const fs = require('fs')

let transformMsg = ''
const waiter = transformsToRun.map(async (element) => {
for (const element of transformsToRun) {
transformMsg += ` ⁕ ${element.transform} \n`

@@ -104,8 +104,4 @@ // console.log('order', element.transform)

mergedConfig.outputContent = content
return Promise.resolve(content)
})
}
// Wait for everything to resolve
await Promise.all(waiter)
// update file contents

@@ -112,0 +108,0 @@ fs.writeFileSync(outputFilePath, content)

{
"name": "markdown-magic",
"version": "2.2.0",
"version": "2.2.2",
"description": "Automatically update markdown files with content from external sources",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -192,3 +192,3 @@ const fs = require('fs')

// check remotely fetched code
t.regex(newContent, /require\('dox'\)/, 'remote code snippet inserted')
t.regex(newContent, /require\('doxxx'\)/, 'remote code snippet inserted')
// check remotely fetched code with range lines

@@ -195,0 +195,0 @@ t.regex(newContent, /```json\n "author": "David Wells",\n "license": "MIT",\n```/, 'remote code snippet with range lines inserted')

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