Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

babylon - npm Package Compare versions

Comparing version 5.8.19 to 5.8.20

AUTHORS

5

lib/plugins/flow.js

@@ -501,2 +501,7 @@ "use strict";

case _tokenizerTypes.types._true:case _tokenizerTypes.types._false:
node.value = this.match(_tokenizerTypes.types._true);
this.next();
return this.finishNode(node, "BooleanLiteralTypeAnnotation");
case _tokenizerTypes.types.num:

@@ -503,0 +508,0 @@ node.rawValue = node.value = this.state.value;

7

lib/plugins/jsx/index.js

@@ -254,5 +254,6 @@ "use strict";

pp.jsxParseAttributeValue = function () {
var node;
switch (this.state.type) {
case _tokenizerTypes.types.braceL:
var node = this.jsxParseExpressionContainer();
node = this.jsxParseExpressionContainer();
if (node.expression.type === "JSXEmptyExpression") {

@@ -266,3 +267,5 @@ this.raise(node.start, "JSX attributes must only be assigned a non-empty expression");

case _tokenizerTypes.types.string:
return this.parseExprAtom();
node = this.parseExprAtom();
node.rawValue = null;
return node;

@@ -269,0 +272,0 @@ default:

@@ -71,8 +71,2 @@ "use strict";

// Used to signal to callers of `readWord1` whether the word
// contained any escape sequences. This is needed because words with
// escape sequences must not be interpreted as keywords.
var containsEsc;
var Tokenizer = (function () {

@@ -823,3 +817,3 @@ function Tokenizer(input) {

// Read an identifier, and return it as a string. Sets `containsEsc`
// Read an identifier, and return it as a string. Sets `this.state.containsEsc`
// to whether the word contained a '\u' escape.

@@ -831,3 +825,3 @@ //

Tokenizer.prototype.readWord1 = function readWord1() {
containsEsc = false;
this.state.containsEsc = false;
var word = "",

@@ -842,3 +836,3 @@ first = true,

// "\"
containsEsc = true;
this.state.containsEsc = true;

@@ -875,3 +869,3 @@ word += this.input.slice(chunkStart, this.state.pos);

var type = _types.types.name;
if (!containsEsc && this.isKeyword(word)) type = _types.keywords[word];
if (!this.state.containsEsc && this.isKeyword(word)) type = _types.keywords[word];
return this.finishToken(type, word);

@@ -878,0 +872,0 @@ };

@@ -70,2 +70,8 @@ "use strict";

// Used to signal to callers of `readWord1` whether the word
// contained any escape sequences. This is needed because words with
// escape sequences must not be interpreted as keywords.
this.containsEsc = false;
return this;

@@ -72,0 +78,0 @@ };

{
"name": "babylon",
"version": "5.8.19",
"version": "5.8.20",
"description": "",

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

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