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

@@ -10,16 +10,10 @@ const urlUtils = require("url");
const { isAbsolute, join } = require("./fs");
/** @typedef {import("./fs").InputFileSystem} InputFileSystem */
/**
* @typedef {(input: string | Buffer<ArrayBufferLike>, resourcePath: string, fs: InputFileSystem) => Promise<{source: string | Buffer<ArrayBufferLike>, sourceMap: string | RawSourceMap | undefined, fileDependencies: string[]}>} SourceMapExtractorFunction
*/
/** @typedef {string | Buffer<ArrayBufferLike>} StringOrBuffer */
/** @typedef {(input: StringOrBuffer, resourcePath: string, fs: InputFileSystem) => Promise<{ source: StringOrBuffer, sourceMap: string | RawSourceMap | undefined, fileDependencies: string[] }>} SourceMapExtractorFunction */
/** @typedef {import("webpack-sources").RawSourceMap} RawSourceMap */
/**
* @typedef {(resourcePath: string) => Promise<string | Buffer<ArrayBufferLike>>} ReadResource
*/
/** @typedef {(resourcePath: string) => Promise<StringOrBuffer>} ReadResource */
/**
* @typedef {object} SourceMappingURL
@@ -52,6 +46,7 @@ const sourceMappingURLRegex = new RegExp(
*/
function getSourceMappingURL(code) {
const lines = code.split(/^/m);
/** @type {RegExpMatchArray | null | undefined} */
let match;
for (let i = lines.length - 1; i >= 0; i--) {
@@ -104,13 +99,14 @@ function isURL(value) {
* @param {ReadResource} readResource read resource function
* @param {string[]} possibleRequests array of possible file paths
* @param {string} errorsAccumulator accumulated error messages
* @returns {Promise<{path: string, data?: string}>} source content promise
* @returns {Promise<{ path: string, data?: string }>} source content promise
*/
async function fetchPathsFromURL(
readResource,
possibleRequests,
errorsAccumulator = ""
) {
/** @type {StringOrBuffer} */
let result;
try {
@@ -146,7 +142,7 @@ async function fetchPathsFromURL(
* @param {string} url source URL
* @param {string=} sourceRoot source root directory
* @param {boolean=} skipReading whether to skip reading file content
* @returns {Promise<{sourceURL: string, sourceContent?: string | Buffer<ArrayBufferLike>}>} source content promise
* @returns {Promise<{ sourceURL: string, sourceContent?: StringOrBuffer }>} source content promise
*/
async function fetchFromURL(
readResource,
@@ -181,9 +177,11 @@ async function fetchFromURL(
if (isAbsolute(url)) {
let sourceURL = path.normalize(url);
/** @type {undefined | StringOrBuffer} */
let sourceContent;
if (!skipReading) {
/** @type {string[]} */
const possibleRequests = [sourceURL];
if (url.startsWith("/")) {
@@ -203,6 +201,7 @@ async function fetchFromURL(
// 4. Relative path
const sourceURL = getAbsolutePath(context, url, sourceRoot || "");
/** @type {undefined | StringOrBuffer} */
let sourceContent;
if (!skipReading) {
@@ -214,10 +213,10 @@ async function fetchFromURL(
/**
* Extract source map from code content
* @param {string | Buffer<ArrayBufferLike>} stringOrBuffer The input code content as string or buffer
* @param {StringOrBuffer} stringOrBuffer The input code content as string or buffer
* @param {string} resourcePath The path to the resource file
* @param {ReadResource} readResource The read resource function
* @returns {Promise<{source: string | Buffer<ArrayBufferLike>, sourceMap: string | RawSourceMap | undefined}>} Promise resolving to extracted source map information
* @returns {Promise<{ source: StringOrBuffer, sourceMap: string | RawSourceMap | undefined }>} Promise resolving to extracted source map information
*/
async function extractSourceMap(stringOrBuffer, resourcePath, readResource) {
const input =