highlight-es
Advanced tools
Comparing version 1.0.0 to 1.0.1
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
4501
35
50
+ Addedjs-tokens@3.0.2(transitive)
- Removedjs-tokens@1.0.3(transitive)
Updatedjs-tokens@^3.0.0