Socket
Socket
Sign inDemoInstall

babylon

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.17 to 6.0.18

6

lib/parser/expression.js

@@ -55,3 +55,3 @@ /* @flow */

case "StringLiteral":
case "NumberLiteral":
case "NumericLiteral":
name = String(key.value);

@@ -442,3 +442,3 @@ break;

var value = this.state.value;
node = this.parseLiteral(value.value, "RegexLiteral");
node = this.parseLiteral(value.value, "RegExpLiteral");
node.pattern = value.pattern;

@@ -449,3 +449,3 @@ node.flags = value.flags;

case _tokenizerTypes.types.num:
return this.parseLiteral(this.state.value, "NumberLiteral");
return this.parseLiteral(this.state.value, "NumericLiteral");

@@ -452,0 +452,0 @@ case _tokenizerTypes.types.string:

@@ -513,3 +513,3 @@ /* @flow */

this.next();
return this.finishNode(node, "NumberLiteralTypeAnnotation");
return this.finishNode(node, "NumericLiteralTypeAnnotation");

@@ -516,0 +516,0 @@ default:

{
"name": "babylon",
"version": "6.0.17",
"version": "6.0.18",
"description": "A JavaScript parser",

@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc