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:
10
node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js
generated
vendored
10
node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js
generated
vendored
@@ -24,7 +24,8 @@ class CommonJsChunkLoadingPlugin {
|
||||
* @param {CommonJsChunkLoadingPluginOptions=} options options
|
||||
*/
|
||||
constructor(options = {}) {
|
||||
this._asyncChunkLoading = options.asyncChunkLoading;
|
||||
/** @type {CommonJsChunkLoadingPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,15 +34,15 @@ class CommonJsChunkLoadingPlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
const ChunkLoadingRuntimeModule = this._asyncChunkLoading
|
||||
const ChunkLoadingRuntimeModule = this.options.asyncChunkLoading
|
||||
? require("./ReadFileChunkLoadingRuntimeModule")
|
||||
: require("./RequireChunkLoadingRuntimeModule");
|
||||
const chunkLoadingValue = this._asyncChunkLoading
|
||||
const chunkLoadingValue = this.options.asyncChunkLoading
|
||||
? "async-node"
|
||||
: "require";
|
||||
new StartupChunkDependenciesPlugin({
|
||||
chunkLoading: chunkLoadingValue,
|
||||
asyncChunkLoading: this._asyncChunkLoading
|
||||
asyncChunkLoading: this.options.asyncChunkLoading
|
||||
}).apply(compiler);
|
||||
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
||||
const globalChunkLoading = compilation.outputOptions.chunkLoading;
|
||||
@@ -57,6 +58,7 @@ class CommonJsChunkLoadingPlugin {
|
||||
: globalChunkLoading;
|
||||
return chunkLoading === chunkLoadingValue;
|
||||
};
|
||||
/** @type {WeakSet<Chunk>} */
|
||||
const onceForChunkSet = new WeakSet();
|
||||
/**
|
||||
* @param {Chunk} chunk chunk
|
||||
|
||||
1
node_modules/webpack/lib/node/NodeEnvironmentPlugin.js
generated
vendored
1
node_modules/webpack/lib/node/NodeEnvironmentPlugin.js
generated
vendored
@@ -27,6 +27,7 @@ class NodeEnvironmentPlugin {
|
||||
* @param {NodeEnvironmentPluginOptions} options options
|
||||
*/
|
||||
constructor(options) {
|
||||
/** @type {NodeEnvironmentPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
|
||||
11
node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
11
node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
@@ -77,6 +77,7 @@ class NodeTargetPlugin {
|
||||
* @param {ExternalsType} type default external type
|
||||
*/
|
||||
constructor(type = "node-commonjs") {
|
||||
/** @type {ExternalsType} */
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@@ -86,7 +87,15 @@ class NodeTargetPlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
new ExternalsPlugin(this.type, builtins).apply(compiler);
|
||||
new ExternalsPlugin((dependency) => {
|
||||
// When `require` node.js built-in modules with module output
|
||||
// we should still emit `createRequire` for compatibility
|
||||
if (dependency.category === "commonjs") {
|
||||
return "node-commonjs";
|
||||
}
|
||||
|
||||
return this.type;
|
||||
}, builtins).apply(compiler);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/node/NodeTemplatePlugin.js
generated
vendored
1
node_modules/webpack/lib/node/NodeTemplatePlugin.js
generated
vendored
@@ -20,6 +20,7 @@ class NodeTemplatePlugin {
|
||||
* @param {NodeTemplatePluginOptions=} options options object
|
||||
*/
|
||||
constructor(options = {}) {
|
||||
/** @type {NodeTemplatePluginOptions} */
|
||||
this._options = options;
|
||||
}
|
||||
|
||||
|
||||
6
node_modules/webpack/lib/node/NodeWatchFileSystem.js
generated
vendored
6
node_modules/webpack/lib/node/NodeWatchFileSystem.js
generated
vendored
@@ -8,6 +8,8 @@
|
||||
const util = require("util");
|
||||
const Watchpack = require("watchpack");
|
||||
|
||||
/** @typedef {import("watchpack").TimeInfoEntries} TimeInfoEntries */
|
||||
/** @typedef {import("watchpack").WatchOptions} WatchOptions */
|
||||
/** @typedef {import("../util/fs").InputFileSystem} InputFileSystem */
|
||||
/** @typedef {import("../util/fs").WatchMethod} WatchMethod */
|
||||
/** @typedef {import("../util/fs").Changes} Changes */
|
||||
@@ -18,7 +20,9 @@ class NodeWatchFileSystem {
|
||||
* @param {InputFileSystem} inputFileSystem input filesystem
|
||||
*/
|
||||
constructor(inputFileSystem) {
|
||||
/** @type {InputFileSystem} */
|
||||
this.inputFileSystem = inputFileSystem;
|
||||
/** @type {WatchOptions} */
|
||||
this.watcherOptions = {
|
||||
aggregateTimeout: 0
|
||||
};
|
||||
@@ -65,7 +69,9 @@ class NodeWatchFileSystem {
|
||||
}
|
||||
|
||||
const fetchTimeInfo = () => {
|
||||
/** @type {TimeInfoEntries} */
|
||||
const fileTimeInfoEntries = new Map();
|
||||
/** @type {TimeInfoEntries} */
|
||||
const contextTimeInfoEntries = new Map();
|
||||
if (this.watcher) {
|
||||
this.watcher.collectTimeInfoEntries(
|
||||
|
||||
1
node_modules/webpack/lib/node/ReadFileChunkLoadingRuntimeModule.js
generated
vendored
1
node_modules/webpack/lib/node/ReadFileChunkLoadingRuntimeModule.js
generated
vendored
@@ -30,6 +30,7 @@ class ReadFileChunkLoadingRuntimeModule extends RuntimeModule {
|
||||
*/
|
||||
constructor(runtimeRequirements) {
|
||||
super("readFile chunk loading", RuntimeModule.STAGE_ATTACH);
|
||||
/** @type {ReadOnlyRuntimeRequirements} */
|
||||
this.runtimeRequirements = runtimeRequirements;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/node/ReadFileCompileAsyncWasmPlugin.js
generated
vendored
1
node_modules/webpack/lib/node/ReadFileCompileAsyncWasmPlugin.js
generated
vendored
@@ -25,6 +25,7 @@ class ReadFileCompileAsyncWasmPlugin {
|
||||
* @param {ReadFileCompileAsyncWasmPluginOptions=} options options object
|
||||
*/
|
||||
constructor({ import: useImport = false } = {}) {
|
||||
/** @type {boolean} */
|
||||
this._import = useImport;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/node/ReadFileCompileWasmPlugin.js
generated
vendored
1
node_modules/webpack/lib/node/ReadFileCompileWasmPlugin.js
generated
vendored
@@ -26,6 +26,7 @@ class ReadFileCompileWasmPlugin {
|
||||
* @param {ReadFileCompileWasmPluginOptions=} options options object
|
||||
*/
|
||||
constructor(options = {}) {
|
||||
/** @type {ReadFileCompileWasmPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/node/RequireChunkLoadingRuntimeModule.js
generated
vendored
1
node_modules/webpack/lib/node/RequireChunkLoadingRuntimeModule.js
generated
vendored
@@ -30,6 +30,7 @@ class RequireChunkLoadingRuntimeModule extends RuntimeModule {
|
||||
*/
|
||||
constructor(runtimeRequirements) {
|
||||
super("require chunk loading", RuntimeModule.STAGE_ATTACH);
|
||||
/** @type {ReadOnlyRuntimeRequirements} */
|
||||
this.runtimeRequirements = runtimeRequirements;
|
||||
}
|
||||
|
||||
|
||||
19
node_modules/webpack/lib/node/nodeConsole.js
generated
vendored
19
node_modules/webpack/lib/node/nodeConsole.js
generated
vendored
@@ -67,10 +67,11 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {string} prefix prefix
|
||||
* @param {string} colorPrefix color prefix
|
||||
* @param {string} colorSuffix color suffix
|
||||
* @returns {(...args: EXPECTED_ANY[]) => void} function to write with colors
|
||||
* @returns {(...args: T[]) => void} function to write with colors
|
||||
*/
|
||||
const writeColored =
|
||||
(prefix, colorPrefix, colorSuffix) =>
|
||||
@@ -87,12 +88,14 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
writeStatusMessage();
|
||||
};
|
||||
|
||||
/** @type {<T extends unknown[]>(...args: T) => void} */
|
||||
const writeGroupMessage = writeColored(
|
||||
"<-> ",
|
||||
"\u001B[1m\u001B[36m",
|
||||
"\u001B[39m\u001B[22m"
|
||||
);
|
||||
|
||||
/** @type {<T extends unknown[]>(...args: T) => void} */
|
||||
const writeGroupCollapsedMessage = writeColored(
|
||||
"<+> ",
|
||||
"\u001B[1m\u001B[36m",
|
||||
@@ -100,17 +103,25 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
);
|
||||
|
||||
return {
|
||||
/** @type {LoggerConsole["log"]} */
|
||||
log: writeColored(" ", "\u001B[1m", "\u001B[22m"),
|
||||
/** @type {LoggerConsole["debug"]} */
|
||||
debug: writeColored(" ", "", ""),
|
||||
/** @type {LoggerConsole["trace"]} */
|
||||
trace: writeColored(" ", "", ""),
|
||||
/** @type {LoggerConsole["info"]} */
|
||||
info: writeColored("<i> ", "\u001B[1m\u001B[32m", "\u001B[39m\u001B[22m"),
|
||||
/** @type {LoggerConsole["warn"]} */
|
||||
warn: writeColored("<w> ", "\u001B[1m\u001B[33m", "\u001B[39m\u001B[22m"),
|
||||
/** @type {LoggerConsole["error"]} */
|
||||
error: writeColored("<e> ", "\u001B[1m\u001B[31m", "\u001B[39m\u001B[22m"),
|
||||
/** @type {LoggerConsole["logTime"]} */
|
||||
logTime: writeColored(
|
||||
"<t> ",
|
||||
"\u001B[1m\u001B[35m",
|
||||
"\u001B[39m\u001B[22m"
|
||||
),
|
||||
/** @type {LoggerConsole["group"]} */
|
||||
group: (...args) => {
|
||||
writeGroupMessage(...args);
|
||||
if (currentCollapsed > 0) {
|
||||
@@ -119,10 +130,12 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
currentIndent += " ";
|
||||
}
|
||||
},
|
||||
/** @type {LoggerConsole["groupCollapsed"]} */
|
||||
groupCollapsed: (...args) => {
|
||||
writeGroupCollapsedMessage(...args);
|
||||
currentCollapsed++;
|
||||
},
|
||||
/** @type {LoggerConsole["groupEnd"]} */
|
||||
groupEnd: () => {
|
||||
if (currentCollapsed > 0) {
|
||||
currentCollapsed--;
|
||||
@@ -130,8 +143,11 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
currentIndent = currentIndent.slice(0, -2);
|
||||
}
|
||||
},
|
||||
/** @type {LoggerConsole["profile"]} */
|
||||
profile: console.profile && ((name) => console.profile(name)),
|
||||
/** @type {LoggerConsole["profileEnd"]} */
|
||||
profileEnd: console.profileEnd && ((name) => console.profileEnd(name)),
|
||||
/** @type {LoggerConsole["clear"]} */
|
||||
clear:
|
||||
/** @type {() => void} */
|
||||
(
|
||||
@@ -143,6 +159,7 @@ module.exports = ({ colors, appendOnly, stream }) => {
|
||||
writeStatusMessage();
|
||||
})
|
||||
),
|
||||
/** @type {LoggerConsole["status"]} */
|
||||
status: appendOnly
|
||||
? writeColored("<s> ", "", "")
|
||||
: (name, ...args) => {
|
||||
|
||||
Reference in New Issue
Block a user