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

@module-federation/node

Package Overview
Dependencies
Maintainers
4
Versions
712
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/node - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

src/UniversalFederationPlugin.js

2

index.js
const NodeFederationPlugin = require('./src/NodeFederationPlugin');
const StreamingTargetPlugin = require('./src/StreamingTargetPlugin');
const UniversalFederationPlugin = require('./src/UniversalFederationPlugin');
module.exports.NodeFederationPlugin = NodeFederationPlugin;
module.exports.StreamingTargetPlugin = StreamingTargetPlugin;
module.exports.UniversalFederationPlugin = UniversalFederationPlugin;

6

package.json
{
"name": "@module-federation/node",
"version": "0.0.1",
"version": "0.1.0",
"description": "Module Federation for Node.js",
"main": "index.js",
"peerDependencies": {
"webpack": "5.40.0",
"node-fetch": "^3.2.10"
"node-fetch": "^3.2.10",
"webpack": "5.40.0"
}
}

@@ -355,3 +355,3 @@ /*

Template.getFunctionContent(
require('../hmr/JavascriptHotModuleReplacement.runtime.js')
require('webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js')
)

@@ -358,0 +358,0 @@ .replace(/\$key\$/g, 'readFileVm')

@@ -23,3 +23,2 @@ 'use strict';

//TODO: should use extractUrlAndGlobal from internal.js
//TODO: should use Template system like LoadFileChunk runtime does.

@@ -31,4 +30,4 @@ //TODO: should use vm.runInThisContext instead of eval

console.log('remoteUrl',remoteUrl)
const scriptUrl = remoteUrl.split("@")[1];
const moduleName = remoteUrl.split("@")[0];
const extractUrlAndGlobal = require('webpack/lib/util/extractUrlAndGlobal');
const [scriptUrl, moduleName] = extractUrlAndGlobal(remoteUrl);
console.log("executing remote load", scriptUrl);

@@ -35,0 +34,0 @@ return new Promise(function (resolve, reject) {

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