Socket
Socket
Sign inDemoInstall

lowlight

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowlight - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

12

lib/core.js

@@ -81,3 +81,3 @@ /**

var settings = options || {};
var prefix = settings.prefix || DEFAULT_PREFIX;
var prefix = settings.prefix;
var subset = settings.subset || languageNames;

@@ -91,2 +91,6 @@ var length = subset.length;

if (prefix === null || prefix === undefined) {
prefix = DEFAULT_PREFIX;
}
if (typeof value !== 'string') {

@@ -139,4 +143,8 @@ throw new Error('Expected `string` for value, got `' + value + '`');

var settings = options || {};
var prefix = settings.prefix || DEFAULT_PREFIX;
var prefix = settings.prefix;
if (prefix === null || prefix === undefined) {
prefix = DEFAULT_PREFIX;
}
return normalize(coreHighlight(language, value, true, prefix));

@@ -143,0 +151,0 @@ }

4

package.json
{
"name": "lowlight",
"version": "1.3.0",
"version": "1.4.0",
"description": "Virtual syntax highlighting for virtual DOMs and non-HTML things",

@@ -33,3 +33,3 @@ "license": "MIT",

"esmangle": "^1.0.0",
"rehype": "2.0.0",
"rehype": "3.0.0",
"nyc": "^8.1.0",

@@ -36,0 +36,0 @@ "remark-cli": "^2.0.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