babel-plugin-formatjs
Advanced tools
Comparing version 9.1.4 to 9.2.0
10
index.js
@@ -144,12 +144,4 @@ "use strict"; | ||
} | ||
var object = callee.get('object'); | ||
var property = callee.get('property'); | ||
return (property.isIdentifier() && | ||
property.node.name === 'formatMessage' && | ||
!Array.isArray(object) && | ||
// things like `intl.formatMessage` | ||
((object.isIdentifier() && object.node.name === 'intl') || | ||
// things like `this.props.intl.formatMessage` | ||
(object.isMemberExpression() && | ||
object.get('property').node.name === 'intl'))); | ||
return fnNames.has(property.node.name); | ||
} | ||
@@ -156,0 +148,0 @@ function assertObjectExpression(path, callee) { |
{ | ||
"name": "babel-plugin-formatjs", | ||
"version": "9.1.4", | ||
"version": "9.2.0", | ||
"description": "Extracts string messages for translation from modules that use formatjs.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
24003
441