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/cache/PackFileCacheStrategy.js
generated
vendored
11
node_modules/webpack/lib/cache/PackFileCacheStrategy.js
generated
vendored
@@ -18,6 +18,7 @@ const {
|
||||
} = require("../util/serialization");
|
||||
|
||||
/** @typedef {import("../../declarations/WebpackOptions").SnapshotOptions} SnapshotOptions */
|
||||
/** @typedef {import("../Compilation").FileSystemDependencies} FileSystemDependencies */
|
||||
/** @typedef {import("../Cache").Data} Data */
|
||||
/** @typedef {import("../Cache").Etag} Etag */
|
||||
/** @typedef {import("../Compiler")} Compiler */
|
||||
@@ -51,7 +52,7 @@ class PackContainer {
|
||||
resolveResults,
|
||||
resolveBuildDependenciesSnapshot
|
||||
) {
|
||||
/** @type {Pack | (() => Pack) } */
|
||||
/** @type {Pack | (() => Pack)} */
|
||||
this.data = data;
|
||||
/** @type {string} */
|
||||
this.version = version;
|
||||
@@ -395,7 +396,7 @@ class Pack {
|
||||
return;
|
||||
}
|
||||
|
||||
/** @type {PackContent[] } */
|
||||
/** @type {PackContent[]} */
|
||||
const mergedContent = [];
|
||||
|
||||
// 3. Remove old content entries
|
||||
@@ -1109,7 +1110,7 @@ class PackFileCacheStrategy {
|
||||
compression,
|
||||
readonly
|
||||
}) {
|
||||
/** @type {import("../serialization/Serializer")<PackContainer, null, {}>} */
|
||||
/** @type {import("../serialization/Serializer")<PackContainer, null, EXPECTED_OBJECT>} */
|
||||
this.fileSerializer = createFileSerializer(
|
||||
fs,
|
||||
/** @type {string | Hash} */
|
||||
@@ -1140,7 +1141,7 @@ class PackFileCacheStrategy {
|
||||
this.snapshot = snapshot;
|
||||
/** @type {BuildDependencies} */
|
||||
this.buildDependencies = new Set();
|
||||
/** @type {LazySet<string>} */
|
||||
/** @type {FileSystemDependencies} */
|
||||
this.newBuildDependencies = new LazySet();
|
||||
/** @type {Snapshot | undefined} */
|
||||
this.resolveBuildDependenciesSnapshot = undefined;
|
||||
@@ -1364,7 +1365,7 @@ class PackFileCacheStrategy {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {LazySet<string> | Iterable<string>} dependencies dependencies to store
|
||||
* @param {FileSystemDependencies | Iterable<string>} dependencies dependencies to store
|
||||
*/
|
||||
storeBuildDependencies(dependencies) {
|
||||
if (this.readonly) return;
|
||||
|
||||
Reference in New Issue
Block a user