Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flow-remove-types

Package Overview
Dependencies
Maintainers
1
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-remove-types - npm Package Compare versions

Comparing version 2.102.0-rc to 2.103.0

12

index.js

@@ -152,5 +152,6 @@ /**

TypeAlias: removeNode,
TypeAnnotation: removeNode,
TypeAnnotation: removeNodeIfNotCommentType,
TypeParameterDeclaration: removeNode,
TypeParameterInstantiation: removeNode,
InferredPredicate: removeNode,

@@ -328,2 +329,11 @@ ClassDeclaration: removeImplementedInterfaces,

function removeNodeIfNotCommentType(context, node) {
var source = context.source;
var start = startOf(node);
if (source[start] === '/') {
return false;
}
return removeNode(context, node);
}
function getPragmaNode(context, start, size) {

@@ -330,0 +340,0 @@ var source = context.source;

4

package.json
{
"name": "flow-remove-types",
"version": "2.102.0-rc",
"version": "2.103.0",
"description": "Removes Flow type annotations from JavaScript files with speed and simplicity.",

@@ -46,3 +46,3 @@ "author": {

"dependencies": {
"flow-parser": "^0.102.0",
"flow-parser": "^0.103.0",
"pirates": "^3.0.2",

@@ -49,0 +49,0 @@ "vlq": "^0.2.1"

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