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:
root
2026-02-20 11:31:28 +00:00
parent d01a6179aa
commit b5eb27a827
1690 changed files with 47348 additions and 16848 deletions

View File

@@ -13,6 +13,7 @@ const {
/** @typedef {import("../Compiler")} Compiler */
/** @typedef {import("../Module")} Module */
/** @typedef {import("../ChunkGraph").ModuleComparator} ModuleComparator */
/**
* @typedef {object} ChunkModuleIdRangePluginOptions
@@ -29,6 +30,7 @@ class ChunkModuleIdRangePlugin {
* @param {ChunkModuleIdRangePluginOptions} options options object
*/
constructor(options) {
/** @type {ChunkModuleIdRangePluginOptions} */
this.options = options;
}
@@ -38,26 +40,26 @@ class ChunkModuleIdRangePlugin {
* @returns {void}
*/
apply(compiler) {
const options = this.options;
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
const moduleGraph = compilation.moduleGraph;
compilation.hooks.moduleIds.tap(PLUGIN_NAME, (modules) => {
const chunkGraph = compilation.chunkGraph;
const chunk = find(
compilation.chunks,
(chunk) => chunk.name === options.name
(chunk) => chunk.name === this.options.name
);
if (!chunk) {
throw new Error(
`${PLUGIN_NAME}: Chunk with name '${options.name}"' was not found`
`${PLUGIN_NAME}: Chunk with name '${this.options.name}"' was not found`
);
}
/** @type {Module[]} */
let chunkModules;
if (options.order) {
if (this.options.order) {
/** @type {ModuleComparator} */
let cmpFn;
switch (options.order) {
switch (this.options.order) {
case "index":
case "preOrderIndex":
cmpFn = compareModulesByPreOrderIndexOrIdentifier(moduleGraph);
@@ -76,13 +78,13 @@ class ChunkModuleIdRangePlugin {
.sort(compareModulesByPreOrderIndexOrIdentifier(moduleGraph));
}
let currentId = options.start || 0;
let currentId = this.options.start || 0;
for (let i = 0; i < chunkModules.length; i++) {
const m = chunkModules[i];
if (m.needId && chunkGraph.getModuleId(m) === null) {
chunkGraph.setModuleId(m, currentId++);
}
if (options.end && currentId > options.end) break;
if (this.options.end && currentId > this.options.end) break;
}
});
});