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:
13
node_modules/webpack/lib/ChunkGroup.js
generated
vendored
Executable file → Normal file
13
node_modules/webpack/lib/ChunkGroup.js
generated
vendored
Executable file → Normal file
@@ -45,7 +45,7 @@ const getArray = (set) => [...set];
|
||||
* A convenience method used to sort chunks based on their id's
|
||||
* @param {ChunkGroup} a first sorting comparator
|
||||
* @param {ChunkGroup} b second sorting comparator
|
||||
* @returns {1|0|-1} a sorting index to determine order
|
||||
* @returns {1 | 0 | -1} a sorting index to determine order
|
||||
*/
|
||||
const sortById = (a, b) => {
|
||||
if (a.id < b.id) return -1;
|
||||
@@ -56,7 +56,7 @@ const sortById = (a, b) => {
|
||||
/**
|
||||
* @param {OriginRecord} a the first comparator in sort
|
||||
* @param {OriginRecord} b the second comparator in sort
|
||||
* @returns {1|-1|0} returns sorting order as index
|
||||
* @returns {1 | -1| 0} returns sorting order as index
|
||||
*/
|
||||
const sortOrigin = (a, b) => {
|
||||
const aIdent = a.module ? a.module.identifier() : "";
|
||||
@@ -91,16 +91,19 @@ class ChunkGroup {
|
||||
this.chunks = [];
|
||||
/** @type {OriginRecord[]} */
|
||||
this.origins = [];
|
||||
|
||||
/** @typedef {Map<Module, number>} OrderIndices */
|
||||
|
||||
/** Indices in top-down order */
|
||||
/**
|
||||
* @private
|
||||
* @type {Map<Module, number>}
|
||||
* @type {OrderIndices}
|
||||
*/
|
||||
this._modulePreOrderIndices = new Map();
|
||||
/** Indices in bottom-up order */
|
||||
/**
|
||||
* @private
|
||||
* @type {Map<Module, number>}
|
||||
* @type {OrderIndices}
|
||||
*/
|
||||
this._modulePostOrderIndices = new Map();
|
||||
/** @type {number | undefined} */
|
||||
@@ -485,7 +488,7 @@ class ChunkGroup {
|
||||
* Sorting values are based off of number of chunks in ChunkGroup.
|
||||
* @param {ChunkGraph} chunkGraph the chunk graph
|
||||
* @param {ChunkGroup} otherGroup the chunkGroup to compare this against
|
||||
* @returns {-1|0|1} sort position for comparison
|
||||
* @returns {-1 | 0 | 1} sort position for comparison
|
||||
*/
|
||||
compareTo(chunkGraph, otherGroup) {
|
||||
if (this.chunks.length > otherGroup.chunks.length) return -1;
|
||||
|
||||
Reference in New Issue
Block a user