@wordpress/babel-plugin-makepot 4.3.2 → 4.4.0

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/index.js +13 -14
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -332,10 +332,8 @@ module.exports = () => {
332
332
  forEach(
333
333
  sortedTranslations,
334
334
  ( translation ) => {
335
- const {
336
- msgctxt = '',
337
- msgid,
338
- } = translation;
335
+ const { msgctxt = '', msgid } =
336
+ translation;
339
337
  if (
340
338
  ! memo.hasOwnProperty( msgctxt )
341
339
  ) {
@@ -349,16 +347,17 @@ module.exports = () => {
349
347
  memo[ msgctxt ][ msgid ]
350
348
  )
351
349
  ) {
352
- translation.comments.reference = uniq(
353
- [
354
- memo[ msgctxt ][ msgid ]
355
- .comments.reference,
356
- translation.comments
357
- .reference,
358
- ]
359
- .join( '\n' )
360
- .split( '\n' )
361
- ).join( '\n' );
350
+ translation.comments.reference =
351
+ uniq(
352
+ [
353
+ memo[ msgctxt ][ msgid ]
354
+ .comments.reference,
355
+ translation.comments
356
+ .reference,
357
+ ]
358
+ .join( '\n' )
359
+ .split( '\n' )
360
+ ).join( '\n' );
362
361
  }
363
362
 
364
363
  memo[ msgctxt ][ msgid ] = translation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/babel-plugin-makepot",
3
- "version": "4.3.2",
3
+ "version": "4.4.0",
4
4
  "description": "WordPress Babel internationalization (i18n) plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "446565ecaa40370173c18926535e975ec5652b71"
40
+ "gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
41
41
  }