Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
19
node_modules/webpack/lib/AsyncDependenciesBlock.js
generated
vendored
19
node_modules/webpack/lib/AsyncDependenciesBlock.js
generated
vendored
@@ -16,11 +16,11 @@ const makeSerializable = require("./util/makeSerializable");
|
||||
/** @typedef {import("./serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
|
||||
/** @typedef {import("./util/Hash")} Hash */
|
||||
|
||||
/** @typedef {(ChunkGroupOptions & { entryOptions?: EntryOptions }) | string} GroupOptions */
|
||||
/** @typedef {(ChunkGroupOptions & { entryOptions?: EntryOptions } & { circular?: boolean })} GroupOptions */
|
||||
|
||||
class AsyncDependenciesBlock extends DependenciesBlock {
|
||||
/**
|
||||
* @param {GroupOptions | null} groupOptions options for the group
|
||||
* @param {GroupOptions | string | null} groupOptions options for the group
|
||||
* @param {(DependencyLocation | null)=} loc the line of code
|
||||
* @param {(string | null)=} request the request
|
||||
*/
|
||||
@@ -31,9 +31,17 @@ class AsyncDependenciesBlock extends DependenciesBlock {
|
||||
} else if (!groupOptions) {
|
||||
groupOptions = { name: undefined };
|
||||
}
|
||||
if (typeof groupOptions.circular !== "boolean") {
|
||||
// default allow circular references
|
||||
groupOptions.circular = true;
|
||||
}
|
||||
/** @type {GroupOptions} */
|
||||
this.groupOptions = groupOptions;
|
||||
/** @type {DependencyLocation | null | undefined} */
|
||||
this.loc = loc;
|
||||
/** @type {string | null | undefined} */
|
||||
this.request = request;
|
||||
/** @type {undefined | string} */
|
||||
this._stringifiedGroupOptions = undefined;
|
||||
}
|
||||
|
||||
@@ -55,6 +63,13 @@ class AsyncDependenciesBlock extends DependenciesBlock {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean} Whether circular references are allowed
|
||||
*/
|
||||
get circular() {
|
||||
return Boolean(this.groupOptions.circular);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Hash} hash the hash used to track dependencies
|
||||
* @param {UpdateHashContext} context context
|
||||
|
||||
Reference in New Issue
Block a user