Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/enhanced

Package Overview
Dependencies
Maintainers
8
Versions
664
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/enhanced - npm Package Compare versions

Comparing version 0.0.0-next-20240122074526 to 0.0.0-next-20240123083034

27

dist/src/lib/container/ContainerEntryModule.js

@@ -119,5 +119,6 @@ /*

new StaticExportsDependency(['get', 'init'], false));
this.addDependency(
// @ts-ignore
new EntryDependency(this._injectRuntimeEntry));
// this.addDependency(
// // @ts-ignore
// new EntryDependency(this._injectRuntimeEntry),
// );
callback();

@@ -173,11 +174,11 @@ }

}
const initRuntimeDep = this.dependencies[1];
const initRuntimeModuleGetter = runtimeTemplate.moduleRaw({
module: moduleGraph.getModule(initRuntimeDep),
chunkGraph,
// @ts-expect-error
request: initRuntimeDep.userRequest,
weak: false,
runtimeRequirements,
});
// const initRuntimeDep = this.dependencies[1];
// const initRuntimeModuleGetter = runtimeTemplate.moduleRaw({
// module: moduleGraph.getModule(initRuntimeDep),
// chunkGraph,
// // @ts-expect-error
// request: initRuntimeDep.userRequest,
// weak: false,
// runtimeRequirements,
// });
const federationGlobal = (0, utils_1.getFederationGlobalScope)(RuntimeGlobals || {});

@@ -213,3 +214,3 @@ const source = Template.asString([

])};`,
`${initRuntimeModuleGetter}`,
// `${initRuntimeModuleGetter}`,
'',

@@ -216,0 +217,0 @@ '// This exports getters to disallow modifications',

@@ -134,2 +134,6 @@ "use strict";

}
debugger;
new compiler.webpack.EntryPlugin(compiler.options.context || '', federationRuntimePluginInstance.entryFilePath, {
name,
}).apply(compiler);
compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => {

@@ -176,2 +180,3 @@ const dep = new ContainerEntryDependency_1.default(name,

compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation, { normalModuleFactory }) => {
debugger;
compilation.dependencyFactories.set(ContainerEntryDependency_1.default,

@@ -178,0 +183,0 @@ //@ts-ignore

{
"name": "@module-federation/enhanced",
"version": "0.0.0-next-20240122074526",
"version": "0.0.0-next-20240123083034",
"main": "./dist/src/index.js",

@@ -31,8 +31,8 @@ "types": "./dist/src/index.d.ts",

"devDependencies": {
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240122074526"
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240123083034"
},
"dependencies": {
"@module-federation/sdk": "0.0.0-next-20240122074526",
"@module-federation/runtime-tools": "0.0.0-next-20240122074526"
"@module-federation/sdk": "0.0.0-next-20240123083034",
"@module-federation/runtime-tools": "0.0.0-next-20240123083034"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc