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.4 to 1.0.5

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

2

package.json
{
"name": "babel-plugin-flow-comments",
"version": "1.0.4",
"version": "1.0.5",
"description": "Turn flow type annotations into comments",

@@ -5,0 +5,0 @@ "repository": "babel-plugins/babel-plugin-flow-comments",

@@ -5,2 +5,4 @@ # babel-plugin-flow-comments

When using this plugin, you might want to also blacklist the `flow` transformer to preserve the `/* @flow */` directive.
http://flowtype.org/blog/2015/02/20/Flow-Comments.html

@@ -19,2 +21,5 @@

};
export type GraphQLFormattedError = number;
import type A, { B, C } from './types';
import typeof D, { E, F } from './types';
```

@@ -33,2 +38,5 @@

};*/
/*:: export type GraphQLFormattedError = number;*/
/*:: import type A, { B, C } from './types';*/
/*:: import typeof D, { E, F } from './types';*/
```

@@ -50,3 +58,4 @@

{
"plugins": ["flow-comments"]
"plugins": ["flow-comments"],
"blacklist": ["flow"]
}

@@ -58,3 +67,3 @@ ```

```sh
$ babel --plugins flow-comments script.js
$ babel --plugins flow-comments --blacklist flow script.js
```

@@ -66,4 +75,5 @@

require("babel-core").transform("code", {
plugins: ["flow-comments"]
plugins: ["flow-comments"],
blacklist: ["flow"]
});
```

@@ -0,1 +1,2 @@

export type GraphQLFormattedError = number;
export type GraphQLFormattedError = {

@@ -2,0 +3,0 @@ message: string,

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

/*:: export type GraphQLFormattedError = number;*/
/*:: export type GraphQLFormattedError = {

@@ -9,0 +10,0 @@ message: string,

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