@automattic/i18n-check-webpack-plugin 1.1.29 → 1.1.30
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/GettextExtractor.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.30] - 2025-12-08
|
|
9
|
+
### Changed
|
|
10
|
+
- Internal updates.
|
|
11
|
+
|
|
8
12
|
## [1.1.29] - 2025-11-17
|
|
9
13
|
### Changed
|
|
10
14
|
- Update package dependencies. [#45958]
|
|
@@ -293,6 +297,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
293
297
|
### Added
|
|
294
298
|
- Initial release.
|
|
295
299
|
|
|
300
|
+
[1.1.30]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.1.29...v1.1.30
|
|
296
301
|
[1.1.29]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.1.28...v1.1.29
|
|
297
302
|
[1.1.28]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.1.27...v1.1.28
|
|
298
303
|
[1.1.27]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.1.26...v1.1.27
|
package/package.json
CHANGED
package/src/GettextExtractor.js
CHANGED
|
@@ -8,9 +8,9 @@ const debug = require( 'debug' )( `${ PLUGIN_NAME }:gettext` ); // eslint-disabl
|
|
|
8
8
|
const { parseAsync, parseSync, traverse, types: t } = babel;
|
|
9
9
|
|
|
10
10
|
// Some typedefs for jsdoc. Babel doesn't export the actual constructors for us.
|
|
11
|
-
/** @typedef babel.Node */
|
|
12
|
-
/** @typedef babel.Comment */
|
|
13
|
-
/** @typedef {babel.Node}
|
|
11
|
+
/** @typedef {babel.Node} BabelNode */
|
|
12
|
+
/** @typedef {babel.Comment} BabelComment */
|
|
13
|
+
/** @typedef {babel.Node} BabelCallExpression */
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Default function mappings.
|
|
@@ -310,7 +310,7 @@ class GettextExtractor {
|
|
|
310
310
|
* Resolve the callee of a CallExpression.
|
|
311
311
|
*
|
|
312
312
|
* @see https://github.com/wp-cli/i18n-command/blob/e9eef8aab4b5e43c3aa09bf60e1e7a9d6d30d302/src/JsFunctionsScanner.php#L254
|
|
313
|
-
* @param {
|
|
313
|
+
* @param {BabelCallExpression} node - CallExpression node.
|
|
314
314
|
* @return {{ name: string, comments: string[] }|undefined} Callee name and comments, or undefined.
|
|
315
315
|
*/
|
|
316
316
|
#resolveExpressionCallee( node ) {
|
|
@@ -421,8 +421,8 @@ class GettextExtractor {
|
|
|
421
421
|
* Test if the comment comes before the node.
|
|
422
422
|
*
|
|
423
423
|
* @see https://github.com/wp-cli/i18n-command/blob/e9eef8aab4b5e43c3aa09bf60e1e7a9d6d30d302/src/JsFunctionsScanner.php#L364
|
|
424
|
-
* @param {
|
|
425
|
-
* @param {
|
|
424
|
+
* @param {BabelComment} comment - Comment.
|
|
425
|
+
* @param {BabelNode} node - Node.
|
|
426
426
|
* @return {boolean} Whether the comment comes before the node.
|
|
427
427
|
*/
|
|
428
428
|
#commentPrecedesNode( comment, node ) {
|