Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
node_modules/webpack/lib/Chunk.js
generated
vendored
14
node_modules/webpack/lib/Chunk.js
generated
vendored
@@ -67,6 +67,7 @@ const ChunkFilesSet = createArrayToSetDeprecationSet("chunk.files");
|
||||
/** @typedef {SortableSet<ChunkGroup>} SortableChunkGroups */
|
||||
/** @typedef {Record<string, ChunkId[]>} ChunkChildIdsByOrdersMap */
|
||||
/** @typedef {Record<string, ChunkChildIdsByOrdersMap>} ChunkChildIdsByOrdersMapByData */
|
||||
/** @typedef {{ onChunks: Chunk[], chunks: Chunks }} ChunkChildOfTypeInOrder */
|
||||
|
||||
let debugId = 1000;
|
||||
|
||||
@@ -719,7 +720,7 @@ class Chunk {
|
||||
* @returns {Record<string, ChunkId[]>} a record object of names to lists of child ids(?)
|
||||
*/
|
||||
getChildIdsByOrders(chunkGraph, filterFn) {
|
||||
/** @type {Map<string, {order: number, group: ChunkGroup}[]>} */
|
||||
/** @type {Map<string, { order: number, group: ChunkGroup }[]>} */
|
||||
const lists = new Map();
|
||||
for (const group of this.groupsIterable) {
|
||||
if (group.chunks[group.chunks.length - 1] === this) {
|
||||
@@ -774,14 +775,16 @@ class Chunk {
|
||||
/**
|
||||
* @param {ChunkGraph} chunkGraph the chunk graph
|
||||
* @param {string} type option name
|
||||
* @returns {{ onChunks: Chunk[], chunks: Chunks }[] | undefined} referenced chunks for a specific type
|
||||
* @returns {ChunkChildOfTypeInOrder[] | undefined} referenced chunks for a specific type
|
||||
*/
|
||||
getChildrenOfTypeInOrder(chunkGraph, type) {
|
||||
/** @type {{ order: number, group: ChunkGroup, childGroup: ChunkGroup }[]} */
|
||||
const list = [];
|
||||
for (const group of this.groupsIterable) {
|
||||
for (const childGroup of group.childrenIterable) {
|
||||
const order =
|
||||
childGroup.options[/** @type {keyof ChunkGroupOptions} */ (type)];
|
||||
/** @type {number} */
|
||||
(childGroup.options[/** @type {keyof ChunkGroupOptions} */ (type)]);
|
||||
if (order === undefined) continue;
|
||||
list.push({
|
||||
order,
|
||||
@@ -792,12 +795,13 @@ class Chunk {
|
||||
}
|
||||
if (list.length === 0) return;
|
||||
list.sort((a, b) => {
|
||||
const cmp =
|
||||
/** @type {number} */ (b.order) - /** @type {number} */ (a.order);
|
||||
const cmp = b.order - a.order;
|
||||
if (cmp !== 0) return cmp;
|
||||
return a.group.compareTo(chunkGraph, b.group);
|
||||
});
|
||||
/** @type {ChunkChildOfTypeInOrder[]} */
|
||||
const result = [];
|
||||
/** @type {undefined | ChunkChildOfTypeInOrder} */
|
||||
let lastEntry;
|
||||
for (const { group, childGroup } of list) {
|
||||
if (lastEntry && lastEntry.onChunks === group.chunks) {
|
||||
|
||||
Reference in New Issue
Block a user