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:
5
node_modules/webpack/lib/runtime/GetChunkFilenameRuntimeModule.js
generated
vendored
5
node_modules/webpack/lib/runtime/GetChunkFilenameRuntimeModule.js
generated
vendored
@@ -13,6 +13,7 @@ const { first } = require("../util/SetHelpers");
|
||||
/** @typedef {import("../Chunk").ChunkId} ChunkId */
|
||||
/** @typedef {import("../ChunkGraph")} ChunkGraph */
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
/** @typedef {import("../Compilation").HashWithLengthFunction} HashWithLengthFunction */
|
||||
/** @typedef {import("../TemplatedPathPlugin").TemplatePath} TemplatePath */
|
||||
|
||||
class GetChunkFilenameRuntimeModule extends RuntimeModule {
|
||||
@@ -138,7 +139,7 @@ class GetChunkFilenameRuntimeModule extends RuntimeModule {
|
||||
};
|
||||
/**
|
||||
* @param {string} value string
|
||||
* @returns {(length: number) => string} string to put in quotes with length
|
||||
* @returns {HashWithLengthFunction} string to put in quotes with length
|
||||
*/
|
||||
const unquotedStringifyWithLength = (value) => (length) =>
|
||||
unquotedStringify(`${value}`.slice(0, length));
|
||||
@@ -230,7 +231,7 @@ class GetChunkFilenameRuntimeModule extends RuntimeModule {
|
||||
|
||||
/**
|
||||
* @param {(chunk: Chunk) => string | number} fn function from chunk to value
|
||||
* @returns {(length: number) => string} function which generates code with static mapping of results of fn for including in quoted string for specific length
|
||||
* @returns {HashWithLengthFunction} function which generates code with static mapping of results of fn for including in quoted string for specific length
|
||||
*/
|
||||
const mapExprWithLength = (fn) => (length) =>
|
||||
`" + ${createMap((c) => `${fn(c)}`.slice(0, length))} + "`;
|
||||
|
||||
Reference in New Issue
Block a user