babel-plugin-flow-comments
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,3 +19,6 @@ "use strict"; | ||
}, | ||
Flow: function Flow(node, parent, scope, file) { | ||
"ExportNamedDeclaration|Flow": function ExportNamedDeclarationFlow(node, parent, scope, file) { | ||
if (t.isExportNamedDeclaration(node) && !t.isFlow(node.declaration)) { | ||
return; | ||
} | ||
var comment = this.getSource().replace("*/", "//"); | ||
@@ -22,0 +25,0 @@ if (parent.optional) comment = "?" + comment; |
{ | ||
"name": "babel-plugin-flow-comments", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Turn flow type annotations into comments", | ||
@@ -5,0 +5,0 @@ "repository": "babel-plugins/babel-plugin-flow-comments", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4114
16
95
1