@formatjs/cli-lib 5.0.4 → 5.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/extract.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/cli-lib",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "Lib for CLI for formatjs.",
5
5
  "keywords": [
6
6
  "intl",
package/src/extract.js CHANGED
@@ -155,7 +155,7 @@ function extract(files, extractOpts) {
155
155
  }
156
156
  if (extractedMessages.has(id)) {
157
157
  existing = extractedMessages.get(id);
158
- if (description !== existing.description ||
158
+ if ((0, json_stable_stringify_1.default)(description) !== (0, json_stable_stringify_1.default)(existing.description) ||
159
159
  defaultMessage !== existing.defaultMessage) {
160
160
  error = new Error("[FormatJS CLI] Duplicate message id: \"".concat(id, "\", ") +
161
161
  'but the `description` and/or `defaultMessage` are different.');