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:
18
node_modules/webpack/lib/MultiCompiler.js
generated
vendored
18
node_modules/webpack/lib/MultiCompiler.js
generated
vendored
@@ -137,10 +137,11 @@ module.exports = class MultiCompiler {
|
||||
compilation.warnings.push(warning);
|
||||
});
|
||||
};
|
||||
/** @type {Set<string>} */
|
||||
const cacheNames = new Set();
|
||||
for (const compiler of this.compilers) {
|
||||
if (compiler.options.cache && "name" in compiler.options.cache) {
|
||||
const name = compiler.options.cache.name;
|
||||
const name = /** @type {string} */ (compiler.options.cache.name);
|
||||
if (cacheNames.has(name)) {
|
||||
addWarning(
|
||||
compiler,
|
||||
@@ -255,7 +256,7 @@ module.exports = class MultiCompiler {
|
||||
* @returns {boolean} true if the dependencies are valid
|
||||
*/
|
||||
validateDependencies(callback) {
|
||||
/** @type {Set<{source: Compiler, target: Compiler}>} */
|
||||
/** @type {Set<{ source: Compiler, target: Compiler }>} */
|
||||
const edges = new Set();
|
||||
/** @type {string[]} */
|
||||
const missing = [];
|
||||
@@ -272,8 +273,8 @@ module.exports = class MultiCompiler {
|
||||
return false;
|
||||
};
|
||||
/**
|
||||
* @param {{source: Compiler, target: Compiler}} e1 edge 1
|
||||
* @param {{source: Compiler, target: Compiler}} e2 edge 2
|
||||
* @param {{ source: Compiler, target: Compiler }} e1 edge 1
|
||||
* @param {{ source: Compiler, target: Compiler }} e2 edge 2
|
||||
* @returns {number} result
|
||||
*/
|
||||
const sortEdges = (e1, e2) =>
|
||||
@@ -339,6 +340,7 @@ module.exports = class MultiCompiler {
|
||||
* @returns {void}
|
||||
*/
|
||||
runWithDependencies(compilers, fn, callback) {
|
||||
/** @type {Set<string>} */
|
||||
const fulfilledNames = new Set();
|
||||
let remainingCompilers = compilers;
|
||||
/**
|
||||
@@ -350,6 +352,7 @@ module.exports = class MultiCompiler {
|
||||
* @returns {Compiler[]} compilers
|
||||
*/
|
||||
const getReadyCompilers = () => {
|
||||
/** @type {Compiler[]} */
|
||||
const readyCompilers = [];
|
||||
const list = remainingCompilers;
|
||||
remainingCompilers = [];
|
||||
@@ -376,12 +379,12 @@ module.exports = class MultiCompiler {
|
||||
(compiler, callback) => {
|
||||
fn(compiler, (err) => {
|
||||
if (err) return callback(err);
|
||||
fulfilledNames.add(compiler.name);
|
||||
fulfilledNames.add(/** @type {string} */ (compiler.name));
|
||||
runCompilers(callback);
|
||||
});
|
||||
},
|
||||
(err, results) => {
|
||||
callback(err, results);
|
||||
callback(/** @type {Error | null} */ (err), results);
|
||||
}
|
||||
);
|
||||
};
|
||||
@@ -567,6 +570,7 @@ module.exports = class MultiCompiler {
|
||||
running === 0 &&
|
||||
nodes.every((node) => node.state === "done")
|
||||
) {
|
||||
/** @type {Stats[]} */
|
||||
const stats = [];
|
||||
for (const node of nodes) {
|
||||
const result = node.result;
|
||||
@@ -667,7 +671,7 @@ module.exports = class MultiCompiler {
|
||||
compiler.close(callback);
|
||||
},
|
||||
(error) => {
|
||||
callback(error);
|
||||
callback(/** @type {Error | null} */ (error));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user