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

0
node_modules/webpack/lib/ids/ChunkModuleIdRangePlugin.js generated vendored Executable file → Normal file
View File

View File

@@ -222,17 +222,19 @@ const addToMapOfItems = (map, key, value) => {
array.push(value);
};
/** @typedef {Set<string>} UsedModuleIds */
/**
* @param {Compilation} compilation the compilation
* @param {((module: Module) => boolean)=} filter filter modules
* @returns {[Set<string>, Module[]]} used module ids as strings and modules without id matching the filter
* @returns {[UsedModuleIds, Module[]]} used module ids as strings and modules without id matching the filter
*/
const getUsedModuleIdsAndModules = (compilation, filter) => {
const chunkGraph = compilation.chunkGraph;
const modules = [];
/** @type {Set<string>} */
/** @type {UsedModuleIds} */
const usedIds = new Set();
if (compilation.usedModuleIds) {
for (const id of compilation.usedModuleIds) {
@@ -258,12 +260,14 @@ const getUsedModuleIdsAndModules = (compilation, filter) => {
return [usedIds, modules];
};
/** @typedef {Set<string>} UsedChunkIds */
/**
* @param {Compilation} compilation the compilation
* @returns {Set<string>} used chunk ids as strings
* @returns {UsedChunkIds} used chunk ids as strings
*/
const getUsedChunkIds = (compilation) => {
/** @type {Set<string>} */
/** @type {UsedChunkIds} */
const usedIds = new Set();
if (compilation.usedChunkIds) {
for (const id of compilation.usedChunkIds) {
@@ -299,7 +303,12 @@ const assignNames = (
usedIds,
assignName
) => {
/** @type {Map<string, T[]>} */
/**
* @template T
* @typedef {Map<string, T[]>} MapToItem
*/
/** @type {MapToItem<T>} */
const nameToItems = new Map();
for (const item of items) {
@@ -307,7 +316,7 @@ const assignNames = (
addToMapOfItems(nameToItems, name, item);
}
/** @type {Map<string, T[]>} */
/** @type {MapToItem<T>} */
const nameToItems2 = new Map();
for (const [name, items] of nameToItems) {
@@ -402,7 +411,7 @@ const assignDeterministicIds = (
};
/**
* @param {Set<string>} usedIds used ids
* @param {UsedModuleIds} usedIds used ids
* @param {Iterable<Module>} modules the modules
* @param {Compilation} compilation the compilation
* @returns {void}