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
666
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-20240105121713 to 0.0.0-next-20240105131424

1

dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts

@@ -6,2 +6,3 @@ import type { Compiler } from 'webpack';

entryFilePath: string;
bundlerRuntimePath: string;
constructor(options?: ModuleFederationPluginOptions);

@@ -8,0 +9,0 @@ static getTemplate(runtimePlugins: string[], bundlerRuntimePath?: string): string;

10

dist/src/lib/container/runtime/FederationRuntimePlugin.js

@@ -26,2 +26,3 @@ "use strict";

this.entryFilePath = '';
this.bundlerRuntimePath = BundlerRuntimePath;
}

@@ -79,3 +80,3 @@ static getTemplate(runtimePlugins, bundlerRuntimePath) {

}
this.entryFilePath = FederationRuntimePlugin.getFilePath(this.options.name, this.options.runtimePlugins, this.options.implementation);
this.entryFilePath = FederationRuntimePlugin.getFilePath(this.options.name, this.options.runtimePlugins, this.bundlerRuntimePath);
return this.entryFilePath;

@@ -93,3 +94,3 @@ }

mkdirpSync(fs_1.default, constant_1.TEMP_DIR);
fs_1.default.writeFileSync(filePath, FederationRuntimePlugin.getTemplate(this.options.runtimePlugins, this.options.implementation));
fs_1.default.writeFileSync(filePath, FederationRuntimePlugin.getTemplate(this.options.runtimePlugins, this.bundlerRuntimePath));
}

@@ -181,2 +182,7 @@ }

}
if (this.options?.implementation) {
this.bundlerRuntimePath = require.resolve('@module-federation/webpack-bundler-runtime', {
paths: [this.options.implementation],
});
}
this.prependEntry(compiler);

@@ -183,0 +189,0 @@ this.injectRuntime(compiler);

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

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

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

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