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:
root
2025-12-23 07:36:18 +00:00
parent 3cc590186a
commit 3ce82a924a
1256 changed files with 6491 additions and 3989 deletions

3
node_modules/webpack/lib/serialization/AggregateErrorSerializer.js generated vendored Executable file → Normal file
View File

@@ -7,7 +7,7 @@
/** @typedef {import("./ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
/** @typedef {import("./ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
/** @typedef {Error & { cause: unknown, errors: EXPECTED_ANY[] }} AggregateError */
/** @typedef {Error & { cause?: unknown, errors: EXPECTED_ANY[] }} AggregateError */
class AggregateErrorSerializer {
/**
@@ -27,7 +27,6 @@ class AggregateErrorSerializer {
*/
deserialize(context) {
const errors = context.read();
// @ts-expect-error ES2018 doesn't `AggregateError`, but it can be used by developers
// eslint-disable-next-line n/no-unsupported-features/es-builtins, n/no-unsupported-features/es-syntax, unicorn/error-message
const err = new AggregateError(errors);

0
node_modules/webpack/lib/serialization/ArraySerializer.js generated vendored Executable file → Normal file
View File

0
node_modules/webpack/lib/serialization/BinaryMiddleware.js generated vendored Executable file → Normal file
View File

View File

@@ -157,11 +157,9 @@ jsTypes.set(ReferenceError, new ErrorObjectSerializer(ReferenceError));
jsTypes.set(SyntaxError, new ErrorObjectSerializer(SyntaxError));
jsTypes.set(TypeError, new ErrorObjectSerializer(TypeError));
// @ts-expect-error ES2018 doesn't `AggregateError`, but it can be used by developers
// eslint-disable-next-line n/no-unsupported-features/es-builtins, n/no-unsupported-features/es-syntax
if (typeof AggregateError !== "undefined") {
jsTypes.set(
// @ts-expect-error ES2018 doesn't `AggregateError`, but it can be used by developers
// eslint-disable-next-line n/no-unsupported-features/es-builtins, n/no-unsupported-features/es-syntax
AggregateError,
new AggregateErrorSerializer()

View File

@@ -8,7 +8,7 @@ const SerializerMiddleware = require("./SerializerMiddleware");
/** @typedef {EXPECTED_ANY} DeserializedType */
/** @typedef {EXPECTED_ANY[]} SerializedType */
/** @typedef {{}} Context */
/** @typedef {EXPECTED_OBJECT} Context */
/**
* @extends {SerializerMiddleware<DeserializedType, SerializedType, Context>}