Socket
Socket
Sign inDemoInstall

@babel/highlight

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/highlight - npm Package Compare versions

Comparing version 7.8.3 to 7.9.0

4

lib/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc