@lingui/babel-plugin-extract-messages
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -84,5 +84,5 @@ "use strict"; | ||
if (importDeclarations["Trans"]) { | ||
localTransComponentName = importDeclarations["Trans"]; | ||
} | ||
// Trans import might be missing if there's just Plural or similar macro. | ||
// If there's no alias, consider it was imported as Trans. | ||
localTransComponentName = importDeclarations["Trans"] || "Trans"; | ||
} | ||
@@ -196,3 +196,3 @@ | ||
var comment = path.node.leadingComments && path.node.leadingComments.filter(function (node) { | ||
return node.value.startsWith("i18n"); | ||
return node.value.match(/^\s*i18n/); | ||
})[0]; | ||
@@ -199,0 +199,0 @@ |
{ | ||
"name": "@lingui/babel-plugin-extract-messages", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Extract messages for translation", | ||
@@ -31,9 +31,9 @@ "main": "index.js", | ||
"dependencies": { | ||
"@lingui/conf": "2.7.0", | ||
"@lingui/conf": "2.7.1", | ||
"babel-generator": "^6.26.1" | ||
}, | ||
"devDependencies": { | ||
"@lingui/babel-plugin-transform-js": "2.7.0", | ||
"@lingui/babel-plugin-transform-react": "2.7.0" | ||
"@lingui/babel-plugin-transform-js": "2.7.1", | ||
"@lingui/babel-plugin-transform-react": "2.7.1" | ||
} | ||
} |
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
21787
+ Added@lingui/conf@2.7.1(transitive)
- Removed@lingui/conf@2.7.0(transitive)
Updated@lingui/conf@2.7.1