flow-remove-types
Advanced tools
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; |
{ | ||
"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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
40011
612
0
+ Addedflow-parser@0.103.0(transitive)
- Removedflow-parser@0.102.0(transitive)
Updatedflow-parser@^0.103.0