@lingui/babel-plugin-extract-messages
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -107,3 +107,9 @@ "use strict"; | ||
var key = item.name.name; | ||
if (key === "id" || key === "defaults") acc[key] = item.value.value; | ||
if (key === "id" || key === "defaults") { | ||
if (item.value.value) { | ||
acc[key] = item.value.value; | ||
} else if (item.value.expression && t.isStringLiteral(item.value.expression)) { | ||
acc[key] = item.value.expression.value; | ||
} | ||
} | ||
return acc; | ||
@@ -110,0 +116,0 @@ }, {}); |
{ | ||
"name": "@lingui/babel-plugin-extract-messages", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Extract messages for translation", | ||
@@ -31,9 +31,9 @@ "main": "index.js", | ||
"dependencies": { | ||
"@lingui/conf": "2.1.1", | ||
"@lingui/conf": "2.1.2", | ||
"babel-generator": "^6.26.1" | ||
}, | ||
"devDependencies": { | ||
"@lingui/babel-plugin-transform-js": "2.1.1", | ||
"@lingui/babel-plugin-transform-react": "2.1.1" | ||
"@lingui/babel-plugin-transform-js": "2.1.2", | ||
"@lingui/babel-plugin-transform-react": "2.1.2" | ||
} | ||
} |
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
11953
203
+ Added@lingui/conf@2.1.2(transitive)
- Removed@lingui/conf@2.1.1(transitive)
Updated@lingui/conf@2.1.2