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);
|
||||
}
|
||||
}
|
||||
|
||||
4
node_modules/webpack/lib/logging/createConsoleLogger.js
generated
vendored
4
node_modules/webpack/lib/logging/createConsoleLogger.js
generated
vendored
@@ -99,6 +99,10 @@ module.exports = ({ level = "info", debug = false, console }) => {
|
||||
* @returns {void}
|
||||
*/
|
||||
const logger = (name, type, args) => {
|
||||
/**
|
||||
* @template T
|
||||
* @returns {[string?, ...T[]]} labeled args
|
||||
*/
|
||||
const labeledArgs = () => {
|
||||
if (Array.isArray(args)) {
|
||||
if (args.length > 0 && typeof args[0] === "string") {
|
||||
|
||||
2
node_modules/webpack/lib/logging/truncateArgs.js
generated
vendored
2
node_modules/webpack/lib/logging/truncateArgs.js
generated
vendored
@@ -16,7 +16,7 @@ const arraySum = (array) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {EXPECTED_ANY[]} args items to be truncated
|
||||
* @param {string[]} args items to be truncated
|
||||
* @param {number} maxLength maximum length of args including spaces between
|
||||
* @returns {string[]} truncated args
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user