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

@@ -32,7 +32,7 @@ const RuntimeGlobals = require("../RuntimeGlobals");
const Template = require("../Template");
const { last, someInIterable } = require("../util/IterableHelpers");
const StringXor = require("../util/StringXor");
const { compareModulesByIdOrIdentifier } = require("../util/comparators");
const { compareModulesByFullName } = require("../util/comparators");
const {
RESERVED_NAMES,
addScopeSymbols,
@@ -59,17 +59,21 @@ const JavascriptParser = require("./JavascriptParser");
/** @typedef {import("../CodeGenerationResults")} CodeGenerationResults */
/** @typedef {import("../Compilation").ChunkHashContext} ChunkHashContext */
/** @typedef {import("../Compilation").ExecuteModuleObject} ExecuteModuleObject */
/** @typedef {import("../Compilation").WebpackRequire} WebpackRequire */
/** @typedef {import("../Compiler")} Compiler */
/** @typedef {import("../DependencyTemplates")} DependencyTemplates */
/** @typedef {import("../Entrypoint")} Entrypoint */
/** @typedef {import("../Module")} Module */
/** @typedef {import("../Module").BuildInfo} BuildInfo */
/** @typedef {import("../Module").CodeGenerationResultData} CodeGenerationResultData */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */
/** @typedef {import("../TemplatedPathPlugin").TemplatePath} TemplatePath */
/** @typedef {import("../WebpackError")} WebpackError */
/** @typedef {import("../javascript/JavascriptParser").Range} Range */
/** @typedef {import("../util/Hash")} Hash */
/** @typedef {import("../util/concatenate").ScopeSet} ScopeSet */
/** @typedef {import("../util/concatenate").UsedNamesInScopeInfo} UsedNamesInScopeInfo */
/**
* @param {Chunk} chunk a chunk
@@ -278,7 +282,7 @@ class JavascriptModulesPlugin {
constructor(options = {}) {
this.options = options;
/** @type {WeakMap<Source, { source: Source, needModule:boolean, needExports: boolean, needRequire: boolean, needThisAsExports: boolean, needStrict: boolean | undefined, renderShorthand: boolean }>} */
/** @type {WeakMap<Source, { source: Source, needModule: boolean, needExports: boolean, needRequire: boolean, needThisAsExports: boolean, needStrict: boolean | undefined, renderShorthand: boolean }>} */
this._moduleFactoryCache = new WeakMap();
}
@@ -354,6 +358,7 @@ class JavascriptModulesPlugin {
outputOptions
);
/** @type {() => Source} */
let render;
if (hotUpdateChunk) {
@@ -535,6 +540,7 @@ class JavascriptModulesPlugin {
const { module } = options;
const code = source.source();
/** @type {(this: ExecuteModuleObject["exports"], exports: ExecuteModuleObject["exports"], moduleObject: ExecuteModuleObject, webpackRequire: WebpackRequire) => void} */
const fn = vm.runInThisContext(
`(function(${module.moduleArgument}, ${module.exportsArgument}, ${RuntimeGlobals.require}) {\n${code}\n/**/})`,
{
@@ -552,7 +558,8 @@ class JavascriptModulesPlugin {
moduleObject.exports,
moduleObject,
moduleObject.exports,
context.__webpack_require__
/** @type {WebpackRequire} */
(context.__webpack_require__)
);
} catch (err) {
/** @type {Error} */
@@ -569,6 +576,7 @@ class JavascriptModulesPlugin {
let code = source.source();
if (typeof code !== "string") code = code.toString();
/** @type {(this: null, webpackRequire: WebpackRequire) => void} */
const fn = vm.runInThisContext(
`(function(${RuntimeGlobals.require}) {\n${code}\n/**/})`,
{
@@ -578,7 +586,11 @@ class JavascriptModulesPlugin {
);
try {
// eslint-disable-next-line no-useless-call
fn.call(null, context.__webpack_require__);
fn.call(
null,
/** @type {WebpackRequire} */
(context.__webpack_require__)
);
} catch (err) {
/** @type {Error} */
(err).stack += printGeneratedCodeForStack(options.module, code);
@@ -638,6 +650,7 @@ class JavascriptModulesPlugin {
hooks.renderModuleContent.call(moduleSource, module, renderContext),
"JavascriptModulesPlugin.getCompilationHooks().renderModuleContent"
);
/** @type {Source} */
let moduleSourcePostContainer;
if (factory) {
const runtimeRequirements = chunkGraph.getModuleRuntimeRequirements(
@@ -660,6 +673,7 @@ class JavascriptModulesPlugin {
);
const renderShorthand =
renderInObject === true && runtimeTemplate.supportsMethodShorthand();
/** @type {Source} */
let source;
if (
cacheEntry &&
@@ -673,6 +687,7 @@ class JavascriptModulesPlugin {
source = cacheEntry.source;
} else {
const factorySource = new ConcatSource();
/** @type {string[]} */
const args = [];
if (needExports || needRequire || needModule) {
args.push(
@@ -747,13 +762,14 @@ class JavascriptModulesPlugin {
* @returns {Source} the rendered source
*/
renderChunk(renderContext, hooks) {
const { chunk, chunkGraph } = renderContext;
const { chunk, chunkGraph, runtimeTemplate } = renderContext;
const modules = chunkGraph.getOrderedChunkModulesIterableBySourceType(
chunk,
JAVASCRIPT_TYPE,
compareModulesByIdOrIdentifier(chunkGraph)
compareModulesByFullName(runtimeTemplate.compilation.compiler)
);
const allModules = modules ? [...modules] : [];
/** @type {undefined | string} */
let strictHeader;
let allStrict = renderContext.strictMode;
if (
@@ -838,7 +854,7 @@ class JavascriptModulesPlugin {
...(chunkGraph.getOrderedChunkModulesIterableBySourceType(
chunk,
JAVASCRIPT_TYPE,
compareModulesByIdOrIdentifier(chunkGraph)
compareModulesByFullName(runtimeTemplate.compilation.compiler)
) || [])
];
@@ -850,6 +866,7 @@ class JavascriptModulesPlugin {
}
const source = new ConcatSource();
/** @type {string} */
let prefix;
if (iife) {
if (runtimeTemplate.supportsArrowFunction()) {
@@ -1026,6 +1043,7 @@ class JavascriptModulesPlugin {
);
if (renderedModule) {
/** @type {string} */
let footer;
if (iife !== undefined) {
startupSource.add(
@@ -1209,7 +1227,7 @@ class JavascriptModulesPlugin {
requireFunction || interceptModuleExecution || moduleUsed;
/**
* @type {{startup: string[], beforeStartup: string[], header: string[], afterStartup: string[], allowInlineStartup: boolean}}
* @type {{ startup: string[], beforeStartup: string[], header: string[], afterStartup: string[], allowInlineStartup: boolean }}
*/
const result = {
header: [],
@@ -1334,6 +1352,7 @@ class JavascriptModulesPlugin {
result.allowInlineStartup = false;
}
/** @type {undefined | CodeGenerationResultData} */
let data;
if (codeGenerationResults.has(entryModule, chunk.runtime)) {
const result = codeGenerationResults.get(
@@ -1766,7 +1785,9 @@ class JavascriptModulesPlugin {
}
for (const variable of info.variables) {
/** @type {UsedNamesInScopeInfo} */
const usedNamesInScopeInfo = new Map();
/** @type {ScopeSet} */
const ignoredScopes = new Set();
const name = variable.name;