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-20240131231251 to 0.0.0-next-20240201072006

7

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

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

// internal runtime plugin
const normalizedBundlerRuntimePath = (bundlerRuntimePath || BundlerRuntimePath).replaceAll('\\', '/');
let runtimePluginTemplates = '';

@@ -36,5 +37,5 @@ const runtimePLuginNames = [];

const runtimePluginName = `plugin_${index}`;
const runtimePluginPath = path_1.default.isAbsolute(runtimePlugin)
const runtimePluginPath = (path_1.default.isAbsolute(runtimePlugin)
? runtimePlugin
: path_1.default.join(process.cwd(), runtimePlugin);
: path_1.default.join(process.cwd(), runtimePlugin)).replaceAll('\\', '/');
runtimePluginTemplates += `import ${runtimePluginName} from '${runtimePluginPath}';\n`;

@@ -45,3 +46,3 @@ runtimePLuginNames.push(runtimePluginName);

return Template.asString([
`import federation from '${bundlerRuntimePath || BundlerRuntimePath}';`,
`import federation from '${normalizedBundlerRuntimePath}';`,
runtimePluginTemplates,

@@ -48,0 +49,0 @@ `${federationGlobal} = {...federation,...${federationGlobal}};`,

{
"name": "@module-federation/enhanced",
"version": "0.0.0-next-20240131231251",
"version": "0.0.0-next-20240201072006",
"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-20240131231251"
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240201072006"
},
"dependencies": {
"@module-federation/sdk": "0.0.0-next-20240131231251",
"@module-federation/runtime-tools": "0.0.0-next-20240131231251"
"@module-federation/sdk": "0.0.0-next-20240201072006",
"@module-federation/runtime-tools": "0.0.0-next-20240201072006"
}
}

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