New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-flow-comments

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-flow-comments - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

test/fixtures/export-type-alias/actual.js

5

lib/index.js

@@ -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;

2

package.json
{
"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",

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