babel-plugin-formatjs 10.5.25 → 10.5.26
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/README.md +1 -1
- package/package.json +1 -1
- package/utils.d.ts +1 -1
- package/utils.js +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as t from '@babel/types';
|
|
2
|
-
import { Options, ExtractedMessageDescriptor, MessageDescriptor, MessageDescriptorPath } from './types';
|
|
3
2
|
import { NodePath } from '@babel/core';
|
|
3
|
+
import { ExtractedMessageDescriptor, MessageDescriptor, MessageDescriptorPath, Options } from './types';
|
|
4
4
|
export declare function getMessageDescriptorKey(path: NodePath<any>): string;
|
|
5
5
|
export declare function createMessageDescriptor(propPaths: [
|
|
6
6
|
NodePath<t.JSXIdentifier> | NodePath<t.Identifier>,
|
package/utils.js
CHANGED
|
@@ -103,7 +103,7 @@ function getICUMessageValue(messagePath, { isJSXSource = false } = {}, preserveW
|
|
|
103
103
|
'See: http://facebook.github.io/react/docs/jsx-gotchas.html');
|
|
104
104
|
}
|
|
105
105
|
throw messagePath.buildCodeFrameError('[React Intl] Message failed to parse. ' +
|
|
106
|
-
'See: https://formatjs.io/docs/core-concepts/icu-syntax' +
|
|
106
|
+
'See: https://formatjs.github.io/docs/core-concepts/icu-syntax' +
|
|
107
107
|
`\n${parseError}`);
|
|
108
108
|
}
|
|
109
109
|
return message;
|