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

@module-federation/runtime

Package Overview
Dependencies
Maintainers
8
Versions
623
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/runtime - npm Package Compare versions

Comparing version 0.0.0-next-20240122061426 to 0.0.0-next-20240122072901

2

dist/package.json
{
"name": "@module-federation/runtime",
"version": "0.0.8",
"version": "0.0.9",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -5,0 +5,0 @@ "main": "./index.cjs.js",

@@ -174,3 +174,3 @@ 'use strict';

globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.8";
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.9";
}

@@ -706,6 +706,9 @@ }

};
const isLoaded = (shared)=>{
return Boolean(shared.loaded) || typeof shared.lib === 'function';
};
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) {
const versions = shareScopeMap[scope][pkgName];
const callback = function(prev, cur) {
return !versions[prev].loaded && versionLt(prev, cur);
return !isLoaded(versions[prev]) && versionLt(prev, cur);
};

@@ -717,4 +720,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback);

const callback = function(prev, cur) {
if (versions[cur].loaded) {
if (versions[prev].loaded) {
if (isLoaded(versions[cur])) {
if (isLoaded(versions[prev])) {
return Boolean(versionLt(prev, cur));

@@ -725,3 +728,3 @@ } else {

}
if (versions[prev].loaded) {
if (isLoaded(versions[prev])) {
return false;

@@ -728,0 +731,0 @@ }

@@ -172,3 +172,3 @@ function getBuilderId() {

globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.8";
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.9";
}

@@ -704,6 +704,9 @@ }

};
const isLoaded = (shared)=>{
return Boolean(shared.loaded) || typeof shared.lib === 'function';
};
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) {
const versions = shareScopeMap[scope][pkgName];
const callback = function(prev, cur) {
return !versions[prev].loaded && versionLt(prev, cur);
return !isLoaded(versions[prev]) && versionLt(prev, cur);
};

@@ -715,4 +718,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback);

const callback = function(prev, cur) {
if (versions[cur].loaded) {
if (versions[prev].loaded) {
if (isLoaded(versions[cur])) {
if (isLoaded(versions[prev])) {
return Boolean(versionLt(prev, cur));

@@ -723,3 +726,3 @@ } else {

}
if (versions[prev].loaded) {
if (isLoaded(versions[prev])) {
return false;

@@ -726,0 +729,0 @@ }

{
"name": "@module-federation/runtime",
"version": "0.0.0-next-20240122061426",
"version": "0.0.0-next-20240122072901",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -48,4 +48,4 @@ "main": "./dist/index.cjs",

"dependencies": {
"@module-federation/sdk": "0.0.0-next-20240122061426"
"@module-federation/sdk": "0.0.0-next-20240122072901"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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