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

ultramarked

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ultramarked - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

package.json

@@ -10,3 +10,3 @@ {

},
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -22,2 +22,3 @@ "type": "git",

"highlight.js": "^8.0.0",
"lodash.assign": "^2.4.1",
"marked": "^0.3.2"

@@ -24,0 +25,0 @@ },

@@ -5,2 +5,3 @@ 'use strict';

var hljs = require('highlight.js');
var assign = require('lodash.assign');
var exports = module.exports = ultramarked;

@@ -25,17 +26,2 @@ var alises = exports.aliases = {

function merge(obj) {
var i = 1, target, key;
for(; i < arguments.length; i++){
target = arguments[i];
for(key in target){
if(Object.prototype.hasOwnProperty.call(target, key)){
obj[key] = target[key];
}
}
}
return obj;
}
function getHighlightingRenderer (prev) {

@@ -60,3 +46,3 @@ var renderer = prev || new marked.Renderer();

function ultramarked(src, opt) {
var options = merge({}, marked.defaults, opt),
var options = assign({}, marked.defaults, opt),
aliases = options.aliases || exports.aliases,

@@ -99,5 +85,4 @@ no = 'no-highlight';

}else if(options.sanitizer){
result = options.sanitizer(result);
result = options.sanitizer(result, options);
}
return result;

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