@wordpress/babel-plugin-makepot 5.6.0 → 5.7.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 +2 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -33,7 +33,7 @@
33
33
  */
34
34
 
35
35
  const { po } = require( 'gettext-parser' );
36
- const { pick, isEqual, merge, isEmpty } = require( 'lodash' );
36
+ const { merge, isEmpty } = require( 'lodash' );
37
37
  const { relative, sep } = require( 'path' );
38
38
  const { writeFileSync } = require( 'fs' );
39
39
 
@@ -182,10 +182,7 @@ function isValidTranslationKey( key ) {
182
182
  * @return {boolean} Whether valid translation keys match.
183
183
  */
184
184
  function isSameTranslation( a, b ) {
185
- return isEqual(
186
- pick( a, VALID_TRANSLATION_KEYS ),
187
- pick( b, VALID_TRANSLATION_KEYS )
188
- );
185
+ return VALID_TRANSLATION_KEYS.every( ( key ) => a[ key ] === b[ key ] );
189
186
  }
190
187
 
191
188
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/babel-plugin-makepot",
3
- "version": "5.6.0",
3
+ "version": "5.7.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": "7ac04f446242452d3cb24372f9ca58f0cae97715"
40
+ "gitHead": "1eb65aabe6738097f4c062e78f69ae8f05879848"
41
41
  }