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:
11
node_modules/webpack/lib/TemplatedPathPlugin.js
generated
vendored
11
node_modules/webpack/lib/TemplatedPathPlugin.js
generated
vendored
@@ -20,10 +20,7 @@ const { parseResource } = require("./util/identifier");
|
||||
|
||||
const REGEXP = /\[\\*([\w:]+)\\*\]/gi;
|
||||
|
||||
/**
|
||||
* @param {string | number} id id
|
||||
* @returns {string | number} result
|
||||
*/
|
||||
/** @type {PathData["prepareId"]} */
|
||||
const prepareId = (id) => {
|
||||
if (typeof id !== "string") return id;
|
||||
|
||||
@@ -303,7 +300,7 @@ const replacePathVariables = (path, data, assetInfo) => {
|
||||
const module = data.module;
|
||||
|
||||
const idReplacer = replacer(() =>
|
||||
prepareId(
|
||||
(data.prepareId || prepareId)(
|
||||
module instanceof Module
|
||||
? /** @type {ModuleId} */
|
||||
(/** @type {ChunkGraph} */ (chunkGraph).getModuleId(module))
|
||||
@@ -353,7 +350,9 @@ const replacePathVariables = (path, data, assetInfo) => {
|
||||
if (typeof data.runtime === "string") {
|
||||
replacements.set(
|
||||
"runtime",
|
||||
replacer(() => prepareId(/** @type {string} */ (data.runtime)))
|
||||
replacer(() =>
|
||||
(data.prepareId || prepareId)(/** @type {string} */ (data.runtime))
|
||||
)
|
||||
);
|
||||
} else {
|
||||
replacements.set("runtime", replacer("_"));
|
||||
|
||||
Reference in New Issue
Block a user