Socket
Socket
Sign inDemoInstall

@babel/generator

Package Overview
Dependencies
Maintainers
6
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/generator - npm Package Compare versions

Comparing version 7.16.0 to 7.16.5

2

lib/generators/flow.js

@@ -399,3 +399,3 @@ "use strict";

if (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method) {
if (parent && (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method)) {
this.token(":");

@@ -402,0 +402,0 @@ } else {

{
"name": "@babel/generator",
"version": "7.16.0",
"version": "7.16.5",
"description": "Turns an AST into code.",

@@ -27,4 +27,4 @@ "author": "The Babel Team (https://babel.dev/team)",

"devDependencies": {
"@babel/helper-fixtures": "^7.16.0",
"@babel/parser": "^7.16.0",
"@babel/helper-fixtures": "^7.16.5",
"@babel/parser": "^7.16.5",
"@types/jsesc": "^2.5.0",

@@ -31,0 +31,0 @@ "@types/source-map": "^0.5.0",

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