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:
5
node_modules/webpack/lib/hmr/lazyCompilationBackend.js
generated
vendored
5
node_modules/webpack/lib/hmr/lazyCompilationBackend.js
generated
vendored
@@ -19,11 +19,12 @@
|
||||
/** @typedef {() => Server} CreateServerFunction */
|
||||
|
||||
/**
|
||||
* @param {Omit<LazyCompilationDefaultBackendOptions, "client"> & { client: NonNullable<LazyCompilationDefaultBackendOptions["client"]>}} options additional options for the backend
|
||||
* @param {Omit<LazyCompilationDefaultBackendOptions, "client"> & { client: NonNullable<LazyCompilationDefaultBackendOptions["client"]> }} options additional options for the backend
|
||||
* @returns {BackendHandler} backend
|
||||
*/
|
||||
module.exports = (options) => (compiler, callback) => {
|
||||
const logger = compiler.getInfrastructureLogger("LazyCompilationBackend");
|
||||
/** @type {Map<string, number>} */
|
||||
const activeModules = new Map();
|
||||
const prefix = "/lazy-compilation-using-";
|
||||
|
||||
@@ -152,7 +153,7 @@ module.exports = (options) => (compiler, callback) => {
|
||||
const key = `${encodeURIComponent(
|
||||
originalModule.identifier().replace(/\\/g, "/").replace(/@/g, "_")
|
||||
).replace(/%(2F|3A|24|26|2B|2C|3B|3D)/g, decodeURIComponent)}`;
|
||||
const active = activeModules.get(key) > 0;
|
||||
const active = /** @type {number} */ (activeModules.get(key)) > 0;
|
||||
return {
|
||||
client: `${options.client}?${encodeURIComponent(urlBase + prefix)}`,
|
||||
data: key,
|
||||
|
||||
Reference in New Issue
Block a user