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:
3
node_modules/webpack/lib/json/JsonParser.js
generated
vendored
Executable file → Normal file
3
node_modules/webpack/lib/json/JsonParser.js
generated
vendored
Executable file → Normal file
@@ -54,7 +54,8 @@ class JsonParser extends Parser {
|
||||
: parseFn(source[0] === "\uFEFF" ? source.slice(1) : source);
|
||||
} catch (err) {
|
||||
throw new Error(
|
||||
`Cannot parse JSON: ${/** @type {Error} */ (err).message}`
|
||||
`Cannot parse JSON: ${/** @type {Error} */ (err).message}`,
|
||||
{ cause: err }
|
||||
);
|
||||
}
|
||||
const jsonData = new JsonData(/** @type {Buffer | JsonValue} */ (data));
|
||||
|
||||
Reference in New Issue
Block a user