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 5.8.8 to 5.8.9

27

lib/plugins/flow.js

@@ -17,7 +17,7 @@ "use strict";

pp.flowParseTypeInitialiser = function (tok) {
var oldInType = this.inType;
this.inType = true;
var oldInType = this.state.inType;
this.state.inType = true;
this.expect(tok || _tokenizerTypes.types.colon);
var type = this.flowParseType();
this.inType = oldInType;
this.state.inType = oldInType;
return type;

@@ -187,6 +187,6 @@ };

var node = this.startNode(),
oldInType = this.inType;
oldInType = this.state.inType;
node.params = [];
this.inType = true;
this.state.inType = true;

@@ -202,3 +202,3 @@ this.expectRelational("<");

this.inType = oldInType;
this.state.inType = oldInType;

@@ -562,6 +562,6 @@ return this.finishNode(node, "TypeParameterInstantiation");

pp.flowParseType = function () {
var oldInType = this.inType;
this.inType = true;
var oldInType = this.state.inType;
this.state.inType = true;
var type = this.flowParseUnionType();
this.inType = oldInType;
this.state.inType = oldInType;
return type;

@@ -689,3 +689,3 @@ };

return function (name) {
if (this.inType && name === "void") {
if (this.state.inType && name === "void") {
return false;

@@ -700,3 +700,3 @@ } else {

return function (code) {
if (this.inType && (code === 62 || code === 60)) {
if (this.state.inType && (code === 62 || code === 60)) {
return this.finishOp(_tokenizerTypes.types.relational, 1);

@@ -711,3 +711,3 @@ } else {

return function () {
if (!this.inType) return inner.call(this);
if (!this.state.inType) return inner.call(this);
};

@@ -903,5 +903,4 @@ });

var state = this.state.clone();
if (this.match(_tokenizerTypes.types.colon)) {
var state = this.state.clone();
try {

@@ -908,0 +907,0 @@ return this.parseParenItem(node, startPos, startLoc, true);

{
"name": "babylon",
"version": "5.8.8",
"version": "5.8.9",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc