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

@@ -17,6 +17,9 @@ const makeSerializable = require("../util/makeSerializable");
const { rangeToString, stringifyHoley } = require("../util/semver");
const ConsumeSharedFallbackDependency = require("./ConsumeSharedFallbackDependency");
/** @type {WeakMap<ModuleGraph, WeakMap<ConsumeSharedModule, Module | null>>} */
const fallbackModuleCache = new WeakMap();
/** @typedef {import("../config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Dependency").UpdateHashContext} UpdateHashContext */
@@ -27,7 +30,10 @@ const ConsumeSharedFallbackDependency = require("./ConsumeSharedFallbackDependen
/** @typedef {import("../Module").LibIdent} LibIdent */
/** @typedef {import("../Module").NeedBuildCallback} NeedBuildCallback */
/** @typedef {import("../Module").NeedBuildContext} NeedBuildContext */
/** @typedef {import("../Module").Sources} Sources */
/** @typedef {import("../Module").SourceTypes} SourceTypes */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../Module").ExportsType} ExportsType */
/** @typedef {import("../RequestShortener")} RequestShortener */
/** @typedef {import("../ResolverFactory").ResolverWithOptions} ResolverWithOptions */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
@@ -153,6 +159,57 @@ class ConsumeSharedModule extends Module {
return CONSUME_SHARED_TYPES;
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @returns {Module | null} fallback module
*/
_getFallbackModule(moduleGraph) {
let moduleCache = fallbackModuleCache.get(moduleGraph);
if (!moduleCache) {
moduleCache = new WeakMap();
fallbackModuleCache.set(moduleGraph, moduleCache);
}
const cached = moduleCache.get(this);
if (cached !== undefined) {
return cached;
}
/** @type {undefined | null | Module} */
let fallbackModule = null;
if (this.options.import) {
if (this.options.eager) {
const dep = this.dependencies[0];
if (dep) {
fallbackModule = moduleGraph.getModule(dep);
}
} else {
const block = this.blocks[0];
if (block && block.dependencies.length > 0) {
fallbackModule = moduleGraph.getModule(block.dependencies[0]);
}
}
}
moduleCache.set(this, fallbackModule);
return fallbackModule;
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {boolean | undefined} strict the importing module is strict
* @returns {ExportsType} export type
* "namespace": Exports is already a namespace object. namespace = exports.
* "dynamic": Check at runtime if __esModule is set. When set: namespace = { ...exports, default: exports }. When not set: namespace = { default: exports }.
* "default-only": Provide a namespace object with only default export. namespace = { default: exports }
* "default-with-named": Provide a namespace object with named and default export. namespace = { ...exports, default: exports }
*/
getExportsType(moduleGraph, strict) {
const fallbackModule = this._getFallbackModule(moduleGraph);
if (!fallbackModule) return "dynamic";
return fallbackModule.getExportsType(moduleGraph, strict);
}
/**
* @param {string=} type the source type for which the size should be estimated
* @returns {number} the estimated size of the module (must be non-zero)
@@ -186,6 +243,7 @@ class ConsumeSharedModule extends Module {
singleton,
eager
} = this.options;
/** @type {undefined | string} */
let fallbackCode;
if (request) {
if (eager) {
@@ -219,6 +277,7 @@ class ConsumeSharedModule extends Module {
args.push(fallbackCode);
}
/** @type {string} */
let fn;
if (requiredVersion) {
@@ -232,6 +291,7 @@ class ConsumeSharedModule extends Module {
}
const code = runtimeTemplate.returningFunction(`${fn}(${args.join(", ")})`);
/** @type {Sources} */
const sources = new Map();
sources.set("consume-shared", new RawSource(code));
return {