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:
52
node_modules/webpack/lib/Compilation.js
generated
vendored
Executable file → Normal file
52
node_modules/webpack/lib/Compilation.js
generated
vendored
Executable file → Normal file
@@ -84,7 +84,6 @@ const processAsyncTree = require("./util/processAsyncTree");
|
||||
const { getRuntimeKey } = require("./util/runtime");
|
||||
const { isSourceEqual } = require("./util/source");
|
||||
|
||||
/** @template T @typedef {import("tapable").AsArray<T>} AsArray<T> */
|
||||
/** @typedef {import("webpack-sources").Source} Source */
|
||||
/** @typedef {import("../declarations/WebpackOptions").OutputNormalized} OutputOptions */
|
||||
/** @typedef {import("../declarations/WebpackOptions").HashFunction} HashFunction */
|
||||
@@ -135,6 +134,11 @@ const { isSourceEqual } = require("./util/source");
|
||||
/** @typedef {import("./TemplatedPathPlugin").TemplatePath} TemplatePath */
|
||||
/** @typedef {import("./util/Hash")} Hash */
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @typedef {import("tapable").AsArray<T>} AsArray<T>
|
||||
*/
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @typedef {import("./util/deprecation").FakeHook<T>} FakeHook<T>
|
||||
@@ -200,9 +204,9 @@ const { isSourceEqual } = require("./util/source");
|
||||
* @property {string | number} id
|
||||
* @property {string=} name
|
||||
* @property {string} hash
|
||||
* @property {((length: number) => string)=} hashWithLength
|
||||
* @property {HashWithLengthFunction=} hashWithLength
|
||||
* @property {(Record<string, string>)=} contentHash
|
||||
* @property {(Record<string, (length: number) => string>)=} contentHashWithLength
|
||||
* @property {(Record<string, HashWithLengthFunction>)=} contentHashWithLength
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -224,17 +228,19 @@ const { isSourceEqual } = require("./util/source");
|
||||
* @property {EntryOptions=} entryOptions
|
||||
*/
|
||||
|
||||
/** @typedef {LazySet<string>} FileSystemDependencies */
|
||||
|
||||
/** @typedef {EXPECTED_ANY} ExecuteModuleExports */
|
||||
|
||||
/**
|
||||
* @typedef {object} ExecuteModuleResult
|
||||
* @property {ExecuteModuleExports} exports
|
||||
* @property {boolean} cacheable
|
||||
* @property {Map<string, { source: Source, info: AssetInfo | undefined }>} assets
|
||||
* @property {LazySet<string>} fileDependencies
|
||||
* @property {LazySet<string>} contextDependencies
|
||||
* @property {LazySet<string>} missingDependencies
|
||||
* @property {LazySet<string>} buildDependencies
|
||||
* @property {ExecuteModuleAssets} assets
|
||||
* @property {FileSystemDependencies} fileDependencies
|
||||
* @property {FileSystemDependencies} contextDependencies
|
||||
* @property {FileSystemDependencies} missingDependencies
|
||||
* @property {FileSystemDependencies} buildDependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -261,9 +267,11 @@ const { isSourceEqual } = require("./util/source");
|
||||
* @property {WebpackRequire} require require function
|
||||
*/
|
||||
|
||||
/** @typedef {Map<string, { source: Source, info: AssetInfo | undefined }>} ExecuteModuleAssets */
|
||||
|
||||
/**
|
||||
* @typedef {object} ExecuteModuleContext
|
||||
* @property {Map<string, { source: Source, info: AssetInfo | undefined }>} assets
|
||||
* @property {ExecuteModuleAssets} assets
|
||||
* @property {Chunk} chunk
|
||||
* @property {ChunkGraph} chunkGraph
|
||||
* @property {WebpackRequire=} __webpack_require__
|
||||
@@ -312,18 +320,22 @@ const { isSourceEqual } = require("./util/source");
|
||||
* @property {AssetInfo} info info about the asset
|
||||
*/
|
||||
|
||||
/** @typedef {(length: number) => string} HashWithLengthFunction */
|
||||
|
||||
/**
|
||||
* @typedef {object} ModulePathData
|
||||
* @property {string | number} id
|
||||
* @property {string} hash
|
||||
* @property {((length: number) => string)=} hashWithLength
|
||||
* @property {HashWithLengthFunction=} hashWithLength
|
||||
*/
|
||||
|
||||
/** @typedef {(id: string | number) => string | number} PrepareIdFunction */
|
||||
|
||||
/**
|
||||
* @typedef {object} PathData
|
||||
* @property {ChunkGraph=} chunkGraph
|
||||
* @property {string=} hash
|
||||
* @property {((length: number) => string)=} hashWithLength
|
||||
* @property {HashWithLengthFunction=} hashWithLength
|
||||
* @property {(Chunk | ChunkPathData)=} chunk
|
||||
* @property {(Module | ModulePathData)=} module
|
||||
* @property {RuntimeSpec=} runtime
|
||||
@@ -332,9 +344,10 @@ const { isSourceEqual } = require("./util/source");
|
||||
* @property {string=} query
|
||||
* @property {string=} contentHashType
|
||||
* @property {string=} contentHash
|
||||
* @property {((length: number) => string)=} contentHashWithLength
|
||||
* @property {HashWithLengthFunction=} contentHashWithLength
|
||||
* @property {boolean=} noChunkHash
|
||||
* @property {string=} url
|
||||
* @property {PrepareIdFunction=} prepareId
|
||||
*/
|
||||
|
||||
/** @typedef {"module" | "chunk" | "root-of-chunk" | "nested"} ExcludeModulesType */
|
||||
@@ -697,8 +710,8 @@ class Compilation {
|
||||
) => `Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
|
||||
BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`;
|
||||
/**
|
||||
* @param {string | (import("tapable").TapOptions & { name: string; } & ProcessAssetsAdditionalOptions)} options hook options
|
||||
* @returns {import("tapable").TapOptions & { name: string; } & ProcessAssetsAdditionalOptions} modified options
|
||||
* @param {string | (import("tapable").TapOptions & { name: string } & ProcessAssetsAdditionalOptions)} options hook options
|
||||
* @returns {import("tapable").TapOptions & { name: string } & ProcessAssetsAdditionalOptions} modified options
|
||||
*/
|
||||
const getOptions = (options) => {
|
||||
if (typeof options === "string") options = { name: options };
|
||||
@@ -1218,20 +1231,20 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
||||
this.emittedAssets = new Set();
|
||||
/** @type {Set<string>} */
|
||||
this.comparedForEmitAssets = new Set();
|
||||
/** @type {LazySet<string>} */
|
||||
/** @type {FileSystemDependencies} */
|
||||
this.fileDependencies = new LazySet();
|
||||
/** @type {LazySet<string>} */
|
||||
/** @type {FileSystemDependencies} */
|
||||
this.contextDependencies = new LazySet();
|
||||
/** @type {LazySet<string>} */
|
||||
/** @type {FileSystemDependencies} */
|
||||
this.missingDependencies = new LazySet();
|
||||
/** @type {LazySet<string>} */
|
||||
/** @type {FileSystemDependencies} */
|
||||
this.buildDependencies = new LazySet();
|
||||
// TODO webpack 6 remove
|
||||
this.compilationDependencies = {
|
||||
add: util.deprecate(
|
||||
/**
|
||||
* @param {string} item item
|
||||
* @returns {LazySet<string>} file dependencies
|
||||
* @returns {FileSystemDependencies} file dependencies
|
||||
*/
|
||||
(item) => this.fileDependencies.add(item),
|
||||
"Compilation.compilationDependencies is deprecated (used Compilation.fileDependencies instead)",
|
||||
@@ -3744,6 +3757,7 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
|
||||
dependencyTemplates,
|
||||
runtimeTemplate,
|
||||
runtime,
|
||||
runtimes,
|
||||
codeGenerationResults: results,
|
||||
compilation: this
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user