You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

hexo-util

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.3 to 0.6.0

8

lib/highlight.js

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

var caption = options.caption;
var mark = options.hasOwnProperty('mark') ? options.mark : [];
var tab = options.tab;

@@ -35,5 +36,6 @@ var data = highlight(str, options);

if (tab) line = replaceTabs(line, tab);
numbers += '<span class="line">' + (firstLine + i) + '</span><br>';
content += '<span class="line">' + line + '</span><br>';
numbers += '<div class="line">' + (firstLine + i) + '</div>';
content += '<div class="line';
content += (mark.indexOf(firstLine + i) !== -1) ? ' marked' : '';
content += '">' + line + '</div>';
}

@@ -40,0 +42,0 @@

{
"name": "hexo-util",
"version": "0.5.3",
"version": "0.6.0",
"description": "Utilities for Hexo.",

@@ -27,16 +27,16 @@ "main": "lib/index",

"devDependencies": {
"chai": "^3.4.1",
"eslint": "^1.10.3",
"eslint-config-hexo": "^1.0.2",
"istanbul": "^0.4.1",
"jscs": "^2.6.0",
"chai": "^3.5.0",
"eslint": "^2.12.0",
"eslint-config-hexo": "^1.0.3",
"istanbul": "^0.4.3",
"jscs": "^3.0.4",
"jscs-preset-hexo": "^1.0.1",
"mocha": "^2.3.4",
"mocha": "^2.5.3",
"rewire": "^2.5.1"
},
"dependencies": {
"bluebird": "^3.0.6",
"camel-case": "^1.2.0",
"cross-spawn": "^2.1.5",
"highlight.js": "^9.0.0",
"bluebird": "^3.4.0",
"camel-case": "^3.0.0",
"cross-spawn": "^4.0.0",
"highlight.js": "^9.4.0",
"html-entities": "^1.2.0",

@@ -43,0 +43,0 @@ "striptags": "^2.1.1"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc