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:
9
node_modules/webpack/lib/util/deterministicGrouping.js
generated
vendored
9
node_modules/webpack/lib/util/deterministicGrouping.js
generated
vendored
@@ -137,12 +137,15 @@ const isTooSmall = (size, minSize) => {
|
||||
return false;
|
||||
};
|
||||
|
||||
/** @typedef {Set<string>} Types */
|
||||
|
||||
/**
|
||||
* @param {Sizes} size size
|
||||
* @param {Sizes} minSize minimum size
|
||||
* @returns {Set<string>} set of types that are too small
|
||||
* @returns {Types} set of types that are too small
|
||||
*/
|
||||
const getTooSmallTypes = (size, minSize) => {
|
||||
/** @typedef {Types} */
|
||||
const types = new Set();
|
||||
for (const key of Object.keys(size)) {
|
||||
const s = size[key];
|
||||
@@ -156,7 +159,7 @@ const getTooSmallTypes = (size, minSize) => {
|
||||
/**
|
||||
* @template {object} T
|
||||
* @param {T} size size
|
||||
* @param {Set<string>} types types
|
||||
* @param {Types} types types
|
||||
* @returns {number} number of matching size types
|
||||
*/
|
||||
const getNumberOfMatchingSizeTypes = (size, types) => {
|
||||
@@ -169,7 +172,7 @@ const getNumberOfMatchingSizeTypes = (size, types) => {
|
||||
|
||||
/**
|
||||
* @param {Sizes} size size
|
||||
* @param {Set<string>} types types
|
||||
* @param {Types} types types
|
||||
* @returns {number} selective size sum
|
||||
*/
|
||||
const selectiveSizeSum = (size, types) => {
|
||||
|
||||
Reference in New Issue
Block a user