Add JS-CATCH-FALLBACK-01 rule and update npm packages

Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 07:36:18 +00:00
parent 3cc590186a
commit 3ce82a924a
1256 changed files with 6491 additions and 3989 deletions

9
node_modules/webpack/lib/CleanPlugin.js generated vendored Executable file → Normal file
View File

@@ -63,8 +63,10 @@ const mergeAssets = (as1, as2) => {
}
};
/** @typedef {Map<string, number>} CurrentAssets */
/**
* @param {Map<string, number>} assets current assets
* @param {CurrentAssets} assets current assets
* @returns {Set<string>} Set of directory paths
*/
function getDirectories(assets) {
@@ -92,12 +94,13 @@ function getDirectories(assets) {
/**
* @param {OutputFileSystem} fs filesystem
* @param {string} outputPath output path
* @param {Map<string, number>} currentAssets filename of the current assets (must not start with .. or ., must only use / as path separator)
* @param {CurrentAssets} currentAssets filename of the current assets (must not start with .. or ., must only use / as path separator)
* @param {(err?: Error | null, set?: Diff) => void} callback returns the filenames of the assets that shouldn't be there
* @returns {void}
*/
const getDiffToFs = (fs, outputPath, currentAssets, callback) => {
const directories = getDirectories(currentAssets);
/** @type {Diff} */
const diff = new Set();
asyncLib.forEachLimit(
directories,
@@ -388,7 +391,7 @@ class CleanPlugin {
// We assume that no external modification happens while the compiler is active
// So we can store the old assets and only diff to them to avoid fs access on
// incremental builds
/** @type {undefined|Assets} */
/** @type {undefined | Assets} */
let oldAssets;
compiler.hooks.emit.tapAsync(