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:
3
node_modules/webpack/lib/container/ContainerEntryDependency.js
generated
vendored
3
node_modules/webpack/lib/container/ContainerEntryDependency.js
generated
vendored
@@ -18,8 +18,11 @@ class ContainerEntryDependency extends Dependency {
|
||||
*/
|
||||
constructor(name, exposes, shareScope) {
|
||||
super();
|
||||
/** @type {string} */
|
||||
this.name = name;
|
||||
/** @type {ExposesList} */
|
||||
this.exposes = exposes;
|
||||
/** @type {string} */
|
||||
this.shareScope = shareScope;
|
||||
}
|
||||
|
||||
|
||||
7
node_modules/webpack/lib/container/ContainerEntryModule.js
generated
vendored
7
node_modules/webpack/lib/container/ContainerEntryModule.js
generated
vendored
@@ -28,6 +28,7 @@ const ContainerExposedDependency = require("./ContainerExposedDependency");
|
||||
/** @typedef {import("../Module").LibIdent} LibIdent */
|
||||
/** @typedef {import("../Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("../Module").NeedBuildContext} NeedBuildContext */
|
||||
/** @typedef {import("../Module").Sources} Sources */
|
||||
/** @typedef {import("../Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("../RequestShortener")} RequestShortener */
|
||||
/** @typedef {import("../ResolverFactory").ResolverWithOptions} ResolverWithOptions */
|
||||
@@ -51,8 +52,11 @@ class ContainerEntryModule extends Module {
|
||||
*/
|
||||
constructor(name, exposes, shareScope) {
|
||||
super(JAVASCRIPT_MODULE_TYPE_DYNAMIC, null);
|
||||
/** @type {string} */
|
||||
this._name = name;
|
||||
/** @type {ExposesList} */
|
||||
this._exposes = exposes;
|
||||
/** @type {string} */
|
||||
this._shareScope = shareScope;
|
||||
}
|
||||
|
||||
@@ -147,12 +151,14 @@ class ContainerEntryModule extends Module {
|
||||
* @returns {CodeGenerationResult} result
|
||||
*/
|
||||
codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }) {
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
const runtimeRequirements = new Set([
|
||||
RuntimeGlobals.definePropertyGetters,
|
||||
RuntimeGlobals.hasOwnProperty,
|
||||
RuntimeGlobals.exports
|
||||
]);
|
||||
/** @type {string[]} */
|
||||
const getters = [];
|
||||
|
||||
for (const block of this.blocks) {
|
||||
@@ -167,6 +173,7 @@ class ContainerEntryModule extends Module {
|
||||
};
|
||||
});
|
||||
|
||||
/** @type {string} */
|
||||
let str;
|
||||
|
||||
if (modules.some((m) => !m.module)) {
|
||||
|
||||
1
node_modules/webpack/lib/container/ContainerExposedDependency.js
generated
vendored
1
node_modules/webpack/lib/container/ContainerExposedDependency.js
generated
vendored
@@ -18,6 +18,7 @@ class ContainerExposedDependency extends ModuleDependency {
|
||||
*/
|
||||
constructor(exposedName, request) {
|
||||
super(request);
|
||||
/** @type {string} */
|
||||
this.exposedName = exposedName;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/container/FallbackDependency.js
generated
vendored
1
node_modules/webpack/lib/container/FallbackDependency.js
generated
vendored
@@ -18,6 +18,7 @@ class FallbackDependency extends Dependency {
|
||||
*/
|
||||
constructor(requests) {
|
||||
super();
|
||||
/** @type {ExternalRequests} */
|
||||
this.requests = requests;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/container/FallbackItemDependency.js
generated
vendored
1
node_modules/webpack/lib/container/FallbackItemDependency.js
generated
vendored
@@ -13,6 +13,7 @@ class FallbackItemDependency extends ModuleDependency {
|
||||
* @param {string} request request
|
||||
*/
|
||||
constructor(request) {
|
||||
/** @type {string} */
|
||||
super(request);
|
||||
}
|
||||
|
||||
|
||||
4
node_modules/webpack/lib/container/FallbackModule.js
generated
vendored
4
node_modules/webpack/lib/container/FallbackModule.js
generated
vendored
@@ -28,6 +28,7 @@ const FallbackItemDependency = require("./FallbackItemDependency");
|
||||
/** @typedef {import("../Module").NameForCondition} NameForCondition */
|
||||
/** @typedef {import("../Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("../Module").NeedBuildContext} NeedBuildContext */
|
||||
/** @typedef {import("../Module").Sources} Sources */
|
||||
/** @typedef {import("../Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("../RequestShortener")} RequestShortener */
|
||||
/** @typedef {import("../ResolverFactory").ResolverWithOptions} ResolverWithOptions */
|
||||
@@ -44,7 +45,9 @@ class FallbackModule extends Module {
|
||||
*/
|
||||
constructor(requests) {
|
||||
super(WEBPACK_MODULE_TYPE_FALLBACK);
|
||||
/** @type {ExternalRequests} */
|
||||
this.requests = requests;
|
||||
/** @type {string} */
|
||||
this._identifier = `fallback ${this.requests.join(" ")}`;
|
||||
}
|
||||
|
||||
@@ -158,6 +161,7 @@ class FallbackModule extends Module {
|
||||
])};`,
|
||||
"module.exports = loop();"
|
||||
]);
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
sources.set(JAVASCRIPT_TYPE, new RawSource(code));
|
||||
return { sources, runtimeRequirements: RUNTIME_REQUIREMENTS };
|
||||
|
||||
6
node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js
generated
vendored
6
node_modules/webpack/lib/container/HoistContainerReferencesPlugin.js
generated
vendored
@@ -34,7 +34,9 @@ class HoistContainerReferences {
|
||||
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
||||
const hooks =
|
||||
getModuleFederationPlugin().getCompilationHooks(compilation);
|
||||
/** @type {Set<Dependency>} */
|
||||
const depsToTrace = new Set();
|
||||
/** @type {Set<Dependency>} */
|
||||
const entryExternalsToHoist = new Set();
|
||||
hooks.addContainerEntryDependency.tap(PLUGIN_NAME, (dep) => {
|
||||
depsToTrace.add(dep);
|
||||
@@ -89,6 +91,7 @@ class HoistContainerReferences {
|
||||
);
|
||||
|
||||
const containerRuntimes = chunkGraph.getModuleRuntimes(entryModule);
|
||||
/** @type {Set<string>} */
|
||||
const runtimes = new Set();
|
||||
|
||||
for (const runtimeSpec of containerRuntimes) {
|
||||
@@ -136,6 +139,7 @@ class HoistContainerReferences {
|
||||
|
||||
const containerRuntimes =
|
||||
chunkGraph.getModuleRuntimes(containerEntryModule);
|
||||
/** @type {Set<string>} */
|
||||
const runtimes = new Set();
|
||||
|
||||
for (const runtimeSpec of containerRuntimes) {
|
||||
@@ -198,7 +202,9 @@ class HoistContainerReferences {
|
||||
*/
|
||||
function getAllReferencedModules(compilation, module, type, includeInitial) {
|
||||
const collectedModules = new Set(includeInitial ? [module] : []);
|
||||
/** @type {WeakSet<Module>} */
|
||||
const visitedModules = new WeakSet([module]);
|
||||
/** @type {Module[]} */
|
||||
const stack = [module];
|
||||
|
||||
while (stack.length > 0) {
|
||||
|
||||
2
node_modules/webpack/lib/container/ModuleFederationPlugin.js
generated
vendored
2
node_modules/webpack/lib/container/ModuleFederationPlugin.js
generated
vendored
@@ -44,7 +44,7 @@ class ModuleFederationPlugin {
|
||||
*/
|
||||
constructor(options) {
|
||||
validate(options);
|
||||
|
||||
/** @type {ModuleFederationPluginOptions} */
|
||||
this._options = options;
|
||||
}
|
||||
|
||||
|
||||
24
node_modules/webpack/lib/container/RemoteModule.js
generated
vendored
24
node_modules/webpack/lib/container/RemoteModule.js
generated
vendored
@@ -18,13 +18,17 @@ const RemoteToExternalDependency = require("./RemoteToExternalDependency");
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
/** @typedef {import("../Module").BuildCallback} BuildCallback */
|
||||
/** @typedef {import("../Module").CodeGenerationContext} CodeGenerationContext */
|
||||
/** @typedef {import("../Module").CodeGenerationResultData} CodeGenerationResultData */
|
||||
/** @typedef {import("../Module").CodeGenerationResult} CodeGenerationResult */
|
||||
/** @typedef {import("../Module").LibIdentOptions} LibIdentOptions */
|
||||
/** @typedef {import("../Module").LibIdent} LibIdent */
|
||||
/** @typedef {import("../Module").NameForCondition} NameForCondition */
|
||||
/** @typedef {import("../Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("../Module").NeedBuildContext} NeedBuildContext */
|
||||
/** @typedef {import("../Module").Sources} Sources */
|
||||
/** @typedef {import("../Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("../ModuleGraph")} ModuleGraph */
|
||||
/** @typedef {import("../Module").ExportsType} ExportsType */
|
||||
/** @typedef {import("../RequestShortener")} RequestShortener */
|
||||
/** @typedef {import("../ResolverFactory").ResolverWithOptions} ResolverWithOptions */
|
||||
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
|
||||
@@ -44,10 +48,15 @@ class RemoteModule extends Module {
|
||||
*/
|
||||
constructor(request, externalRequests, internalRequest, shareScope) {
|
||||
super(WEBPACK_MODULE_TYPE_REMOTE);
|
||||
/** @type {string} */
|
||||
this.request = request;
|
||||
/** @type {ExternalRequests} */
|
||||
this.externalRequests = externalRequests;
|
||||
/** @type {string} */
|
||||
this.internalRequest = internalRequest;
|
||||
/** @type {string} */
|
||||
this.shareScope = shareScope;
|
||||
/** @type {string} */
|
||||
this._identifier = `remote (${shareScope}) ${this.externalRequests.join(
|
||||
" "
|
||||
)} ${this.internalRequest}`;
|
||||
@@ -128,6 +137,19 @@ class RemoteModule extends Module {
|
||||
return REMOTE_AND_SHARE_INIT_TYPES;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {ModuleGraph} moduleGraph the module graph
|
||||
* @param {boolean | undefined} strict the importing module is strict
|
||||
* @returns {ExportsType} export type
|
||||
* "namespace": Exports is already a namespace object. namespace = exports.
|
||||
* "dynamic": Check at runtime if __esModule is set. When set: namespace = { ...exports, default: exports }. When not set: namespace = { default: exports }.
|
||||
* "default-only": Provide a namespace object with only default export. namespace = { default: exports }
|
||||
* "default-with-named": Provide a namespace object with named and default export. namespace = { ...exports, default: exports }
|
||||
*/
|
||||
getExportsType(moduleGraph, strict) {
|
||||
return "dynamic";
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {NameForCondition | null} absolute path which should be used for condition matching (usually the resource path)
|
||||
*/
|
||||
@@ -142,8 +164,10 @@ class RemoteModule extends Module {
|
||||
codeGeneration({ moduleGraph, chunkGraph }) {
|
||||
const module = moduleGraph.getModule(this.dependencies[0]);
|
||||
const id = module && chunkGraph.getModuleId(module);
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
sources.set("remote", new RawSource(""));
|
||||
/** @type {CodeGenerationResultData} */
|
||||
const data = new Map();
|
||||
data.set("share-init", [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user