babel-plugin-formatjs 10.5.12 → 10.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-formatjs",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.14",
|
|
4
4
|
"description": "Extracts string messages for translation from modules that use formatjs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/babel__helper-plugin-utils": "^7.10.0",
|
|
21
21
|
"@types/babel__traverse": "^7.1.7",
|
|
22
22
|
"tslib": "^2.4.0",
|
|
23
|
-
"@formatjs/ts-transformer": "3.13.
|
|
24
|
-
"@formatjs/icu-messageformat-parser": "2.7.
|
|
23
|
+
"@formatjs/ts-transformer": "3.13.12",
|
|
24
|
+
"@formatjs/icu-messageformat-parser": "2.7.6"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"babel-plugin",
|
|
@@ -116,7 +116,7 @@ const visitor = function (path, { opts, file: { opts: { filename }, }, }) {
|
|
|
116
116
|
// Check that this is `intl.formatMessage` call
|
|
117
117
|
if (isFormatMessageCall(callee, functionNames)) {
|
|
118
118
|
const messageDescriptor = args[0];
|
|
119
|
-
if (messageDescriptor.isObjectExpression()) {
|
|
119
|
+
if (messageDescriptor && messageDescriptor.isObjectExpression()) {
|
|
120
120
|
processMessageObject(messageDescriptor);
|
|
121
121
|
}
|
|
122
122
|
}
|