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

@@ -28,7 +28,7 @@ const {
/** @typedef {import("../logging/Logger").Logger} Logger */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
/** @typedef {typeof import("../util/Hash")} Hash */
/** @typedef {import("../util/Hash").HashFunction} HashFunction */
/** @typedef {import("../util/fs").IntermediateFileSystem} IntermediateFileSystem */
/** @typedef {Set<string>} Items */
@@ -134,13 +134,17 @@ class Pack {
this.itemInfo = new Map();
/** @type {(string | undefined)[]} */
this.requests = [];
/** @type {undefined | NodeJS.Timeout} */
this.requestsTimeout = undefined;
/** @type {ItemInfo} */
this.freshContent = new Map();
/** @type {(undefined | PackContent)[]} */
this.content = [];
/** @type {boolean} */
this.invalid = false;
/** @type {Logger} */
this.logger = logger;
/** @type {number} */
this.maxAge = maxAge;
}
@@ -243,6 +247,7 @@ class Pack {
* @returns {number} new location of data entries
*/
_findLocation() {
/** @type {number} */
let i;
for (i = 0; i < this.content.length && this.content[i] !== undefined; i++);
return i;
@@ -256,6 +261,7 @@ class Pack {
*/
_gcAndUpdateLocation(items, usedItems, newLoc) {
let count = 0;
/** @type {undefined | string} */
let lastGC;
const now = Date.now();
for (const identifier of items) {
@@ -381,6 +387,7 @@ class Pack {
}
// 2. Check if minimum number is reached
/** @type {number[]} */
let mergedIndices;
if (
smallUsedContents.length >= CONTENT_COUNT_TO_MERGE ||
@@ -505,6 +512,7 @@ class Pack {
// 5. Determine items for the unused content file
const unusedItems = new Set(content.items);
/** @type {Items} */
const usedOfUnusedItems = new Set();
for (const identifier of usedItems) {
unusedItems.delete(identifier);
@@ -521,6 +529,7 @@ class Pack {
await content.unpack(
"it should be splitted into used and unused items"
);
/** @type {Content} */
const map = new Map();
for (const identifier of unusedItems) {
map.set(
@@ -579,6 +588,7 @@ class Pack {
await content.unpack(
"it contains old items that should be garbage collected"
);
/** @type {Content} */
const map = new Map();
for (const identifier of items) {
map.set(
@@ -691,7 +701,7 @@ class PackContentItems {
}
/**
* @param {ObjectSerializerContext & { logger: Logger, profile: boolean | undefined }} context context
* @param {ObjectSerializerContext & { logger: Logger, profile: boolean | undefined }} context context
*/
serialize({ write, snapshot, rollback, logger, profile }) {
if (profile) {
@@ -774,6 +784,7 @@ class PackContentItems {
if (read()) {
this.map = read();
} else if (profile) {
/** @type {Map<EXPECTED_ANY, EXPECTED_ANY>} */
const map = new Map();
let key = read();
while (key !== null) {
@@ -799,6 +810,7 @@ class PackContentItems {
}
this.map = map;
} else {
/** @type {Map<EXPECTED_ANY, EXPECTED_ANY>} */
const map = new Map();
let key = read();
while (key !== null) {
@@ -816,7 +828,7 @@ makeSerializable(
"PackContentItems"
);
/** @typedef {(() => Promise<PackContentItems> | PackContentItems) & Partial<{ options: { size?: number }}>} LazyFunction */
/** @typedef {(() => Promise<PackContentItems> | PackContentItems) & Partial<{ options: { size?: number } }>} LazyFunction */
class PackContent {
/*
@@ -846,14 +858,19 @@ class PackContent {
* @param {string=} lazyName name of dataOrFn for logging
*/
constructor(items, usedItems, dataOrFn, logger, lazyName) {
/** @type {Items} */
this.items = items;
/** @type {LazyFunction | undefined} */
this.lazy = typeof dataOrFn === "function" ? dataOrFn : undefined;
/** @type {Content | undefined} */
this.content = typeof dataOrFn === "function" ? undefined : dataOrFn.map;
/** @type {boolean} */
this.outdated = false;
/** @type {Items} */
this.used = usedItems;
/** @type {Logger | undefined} */
this.logger = logger;
/** @type {string | undefined} */
this.lazyName = lazyName;
}
@@ -1091,10 +1108,10 @@ class PackFileCacheStrategy {
* @param {Logger} options.logger a logger
* @param {SnapshotOptions} options.snapshot options regarding snapshotting
* @param {number} options.maxAge max age of cache items
* @param {boolean | undefined} options.profile track and log detailed timing information for individual cache items
* @param {boolean | undefined} options.allowCollectingMemory allow to collect unused memory created during deserialization
* @param {false | "gzip" | "brotli" | undefined} options.compression compression used
* @param {boolean | undefined} options.readonly disable storing cache into filesystem
* @param {boolean=} options.profile track and log detailed timing information for individual cache items
* @param {boolean=} options.allowCollectingMemory allow to collect unused memory created during deserialization
* @param {false | "gzip" | "brotli"=} options.compression compression used
* @param {boolean=} options.readonly disable storing cache into filesystem
*/
constructor({
compiler,
@@ -1113,31 +1130,44 @@ class PackFileCacheStrategy {
/** @type {import("../serialization/Serializer")<PackContainer, null, EXPECTED_OBJECT>} */
this.fileSerializer = createFileSerializer(
fs,
/** @type {string | Hash} */
/** @type {HashFunction} */
(compiler.options.output.hashFunction)
);
/** @type {FileSystemInfo} */
this.fileSystemInfo = new FileSystemInfo(fs, {
managedPaths: snapshot.managedPaths,
immutablePaths: snapshot.immutablePaths,
logger: logger.getChildLogger("webpack.FileSystemInfo"),
hashFunction: compiler.options.output.hashFunction
});
/** @type {Compiler} */
this.compiler = compiler;
/** @type {string} */
this.context = context;
/** @type {string} */
this.cacheLocation = cacheLocation;
/** @type {string} */
this.version = version;
/** @type {Logger} */
this.logger = logger;
/** @type {number} */
this.maxAge = maxAge;
/** @type {boolean | undefined} */
this.profile = profile;
/** @type {boolean | undefined} */
this.readonly = readonly;
/** @type {boolean | undefined} */
this.allowCollectingMemory = allowCollectingMemory;
/** @type {false | "gzip" | "brotli" | undefined} */
this.compression = compression;
/** @type {string} */
this._extension =
compression === "brotli"
? ".pack.br"
: compression === "gzip"
? ".pack.gz"
: ".pack";
/** @type {SnapshotOptions} */
this.snapshot = snapshot;
/** @type {BuildDependencies} */
this.buildDependencies = new Set();
@@ -1151,6 +1181,7 @@ class PackFileCacheStrategy {
this.buildSnapshot = undefined;
/** @type {Promise<Pack> | undefined} */
this.packPromise = this._openPack();
/** @type {Promise<void>} */
this.storePromise = Promise.resolve();
}
@@ -1382,7 +1413,9 @@ class PackFileCacheStrategy {
if (!pack.invalid) return;
this.packPromise = undefined;
this.logger.log("Storing pack...");
/** @type {undefined | Promise<void>} */
let promise;
/** @type {Set<string>} */
const newBuildDependencies = new Set();
for (const dep of this.newBuildDependencies) {
if (!this.buildDependencies.has(dep)) {