Socket
Socket
Sign inDemoInstall

highlight.js

Package Overview
Dependencies
0
Maintainers
5
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.18.3 to 9.18.4

deprecated.js

5

lib/highlight.js

@@ -31,2 +31,7 @@ /*

}(function(hljs) {
var warn = console.warn || console.log;
warn("Version 9 of Highlight.js has reached EOL and is no longer supported. Please upgrade to version 10.");
// Convenience variables for build-in objects

@@ -33,0 +38,0 @@ var ArrayProto = [],

2

lib/languages/livescript.js

@@ -74,3 +74,3 @@ module.exports = function(hljs) {

// regex can't start with *, and it supports an "illegal" in the main mode
begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/
begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/
}

@@ -77,0 +77,0 @@ ]

@@ -9,3 +9,3 @@ {

"homepage": "https://highlightjs.org/",
"version": "9.18.3",
"version": "9.18.4",
"author": {

@@ -1125,2 +1125,3 @@ "name": "Ivan Sagalaev",

"test": "mocha --globals document test",
"postinstall": "node deprecated.js",
"test-browser": "mocha --globals document test/browser"

@@ -1127,0 +1128,0 @@ },

# Highlight.js
[![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/) [![install size](https://packagephobia.now.sh/badge?p=highlight.js)](https://packagephobia.now.sh/result?p=highlight.js)
[![this version](https://badgen.net/badge/this%20version/v9.18.4/red)](https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md)
[![supported](https://badgen.net/badge/supported/no/red)](https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md)
[![vulnerabilities](https://badgen.net/badge/vulnerabilities/possible/red)](https://github.com/highlightjs/highlight.js/blob/master/SECURITY.md)
[![latest version](https://badgen.net/npm/v/highlight.js?label=latest)](https://www.npmjs.com/package/highlight.js)
[![beta](https://badgen.net/npm/v/highlight.js/beta)](https://www.npmjs.com/package/highlight.js)
[![slack](https://badgen.net/badge/icon/slack?icon=slack&label&color=pink)](https://join.slack.com/t/highlightjs/shared_invite/zt-jatdlkw4-h3LdjU5rC23t7aQ6zqoxzw)
---
### :warning: :warning: Important: Version 9 is no longer supported. :warning: :warning:
Version 9 has reached end-of-support and will receive no future updates.
It may include unpatched security vulnerabiites. Please upgrade to version 10.
*The last release was 9.18.4 on November 18, 2020.*
Please see [VERSION_10_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md) and perhaps [SECURITY.md](https://github.com/highlightjs/highlight.js/blob/master/SECURITY.md).
---
Highlight.js is a syntax highlighter written in JavaScript. It works in

@@ -10,2 +28,3 @@ the browser as well as on the server. It works with pretty much any

## Getting Started

@@ -347,3 +366,3 @@

charset="UTF-8"
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/languages/go.min.js"></script>
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.4/languages/go.min.js"></script>
```

@@ -400,3 +419,3 @@

Authors and contributors are listed in the [AUTHORS.en.txt][8] file.
Authors and contributors are listed in the [AUTHORS.txt][8] file.

@@ -410,2 +429,2 @@ [1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload

[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE
[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt
[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.txt
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc