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:
13
node_modules/webpack/lib/CodeGenerationResults.js
generated
vendored
13
node_modules/webpack/lib/CodeGenerationResults.js
generated
vendored
@@ -17,16 +17,17 @@ const { RuntimeSpecMap, runtimeToString } = require("./util/runtime");
|
||||
/** @typedef {import("./Module").CodeGenerationResult} CodeGenerationResult */
|
||||
/** @typedef {import("./Module").CodeGenerationResultData} CodeGenerationResultData */
|
||||
/** @typedef {import("./Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
|
||||
/** @typedef {typeof import("./util/Hash")} Hash */
|
||||
/** @typedef {import("./util/Hash").HashFunction} HashFunction */
|
||||
/** @typedef {import("./util/runtime").RuntimeSpec} RuntimeSpec */
|
||||
|
||||
class CodeGenerationResults {
|
||||
/**
|
||||
* @param {string | Hash} hashFunction the hash function to use
|
||||
* @param {HashFunction} hashFunction the hash function to use
|
||||
*/
|
||||
constructor(hashFunction = DEFAULTS.HASH_FUNCTION) {
|
||||
/** @type {Map<Module, RuntimeSpecMap<CodeGenerationResult>>} */
|
||||
this.map = new Map();
|
||||
/** @type {HashFunction} */
|
||||
this._hashFunction = hashFunction;
|
||||
}
|
||||
|
||||
@@ -152,7 +153,13 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
|
||||
* @returns {void}
|
||||
*/
|
||||
add(module, runtime, result) {
|
||||
const map = getOrInsert(this.map, module, () => new RuntimeSpecMap());
|
||||
const map = getOrInsert(
|
||||
this.map,
|
||||
module,
|
||||
() =>
|
||||
/** @type {RuntimeSpecMap<CodeGenerationResult>} */
|
||||
new RuntimeSpecMap()
|
||||
);
|
||||
map.set(runtime, result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user