@lingui/core 4.11.0 → 4.11.1

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/dist/index.cjs CHANGED
@@ -280,6 +280,9 @@ class I18n extends EventEmitter {
280
280
  }
281
281
  _(id, values, options) {
282
282
  let message = options?.message;
283
+ if (!id) {
284
+ id = "";
285
+ }
283
286
  if (!isString(id)) {
284
287
  values = id.values || values;
285
288
  message = id.message;
package/dist/index.mjs CHANGED
@@ -278,6 +278,9 @@ class I18n extends EventEmitter {
278
278
  }
279
279
  _(id, values, options) {
280
280
  let message = options?.message;
281
+ if (!id) {
282
+ id = "";
283
+ }
281
284
  if (!isString(id)) {
282
285
  values = id.values || values;
283
286
  message = id.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/core",
3
- "version": "4.11.0",
3
+ "version": "4.11.1",
4
4
  "sideEffects": false,
5
5
  "description": "I18n tools for javascript",
6
6
  "main": "./dist/index.cjs",
@@ -54,12 +54,12 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "@babel/runtime": "^7.20.13",
57
- "@lingui/message-utils": "4.11.0",
57
+ "@lingui/message-utils": "4.11.1",
58
58
  "unraw": "^3.0.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@lingui/jest-mocks": "*",
62
62
  "unbuild": "2.0.0"
63
63
  },
64
- "gitHead": "8668ba8ef405d99d496949ff9681247deb97063d"
64
+ "gitHead": "ec49d0cc53dbc4f9e0f92f0edcdf59f3e5c1de1f"
65
65
  }