Add JS-CATCH-FALLBACK-01 rule and update npm packages
Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
13
node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js
generated
vendored
13
node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js
generated
vendored
@@ -49,6 +49,8 @@ const { makePathsRelative, parseResource } = require("../util/identifier");
|
||||
/** @typedef {import("../ModuleGraphConnection")} ModuleGraphConnection */
|
||||
/** @typedef {import("../ModuleProfile")} ModuleProfile */
|
||||
/** @typedef {import("../WebpackError")} WebpackError */
|
||||
/** @typedef {import("../serialization/AggregateErrorSerializer").AggregateError} AggregateError */
|
||||
/** @typedef {import("../serialization/ErrorObjectSerializer").ErrorWithCause} ErrorWithCause */
|
||||
/** @typedef {import("../ExportsInfo").ExportInfoName} ExportInfoName */
|
||||
|
||||
/**
|
||||
@@ -370,13 +372,17 @@ const uniqueArray = (items, selector) => {
|
||||
const uniqueOrderedArray = (items, selector, comparator) =>
|
||||
uniqueArray(items, selector).sort(comparator);
|
||||
|
||||
/** @template T @template R @typedef {{ [P in keyof T]: R }} MappedValues<T, R> */
|
||||
/**
|
||||
* @template T
|
||||
* @template R
|
||||
* @typedef {{ [P in keyof T]: R }} MappedValues<T, R>
|
||||
*/
|
||||
|
||||
/**
|
||||
* @template {object} T
|
||||
* @template {object} R
|
||||
* @param {T} obj object to be mapped
|
||||
* @param {function(T[keyof T], keyof T): R} fn mapping function
|
||||
* @param {(value: T[keyof T], key: keyof T) => R} fn mapping function
|
||||
* @returns {MappedValues<T, R>} mapped object
|
||||
*/
|
||||
const mapObject = (obj, fn) => {
|
||||
@@ -406,9 +412,6 @@ const countWithChildren = (compilation, getItems) => {
|
||||
return count;
|
||||
};
|
||||
|
||||
/** @typedef {Error & { cause?: unknown }} ErrorWithCause */
|
||||
/** @typedef {Error & { errors: EXPECTED_ANY[] }} AggregateError */
|
||||
|
||||
/** @type {ExtractorsByOption<string | ErrorWithCause | AggregateError | WebpackError, StatsError>} */
|
||||
const EXTRACT_ERROR = {
|
||||
_: (object, error, context, { requestShortener }) => {
|
||||
|
||||
Reference in New Issue
Block a user