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

@module-federation/sdk

Package Overview
Dependencies
Maintainers
8
Versions
668
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/sdk - npm Package Compare versions

Comparing version 0.0.0-feat-node-support-1702930274548 to 0.0.0-feat-node-support-1703050615268

15

index.cjs.js

@@ -937,9 +937,10 @@ 'use strict';

if (!name1) {
throw new Error("import specifier is require");
throw new Error("import specifier is required");
}
return new Promise(function(resolve1, reject1) {
new Function("callbacks", 'import("'.concat(name1, '").then((res)=>{callbacks.resolve(res);}, (error)=> callbacks.reject(error))'))({
resolve: resolve1,
reject: reject1
});
var importModule1 = new Function("name", "return import(name)");
return importModule1(name1).then(function(res1) {
return res1.default;
}).catch(function(error1) {
console.error("Error importing module ".concat(name1, ":"), error1);
throw error1;
});

@@ -1069,4 +1070,2 @@ }

var _info_attrs, _info_attrs1;
// Handle the loaded script context as needed
console.log("Script loaded successfully:", scriptContext1);
var remoteEntryKey1 = (info1 === null || info1 === void 0 ? void 0 : (_info_attrs = info1.attrs) === null || _info_attrs === void 0 ? void 0 : _info_attrs["globalName"]) || "__FEDERATION_".concat(info1 === null || info1 === void 0 ? void 0 : (_info_attrs1 = info1.attrs) === null || _info_attrs1 === void 0 ? void 0 : _info_attrs1["name"], ":custom__");

@@ -1073,0 +1072,0 @@ var entryExports1 = globalThis[remoteEntryKey1] = scriptContext1;

@@ -933,9 +933,10 @@ function _define_property$2(obj, key, value) {

if (!name1) {
throw new Error("import specifier is require");
throw new Error("import specifier is required");
}
return new Promise(function(resolve1, reject1) {
new Function("callbacks", 'import("'.concat(name1, '").then((res)=>{callbacks.resolve(res);}, (error)=> callbacks.reject(error))'))({
resolve: resolve1,
reject: reject1
});
var importModule1 = new Function("name", "return import(name)");
return importModule1(name1).then(function(res1) {
return res1.default;
}).catch(function(error1) {
console.error("Error importing module ".concat(name1, ":"), error1);
throw error1;
});

@@ -1065,4 +1066,2 @@ }

var _info_attrs, _info_attrs1;
// Handle the loaded script context as needed
console.log("Script loaded successfully:", scriptContext1);
var remoteEntryKey1 = (info1 === null || info1 === void 0 ? void 0 : (_info_attrs = info1.attrs) === null || _info_attrs === void 0 ? void 0 : _info_attrs["globalName"]) || "__FEDERATION_".concat(info1 === null || info1 === void 0 ? void 0 : (_info_attrs1 = info1.attrs) === null || _info_attrs1 === void 0 ? void 0 : _info_attrs1["name"], ":custom__");

@@ -1069,0 +1068,0 @@ var entryExports1 = globalThis[remoteEntryKey1] = scriptContext1;

{
"name": "@module-federation/sdk",
"version": "0.0.0-feat-node-support-1702930274548",
"version": "0.0.0-feat-node-support-1703050615268",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A sdk for support module federation",

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