Socket
Socket
Sign inDemoInstall

highlight-es

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

7

index.js
var chalk = require('chalk');
var jsTokensRe = require('js-tokens');
var jsTokens = require('js-tokens');
var isES2016Keyword = require('is-es2016-keyword');
var jsTokensRe = jsTokens.default;
var matchToToken = jsTokens.matchToToken;
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;

@@ -26,3 +29,3 @@

var token = jsTokensRe.matchToToken(match);
var token = matchToToken(match);

@@ -29,0 +32,0 @@ if (token.type === 'name' && isES2016Keyword(value, true))

{
"name": "highlight-es",
"version": "1.0.0",
"version": "1.0.1",
"description": "Highlight ECMAScript syntax for the console or any other medium.",

@@ -45,4 +45,4 @@ "main": "index.js",

"is-es2016-keyword": "^1.0.0",
"js-tokens": "^1.0.2"
"js-tokens": "^3.0.0"
}
}

@@ -45,3 +45,6 @@ # highlight-es

## Related
[is-es2016-keyword](https://github.com/inikulin/is-es2016-keyword) - Determine if string is an ES2016 keyword.
## Author
[Ivan Nikulin](https://github.com/inikulin) (ifaaan@gmail.com)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc