Socket
Socket
Sign inDemoInstall

eslint-plugin-flowtype

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-flowtype - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

2

dist/utilities/isFlowFile.js

@@ -31,3 +31,3 @@ 'use strict';

return comments.some(function (comment) {
return (0, _isFlowFileAnnotation2.default)(comment.value) && !(strict && /no/.test(comment.value));
return (0, _isFlowFileAnnotation2.default)(comment.value, strict);
});

@@ -34,0 +34,0 @@ };

@@ -15,3 +15,3 @@ 'use strict';

exports.default = function (comment) {
exports.default = function (comment, strict) {
// eslint-disable-next-line flowtype/require-valid-file-annotation

@@ -21,3 +21,9 @@ // The flow parser splits comments with the following regex to look for the @flow flag.

return _lodash2.default.some(comment.split(/[ \t\r\n\\*/]+/), function (commentPart) {
return FLOW_MATCHER.test(commentPart);
var match = commentPart.match(FLOW_MATCHER);
if (match === null) {
return false;
}
return !strict || match[0] === '@flow';
});

@@ -24,0 +30,0 @@ };

@@ -63,3 +63,3 @@ {

},
"version": "3.7.0"
"version": "3.8.0"
}
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