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:
14
node_modules/webpack/lib/logging/Logger.js
generated
vendored
14
node_modules/webpack/lib/logging/Logger.js
generated
vendored
@@ -37,14 +37,18 @@ const TIMERS_SYMBOL = Symbol("webpack logger times");
|
||||
const TIMERS_AGGREGATES_SYMBOL = Symbol("webpack logger aggregated times");
|
||||
|
||||
/** @typedef {EXPECTED_ANY[]} Args */
|
||||
/** @typedef {(type: LogTypeEnum, args?: Args) => void} LogFn */
|
||||
/** @typedef {(name: string | (() => string)) => WebpackLogger} GetChildLogger */
|
||||
|
||||
class WebpackLogger {
|
||||
/**
|
||||
* @param {(type: LogTypeEnum, args?: Args) => void} log log function
|
||||
* @param {(name: string | (() => string)) => WebpackLogger} getChildLogger function to create child logger
|
||||
* @param {LogFn} log log function
|
||||
* @param {GetChildLogger} getChildLogger function to create child logger
|
||||
*/
|
||||
constructor(log, getChildLogger) {
|
||||
/** @type {LogFn} */
|
||||
this[LOG_SYMBOL] = log;
|
||||
/** @type {GetChildLogger} */
|
||||
this.getChildLogger = getChildLogger;
|
||||
}
|
||||
|
||||
@@ -84,11 +88,11 @@ class WebpackLogger {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {EXPECTED_ANY} assertion assertion
|
||||
* @param {boolean=} condition condition
|
||||
* @param {Args} args args
|
||||
*/
|
||||
assert(assertion, ...args) {
|
||||
if (!assertion) {
|
||||
assert(condition, ...args) {
|
||||
if (!condition) {
|
||||
this[LOG_SYMBOL](LogType.error, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user