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

mehdown

Package Overview
Dependencies
Maintainers
6
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mehdown - npm Package Compare versions

Comparing version 2.44.0 to 2.45.0

3

lib/index.js

@@ -913,3 +913,2 @@ const url = require('url');

md.use(require('./plugins/appleMusic'));
md.use(require('./plugins/casemates-com'));
md.use(require('./plugins/emoji'), options.emoji);

@@ -925,4 +924,2 @@ md.use(require('./plugins/facebook-videos'));

md.use(require('./plugins/mediocre-com'));
md.use(require('./plugins/mediocritee-com'));
md.use(require('./plugins/meh-com'));
md.use(require('./plugins/reddit'));

@@ -929,0 +926,0 @@ md.use(require('./plugins/responsiveTables'));

16

lib/plugins/mediocre-com.js

@@ -1,2 +0,2 @@

const regExp = /(?:https?:\/\/(?:www\.)?)?mediocre\.com\/(deals|polls)\/([-\w]+)/;
const regExp = /(?:https?:\/\/(?:www\.)?)?((?:casemates|mediocre|mediocritee|meh)\.com)?\/(deals|polls)\/([-\w]+)/;

@@ -24,9 +24,15 @@ module.exports = function(md) {

if (matches && matches[1] && matches[2]) {
var embedUrl = `https://mediocre.com/${matches.slice(1).join('/')}/embed`;
var embedUrl = '';
if (matches && matches[1] && matches[2] && matches[3]) {
embedUrl = `https://${matches[1]}/${matches.slice(2).join('/')}/embed`;
} else if (matches && matches[2] && matches[3]) {
embedUrl = `/${matches.slice(2).join('/')}/embed`;
}
if (embedUrl.length > 0) {
textToken.content = '';
tokens[idx + 2].hidden = true;
return '<iframe class="' + matches[1] + '" frameborder="0" scrolling="no" src="' + embedUrl + '"></iframe>';
return `<iframe class="${matches[2]}" frameborder="0" scrolling="no" src="${embedUrl}"></iframe>`;
}

@@ -39,2 +45,2 @@ }

};
};
};

@@ -39,3 +39,3 @@ {

},
"version": "2.44.0"
"version": "2.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