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

magicpen-media

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicpen-media - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

12

lib/magicPenMedia.js

@@ -88,7 +88,15 @@ /*global URL, Blob, btoa*/

var attributeStr = attributes.length ? ' ' + attributes.join(' ') : '';
var html = '';
if (options.link) {
html += '<a href="' + entitify(options.link === true ? src : options.link) + '">';
}
if (!majorContentType || majorContentType === 'image') {
return '<img' + attributeStr + '>';
html += '<img' + attributeStr + '>';
} else {
return '<' + majorContentType + attributeStr + '></' + majorContentType + '>';
html += '<' + majorContentType + attributeStr + '></' + majorContentType + '>';
}
if (options.link) {
html += '</a>';
}
return html;
}

@@ -95,0 +103,0 @@ },

2

package.json
{
"name": "magicpen-media",
"version": "1.4.0",
"version": "1.5.0",
"description": "Add media support to magicpen (images, audio, video)",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is too big to display

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