Comparing version 1.3.0 to 1.4.0
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36908
751
0