@formatjs/cli 5.0.5 → 5.0.6

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/bin/formatjs +2 -2
  2. package/package.json +2 -2
package/bin/formatjs CHANGED
@@ -149483,7 +149483,7 @@ ${JSON.stringify(message, void 0, 2)}`);
149483
149483
  }
149484
149484
  if (extractedMessages.has(id)) {
149485
149485
  const existing = extractedMessages.get(id);
149486
- if (description !== existing.description || defaultMessage !== existing.defaultMessage) {
149486
+ if ((0, import_json_stable_stringify.default)(description) !== (0, import_json_stable_stringify.default)(existing.description) || defaultMessage !== existing.defaultMessage) {
149487
149487
  const error = new Error(`[FormatJS CLI] Duplicate message id: "${id}", but the \`description\` and/or \`defaultMessage\` are different.`);
149488
149488
  if (throws) {
149489
149489
  throw error;
@@ -154915,7 +154915,7 @@ var require_out4 = __commonJS({
154915
154915
  var version;
154916
154916
  var init_package = __esm({
154917
154917
  "bazel-out/darwin-fastbuild/bin/packages/cli-lib/lib_esnext/package.json"() {
154918
- version = "5.0.4";
154918
+ version = "5.0.5";
154919
154919
  }
154920
154920
  });
154921
154921
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/cli",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "A CLI for formatjs.",
5
5
  "keywords": [
6
6
  "intl",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/formatjs/formatjs/issues"
34
34
  },
35
35
  "devDependencies": {
36
- "@formatjs/cli-lib": "5.0.4"
36
+ "@formatjs/cli-lib": "5.0.5"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@vue/compiler-sfc": "^3.2.34"