@babel/highlight
Advanced tools
Comparing version 7.8.3 to 7.9.0
@@ -12,3 +12,3 @@ "use strict"; | ||
var _esutils = _interopRequireDefault(require("esutils")); | ||
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); | ||
@@ -46,3 +46,3 @@ var _chalk = _interopRequireDefault(require("chalk")); | ||
if (token.type === "name") { | ||
if (_esutils.default.keyword.isReservedWordES6(token.value)) { | ||
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isReservedWord)(token.value)) { | ||
return "keyword"; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "@babel/highlight", | ||
"version": "7.8.3", | ||
"version": "7.9.0", | ||
"description": "Syntax highlight JavaScript strings for output in terminals.", | ||
@@ -14,4 +14,4 @@ "author": "suchipi <me@suchipi.com>", | ||
"dependencies": { | ||
"@babel/helper-validator-identifier": "^7.9.0", | ||
"chalk": "^2.0.0", | ||
"esutils": "^2.0.2", | ||
"js-tokens": "^4.0.0" | ||
@@ -22,3 +22,3 @@ }, | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "8d5e422be27251cfaadf8dd2536b31b4a5024b02" | ||
} |
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
5502
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
- Removedesutils@^2.0.2
- Removedesutils@2.0.3(transitive)